Skip to content

OrderRejected: 'no market for ...' #863

Answered by rsmb7z
bbergua asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bbergua
I think you have to convert the bars to TradeTick to function it as expected. Also this will be required to use the internal aggregation for higher timeframes. Input dataframes should have datetime index.

from nautilus_trader.backtest.data.wranglers import QuoteTickDataWrangler
wrangler = QuoteTickDataWrangler(instrument)
ticks = wrangler.process_bar_data(
    bid_data=bid_df,
    ask_data=ask_df,
)

Detailed example for converting bar data to Tick is at following link.
https://github.com/nautechsystems/nautilus_trader/blob/395d9c4d960962b77478baf20fc687a8fee8c3eb/tests/performance_tests/test_perf_backtest.py

Let me know if need more information.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
None yet
2 participants