MCPcopy Create free account

hub / github.com/binance/binance-connector-python / functions

Functions17,815 in github.com/binance/binance-connector-python

↓ 12 callersMethodopen_interest
Open Interest GET /eapi/v1/openInterest https://developers.binance.com/docs/derivatives/options-tradi
clients/derivatives_trading_options/src/binance_sdk_derivatives_trading_options/rest_api/api/market_data_api.py:277
↓ 12 callersMethodorder_amend_keep_priority
Order Amend Keep Priority Reduce the quantity of an existing open order. This adds 0 orders to the `EXCHANG
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:1540
↓ 12 callersMethodorder_amendments
Query Order Amendments Queries all amendments of a single order. Weight: 4 Args:
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:672
↓ 12 callersMethodorder_list_oto
New Order list - OTO Place an OTO. * An OTO (One-Triggers-the-Other) is an order list comprised of 2 orders
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:2102
↓ 12 callersMethodorder_list_otoco
New Order list - OTOCO Place an OTOCO. * An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list com
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:2228
↓ 12 callersMethodorder_list_place_oto
WebSocket Place new Order list - OTO /orderList.place.oto https://developers.binance.com/docs/binance-spot-api-do
clients/spot/src/binance_sdk_spot/websocket_api/api/trade_api.py:1664
↓ 12 callersMethodorder_list_place_otoco
WebSocket Place new Order list - OTOCO /orderList.place.otoco https://developers.binance.com/docs/binance-spot-ap
clients/spot/src/binance_sdk_spot/websocket_api/api/trade_api.py:1938
↓ 12 callersMethodsend_signed_message
Sends a signed message to the WebSocket server. Args: payload (Dict): The message payload to send. signer (Optional[S
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_api/websocket_api.py:125
↓ 12 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/gift_card/tests/unit/rest_api/test_market_data_api.py:44
↓ 12 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/algo/tests/unit/rest_api/test_future_algo_api.py:44
↓ 12 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/margin_trading/tests/unit/rest_api/test_borrow_repay_api.py:48
↓ 12 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/derivatives_trading_options/tests/unit/rest_api/test_market_maker_endpoints_api.py:56
↓ 12 callersFunctiontransform_query
Recursively transform keys to camelCase and values to serializable. Args: data (Union[dict, list, str, int, float, bool]): The data to tr
common/src/binance_common/utils.py:163
↓ 12 callersMethodui_klines
UIKlines The request is similar to klines having the same parameters and response. `uiKlines` return modifi
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:1317
↓ 12 callersMethodunsubscribe
Unsubscribe from a user data ID. Args: id (str): user data ID to unsubscribe from.
common/src/binance_common/websocket.py:1036
↓ 11 callersMethodbroker_withdraw
Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA) Submit a withdrawal request for
clients/wallet/src/binance_sdk_wallet/rest_api/rest_api.py:1328
↓ 11 callersMethodclose_connection
Close the WebSocket connection. Args: connection (Optional[WebSocketConnection]): WebSocket connection object to close.
common/src/binance_common/websocket.py:523
↓ 11 callersFunctionencoded_string
Encodes the given query string. Args: query (str): The query string to encode. Returns: str: The encoded query string.
common/src/binance_common/utils.py:182
↓ 11 callersMethodfrom_dict
Create an instance of AccountInfo from a dict
clients/fiat/src/binance_sdk_fiat/rest_api/models/account_info.py:96
↓ 11 callersMethodfrom_dict
Create an instance of ChangeAutoCompoundStatusResponse from a dict
clients/dual_investment/src/binance_sdk_dual_investment/rest_api/models/change_auto_compound_status_response.py:91
↓ 11 callersFunctionget_signature
( configuration: Union[ConfigurationWebSocketAPI, ConfigurationRestAPI], payload: dict, signer: Op
common/src/binance_common/utils.py:250
↓ 11 callersFunctionget_uuid
Returns a new universally unique identifier (UUID) as a string.
common/src/binance_common/utils.py:216
↓ 11 callersMethodorder_list_opo
New Order List - OPO Place an [OPO](./faqs/opo.md). * OPOs add 2 orders to the EXCHANGE_MAX_NUM_ORDERS filt
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:1818
↓ 11 callersMethodorder_list_opoco
New Order List - OPOCO Place an [OPOCO](./faqs/opo.md). Weight: 1 Unfilled Order Count: 3
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:1936
↓ 11 callersMethodorder_list_place_opo
WebSocket OPO /orderList.place.opo https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/tradin
clients/spot/src/binance_sdk_spot/websocket_api/api/trade_api.py:1046
↓ 11 callersMethodorder_list_place_opoco
WebSocket OPOCO /orderList.place.opoco https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/tr
clients/spot/src/binance_sdk_spot/websocket_api/api/trade_api.py:1307
↓ 11 callersMethodplace_order
Place Order POST /sapi/v1/w3w/wallet/prediction/trade/place-order-bundle https://developers.binance.c
clients/w3w_prediction/src/binance_sdk_w3w_prediction/rest_api/api/trade_api.py:234
↓ 11 callersMethodreceive_loop
Continuously receive messages from the WebSocket server. Args: connection (WebSocketConnection): WebSocket connection object.
common/src/binance_common/websocket.py:205
↓ 11 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/w3w_prediction/tests/unit/rest_api/test_market_data_api.py:46
↓ 10 callersMethodaccount_commission
Query Commission Rates Get current account commission rates. Weight: 20 Args:
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:287
↓ 10 callersMethodall_orders
All orders Get all account orders; active, canceled, or filled. Weight: 20 Args:
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:345
↓ 10 callersMethodcancel_order
Cancel Order (TRADE) DELETE /fapi/v1/order https://developers.binance.com/docs/derivatives/usds-margi
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/trade_api.py:504
↓ 10 callersMethodcancel_order
Cancel Order (TRADE) DELETE /dapi/v1/order https://developers.binance.com/docs/derivatives/coin-margi
clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/rest_api/api/trade_api.py:388
↓ 10 callersMethodclose_connection
Closes the WebSocket connection and optionally the session. Args: connection (WebSocketConnection, optional): The WebSocket conne
clients/derivatives_trading_options/src/binance_sdk_derivatives_trading_options/websocket_streams/websocket_streams.py:101
↓ 10 callersMethoddepth
Order book Weight: Adjusted based on the limit: |Limit|Request Weight ------|------- 1-100| 5
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:889
↓ 10 callersMethodget_quote
Get Quote POST /sapi/v1/w3w/wallet/prediction/trade/get-quote https://developers.binance.com/en/dev-d
clients/w3w_prediction/src/binance_sdk_w3w_prediction/rest_api/api/trade_api.py:127
↓ 10 callersMethodhashrate_resale_request
Hashrate Resale Request(USER_DATA) Hashrate Resale Request Weight: 5 Args:
clients/mining/src/binance_sdk_mining/rest_api/rest_api.py:367
↓ 10 callersMethodmy_allocations
Query Allocations Retrieves allocations resulting from SOR order placement. Weight: 20 Args
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:490
↓ 10 callersMethodmy_filters
Query relevant filters Retrieves the list of [filters](filters.md) relevant to an account on a given symbol. This is
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:533
↓ 10 callersMethodmy_prevented_matches
Query Prevented Matches Displays the list of orders that were expired due to STP. These are the combination
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:558
↓ 10 callersMethodmy_trades
Account trade list Get trades for a specific account and symbol. Weight: Condition| Weight| ---| ---
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:609
↓ 10 callersMethodorder_book
Order Book GET /fapi/v1/depth https://developers.binance.com/docs/derivatives/usds-margined-futures/m
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/market_data_api.py:1057
↓ 10 callersFunctionparse_proxies
Parses proxy settings and returns a `requests`-compatible format. Args: proxy (Optional[Dict[str, Union[str, int, Dict[str, str]]]]): Pro
common/src/binance_common/utils.py:621
↓ 10 callersMethodquery_order
Query Order (USER_DATA) GET /fapi/v1/order https://developers.binance.com/docs/derivatives/usds-margi
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/trade_api.py:1896
↓ 10 callersMethodquery_order
Query Order (USER_DATA) GET /dapi/v1/order https://developers.binance.com/docs/derivatives/coin-margi
clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/rest_api/api/trade_api.py:1349
↓ 10 callersMethodreference_price_calculation
Query Reference Price Calculation Describes how reference price is calculated for a given symbol. Weight: 2
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:1061
↓ 10 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/fiat/tests/unit/rest_api/test_fiat_api.py:41
↓ 10 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/w3w_prediction/tests/unit/rest_api/test_trade_api.py:67
↓ 10 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/w3w_prediction/tests/unit/rest_api/test_position_api.py:43
↓ 10 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/crypto_loan/tests/unit/rest_api/test_stable_rate_api.py:43
↓ 10 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/vip_loan/tests/unit/rest_api/test_market_data_api.py:41
↓ 10 callersMethodset_mock_response
Helper method to setup mock response for the client's session request.
clients/algo/tests/unit/rest_api/test_spot_algo_api.py:41
↓ 10 callersMethodunsubscribe
Unsubscribes from the specified WebSocket streams. Args: streams (list): A list of WebSocket streams to unsubscribe from.
clients/derivatives_trading_options/src/binance_sdk_derivatives_trading_options/websocket_streams/websocket_streams.py:72
↓ 10 callersMethodvip_loan_borrow
VIP Loan Borrow(TRADE) POST /sapi/v1/loan/vip/borrow https://developers.binance.com/docs/vip_loan/tra
clients/vip_loan/src/binance_sdk_vip_loan/rest_api/api/trade_api.py:38
↓ 10 callersMethodvip_loan_fixed_rate_borrow
VIP Loan Fixed Rate Borrow(TRADE) POST /sapi/v1/loan/vip/fixed/borrow https://developers.binance.com/
clients/vip_loan/src/binance_sdk_vip_loan/rest_api/api/trade_api.py:137
↓ 9 callersMethod__init__
( self, error_message: Optional[str] = None, status_code: Optional[int] = None )
common/src/binance_common/errors.py:11
↓ 9 callersMethodasset_index
Asset Index GET /fapi/v1/assetIndex https://developers.binance.com/docs/derivatives/usds-margined-fut
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/market_data_api.py:123
↓ 9 callersMethodcreate_outbound_transfer
Create Outbound Transfer POST /sapi/v1/w3w/wallet/prediction/transfer/outbound https://developers.bin
clients/w3w_prediction/src/binance_sdk_w3w_prediction/rest_api/api/transfer_api.py:129
↓ 9 callersMethodfrom_dict
Create an instance of GetNFTAssetResponse from a dict
clients/nft/src/binance_sdk_nft/rest_api/models/get_nft_asset_response.py:99
↓ 9 callersMethodfrom_dict
Create an instance of TickerResponse from a dict
clients/alpha/src/binance_sdk_alpha/rest_api/models/ticker_response.py:102
↓ 9 callersMethodmargin_account_borrow_repay
Margin account borrow/repay(MARGIN) Margin account borrow/repay(MARGIN) Weight: 1500 Args:
clients/margin_trading/src/binance_sdk_margin_trading/rest_api/rest_api.py:566
↓ 9 callersMethodmargin_account_new_oco
Margin Account New OCO(TRADE) POST /papi/v1/margin/order/oco https://developers.binance.com/docs/deri
clients/derivatives_trading_portfolio_margin/src/binance_sdk_derivatives_trading_portfolio_margin/rest_api/api/trade_api.py:1084
↓ 9 callersMethodmargin_account_new_oco
Margin Account New OCO (TRADE) POST /sapi/v1/margin/order/oco https://developers.binance.com/docs/mar
clients/margin_trading/src/binance_sdk_margin_trading/rest_api/api/trade_api.py:590
↓ 9 callersMethodnew_um_algo_order
New UM Algo Order (TRADE) POST /papi/v1/um/algo/order https://developers.binance.com/docs/derivatives
clients/derivatives_trading_portfolio_margin/src/binance_sdk_derivatives_trading_portfolio_margin/rest_api/api/trade_api.py:1868
↓ 9 callersMethodorder_list_oco
New Order list - OCO Send in an one-cancels-the-other (OCO) pair, where activation of one order immediately cancels
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:1688
↓ 9 callersMethodorder_list_place_oco
WebSocket Place new Order list - OCO /orderList.place.oco https://developers.binance.com/docs/binance-spot-api-do
clients/spot/src/binance_sdk_spot/websocket_api/api/trade_api.py:785
↓ 9 callersMethodorder_oco
New OCO - Deprecated Send in a new OCO. * Price Restrictions: * `SELL`: Limit Price > Last Pric
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:2404
↓ 9 callersFunctionparse_custom_headers
Parses custom headers for the API client. Args: custom_headers (Optional[dict[str, Union[str, List[str]]]]): A dictionary of custom heade
common/src/binance_common/headers.py:24
↓ 9 callersMethodplace_limit_order
Place limit order (USER_DATA) POST /sapi/v1/convert/limit/placeOrder https://developers.binance.com/d
clients/convert/src/binance_sdk_convert/rest_api/api/trade_api.py:240
↓ 9 callersMethodquery_managed_sub_account_transfer_log_master_account_investor
Query Managed Sub Account Transfer Log (For Investor Master Account) (USER_DATA) Investor can use this api to query
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:1575
↓ 9 callersMethodquery_managed_sub_account_transfer_log_master_account_trading
Query Managed Sub Account Transfer Log (For Trading Team Master Account) (USER_DATA) Trading team can use this api t
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:1620
↓ 9 callersMethodsend_signed_message
Send a message to the WebSocket server. Args: payload (Dict): Payload to send. promised (bool): Whether the response
common/src/binance_common/websocket.py:770
↓ 9 callersMethodsub_account_futures_asset_transfer
Sub-account Futures Asset Transfer (For Master Account) (USER_DATA) Sub-account Futures Asset Transfer * M
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:1137
↓ 9 callersMethodsubmit_deposit_questionnaire
Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA) Submit q
clients/wallet/src/binance_sdk_wallet/rest_api/rest_api.py:1600
↓ 9 callersMethodsubscribe
Subscribe to a list of streams. Args: streams (list[str]): List of streams to subscribe to.
common/src/binance_common/websocket.py:593
↓ 8 callersMethodaccount_information
Account Information (USER_DATA) GET /dapi/v1/account https://developers.binance.com/docs/derivatives/
clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/rest_api/api/account_api.py:47
↓ 8 callersMethodaccount_information_v2
Account Information V2(USER_DATA) GET /fapi/v2/account https://developers.binance.com/docs/derivative
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/account_api.py:55
↓ 8 callersMethodcancel_algo_order
Cancel Algo Order (TRADE) DELETE /fapi/v1/algoOrder https://developers.binance.com/docs/derivatives/u
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/trade_api.py:302
↓ 8 callersMethodconnect
Connect to the Binance WebSocket server. Args: url (str): WebSocket URL. configuration (Union[ConfigurationWebSocketA
common/src/binance_common/websocket.py:97
↓ 8 callersMethodcontinuous_contract_kline_candlestick_streams
r""" Continuous Contract Kline/Candlestick Streams /<pair>_<contractType>@continuousKline_<interval> https://devel
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_streams/streams/market_api.py:292
↓ 8 callersMethodcontinuous_contract_kline_candlestick_streams
r""" Continuous Contract Kline/Candlestick Streams /<pair>_<contractType>@continuousKline_<interval> https://devel
clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/websocket_streams/streams/websocket_market_streams_api.py:248
↓ 8 callersMethodcreate_inbound_transfer
Create Inbound Transfer POST /sapi/v1/w3w/wallet/prediction/transfer/inbound https://developers.binan
clients/w3w_prediction/src/binance_sdk_w3w_prediction/rest_api/api/transfer_api.py:44
↓ 8 callersMethodexchange_info
Exchange information Current exchange trading rules and symbol information Weight: 20 Args:
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:728
↓ 8 callersMethodexecution_rules
Query Execution Rules Weight: Parameter | Weight| --- | --- `symbol` | 2 `symbols` | 2 for
clients/spot/src/binance_sdk_spot/rest_api/rest_api.py:761
↓ 8 callersMethodfiat_withdraw
Fiat Withdraw(WITHDRAW) Submit withdraw request, in this version, we support BRL,ARS,MXN withdrawal via bank_transfe
clients/fiat/src/binance_sdk_fiat/rest_api/rest_api.py:148
↓ 8 callersMethodflexible_loan_adjust_ltv
Flexible Loan Adjust LTV(TRADE) Flexible Loan Adjust LTV * API Key needs Spot & Margin Trading permission f
clients/crypto_loan/src/binance_sdk_crypto_loan/rest_api/rest_api.py:151
↓ 8 callersMethodfutures_account_balance
Futures Account Balance (USER_DATA) GET /dapi/v1/balance https://developers.binance.com/docs/derivati
clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/rest_api/api/account_api.py:90
↓ 8 callersMethodfutures_account_balance_v2
Futures Account Balance V2 (USER_DATA) GET /fapi/v2/balance https://developers.binance.com/docs/deriv
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/account_api.py:135
↓ 8 callersMethodfutures_transfer_for_sub_account
Futures Transfer for Sub-account (For Master Account) (USER_DATA) Futures Transfer for Sub-account * You ne
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:497
↓ 8 callersMethodmargin_transfer_for_sub_account
Margin Transfer for Sub-account (For Master Account) (USER_DATA) Margin Transfer for Sub-account * You need
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:836
↓ 8 callersMethodmodify_cm_order
Modify CM Order(TRADE) PUT /papi/v1/cm/order https://developers.binance.com/docs/derivatives/portfoli
clients/derivatives_trading_portfolio_margin/src/binance_sdk_derivatives_trading_portfolio_margin/rest_api/api/trade_api.py:1380
↓ 8 callersMethodmodify_um_order
Modify UM Order(TRADE) PUT /papi/v1/um/order https://developers.binance.com/docs/derivatives/portfoli
clients/derivatives_trading_portfolio_margin/src/binance_sdk_derivatives_trading_portfolio_margin/rest_api/api/trade_api.py:1467
↓ 8 callersMethodmove_position_for_sub_account
Move Position for Sub-account (For Master Account) (USER_DATA) Move position between sub-master, master-sub, or sub-
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:872
↓ 8 callersMethodnew_order
New Order (TRADE) POST /eapi/v1/order https://developers.binance.com/docs/derivatives/options-trading
clients/derivatives_trading_options/src/binance_sdk_derivatives_trading_options/rest_api/api/trade_api.py:327
↓ 8 callersMethodorder_list_place
WebSocket Place new OCO - Deprecated /orderList.place https://developers.binance.com/docs/binance-spot-api-docs/w
clients/spot/src/binance_sdk_spot/websocket_api/api/trade_api.py:608
↓ 8 callersFunctionparse_rate_limit_headers
Parses rate limit headers from the response headers. :param headers: The response headers. :return: A list of RateLimit objects.
common/src/binance_common/utils.py:544
↓ 8 callersMethodping_ws_stream
Send a ping message to the WebSocket server. Args: connection (WebSocketConnection): WebSocket connection object.
common/src/binance_common/websocket.py:748
↓ 8 callersMethodposition_information
Position Information(USER_DATA) GET /dapi/v1/positionRisk https://developers.binance.com/docs/derivat
clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/rest_api/api/trade_api.py:1237
↓ 8 callersMethodposition_information_v2
Position Information V2 (USER_DATA) GET /fapi/v2/positionRisk https://developers.binance.com/docs/der
clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/trade_api.py:1624
↓ 8 callersMethodquery_managed_sub_account_transfer_log_sub_account_trading
Query Managed Sub Account Transfer Log (For Trading Team Sub Account) (USER_DATA) Query Managed Sub Account Transfer
clients/sub_account/src/binance_sdk_sub_account/rest_api/rest_api.py:1665
← previousnext →101–200 of 17,815, ranked by callers