-
Notifications
You must be signed in to change notification settings - Fork 0
A successful trade by ccxt of binance
Ted Yan edited this page Oct 2, 2024
·
1 revision
Fetching your balance:
{'BNB': 0.0,
'BTC': 0.0,
'ETH': 0.0,
'FDUSD': 0.0,
'USDC': 0.0,
'USDT': 14964.19992}
2024-10-02T13:48:22.905Z place_delayed_order
{'amount': 1.0,
'average': 60236.8385,
'clientOrderId': 'x-xcKtGhcu34275ba4104c2375935c2',
'cost': 60236.8385,
'datetime': '2024-10-02T13:48:22.016Z',
'fee': None,
'fees': [],
'filled': 1.0,
'id': '4060554010',
'info': {'avgPrice': '60236.83850',
'clientOrderId': 'x-xcKtGhcu34275ba4104c2375935c2',
'closePosition': False,
'cumQty': '1.000',
'cumQuote': '60236.83850',
'executedQty': '1.000',
'goodTillDate': '0',
'orderId': '4060554010',
'origQty': '1.000',
'origType': 'LIMIT',
'positionSide': 'BOTH',
'price': '62000.00',
'priceMatch': 'NONE',
'priceProtect': False,
'reduceOnly': False,
'selfTradePreventionMode': 'NONE',
'side': 'BUY',
'status': 'FILLED',
'stopPrice': '0.00',
'symbol': 'BTCUSDT',
'timeInForce': 'GTC',
'type': 'LIMIT',
'updateTime': '1727876902016',
'workingType': 'CONTRACT_PRICE'},
'lastTradeTimestamp': 1727876902016,
'lastUpdateTimestamp': 1727876902016,
'postOnly': False,
'price': 62000.0,
'reduceOnly': False,
'remaining': 0.0,
'side': 'buy',
'status': 'closed',
'stopLossPrice': None,
'stopPrice': None,
'symbol': 'BTC/USDT:USDT',
'takeProfitPrice': None,
'timeInForce': 'GTC',
'timestamp': 1727876902016,
'trades': [],
'triggerPrice': None,
'type': 'limit'}
---------------------------------------------------------------
2024-10-02T13:48:22.918Z watch_orders_loop 1 last orders cached
---------------------------watch_orders_loop------------------------------------
---------------------------watch_balance_loop------------------------------------
2024-10-02T13:48:22.918Z watch_balance_loop
{'USDT': {'free': None, 'total': 14962.99592, 'used': None},
'datetime': None,
'free': {'USDT': None},
'info': {'E': 1727876902022,
'T': 1727876902016,
'a': {'B': [{'a': 'USDT',
'bc': '0',
'cw': '14962.99592000',
'wb': '14962.99592000'}],
'P': [{'bep': '60224.08',
'cr': '-0.10000000',
'ep': '60200',
'iw': '0',
'ma': 'USDT',
'mt': 'cross',
'pa': '0.050',
'ps': 'BOTH',
's': 'BTCUSDT',
'up': '45.64151771'}],
'm': 'ORDER'},
'e': 'ACCOUNT_UPDATE'},
'timestamp': None,
'total': {'USDT': 14962.99592},
'used': {'USDT': None}}
sidebar