Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnimusXCASH opened this issue Feb 22, 2024 · 1 comment

Comments

@AnimusXCASH
Copy link

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants