sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.01k stars 2.2k forks source link

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

Open AnimusXCASH opened 7 months ago

AnimusXCASH commented 7 months ago

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

tsunamilx commented 7 months ago

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)