I created the API keys in:
https://testnet.binance.vision/
but when I try to access to the futures methods I have all the time this error:
binance.exceptions.BinanceAPIException: APIError(code=-2015): Invalid API-key, IP, or permissions for action, request ip:
e.g.: to get the futures_account_balance, but it is the same if I try to place an order futures_create_order
from binance.client import Client
from binance.websockets import BinanceSocketManager
client = Client(api_key, api_secret)
client.API_URL = ‘https://testnet.binance.vision/api’
print(‘Future Balance:’, client.futures_account_balance())