0
Follow
0
Followers
저는 Huobi 통화-통화 거래 쌍의 과거 데이터를 기록하는 예를 작성했습니다. 운영 중에 한 번에 하나의 기록만 나타나는 이유는 무엇입니까?
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

