0
Follow
0
Followers
Huobi 通貨間取引ペアの履歴データを記録する例を作成しました。操作中に同時に 1 つのレコードしか表示されないのはなぜですか?
Created 2018-10-30 00:28:47 Updated 2018-10-30 00:41:13
7
2506
function main(){
var tradesData = "";
while(true){
var huobiTrades = exchanges[0].GetTrades()[0];
if(tradesData != huobiTrades['Time']){
tradesData = huobiTrades['Time']; //赋值唯一时间戳
var tradesType = "买入";//定义买卖类型及颜色
var tradesTypeColor = "#32CD99";
if (huobiTrades['Type'] == 1) {
tradesType = "卖出";
tradesTypeColor = "#CC3299";
}
//日志输出
Log(tradesType, "时间:",
_D(huobiTrades['Time']), "交易金额:",
huobiTrades['Price'], "交易数量:",
huobiTrades['Amount'], tradesTypeColor);
}
}
}
Related Recommendations
How can i get the depth of the market when backtesting?ERR_INSUFFICIENT_ASSET from huobiMyLanguage DocumentHappy Halloween / Coupon-codes for everyone -- FMZ Quant TeamAdding exchanges on our setting listIntroducing Visual Programming on FMZ QuantLooking For PartnershipGreat news! Check out our platforms’ NEW features, the “Demands & Offers” page on our website.Our platform’s New design PC/MacOS local software client is released now!Flash collapse robot (teaching)
Comment
All comments (7)
- 1

