Topics
Forum Topics not found
Replies
tangducbao101
18 Jun 2023, 06:39
( Updated at: 18 Jun 2023, 06:44 )
RE:
No, you cannot. I try using Python socket to send and recieve messages, it does not work, when I send ProtoOAAccountAuthReq, the ProtoOAAccountAuthRes cannot parse.
Even though I read the api code try rewrite it myself, you package the message twice, 1 for ProtoOAAccountAuthReq, 1 for ProtoMessage, then send to server, and recieve the paylload, unpack twice.
The openapipy code also does not add the 4 bytes len of the payload to message. Seem like the manual guide and api code are not consistent, also for the message. I notice that the openapipy has not been released new tag since last year, while the repo proto message was updated last week.
Now, I am looking for the way to run twisted/reactor once, I do not want it run forever.
@tangducbao101
tangducbao101
07 Jul 2023, 15:14
RE:
ProtoOAReconcileReq is a good API to check opening positions and orders.
@tangducbao101