Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sammchardy/python-binance
/ functions
Functions
3,093 in github.com/sammchardy/python-binance
⨍
Functions
3,093
◇
Types & classes
51
↓ 2 callers
Method
_generate_signature
(self, data: Dict, uri_encode=True)
binance/base_client.py:393
↓ 2 callers
Method
_get_earliest_valid_timestamp
Get the earliest valid open timestamp from Binance https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#k
binance/client.py:813
↓ 2 callers
Method
_get_earliest_valid_timestamp
( self, symbol, interval, klines_type: HistoricalKlinesType = HistoricalKlines
binance/async_client.py:492
↓ 2 callers
Method
_get_headers
(self)
binance/base_client.py:244
↓ 2 callers
Method
_get_listen_key
(self)
binance/ws/keepalive_websocket.py:229
↓ 2 callers
Method
_get_reconnect_wait
(self, attempts: int)
binance/ws/reconnecting_websocket.py:300
↓ 2 callers
Method
_get_request_kwargs
( self, method, signed: bool, force_params: bool = False, **kwargs )
binance/base_client.py:498
↓ 2 callers
Method
_get_stream_url
(self, stream_url: Optional[str] = None)
binance/ws/streams.py:76
↓ 2 callers
Method
_historical_klines
( self, symbol, interval, start_str=None, end_str=None, limit=
binance/async_client.py:530
↓ 2 callers
Method
_historical_klines_generator
Get Historical Klines generator from Binance (spot or futures) See dateparser docs for valid start and end string formats https://dateparser.
binance/client.py:1041
↓ 2 callers
Method
_historical_klines_generator
( self, symbol, interval, start_str=None, end_str=None, limit=
binance/async_client.py:629
↓ 2 callers
Method
_init_cache
Initialise the depth cache calling REST endpoint :return:
binance/ws/depthcache.py:203
↓ 2 callers
Method
_init_cache
Initialise the depth cache calling REST endpoint :return:
binance/ws/depthcache.py:330
↓ 2 callers
Method
_process_depth_message
Process a depth event message. :param msg: Depth event message. :return:
binance/ws/depthcache.py:374
↓ 2 callers
Method
_reconnect
(self)
binance/ws/reconnecting_websocket.py:313
↓ 2 callers
Method
_run_reconnect
(self)
binance/ws/reconnecting_websocket.py:262
↓ 2 callers
Method
_sign_ws_params
(self, params, signature_func)
binance/base_client.py:404
↓ 2 callers
Method
_start_socket_timer
(self)
binance/ws/keepalive_websocket.py:164
↓ 2 callers
Method
all_ticker_futures_socket
Start a websocket for all ticker data By default all markets are included in an array. https://binance-docs.github.io/apidocs/futures
binance/ws/streams.py:820
↓ 2 callers
Method
before_reconnect
(self)
binance/ws/reconnecting_websocket.py:304
↓ 2 callers
Function
call_method_and_assert_uri_contains
Helper function to test that a client method calls the expected URI. Args: client: The client instance to test method_name:
tests/conftest.py:183
↓ 2 callers
Method
cancel_margin_oco_order
Cancel an entire Order List for a margin account. https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-OCO
binance/client.py:5443
↓ 2 callers
Method
cancel_margin_order
Cancel an active order for margin account. Either orderId or origClientOrderId must be sent. https://developers.binance.com/docs/mar
binance/client.py:4666
↓ 2 callers
Method
change_fixed_activity_to_daily_position
Change Fixed/Activity Position to Daily Position https://binance-docs.github.io/apidocs/spot/en/#change-fixed-activity-position-to-daily-posi
binance/client.py:6275
↓ 2 callers
Function
check_method_in_file
Return True if a function for this endpoint likely exists in client.py.
code-generator.py:186
↓ 2 callers
Method
connect
(self)
binance/ws/reconnecting_websocket.py:114
↓ 2 callers
Method
convert_accept_quote
Accept the offered quote by quote ID. https://developers.binance.com/docs/convert/trade/Accept-Quote :param quoteId: required - 4572
binance/client.py:10295
↓ 2 callers
Method
convert_request_quote
Request a quote for the requested token pairs https://developers.binance.com/docs/convert/trade :param fromAsset: required - Asset t
binance/client.py:10271
↓ 2 callers
Method
convert_to_dict
(list_tuples)
binance/base_client.py:360
↓ 2 callers
Function
convert_to_function_name
Convert an endpoint path to a consistent function name format with appropriate prefix and version. Examples: GET, /api/v3/ticker/trad
code-generator.py:253
↓ 2 callers
Method
create_isolated_margin_account
Create isolated margin account for symbol https://binance-docs.github.io/apidocs/spot/en/#create-isolated-margin-account-margin :par
binance/client.py:3986
↓ 2 callers
Method
create_margin_loan
Apply for a loan in cross-margin or isolated-margin account. https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-margin
binance/client.py:4465
↓ 2 callers
Method
create_margin_oco_order
Post a new OCO trade for margin account. https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OCO :param sym
binance/client.py:5333
↓ 2 callers
Method
create_margin_order
Post a new order for margin account. https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-Order :param symbol
binance/client.py:4541
↓ 2 callers
Method
create_sub_account_futures_transfer
Execute sub-account Futures transfer https://developers.binance.com/docs/sub_account/asset-management/Sub-account-Futures-Asset-Transfer
binance/client.py:6569
↓ 2 callers
Method
depth_socket
Start a websocket for symbol market depth returning either a diff or a partial book https://github.com/binance-exchange/binance-official-api-
binance/ws/streams.py:198
↓ 2 callers
Method
disable_isolated_margin_account
Disable isolated margin account for a specific symbol. Each trading pair can only be deactivated once every 24 hours. https://develop
binance/client.py:3470
↓ 2 callers
Method
enable_isolated_margin_account
Enable isolated margin account for a specific symbol. https://developers.binance.com/docs/margin_trading/account/Enable-Isolated-Margin-Accou
binance/client.py:3447
↓ 2 callers
Method
enable_subaccount_futures
Enable Futures for Sub-account (For Master Account) https://developers.binance.com/docs/sub_account/account-management/Enable-Futures-for-Sub
binance/client.py:6954
↓ 2 callers
Method
enable_subaccount_margin
Enable Margin for Sub-account (For Master Account) https://binance-docs.github.io/apidocs/spot/en/#enable-margin-for-sub-account-for-master-a
binance/client.py:6817
↓ 2 callers
Method
exchange_small_liability_assets
Cross Margin Small Liability Exchange https://developers.binance.com/docs/margin_trading/trade/Small-Liability-Exchange :param asset
binance/client.py:3718
↓ 2 callers
Method
futures_account
Get current account information. https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V
binance/client.py:8367
↓ 2 callers
Method
futures_account_trades
Get trades for the authenticated account and symbol. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Acc
binance/client.py:8458
↓ 2 callers
Method
futures_account_transfer
Execute transfer between spot account and futures account. https://binance-docs.github.io/apidocs/futures/en/#new-future-account-transfer
binance/client.py:7867
↓ 2 callers
Method
futures_adl_quantile_estimate
Get Position ADL Quantile Estimate https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-ADL-Quantile
binance/client.py:7827
↓ 2 callers
Method
futures_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:7471
↓ 2 callers
Method
futures_api_trading_status
Get quantitative trading rules for order placement, such as Unfilled Ratio (UFR), Good-Til-Canceled Ratio (GCR), Immediate-or-Cancel (IOC) & F
binance/client.py:7715
↓ 2 callers
Method
futures_change_leverage
Change user's initial leverage of specific symbol market https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api
binance/client.py:8416
↓ 2 callers
Method
futures_change_multi_assets_mode
Change user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol https://developers.binance.com/docs/derivatives/usds
binance/client.py:8490
↓ 2 callers
Method
futures_change_position_mode
Change position mode for authenticated account https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Po
binance/client.py:8474
↓ 2 callers
Method
futures_coin_account
Get current account information. https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
binance/client.py:8947
↓ 2 callers
Method
futures_coin_account_balance
Get futures account balance https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance
binance/client.py:8937
↓ 2 callers
Method
futures_coin_account_trades
Get trades for the authenticated account and symbol. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Acc
binance/client.py:9005
↓ 2 callers
Method
futures_coin_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:8587
↓ 2 callers
Method
futures_coin_cancel_all_open_orders
Cancel all open futures orders https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders
binance/client.py:8874
↓ 2 callers
Method
futures_coin_cancel_order
Cancel an active futures order. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order
binance/client.py:8864
↓ 2 callers
Method
futures_coin_cancel_orders
Cancel multiple futures orders https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders
binance/client.py:8884
↓ 2 callers
Method
futures_coin_change_leverage
Change user's initial leverage of specific symbol market https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
binance/client.py:8957
↓ 2 callers
Method
futures_coin_change_margin_type
Change the margin type for a symbol https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type
binance/client.py:8967
↓ 2 callers
Method
futures_coin_change_position_margin
Change the position margin for a symbol https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-
binance/client.py:8977
↓ 2 callers
Method
futures_coin_change_position_mode
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol https://developers.binance.com/docs/derivatives/coin-margined-futur
binance/client.py:9021
↓ 2 callers
Method
futures_coin_continous_klines
Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time. https://developers.binance.com/docs/d
binance/client.py:8604
↓ 2 callers
Method
futures_coin_exchange_info
Current exchange trading rules and symbol information https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-
binance/client.py:8555
↓ 2 callers
Method
futures_coin_funding_rate
Get funding rate history https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-
binance/client.py:8644
↓ 2 callers
Method
futures_coin_get_all_orders
Get all futures account orders; active, canceled, or filled. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest
binance/client.py:8854
↓ 2 callers
Method
futures_coin_get_open_orders
Get all open orders on a symbol. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders
binance/client.py:8846
↓ 2 callers
Method
futures_coin_get_order
Check an order's status. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order
binance/client.py:8838
↓ 2 callers
Method
futures_coin_get_position_mode
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol https://developers.binance.com/docs/derivatives/coin-margined-futures/
binance/client.py:9031
↓ 2 callers
Method
futures_coin_historical_trades
Get older market historical trades. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Loo
binance/client.py:8579
↓ 2 callers
Method
futures_coin_income_history
Get income history for authenticated account https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Incom
binance/client.py:9013
↓ 2 callers
Method
futures_coin_index_price_constituents
Get index price constituents https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Constituents
binance/client.py:8719
↓ 2 callers
Method
futures_coin_leverage_bracket
Notional and Leverage Brackets https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Sy
binance/client.py:8755
↓ 2 callers
Method
futures_coin_liquidation_orders
Get all liquidation orders https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders
binance/client.py:8727
↓ 2 callers
Method
futures_coin_mark_price
Get Mark Price and Funding Rate https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Ma
binance/client.py:8636
↓ 2 callers
Method
futures_coin_open_interest
Get present open interest of a specific symbol. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Op
binance/client.py:8737
↓ 2 callers
Method
futures_coin_open_interest_hist
Get open interest statistics of a specific symbol. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api
binance/client.py:8745
↓ 2 callers
Method
futures_coin_order_book
Get the Order Book for the market https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book
binance/client.py:8563
↓ 2 callers
Method
futures_coin_orderbook_ticker
Best price/qty on the order book for a symbol or symbols. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/r
binance/client.py:8668
↓ 2 callers
Method
futures_coin_position_margin_history
Get position margin change history https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-C
binance/client.py:8987
↓ 2 callers
Method
futures_coin_recent_trades
Get recent trades (up to last 500). https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-
binance/client.py:8571
↓ 2 callers
Method
futures_coin_stream_close
(self, listenKey)
binance/client.py:9051
↓ 2 callers
Method
futures_coin_symbol_ticker
Latest price for a symbol or symbols. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price
binance/client.py:8660
↓ 2 callers
Method
futures_coin_time
Test connectivity to the Rest API and get the current server time. https://developers.binance.com/docs/derivatives/coin-margined-futures/mark
binance/client.py:8547
↓ 2 callers
Method
futures_commission_rate
Get Futures commission rate https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
binance/client.py:7802
↓ 2 callers
Method
futures_continuous_klines
Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time. https://developers.binance.com/docs/d
binance/client.py:7512
↓ 2 callers
Method
futures_countdown_cancel_all
Cancel all open orders of the specified symbol at the end of the specified countdown. https://developers.binance.com/docs/derivatives/usds-ma
binance/client.py:8173
↓ 2 callers
Method
futures_create_test_order
Testing order request, this order will not be submitted to matching engine https://developers.binance.com/docs/derivatives/usds-margined-futu
binance/client.py:8028
↓ 2 callers
Method
futures_cross_collateral_adjust_history
(self, **params)
binance/client.py:7898
↓ 2 callers
Method
futures_cross_collateral_liquidation_history
(self, **params)
binance/client.py:7903
↓ 2 callers
Method
futures_exchange_info
Current exchange trading rules and symbol information https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-
binance/client.py:7402
↓ 2 callers
Method
futures_funding_rate
Get funding rate history https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
binance/client.py:7610
↓ 2 callers
Method
futures_get_all_algo_orders
Get all algo account orders; active, canceled, or filled. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-ap
binance/client.py:8338
↓ 2 callers
Method
futures_get_multi_assets_mode
Get user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol https://binance-docs.github.io/apidocs/futures/en/#get-
binance/client.py:8499
↓ 2 callers
Method
futures_get_position_mode
Get position mode for authenticated account https://binance-docs.github.io/apidocs/futures/en/#get-current-position-mode-user_data
binance/client.py:8482
↓ 2 callers
Method
futures_global_longshort_ratio
Get present global long to short ratio of a specific symbol. https://developers.binance.com/docs/derivatives/usds-margined-futures/market-dat
binance/client.py:7636
↓ 2 callers
Method
futures_historical_klines
Get historical futures klines from Binance :param symbol: Name of symbol pair e.g. BNBBTC :type symbol: str :param interval:
binance/client.py:7520
↓ 2 callers
Method
futures_historical_klines_generator
Get historical futures klines generator from Binance :param symbol: Name of symbol pair e.g. BNBBTC :type symbol: str :param
binance/client.py:7576
↓ 2 callers
Method
futures_historical_trades
Get older market historical trades. https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Loo
binance/client.py:7463
↓ 2 callers
Method
futures_income_history
Get income history for authenticated account https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Incom
binance/client.py:8466
↓ 2 callers
Method
futures_index_info
Get index_info https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Composite-Index-Symbol-Information
binance/client.py:7843
← previous
next →
201–300 of 3,093, ranked by callers