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
↓ 4 callers
Method
get_recent_trades
Get recent trades (up to last 500). https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-li
binance/client.py:503
↓ 4 callers
Method
gift_card_redeem
This API is for redeeming a Binance Gift Card. Once redeemed, the coins will be deposited in your funding wallet. Important Note: If
binance/client.py:14273
↓ 4 callers
Method
gift_card_verify
This API is for verifying whether the Binance Gift Card is valid or not by entering Gift Card Number. Important Note: If you enter th
binance/client.py:14245
↓ 4 callers
Function
interval_to_milliseconds
Convert a Binance interval string to milliseconds :param interval: Binance interval string, e.g.: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h,
binance/helpers.py:38
↓ 4 callers
Method
options_price
Get the latest price https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics :param s
binance/client.py:9473
↓ 4 callers
Method
papi_ping
Test connectivity to the Rest API. https://developers.binance.com/docs/derivatives/portfolio-margin/market-data :returns: API respon
binance/client.py:11040
↓ 4 callers
Method
ping
Test connectivity to the Rest API. https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#test-connectivity
binance/client.py:359
↓ 4 callers
Method
start_listener
(self, socket, path: str, callback)
binance/ws/threaded_stream.py:72
↓ 4 callers
Method
symbol_mark_price_socket
Start a websocket for a symbol's futures mark price https://binance-docs.github.io/apidocs/futures/en/#mark-price-stream :param symbol
binance/ws/streams.py:718
↓ 4 callers
Method
ws_get_aggregate_trades
Get aggregate trades. An aggregate trade represents one or more individual trades that fill at the same time, from the same taker ord
binance/client.py:13374
↓ 4 callers
Method
ws_get_avg_price
Get current average price for a symbol. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-requests#
binance/client.py:13567
↓ 4 callers
Method
ws_get_exchange_info
Query current exchange trading rules, rate limits, and symbol information. https://developers.binance.com/docs/binance-spot-api-docs/testnet/
binance/client.py:13932
↓ 4 callers
Method
ws_get_historical_trades
Get historical trades. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-requests#historical-trades
binance/client.py:13333
↓ 4 callers
Method
ws_get_klines
Get klines (candlestick bars). Klines are uniquely identified by their open & close time. https://developers.binance.com/docs/binanc
binance/client.py:13430
↓ 4 callers
Method
ws_get_orderbook_ticker
Get the best price/quantity on the order book for a symbol or symbols. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-
binance/client.py:13830
↓ 4 callers
Method
ws_get_symbol_ticker_window
Get rolling window price change statistics. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-reque
binance/client.py:13720
↓ 4 callers
Method
ws_get_ticker
Get 24-hour rolling window price change statistics. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-a
binance/client.py:13588
↓ 4 callers
Method
ws_get_time
Test connectivity to the WebSocket API and get the current server time. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web
binance/client.py:13903
↓ 4 callers
Method
ws_get_trading_day_ticker
Price change statistics for a trading day. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-reques
binance/client.py:13659
↓ 4 callers
Method
ws_get_uiKlines
Get klines (candlestick bars) optimized for presentation. This request is similar to klines, having the same parameters and response.
binance/client.py:13501
↓ 4 callers
Method
ws_ping
Test connectivity to the WebSocket API. https://developers.binance.com/docs/binance-spot-api-docs/testnet/web-socket-api/public-api-requests#
binance/client.py:13876
↓ 3 callers
Method
_apply_orders
(self, msg)
binance/ws/depthcache.py:265
↓ 3 callers
Method
_delete
( self, path, signed=False, version=BaseClient.PUBLIC_API_VERSION, **kwargs )
binance/client.py:217
↓ 3 callers
Method
_delete
( self, path, signed=False, version=BaseClient.PUBLIC_API_VERSION, **kwargs )
binance/async_client.py:306
↓ 3 callers
Method
_historical_klines
Get Historical Klines from Binance (spot or futures) See dateparser docs for valid start and end string formats https://dateparser.readthedoc
binance/client.py:899
↓ 3 callers
Method
_klines
Get klines of spot (get_klines) or futures (futures_klines) endpoints. https://developers.binance.com/docs/binance-spot-api-docs/rest-api/mar
binance/client.py:771
↓ 3 callers
Method
_klines
( self, klines_type: HistoricalKlinesType = HistoricalKlinesType.SPOT, **params )
binance/async_client.py:468
↓ 3 callers
Method
_order_params
Convert params to list with signature as last element :param data: :return:
binance/base_client.py:477
↓ 3 callers
Method
_propagate_error
Propagate error to main queue and all subscription queues.
binance/ws/websocket_api.py:46
↓ 3 callers
Method
_start_depth_cache
( self, dcm_class, callback: Callable, symbol: str, refresh_interval=N
binance/ws/depthcache.py:450
↓ 3 callers
Method
add_ask
Add an ask to the cache :param ask: :return:
binance/ws/depthcache.py:40
↓ 3 callers
Method
add_bid
Add a bid to the cache :param bid: :return:
binance/ws/depthcache.py:29
↓ 3 callers
Method
connect
Override connect to handle ws_api subscriptions differently.
binance/ws/keepalive_websocket.py:125
↓ 3 callers
Method
create_oco_order
(self, **params)
binance/async_client.py:4155
↓ 3 callers
Method
futures_account_balance
Get futures account balance https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V3
binance/client.py:8359
↓ 3 callers
Method
futures_account_config
Get futures account configuration https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
binance/client.py:8522
↓ 3 callers
Method
futures_cancel_all_algo_open_orders
Cancel all open algo orders https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Algo-Open-Orders
binance/client.py:8289
↓ 3 callers
Method
futures_cancel_all_open_orders
Cancel all open futures orders https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
binance/client.py:8135
↓ 3 callers
Method
futures_coin_account_trade_history_download
Get Download Id For Futures Trade History (USER_DATA) https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/
binance/client.py:9130
↓ 3 callers
Method
futures_coin_account_trade_history_download_link
Get futures trade download link by Id https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Trad
binance/client.py:9158
↓ 3 callers
Method
futures_coin_create_order
Send in a new order. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
binance/client.py:8802
↓ 3 callers
Method
futures_coin_index_price_klines
Kline/candlestick bars for the index price of a pair.. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest
binance/client.py:8612
↓ 3 callers
Method
futures_coin_klines
Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time. https://developers.binance.com/docs/derivatives/coin-
binance/client.py:8596
↓ 3 callers
Method
futures_coin_mark_price_klines
Kline/candlestick bars for the index price of a pair.. https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest
binance/client.py:8628
↓ 3 callers
Method
futures_coin_place_batch_order
Send in new orders. https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders To av
binance/client.py:8812
↓ 3 callers
Method
futures_coin_stream_get_listen_key
(self)
binance/client.py:9041
↓ 3 callers
Method
futures_create_order
(self, **params)
binance/async_client.py:2179
↓ 3 callers
Method
futures_get_algo_order
Check an algo order's status. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Algo-Order
binance/client.py:8304
↓ 3 callers
Method
futures_get_all_orders
Get all futures account orders; active, canceled, or filled. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest
binance/client.py:8095
↓ 3 callers
Method
futures_get_open_orders
Get all open orders on a symbol. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
binance/client.py:8079
↓ 3 callers
Method
futures_index_price_klines
Kline/candlestick bars for the index price of a symbol. Klines are uniquely identified by their open time. https://developers.binance.com/doc
binance/client.py:7496
↓ 3 callers
Method
futures_klines
Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time. https://developers.binance.com/docs/derivatives/usds-
binance/client.py:7480
↓ 3 callers
Method
futures_mark_price_klines
Kline/candlestick bars for the mark price of a symbol. Klines are uniquely identified by their open time. https://developers.binance.com/docs
binance/client.py:7488
↓ 3 callers
Method
futures_place_batch_order
Send in new orders. https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders To av
binance/client.py:8036
↓ 3 callers
Method
futures_stream_get_listen_key
(self)
binance/client.py:8507
↓ 3 callers
Method
get_account_api_permissions
Fetch api key permissions. https://developers.binance.com/docs/wallet/account/api-key-permission :param recvWindow: the number of mi
binance/client.py:2564
↓ 3 callers
Method
get_account_api_trading_status
Fetch account api trading status detail. https://developers.binance.com/docs/wallet/account/account-api-trading-status :param recvWi
binance/client.py:2492
↓ 3 callers
Method
get_account_status
Get account status detail. https://binance-docs.github.io/apidocs/spot/en/#account-status-sapi-user_data https://developers.binance.c
binance/client.py:2467
↓ 3 callers
Method
get_aggregate_trades
(self, **params)
binance/async_client.py:396
↓ 3 callers
Method
get_bids
Get the current bids :return: list of bids with price and quantity as conv_type .. code-block:: python [
binance/ws/depthcache.py:51
↓ 3 callers
Method
get_dust_assets
Get assets that can be converted into BNB https://developers.binance.com/docs/wallet/asset/assets-can-convert-bnb :returns: API resp
binance/client.py:2595
↓ 3 callers
Method
get_products
Return list of products currently listed on Binance Use get_exchange_info() call instead :returns: list - List of product dictionari
binance/client.py:224
↓ 3 callers
Function
get_request_function_and_path
Given an endpoint (e.g. '/sapi/v1/userInfo'), determine which _request_*_api function is appropriate in the client, remove the recognized pre
code-generator.py:135
↓ 3 callers
Method
get_staking_asset_us
Get staking information for a supported asset (or assets) https://docs.binance.us/#get-staking-asset-information :raises BinanceRegi
binance/client.py:6359
↓ 3 callers
Method
get_staking_balance_us
Get staking balance https://docs.binance.us/#get-staking-balance :raises BinanceRegionException: If client is not configured for bin
binance/client.py:6389
↓ 3 callers
Method
get_staking_history_us
Get staking history https://docs.binance.us/#get-staking-history :raises BinanceRegionException: If client is not configured for bin
binance/client.py:6401
↓ 3 callers
Method
get_staking_rewards_history_us
Get staking rewards history for an asset(or assets) within a given time range. https://docs.binance.us/#get-staking-rewards-history
binance/client.py:6411
↓ 3 callers
Method
get_symbol_ticker
Latest price for a symbol or symbols. https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-t
binance/client.py:1210
↓ 3 callers
Method
get_withdraw_history
Fetch withdraw history. https://developers.binance.com/docs/wallet/capital/withdraw-history :param coin: optional :type coin
binance/client.py:3073
↓ 3 callers
Method
gift_card_fetch_token_limit
Verify which tokens are available for you to create Stablecoin-Denominated gift cards https://developers.binance.com/docs/gift_card/market-dat
binance/client.py:14198
↓ 3 callers
Method
isolated_margin_stream_get_listen_key
Start a new isolated margin data stream and return the listen key If a stream already exists it should return the same key. If the str
binance/client.py:5780
↓ 3 callers
Method
json_dumps
(self, msg)
binance/ws/reconnecting_websocket.py:85
↓ 3 callers
Method
json_loads
(self, msg)
binance/ws/reconnecting_websocket.py:90
↓ 3 callers
Method
margin_stream_get_listen_key
Start a new cross-margin data stream and return the listen key If a stream already exists it should return the same key. If the stream
binance/client.py:5647
↓ 3 callers
Method
papi_create_cm_order
Place new CM order. https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order :returns: API response
binance/client.py:11078
↓ 3 callers
Method
papi_create_um_order
Place new UM order. https://developers.binance.com/docs/derivatives/portfolio-margin/trade :returns: API response
binance/client.py:11052
↓ 3 callers
Method
stake_asset_us
Stake a supported asset. https://docs.binance.us/#stake-asset :raises BinanceRegionException: If client is not configured for binanc
binance/client.py:6369
↓ 3 callers
Method
start_kline_socket
( self, callback: Callable, symbol: str, interval=AsyncClient.KLINE_INTERVAL_1
binance/ws/streams.py:1446
↓ 3 callers
Method
stop_client
(self)
binance/ws/threaded_stream.py:102
↓ 3 callers
Method
stream_get_listen_key
Start a new user data stream and return the listen key If a stream already exists it should return the same key. If the stream becomes
binance/client.py:3209
↓ 3 callers
Method
unregister_subscription_queue
Unregister a subscription queue.
binance/ws/websocket_api.py:35
↓ 3 callers
Method
unstake_asset_us
Unstake a staked asset https://docs.binance.us/#unstake-asset :raises BinanceRegionException: If client is not configured for binanc
binance/client.py:6379
↓ 3 callers
Method
ws_create_order
Create an order via WebSocket. https://binance-docs.github.io/apidocs/websocket_api/en/#place-new-order-trade :param id: The request I
binance/client.py:11726
↓ 3 callers
Method
ws_create_order
Create an order via WebSocket. https://binance-docs.github.io/apidocs/websocket_api/en/#place-new-order-trade :param id: The request I
binance/async_client.py:4198
↓ 3 callers
Method
ws_futures_edit_order
Edit an order https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
binance/client.py:14047
↓ 3 callers
Method
ws_futures_get_order
Get an order https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order Note: Alg
binance/client.py:14068
↓ 2 callers
Method
__aenter__
(self)
binance/ws/reconnecting_websocket.py:95
↓ 2 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
binance/ws/reconnecting_websocket.py:102
↓ 2 callers
Method
__init__
Initialise the DepthCache :param symbol: Symbol to create depth cache for :type symbol: string :param conv_type: Optional typ
binance/ws/depthcache.py:13
↓ 2 callers
Method
_build_path
(self)
binance/ws/keepalive_websocket.py:56
↓ 2 callers
Method
_create_api_uri
( self, path: str, signed: bool = True, version: str = PUBLIC_API_VERSION )
binance/base_client.py:276
↓ 2 callers
Method
_create_futures_api_uri
(self, path: str, version: int = 1)
binance/base_client.py:303
↓ 2 callers
Method
_create_futures_coin_api_url
(self, path: str, version: int = 1)
binance/base_client.py:322
↓ 2 callers
Method
_create_futures_coin_data_api_url
(self, path: str, version: int = 1)
binance/base_client.py:335
↓ 2 callers
Method
_create_futures_data_api_uri
(self, path: str)
binance/base_client.py:316
↓ 2 callers
Method
_create_margin_api_uri
(self, path: str, version: int = 1)
binance/base_client.py:287
↓ 2 callers
Method
_create_options_api_uri
(self, path: str)
binance/base_client.py:341
↓ 2 callers
Method
_create_papi_api_uri
(self, path: str, version: int = 1)
binance/base_client.py:296
↓ 2 callers
Method
_create_website_uri
(self, path: str)
binance/base_client.py:300
↓ 2 callers
Method
_exit_socket
(self, path: str)
binance/ws/streams.py:195
← previous
next →
101–200 of 3,093, ranked by callers