Type/to search
6
Follow
3
Followers
도움말: GetRecords 함수가 불안정하고 실시간 로그를 내보내는 방법
Help
Created 2022-01-07 20:44:15  Updated 2022-01-07 21:12:07
 5
 982

안녕하세요, 저는 두 가지 질문이 있습니다. 감사합니다.

  1. 제 Getrecords 함수에서는 가끔 오류가 발생합니다. (일반적으로 실행 후 1-2일 후에 오류가 발생합니다.)
    2022-01-07 20:19:00 오류 Traceback (most recent call last): 파일 "<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 오류 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. 하드 디스크의 로그를 내보내는 방법

감사합니다.

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)