Have any incidents been triggered during the transaction of digital currency orders?

Author: shawb, Created: 2020-04-13 20:24:46, Updated:

For example, if I do a limit order in def main ((), it triggers another trade function if the order is executed later, instead of running logic in the while true, sleep mode.


More

The grassThe API is wrapped in rest, only the request knows the status, of course the websocket can push the order information, but for beginners it's a bit complicated, refer to the forum for advanced tutorial

The Little DreamWaiting for the WS interface to push you the order transaction information, which is itself an event driver. You can refer to the commodity futures trading class library $.

shawbYes, event-driven retrieval, the implementation of the callback function you mentioned, can you give a demo, thank you.

The grassNo, not this architecture.

The Little DreamThis means that the architecture can be designed as an event-driven implementation of a callback function.

shawbIf websocket is implemented locally, is there a way for me to ask for feedback?