fapi v2

account_info = client.futures_account_balance()

error message: (“APIError(code=-5000): GET /fapi/v1/balance is retired, please use GET /fapi/v2/balance”)

How to change this to work with fapi/v2?

Hi,
It’s the same format. Please refer to the documentation here: Binance API Documentation