Hello I’m trying to place a Future Order using Python, but It seems like It connects with a Spot account, does anybody could tell me how to connect to a Future Account please?
My code is:
from binance.enums import *
from binance.client import Client
client = Client(“lYrm0uy1ld4N03bNNggcZaLKPCtvNolu8KXXXXXXXXXXXXXXXXXXX”, “p3UQrOS1Nch2EoODJTI2HiZV48F7dVlYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”, {“verify”: False, “timeout”: 20})
depth = client.get_order_book(symbol=‘BTCUSDT’)
order = client.order_limit_buy(
symbol=‘BTCUSDT’,
side=SIDE_BUY,
type=ORDER_TYPE_LIMIT,
timeInForce=TIME_IN_FORCE_GTC,
quantity=0.01,
price=11520,
recvWindow=20000,
timestamp= 1597671933)
The response I get is:
BinanceAPIException: APIError(code=-2010): Account has insufficient balance for requested action.
Regards,
Orlando Gautier