Skip to content

Best practises for defining crypto currencies & instruments for backtests, and future plan? #505

Answered by cjdsellers
yohplala asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yohplala

So the TestInstrumentProvider is more to provide offline stub instruments for both backtests and unit tests.

What should be specified in the docs however, is that the preferred method for obtaining these instruments is actually through the BinanceInstrumentProvider or other providers specific to their exchanges. This will then request the instrument data over their API, which should alleviate some of your concerns about the correctness of the data.

Right now the BinanceInstrumentProvider only has an async method load_all_async you could run on an event_loop, I will add a convenience load_all synchronous method, the old integration used to have one of those.

Then you can just …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yohplala
Comment options

@graceyangfan
Comment options

Answer selected by cjdsellers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants