Replies: 3 comments 2 replies
-
How you design your application is up to you. I would separate out data collection and order execution. Something is responsible for storing data and something else is responsible for using that data and verifying its correctness (i.e. do you have data for 2 symbols, how recent is the data, etc). I don't think CCXT has anything to do with this, its a question of how do you design an application. |
Beta Was this translation helpful? Give feedback.
-
Hi @Jay54520 |
Beta Was this translation helpful? Give feedback.
-
I have tried only to return order book within X ms, following codes will wait until order book is not None, this can work but need to increase X for some less active markets. |
Beta Was this translation helpful? Give feedback.
-
My program:
How and when to get order books of two symbols from cryptofeed ws? Should I get order book when callback is called and wait until callbacks of both symbols are called or store order book to local and get from local cache? What is the frequency to create orders?
Problem of getting order book from local cache instead of from callback: Suppose server pushes order book every 20ms, so the local cache remains same in the 20ms, if you create order every 1ms according to this, you will create 20 orders. But order book should change after you create first order, so you create order according to the outdated order book.
How to handle exception in cryptofeed? Should I exit if can't get order book from cryptofeed?
@pottertech Do you any advice regarding you mentioned ccxt at #163 ?
Beta Was this translation helpful? Give feedback.
All reactions