Open chatterjeesd opened 3 years ago
Hi, Certain things have changed in v2. Please go through the changelog to understand the details https://docs.delta.exchange/#changelog
For supporting trading strategies which require latest positions, Now we have two different Apis to query position.
/v2/positions - returns only size and entry price. This should be used when you want to get the latest position, but dont need the margin dependent fields like liquidation price, bankruptcy price etc
/v2/positions/margined - returns all fields including margin dependent fields. When the position is updated due to a fill, changes might take some time to reflect in this Api.
First of all the API doc states that "get positions" API returns info about all open positions and that product_id is not a query required. However the python client requires product id. Clearly a mismatch. Please update the API doc.
When I used the api using python requests (not the python client) for getting positions using the new (v2) API following the API doc, I got "invalid signature" or "type error".
Thanks !!
``