Closed igkoh closed 3 years ago
@igkoh I am afraid that your question is not part of current responsibility of SDK, you need to manage that yourself. One solution is you need to create a dedicated thread (with a shared memory) to get the orderbook data, and create the order request based on your strategy.
To receive market data of order book and trade on subscription of spot,
How can I write in such a way to receive (orderbook, trade) where MarketClient object is defined. I want to write strategy for spot trading upon reception of (orderbook, trade) in the same method.
Best regards, Ingyu