there is no data in futures_position_information

in the python-binance version 1.0.19 the following answer client.futures_position_information()
{‘symbol’: ‘REEFUSDT’, ‘positionAmt’: ‘13793’, ‘entryPrice’: ‘0.002174’, ‘breakEvenPrice’: ‘0.002175087’, ‘markPrice’: ‘0.00168503’, ‘unRealizedProfit’: ‘-6.74436321’, ‘liquidationPrice’: ‘0’, ‘leverage’: ‘10’, ‘maxNotionalValue’: ‘20000’, ‘marginType’: ‘cross’, ‘isolatedMargin’: ‘0.00000000’, ‘isAutoAddMargin’: ‘false’, ‘positionSide’: ‘BOTH’, ‘notional’: ‘23.24161879’, ‘isolatedWallet’: ‘0’, ‘updateTime’: 1729276669393, ‘isolated’: False, ‘adlQuantile’: 1}

after upgrading to the version 1.0.21 the response does not contain leverage
{‘symbol’: ‘REEFUSDT’, ‘positionSide’: ‘BOTH’, ‘positionAmt’: ‘13793’, ‘entryPrice’: ‘0.002174’, ‘breakEvenPrice’: ‘0.002175087’, ‘markPrice’: ‘0.00167936’, ‘unRealizedProfit’: ‘-6.82256952’, ‘liquidationPrice’: ‘0’, ‘isolatedMargin’: ‘0’, ‘notional’: ‘23.16341248’, ‘marginAsset’: ‘USDT’, ‘isolatedWallet’: ‘0’, ‘initialMargin’: ‘2.31634124’, ‘maintMargin’: ‘0.46326824’, ‘positionInitialMargin’: ‘2.31634124’, ‘openOrderInitialMargin’: ‘0’, ‘adl’: 1, ‘bidNotional’: ‘0’, ‘askNotional’: ‘0’, ‘updateTime’: 1729276669393}

is this normal? I had to roll back to the previous version

Hey,
This is expected. The library has been updated to use the latest version (Version 3) of the position information endpoint. For more details on the updated endpoint, you can check the documentation here:

1 Like

The logic of Bybit is not very clear. Isn’t leverage a characteristic of a position? Why was it excluded from the response? It turns out that now a separate request needs to be made to find out the leverage size?