We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述
获取当日订单接口报错
代码例子
from longport.openapi import TradeContext, Config, OrderStatus, OrderSide, Market config = Config.from_env() ctx = TradeContext(config) resp = ctx.today_orders( symbol = "AGFY.US", status = [OrderStatus.Filled, OrderStatus.New], side = OrderSide.Buy, market = Market.US, ) print(resp)
错误信息或结果截图
Traceback (most recent call last): File "get_today_orders.py", line 4, in resp = ctx.today_orders( ^^^^^^^^^^^^^^^^^ longport.OpenApiException: OpenApiException: deserialize response body error: invalid timestamp at line 1 column 387
你的环境信息
The text was updated successfully, but these errors were encountered:
请问 memberid 是多少?
调用 QuoteContext.member_id() 函数可得到 memberid
QuoteContext.member_id()
Sorry, something went wrong.
memberid为12519320
格式有点问题, 已经修复
谢谢
No branches or pull requests
问题描述
获取当日订单接口报错
代码例子
错误信息或结果截图
Traceback (most recent call last):
File "get_today_orders.py", line 4, in
resp = ctx.today_orders(
^^^^^^^^^^^^^^^^^
longport.OpenApiException: OpenApiException: deserialize response body error: invalid timestamp at line 1 column 387
你的环境信息
The text was updated successfully, but these errors were encountered: