XChange
XChange copied to clipboard
Update FTX getOpenPositions to return averge price of position rather than last trade price
When managing positions it is useful to have the average price of the position to calculate the pnl (i.e. average price-last price), currently the FTX adapter returns the last traded price which can be retrieved from the existing market data services, however the average price of the position can only be retrieved via the open positions api.
okey, seem to be a issue with FTx giving the last trade price in the entry price.
I have fix it, you can close the issue
sorry thought I raised a PR, https://docs.ftx.com/#get-positions use showAvgPrice in the call.
On Thu, Jul 14, 2022 at 11:05 AM makarid @.***> wrote:
I have fix it, you can close the issue
— Reply to this email directly, view it on GitHub https://github.com/knowm/XChange/issues/4483#issuecomment-1184251954, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBUO2TMZXUFSNB4NSBY3S3VT7Q67ANCNFSM5VQ2BUSQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>