alpacahq / alpacahq/Alpaca-API

Orders and Positions Endpoints out of sync

Aperta
#276 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
173
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have a posted limit order to buy an equity. Polling orders and positions endpoints every second reveals an issue:
Get orders will return data on my order, showing it is still active (not filled), at the same time, get positions will return data showing I have an active position in that equity (1 qty).

Now, it seems that the API is telling me my order is not filled, but the positions endpoint is showing I have inventory, so obviously the order has been filled.

If you try to sell that position, you get an error of insufficient quantity (which is funny because the API also tells me I have inventory).

Sometimes this lag between the orders and positions data continues for 10 seconds.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.