I place an order on binance using the python-binance library using the following code:
from binance.client import Client
from binance.enums import *
api_key = '<api_key>'
api_secret = '<api_secret>'
def main():
client = Client(api_key, api_secret)
order = client.futures_create_order(
symbol='ETHUSDT',
side=SIDE_BUY,
type=FUTURE_ORDER_TYPE_MARKET,
quantity='0.01')
print(order)
if __name__ == '__main__':
main()
The order executes without any errors. I can also check it with the appropriate client.futues_get_open_orders() function.
Though after the trade executes my balance is unchanged.
Running client.futures_account_balance() gives me my initial balance again unchanged.
Even after i try to cancel all open orders with client.futures_cancel_all_open_orders(**params) nothing changes.
Is there something I'm missing here?
I place an order on binance using the python-binance library using the following code:
The order executes without any errors. I can also check it with the appropriate
client.futues_get_open_orders()
function. Though after the trade executes my balance is unchanged. Runningclient.futures_account_balance()
gives me my initial balance again unchanged. Even after i try to cancel all open orders withclient.futures_cancel_all_open_orders(**params)
nothing changes. Is there something I'm missing here?