Creates and validates a new order but does not send it into the matching engine. Test new order creation and signature/recvWindow long. Raises:īinanceRequestException, BinanceAPIException, BinanceOrderException, BinanceOrderMinAmountException, BinanceOrderMinPriceException, BinanceOrderMinTotalException, BinanceOrderUnknownSymbolException, BinanceOrderInactiveSymbolExceptionĬreate_sub_account_futures_transfer ( **params ) ¶ create_test_order ( **params ) ¶ recvWindow ( int) – the number of milliseconds the request is valid for.newClientOrderId ( str) – Used to uniquely identify this cancel.Either orderId or origClientOrderId must be sent. cancel_margin_oco_order ( **params ) ¶ cancel_margin_order ( **params ) ¶ cancel_order ( **params ) ¶Ĭancel an active order. The format ofĮach object is identical to Client.aggregate_trades(). :param last_id: aggregate trade ID of the last known aggregate trade.Īn iterator of JSON objects, one per trade. Return the first trade occurring later than this time. start_str – Start date string in UTC format or timestamp in milliseconds.“now UTC”, “11 hours ago UTC” Parameters: If using offset strings for dates add “UTC” to date string e.g. See dateparser docs for valid start and end string formats Right if you’re running more than one of these simultaneously. Only allows start_str or last_id-not both. This is meantįor updating a pre-existing local trade data cache. If last_id is specified, start with the trade after it.
Meant to initialise a local cache of trade data. If start_time is specified, start with the first trade after Iterate over aggregate trade data from (start_time or last_id) to testnet ( bool) – Use testnet environment - only available for vanilla options at the momentĪggregate_trade_iter ( symbol, start_str=None, last_id=None ) ¶.requests_params ( dict.) – optional - Dictionary of requests params to use for all calls.AsyncClient ( api_key: Optional = None, api_secret: Optional = None, requests_params: Dict = None, tld: str = 'com', testnet: bool = False, loop=None ) ¶īases: _init_ ( api_key: Optional = None, api_secret: Optional = None, requests_params: Dict = None, tld: str = 'com', testnet: bool = False, loop=None ) ¶īinance API Client constructor Parameters: