MCPcopy Create free account

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

Functions3,093 in github.com/sammchardy/python-binance

↓ 362 callersMethod_request_margin_api
( self, method, path, signed=False, version=1, **kwargs )
binance/client.py:183
↓ 362 callersMethod_request_margin_api
( self, method, path, signed=False, version=1, **kwargs )
binance/async_client.py:269
↓ 103 callersMethod_request_papi_api
( self, method, path, signed=False, version=1, **kwargs )
binance/client.py:192
↓ 102 callersMethod_request_papi_api
( self, method, path, signed=False, version=1, **kwargs )
binance/async_client.py:278
↓ 97 callersMethod_request_futures_api
( self, method, path, signed=False, version: int = 1, **kwargs )
binance/client.py:141
↓ 96 callersMethod_request_futures_api
( self, method, path, signed=False, version=1, **kwargs )
binance/async_client.py:231
↓ 59 callersMethod_request_futures_coin_api
( self, method, path, signed=False, version=1, **kwargs )
binance/client.py:156
↓ 58 callersMethoduuid22
(length=22)
binance/base_client.py:473
↓ 56 callersMethod_request_futures_coin_api
( self, method, path, signed=False, version=1, **kwargs )
binance/async_client.py:246
↓ 46 callersMethod_request_options_api
https://developers.binance.com/docs/derivatives/option/market-data
binance/client.py:174
↓ 42 callersMethod_ws_api_request
Send request and wait for response
binance/base_client.py:443
↓ 41 callersMethodclose_connection
(self)
binance/async_client.py:126
↓ 40 callersMethod_request_options_api
(self, method, path, signed=False, **kwargs)
binance/async_client.py:263
↓ 37 callersMethod_ws_api_request_sync
Send request to WS API and wait for response
binance/base_client.py:457
↓ 34 callersMethod_start_async_socket
( self, callback: Callable, socket_name: str, params: Dict[str, Any],
binance/ws/streams.py:1407
↓ 34 callersMethodfutures_position_information
Get position information https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
binance/client.py:8450
↓ 32 callersMethod_request_api
( self, method, path, signed=False, version=BaseClient.PUBLIC_API_VERS
binance/async_client.py:219
↓ 30 callersMethodfutures_ticker
24 hour rolling window price change statistics. https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24
binance/client.py:7659
↓ 29 callersFunction_make_bsm
(client)
tests/test_ws_urls_integration.py:26
↓ 29 callersMethodclose_connection
(self)
binance/client.py:11682
↓ 29 callersMethodfutures_create_algo_order
Send in a new algo order (conditional order). https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Algo-O
binance/client.py:8200
↓ 28 callersFunction_ws_url
Extract the full WebSocket URL that would be used for connection.
tests/test_ws_urls_integration.py:21
↓ 27 callersFunctionassert_contract_order
(client, order)
tests/test_order.py:1
↓ 25 callersMethod_get
(self, path, signed=False, version=BaseClient.PUBLIC_API_VERSION, **kwargs)
binance/client.py:204
↓ 25 callersMethod_get
( self, path, signed=False, version=BaseClient.PUBLIC_API_VERSION, **kwargs )
binance/async_client.py:291
↓ 24 callersFunctionassert_ob
(order_book)
tests/test_get_order_book.py:6
↓ 24 callersMethodrecv
(self)
binance/ws/depthcache.py:191
↓ 22 callersMethodfutures_cancel_algo_order
Cancel an active algo order. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Algo-Order
binance/client.py:8270
↓ 18 callersMethod_ws_futures_api_request
Send request and wait for response
binance/base_client.py:422
↓ 17 callersMethod_ws_futures_api_request_sync
(self, method: str, signed: bool, params: dict)
binance/base_client.py:434
↓ 14 callersMethod_request_api
( self, method, path: str, signed: bool = False, version=BaseClient.PU
binance/client.py:130
↓ 13 callersMethod_get_futures_socket
( self, path: str, futures_type: FuturesType, prefix: str = "stream?streams=",
binance/ws/streams.py:136
↓ 13 callersMethod_get_socket
( self, path: str, stream_url: Optional[str] = None, prefix: str = "ws/",
binance/ws/streams.py:86
↓ 13 callersMethodregister_subscription_queue
Register a queue to receive events for a specific subscription.
binance/ws/websocket_api.py:29
↓ 13 callersMethodws_get_order_book
Get current order book for a symbol. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-requests#ord
binance/client.py:13247
↓ 12 callersMethod_require_tld
Validate client is configured for required TLD. :param required_tld: The required TLD (e.g., "us") :param endpoint_name: Description
binance/base_client.py:364
↓ 12 callersMethodws_futures_v2_account_position
Get current position information(only symbol that has position or open orders will be returned). https://developers.binance.com/docs/
binance/client.py:14077
↓ 11 callersMethod_get_options_socket
Get an options websocket connection. Options use the same base URLs as futures (FSTREAM), with either /public/ or /market/ paths. :p
binance/ws/streams.py:160
↓ 11 callersMethodstop
(self)
binance/ws/threaded_stream.py:107
↓ 11 callersMethodws_futures_get_order_book_ticker
Best price/qty on the order book for a symbol or symbols. https://developers.binance.com/docs/derivatives/usds-margined-futures/marke
binance/client.py:14007
↓ 10 callersMethod_get_version
(version: int, **kwargs)
binance/base_client.py:465
↓ 10 callersFunctionconvert_ts_str
(ts_str)
binance/helpers.py:76
↓ 9 callersMethod_handle_response
Internal helper for handling API responses from the Binance server. Raises the appropriate exceptions when necessary; otherwise, returns the
binance/client.py:114
↓ 9 callersMethod_request
( self, method, uri: str, signed: bool, force_params: bool = False, **kwargs )
binance/client.py:65
↓ 9 callersMethod_request
( self, method, uri: str, signed: bool, force_params: bool = False, **kwargs )
binance/async_client.py:136
↓ 9 callersMethoduser_socket
Start a websocket for user data https://github.com/binance-exchange/binance-official-api-docs/blob/master/user-data-stream.md https:/
binance/ws/streams.py:969
↓ 8 callersMethod_get_account_socket
( self, path: str, stream_url: Optional[str] = None, prefix: str = "ws/",
binance/ws/streams.py:112
↓ 8 callersFunctionconvert_list_to_json_array
(l)
binance/helpers.py:84
↓ 8 callersMethodfutures_create_order
Send in a new order. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api Note: After 2025-12-09, co
binance/client.py:7913
↓ 8 callersFunctionget_loop
check if there is an event loop in the current thread, if not create one inspired by https://stackoverflow.com/questions/46727787/runtimeerror-the
binance/helpers.py:91
↓ 8 callersMethodrecv
(self)
binance/ws/reconnecting_websocket.py:280
↓ 7 callersMethod__init__
(self, response, status_code, text)
binance/exceptions.py:6
↓ 7 callersMethod_read_loop
(self)
binance/ws/reconnecting_websocket.py:184
↓ 7 callersMethod_request_futures_data_api
(self, method, path, signed=False, **kwargs)
binance/client.py:150
↓ 7 callersMethodcreate
( cls, api_key: Optional[str] = None, api_secret: Optional[str] = None, reques
binance/async_client.py:71
↓ 7 callersMethodcreate_order
(self, **params)
binance/async_client.py:728
↓ 7 callersMethodrun
(self)
binance/ws/threaded_stream.py:95
↓ 7 callersMethodws_futures_cancel_order
cancel an order https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
binance/client.py:14054
↓ 7 callersMethodws_futures_create_order
Send in a new order https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api
binance/client.py:14014
↓ 7 callersMethodws_futures_get_order_book
Get the order book for a symbol https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api
binance/client.py:13993
↓ 6 callersMethod_after_connect
(self)
binance/ws/keepalive_websocket.py:160
↓ 6 callersFunction_make_ws_api_with_mock
Helper: create a WebsocketAPI with a mocked websocket.
tests/test_error_propagation.py:92
↓ 6 callersMethod_request_futures_coin_data_api
( self, method, path, signed=False, version=1, **kwargs )
binance/client.py:165
↓ 6 callersMethodcreate_order
Send in a new order Any order with an icebergQty MUST have timeInForce set to GTC. https://developers.binance.com/docs/binance-spot-
binance/client.py:1332
↓ 6 callersMethodfutures_depth_socket
Subscribe to a futures depth data stream https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams :param symbol
binance/ws/streams.py:1229
↓ 6 callersMethodget_order_book
Get the Order Book for the market https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book
binance/client.py:466
↓ 6 callersMethodget_server_time
Test connectivity to the Rest API and get the current server time. https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general
binance/client.py:375
↓ 6 callersMethodtrade_socket
Start a websocket for symbol trade data https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#trade
binance/ws/streams.py:408
↓ 6 callersMethodws_get_recent_trades
Get recent trades for a symbol. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-requests#recent-t
binance/client.py:13294
↓ 5 callersMethod_handle_message
Override message handling to support request-response
binance/ws/websocket_api.py:55
↓ 5 callersMethod_post
( self, path, signed=False, version=BaseClient.PUBLIC_API_VERSION, **kwargs )
binance/client.py:207
↓ 5 callersMethod_post
( self, path, signed=False, version=BaseClient.PUBLIC_API_VERSION, **kwargs )
binance/async_client.py:296
↓ 5 callersMethod_request_futures_data_api
( self, method, path, signed=False, **kwargs )
binance/async_client.py:239
↓ 5 callersMethodclose
Close the open socket for this manager :return:
binance/ws/depthcache.py:283
↓ 5 callersMethodfutures_cancel_order
Cancel an active futures order. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order :p
binance/client.py:8111
↓ 5 callersMethodfutures_get_order
Check an order's status. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order :param con
binance/client.py:8055
↓ 5 callersMethodget_aggregate_trades
Get compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.
binance/client.py:565
↓ 5 callersMethodws_get_symbol_ticker
Get latest price for a symbol or symbols. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-request
binance/client.py:13792
↓ 4 callersMethod_before_connect
(self)
binance/ws/keepalive_websocket.py:67
↓ 4 callersMethod_ensure_ws_connection
Ensure WebSocket connection is established and ready This function will: 1. Check if connection exists and is streaming 2. At
binance/ws/websocket_api.py:107
↓ 4 callersMethod_handle_message
(self, evt)
binance/ws/reconnecting_websocket.py:162
↓ 4 callersMethod_propagate_error
Put error message on the main queue. Subclasses can override to propagate elsewhere.
binance/ws/reconnecting_websocket.py:81
↓ 4 callersMethodaggtrade_futures_socket
Start a websocket for aggregate symbol trade data for the futures stream :param symbol: required :param futures_type: use USD-M or CO
binance/ws/streams.py:471
↓ 4 callersMethodcreate_oco_order
Send in an one-cancels-the-other (OCO) pair, where activation of one order immediately cancels the other. https://developers.binance.com/docs
binance/client.py:1648
↓ 4 callersFunctiondate_to_milliseconds
Convert UTC date to milliseconds If using offset strings add "UTC" to date string e.g. "now UTC", "11 hours ago UTC" See dateparse docs for
examples/save_historical_data.py:10
↓ 4 callersMethodfutures_cancel_orders
Cancel multiple futures orders https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
binance/client.py:8155
↓ 4 callersMethodfutures_change_margin_type
Change the margin type for a symbol https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
binance/client.py:8424
↓ 4 callersMethodfutures_coin_ping
Test connectivity to the Rest API https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api
binance/client.py:8539
↓ 4 callersMethodfutures_coin_position_information
Get position information https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
binance/client.py:8997
↓ 4 callersMethodfutures_coin_ticker
24 hour rolling window price change statistics. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24
binance/client.py:8652
↓ 4 callersMethodfutures_get_open_algo_orders
Get all open algo orders on a symbol. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Algo-O
binance/client.py:8323
↓ 4 callersMethodfutures_modify_order
Modify an existing order. Currently only LIMIT order modification is supported. https://developers.binance.com/docs/derivatives/usds-margined
binance/client.py:8020
↓ 4 callersMethodfutures_order_book
Get the Order Book for the market https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book
binance/client.py:7410
↓ 4 callersMethodfutures_ping
Test connectivity to the Rest API https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api
binance/client.py:7386
↓ 4 callersMethodfutures_symbol_adl_risk
Query the symbol-level ADL (Auto-Deleveraging) risk rating The ADL risk rating measures the likelihood of ADL during liquidation. Rat
binance/client.py:8375
↓ 4 callersMethodget_account
Get current account information. https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-use
binance/client.py:2224
↓ 4 callersMethodget_asset_balance
Get current asset balance. https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data
binance/client.py:2263
↓ 4 callersMethodget_exchange_info
Return rate limits and list of symbols https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-informat
binance/client.py:240
↓ 4 callersMethodget_historical_klines
Get Historical Klines from Binance https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-
binance/client.py:852
↓ 4 callersMethodget_klines
Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time. https://developers.binance.com/docs/binance-spot-api-
binance/client.py:729
next →1–100 of 3,093, ranked by callers