Skip to content

How to access the positions direction from exchange? #609

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

You must be logged in to vote

Hi @graceyangfan just so I understand the context better, when you say that it still thinks it has a position - was this on start-up or shutdown? Also, are you using a Redis backed cache, or in-memory (either should work).

On startup the LiveExecutionEngine will call reconcile_state on every adapter. All specific implementations work slightly differently, however in the case of Binance Futures it will query for all open order and positions which are open according to the exchange, and also all orders and positions which Nautilus believes to be open based on its current state. This is because unfortunately Binance don't allow you to query closed orders unless you pass a specific symbol, wh…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@cjdsellers
Comment options

@graceyangfan
Comment options

@cjdsellers
Comment options

@graceyangfan
Comment options

@cjdsellers
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
2 participants