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
papi_get_margin_my_trades
Margin Account Trade List. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Trade-List :returns
binance/client.py:11658
↓ 2 callers
Method
papi_get_margin_open_order_list
Query Margin Account's Open OCO. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Open-OCO
binance/client.py:11646
↓ 2 callers
Method
papi_get_margin_open_orders
Query Current Margin Open Order. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-Margin-Open-Order
binance/client.py:11598
↓ 2 callers
Method
papi_get_margin_order
Query Margin Account Order. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Order :retur
binance/client.py:11588
↓ 2 callers
Method
papi_get_margin_order_list
Retrieves a specific OCO based on provided optional parameters. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-
binance/client.py:11622
↓ 2 callers
Method
papi_get_margin_repay_debt
Repay debt for a margin loan. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay-Debt :retu
binance/client.py:11670
↓ 2 callers
Method
papi_get_margin_repay_loan
Query margin repay record. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-repay-Record :param
binance/client.py:10700
↓ 2 callers
Method
papi_get_portfolio_interest_history
Query interest history of negative balance for portfolio margin. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Que
binance/client.py:10781
↓ 2 callers
Method
papi_get_repay_futures_switch
Query Auto-repay-futures Status. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Auto-repay-futures-Status
binance/client.py:10718
↓ 2 callers
Method
papi_get_um_account
Get current UM account asset and position information. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Accoun
binance/client.py:10883
↓ 2 callers
Method
papi_get_um_account_config
Query UM Futures account configuration. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Account-Confi
binance/client.py:10924
↓ 2 callers
Method
papi_get_um_account_v2
Get current UM account asset and position information. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Accoun
binance/client.py:10896
↓ 2 callers
Method
papi_get_um_adl_quantile
Query UM Position ADL Quantile Estimation. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Position-ADL-Quantile-Es
binance/client.py:11548
↓ 2 callers
Method
papi_get_um_all_orders
Get all account UM orders; active, canceled, or filled. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-O
binance/client.py:11306
↓ 2 callers
Method
papi_get_um_api_trading_status
Portfolio Margin UM Trading Quantitative Rules Indicators. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Portfolio
binance/client.py:10628
↓ 2 callers
Method
papi_get_um_comission_rate
Get User Commission Rate for UM. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
binance/client.py:10646
↓ 2 callers
Method
papi_get_um_conditional_all_orders
Query All UM Conditional Orders. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
binance/client.py:11336
↓ 2 callers
Method
papi_get_um_conditional_open_order
Query Current UM Open Conditional Order. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditi
binance/client.py:11360
↓ 2 callers
Method
papi_get_um_conditional_open_orders
Get all open conditional orders on a symbol. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open
binance/client.py:11348
↓ 2 callers
Method
papi_get_um_conditional_order_history
Get all open conditional orders on a symbol. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Conditional-Orde
binance/client.py:11372
↓ 2 callers
Method
papi_get_um_fee_burn
Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off). https://developers.binance.com/docs/derivatives/portfolio-m
binance/client.py:11578
↓ 2 callers
Method
papi_get_um_force_orders
Query User's UM Force Orders. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders :re
binance/client.py:11472
↓ 2 callers
Method
papi_get_um_income_asyn
Get download id for UM futures transaction history. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-
binance/client.py:11010
↓ 2 callers
Method
papi_get_um_income_asyn_id
Get UM futures Transaction download link by Id. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Trans
binance/client.py:11023
↓ 2 callers
Method
papi_get_um_income_history
Get UM Income History. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History :param recvWin
binance/client.py:10857
↓ 2 callers
Method
papi_get_um_leverage_bracket
Query UM notional and leverage brackets. https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Br
binance/client.py:10592
↓ 2 callers
Method
papi_get_um_open_order
Query current UM open order. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order :ret
binance/client.py:11316
↓ 2 callers
Method
papi_get_um_open_orders
Get all open orders on a symbol. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
binance/client.py:11326
↓ 2 callers
Method
papi_get_um_order
Check an UM order's status. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order :returns: API resp
binance/client.py:11296
↓ 2 callers
Method
papi_get_um_order_amendment
Get order modification history. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Modify-Order-History
binance/client.py:11492
↓ 2 callers
Method
papi_get_um_order_asyn
Get download id for UM futures order history. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM
binance/client.py:10982
↓ 2 callers
Method
papi_get_um_order_asyn_id
Get UM futures order download link by Id. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Order-Downl
binance/client.py:10995
↓ 2 callers
Method
papi_get_um_position_risk
Query margin max borrow. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information :par
binance/client.py:10452
↓ 2 callers
Method
papi_get_um_position_side_dual
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM. https://developers.binance.com/docs/derivatives/portfolio-margi
binance/client.py:10562
↓ 2 callers
Method
papi_get_um_symbol_config
Get current UM account symbol configuration. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Symbol-C
binance/client.py:10939
↓ 2 callers
Method
papi_get_um_trade_asyn
Get download id for UM futures trade history. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM
binance/client.py:10954
↓ 2 callers
Method
papi_get_um_trade_asyn_id
Get UM futures trade download link by Id. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Trade-Downl
binance/client.py:10967
↓ 2 callers
Method
papi_get_um_user_trades
Get trades for a specific account and UM symbol. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
binance/client.py:11528
↓ 2 callers
Method
papi_margin_loan
Apply for a margin loan. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow :returns: API
binance/client.py:11116
↓ 2 callers
Method
papi_margin_order_oco
Send in a new OCO for a margin account. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-New-OCO
binance/client.py:11136
↓ 2 callers
Method
papi_modify_cm_order
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue. https://de
binance/client.py:11286
↓ 2 callers
Method
papi_modify_um_order
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue. https://de
binance/client.py:11276
↓ 2 callers
Method
papi_repay_futures_negative_balance
Repay futures Negative Balance. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Repay-futures-Negative-Balance
binance/client.py:10766
↓ 2 callers
Method
papi_repay_futures_switch
Change Auto-repay-futures Status. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-Auto-repay-futures-Status
binance/client.py:10733
↓ 2 callers
Method
papi_repay_loan
Repay for a margin loan. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay :returns: API r
binance/client.py:11126
↓ 2 callers
Method
papi_set_cm_leverage
Query margin max borrow. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage :param
binance/client.py:10507
↓ 2 callers
Method
papi_set_um_fee_burn
Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on EVERY symbol. https://developers.binance.com/docs/der
binance/client.py:11568
↓ 2 callers
Method
papi_set_um_leverage
Query margin max borrow. https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage :param
binance/client.py:10488
↓ 2 callers
Method
purchase_staking_product
Purchase Staking Product https://binance-docs.github.io/apidocs/spot/en/#purchase-staking-product-user_data
binance/client.py:6297
↓ 2 callers
Method
query_subaccount_spot_summary
Query Sub-account Spot Assets Summary (For Master Account) https://developers.binance.com/docs/sub_account/asset-management/Query-Sub-account
binance/client.py:6654
↓ 2 callers
Method
query_universal_transfer_history
Query User Universal Transfer History https://developers.binance.com/docs/wallet/asset/query-user-universal-transfer :param type: re
binance/client.py:2815
↓ 2 callers
Method
redeem_simple_earn_flexible_product
Redeem a simple earn flexible product https://binance-docs.github.io/apidocs/spot/en/#redeem-flexible-product-trade :param productId
binance/client.py:6042
↓ 2 callers
Method
redeem_simple_earn_locked_product
Redeem a simple earn locked product https://binance-docs.github.io/apidocs/spot/en/#redeem-locked-product-trade :param productId: re
binance/client.py:6072
↓ 2 callers
Method
redeem_staking_product
Redeem Staking Product https://binance-docs.github.io/apidocs/spot/en/#redeem-staking-product-user_data
binance/client.py:6307
↓ 2 callers
Method
repay_margin_loan
Repay loan in cross-margin or isolated-margin account. If amount is more than the amount borrowed, the full loan will be repaid. htt
binance/client.py:4501
↓ 2 callers
Method
request
Send request and wait for response
binance/ws/websocket_api.py:153
↓ 2 callers
Method
set_auto_staking
Set Auto Staking on Locked Staking or Locked DeFi Staking https://binance-docs.github.io/apidocs/spot/en/#set-auto-staking-user_data
binance/client.py:6337
↓ 2 callers
Method
set_margin_max_leverage
Adjust cross margin max leverage https://developers.binance.com/docs/margin_trading/account :param maxLeverage: required Can only ad
binance/client.py:4731
↓ 2 callers
Method
sort_depth
Sort bids or asks by price
binance/ws/depthcache.py:120
↓ 2 callers
Method
start_depth_socket
( self, callback: Callable, symbol: str, depth: Optional[str] = None,
binance/ws/streams.py:1429
↓ 2 callers
Method
start_futures_multiplex_socket
( self, callback: Callable, streams: List[str], futures_type: FuturesType = Fu
binance/ws/streams.py:1642
↓ 2 callers
Method
start_multiplex_socket
(self, callback: Callable, streams: List[str])
binance/ws/streams.py:1626
↓ 2 callers
Method
stop_socket
(self, socket_name)
binance/ws/threaded_stream.py:98
↓ 2 callers
Method
stream_close
Close out a user data stream. https://binance-docs.github.io/apidocs/spot/en/#listen-key-spot :param listenKey: required :ty
binance/client.py:3252
↓ 2 callers
Method
subscribe_simple_earn_flexible_product
Subscribe to a simple earn flexible product https://binance-docs.github.io/apidocs/spot/en/#subscribe-locked-product-trade :param pr
binance/client.py:5981
↓ 2 callers
Method
subscribe_simple_earn_locked_product
Subscribe to a simple earn locked product https://binance-docs.github.io/apidocs/spot/en/#subscribe-locked-product-trade :param prod
binance/client.py:6011
↓ 2 callers
Method
symbol_ticker_futures_socket
Start a websocket for a symbol's ticker data By default all markets are included in an array. https://binance-docs.github.io/apidocs/f
binance/ws/streams.py:774
↓ 2 callers
Method
symbol_ticker_socket
Start a websocket for a symbol's ticker data https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#
binance/ws/streams.py:532
↓ 2 callers
Method
toggle_bnb_burn_spot_margin
Toggle BNB Burn On Spot Trade And Margin Interest https://developers.binance.com/docs/wallet/asset/Toggle-BNB-Burn-On-Spot-Trade-And-Margin-I
binance/client.py:4186
↓ 2 callers
Method
transfer_dust
Convert dust assets to BNB. https://developers.binance.com/docs/wallet/asset/dust-transfer :param asset: The asset being converted.
binance/client.py:2696
↓ 2 callers
Method
transfer_history
Get future account transaction history list https://binance-docs.github.io/apidocs/futures/en/#get-future-account-transaction-history-list-us
binance/client.py:7875
↓ 2 callers
Method
transfer_isolated_margin_to_spot
Execute transfer between isolated margin account and spot account. https://binance-docs.github.io/apidocs/spot/en/#isolated-margin-account-tr
binance/client.py:4330
↓ 2 callers
Method
transfer_margin_dust
Convert dust assets to BNB. https://binance-docs.github.io/apidocs/spot/en/#dust-transfer-trade :returns: API response .. c
binance/client.py:3610
↓ 2 callers
Method
transfer_margin_to_spot
Execute transfer between cross-margin account and spot account. https://binance-docs.github.io/apidocs/spot/en/#cross-margin-account-transfer
binance/client.py:4266
↓ 2 callers
Method
transfer_spot_to_isolated_margin
Execute transfer between spot account and isolated margin account. https://binance-docs.github.io/apidocs/spot/en/#isolated-margin-account-tr
binance/client.py:4366
↓ 2 callers
Method
transfer_spot_to_margin
Execute transfer between spot account and cross-margin account. https://binance-docs.github.io/apidocs/spot/en/#cross-margin-account-transfer
binance/client.py:4298
↓ 2 callers
Method
withdraw
Submit a withdraw request. https://developers.binance.com/docs/wallet/capital/withdraw Assumptions: - You must have Withdra
binance/client.py:2972
↓ 2 callers
Method
ws_futures_account_balance
Get current account information. https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-
binance/client.py:14098
↓ 2 callers
Method
ws_futures_account_position
Get current position information. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-
binance/client.py:14084
↓ 2 callers
Method
ws_futures_account_status
Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detai
binance/client.py:14112
↓ 2 callers
Method
ws_futures_cancel_algo_order
Cancel an active algo order. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api :par
binance/client.py:14175
↓ 2 callers
Method
ws_futures_create_algo_order
Send in a new algo order (conditional order). https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-
binance/client.py:14119
↓ 2 callers
Method
ws_futures_get_all_tickers
Latest price for a symbol or symbols https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/
binance/client.py:14000
↓ 2 callers
Method
ws_futures_v2_account_balance
Get current account information. https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api#api-desc
binance/client.py:14091
↓ 2 callers
Method
ws_futures_v2_account_status
Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detai
binance/client.py:14105
↓ 2 callers
Method
ws_order_limit
Send in a new limit order Any order with an icebergQty MUST have timeInForce set to GTC. :param symbol: required :type symbol:
binance/client.py:11741
↓ 2 callers
Method
ws_order_limit
Send in a new limit order Any order with an icebergQty MUST have timeInForce set to GTC. :param symbol: required :type symbol:
binance/async_client.py:4213
↓ 2 callers
Method
ws_order_market
Send in a new market order :param symbol: required :type symbol: str :param side: required :type side: str :pa
binance/client.py:11826
↓ 2 callers
Method
ws_order_market
Send in a new market order :param symbol: required :type symbol: str :param side: required :type side: str :pa
binance/async_client.py:4302
↓ 1 callers
Method
__init__
Initialise the BinanceSocketManager :param client: Binance API client :type client: binance.AsyncClient :param user_timeout:
binance/ws/streams.py:42
↓ 1 callers
Method
_after_connect
(self)
binance/ws/reconnecting_websocket.py:159
↓ 1 callers
Method
_before_connect
(self)
binance/ws/reconnecting_websocket.py:156
↓ 1 callers
Method
_before_socket_listener_start
(self)
binance/ws/threaded_stream.py:57
↓ 1 callers
Method
_depth_event
Handle a depth event :param msg: :return:
binance/ws/depthcache.py:226
↓ 1 callers
Method
_get_socket
(self)
binance/ws/depthcache.py:223
↓ 1 callers
Method
_handle_response
Internal helper for handling API responses from the Binance server. Raises the appropriate exceptions when necessary; otherwise, returns the
binance/async_client.py:201
↓ 1 callers
Method
_init_private_key
( self, private_key: Optional[Union[str, Path]], private_key_pass: Optional[str] = Non
binance/base_client.py:261
↓ 1 callers
Method
_init_session
(self)
binance/base_client.py:258
↓ 1 callers
Method
_keepalive_socket
(self)
binance/ws/keepalive_websocket.py:247
↓ 1 callers
Method
_kill_read_loop
(self)
binance/ws/reconnecting_websocket.py:150
← previous
next →
501–600 of 3,093, ranked by callers