python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

GET /fapi/v1/positionRisk is retired, please use GET /fapi/v2/positionRisk

Open AnimusXCASH opened this issue 2 years ago • 1 comments

How can i change to use v2 not v1 when calling

futures_position_information() ?

it loads by default V1.

FUTURES_API_VERSION = 'v1' FUTURES_API_VERSION2 = "v2"

Thank you for your help

AnimusXCASH avatar Feb 22 '24 05:02 AnimusXCASH

It should be using the version 2 already, are you using the latest version which is 1.0.19?

See async def futures_position_information(self, **params): return await self._request_futures_api('get', 'positionRisk', True, version=2, data=params)

tsunamilx avatar Feb 23 '24 10:02 tsunamilx

Hello @AnimusXCASH, it's using v2 already: https://github.com/sammchardy/python-binance/blob/master/binance/client.py#L7472

Please make sure your python-binance version is updated!

carlosmiei avatar Oct 18 '24 14:10 carlosmiei