官术网_书友最值得收藏!

TraderActor

TraderActor receives the prediction and, based on the label, writes a log message. It can trigger an HTTP request to the specified endpoint:

override def receive: Receive = {
case data: CurrentDataWithShortTermPrediction =>
Logger.debug("received short-term prediction" + data)
data.prediction match {
case "0" => notifySellShortTerm()
case "1" => notifyHoldShortTerm()
}
主站蜘蛛池模板: 天全县| 且末县| 阳谷县| 简阳市| 环江| 罗源县| 蓬安县| 巍山| 温州市| 宜昌市| 汤阴县| 卢氏县| 东乡族自治县| 临高县| 隆子县| 永清县| 隆尧县| 临泉县| 天镇县| 保定市| 科尔| 三亚市| 襄樊市| 吉安市| 临海市| 舞阳县| 沁水县| 青海省| 焦作市| 正定县| 彭山县| 阿拉善盟| 绥江县| 新巴尔虎左旗| 新营市| 宜昌市| 澎湖县| 三门峡市| 达拉特旗| 湘潭县| 延津县|