Type/to search
0
Follow
0
Followers
GetRecords()能否设定反回数量
Help
Created 2020-05-06 21:44:53  Updated 2020-05-06 22:04:25
 3
 1624

我每10秒环一次都会 出现
Too Many Requests

我在想是不是GetRecords()每次返回的数据太多了 每次500条K线,实际上我只需要最新数据加几条历史就够了,限制数量会不会好点

Related Recommendations
Comment
All comments (3)

    exchange.GetRecords(PERIOD_M1)
    Sleep(1000 * 20)
    20秒一次同样会出Too Many Requests导致策略中断
    GetRecords只有时间周期参数没有数量参数 要怎么解决这个Too Many Requests的问题

    6 years ago

    你用的是自己的服务器吧

    6 years ago

    可以,看文档介绍,K线一般很宽松,不会出现这个问题,你用的是自己的服务器吧

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