Type/to search
0
Follow
0
Followers
遅延を検出して交換するにはどうすればいいですか?
FAQ
Created 2018-02-21 22:33:38  
 4
 2853

リアルタイムで多くの大<unk>の策略が表示され,取引所が遅れているのを見て,これはどのように得られたのでしょうか?

Related Recommendations
Comment
All comments (4)

    多谢多谢

    9 years ago

    不客气 ^^

    9 years ago

    检测交易所延迟 一般使用的是 时间戳对比法(差值),写段代码给你:
    测试截图:
    img
    测试代码:

    function main(){ while(true){ var beginTime = new Date().getTime() var ticker = exchange.GetTicker() var endTime = new Date().getTime() LogStatus("GetTicker 接口延迟时间:", endTime - beginTime, "毫秒。") Sleep(500) } }
    9 years ago

    多谢多谢

    9 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)