Type/to search
6
Follow
3
Followers
Trợ giúp: Hàm GetRecords không ổn định và cách xuất nhật ký thời gian thực
Help
Created 2022-01-07 20:44:15  Updated 2022-01-07 21:12:07
 5
 982

Xin chào, tôi có 2 thắc mắc.

  1. Tôi sử dụng hàm Getrecords và đôi khi có lỗi ((thường là lỗi trong 1-2 ngày sau khi chạy), xem, làm thế nào để xử lý phù hợp hơn?
    2022-01-07 20:19:00 Lỗi Traceback (most recent call last): File "<string>", line 999, in init_ctx File "<string>", line 321, in <module> File "<string>", line 111, in main File "<string>", line 11, in CompositeArray TypeError: object of type 'NoneType' has no len()
    2022-01-07 20:19:00 Futures_OKCoin lỗi GetRecords: 502: <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->

  2. Làm thế nào để xuất bản ghi của ổ cứng

Cảm ơn rất nhiều.

Related Recommendations
Comment
All comments (5)

    实盘日志都在托管者所在目录logs文件夹内,机器人ID是文件名,扩展名是db3。用SQLite数据库软件可以打开。
    GetRecords报错是访问接口失败了, http502错误。网络问题或者交易所问题。

    5 years ago

    好的,谢谢。那如何让报错时不要中止实盘运行了?怎么样加上容错比较合理

    5 years ago

    您可以看下文库里的一些文章:https://www.fmz.com/digest-topic/6909 ,有些对容错的说明。

    5 years ago

    你好,我看API文档里有_C(...)函数,可以用吗?谢谢

    5 years ago

    对于获取行情的接口可以用_C,下单之类的不建议用。

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