ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/binance.py
CHANGED
@@ -1802,9 +1802,9 @@ class binance(Exchange, ImplicitAPI):
|
|
1802
1802
|
def fetch_time(self, params={}):
|
1803
1803
|
"""
|
1804
1804
|
fetches the current integer timestamp in milliseconds from the exchange server
|
1805
|
-
see https://binance-docs.github.io/apidocs/spot/en/#check-server-time # spot
|
1806
|
-
see https://binance-docs.github.io/apidocs/futures/en/#check-server-time # swap
|
1807
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#check-server-time # future
|
1805
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#check-server-time # spot
|
1806
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#check-server-time # swap
|
1807
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#check-server-time # future
|
1808
1808
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
1809
1809
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
1810
1810
|
"""
|
@@ -1825,7 +1825,7 @@ class binance(Exchange, ImplicitAPI):
|
|
1825
1825
|
def fetch_currencies(self, params={}):
|
1826
1826
|
"""
|
1827
1827
|
fetches all available currencies on an exchange
|
1828
|
-
see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
1828
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
1829
1829
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
1830
1830
|
:returns dict: an associative dictionary of currencies
|
1831
1831
|
"""
|
@@ -1992,10 +1992,10 @@ class binance(Exchange, ImplicitAPI):
|
|
1992
1992
|
def fetch_markets(self, params={}):
|
1993
1993
|
"""
|
1994
1994
|
retrieves data on all markets for binance
|
1995
|
-
see https://binance-docs.github.io/apidocs/spot/en/#exchange-information # spot
|
1996
|
-
see https://binance-docs.github.io/apidocs/futures/en/#exchange-information # swap
|
1997
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#exchange-information # future
|
1998
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#exchange-information # option
|
1995
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#exchange-information # spot
|
1996
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#exchange-information # swap
|
1997
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#exchange-information # future
|
1998
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#exchange-information # option
|
1999
1999
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
2000
2000
|
:returns dict[]: an array of objects representing market data
|
2001
2001
|
"""
|
@@ -2478,14 +2478,14 @@ class binance(Exchange, ImplicitAPI):
|
|
2478
2478
|
def fetch_balance(self, params={}):
|
2479
2479
|
"""
|
2480
2480
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2481
|
-
see https://binance-docs.github.io/apidocs/spot/en/#account-information-user_data # spot
|
2482
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-cross-margin-account-details-user_data # cross margin
|
2483
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-account-info-user_data # isolated margin
|
2484
|
-
see https://binance-docs.github.io/apidocs/spot/en/#lending-account-user_data # lending
|
2485
|
-
see https://binance-docs.github.io/apidocs/spot/en/#funding-wallet-user_data # funding
|
2486
|
-
see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data # swap
|
2487
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data # future
|
2488
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#option-account-information-trade # option
|
2481
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#account-information-user_data # spot
|
2482
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-cross-margin-account-details-user_data # cross margin
|
2483
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-account-info-user_data # isolated margin
|
2484
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#lending-account-user_data # lending
|
2485
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#funding-wallet-user_data # funding
|
2486
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data # swap
|
2487
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data # future
|
2488
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#option-account-information-trade # option
|
2489
2489
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
2490
2490
|
:param str [params.type]: 'future', 'delivery', 'savings', 'funding', or 'spot'
|
2491
2491
|
:param str [params.marginMode]: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
|
@@ -2722,10 +2722,10 @@ class binance(Exchange, ImplicitAPI):
|
|
2722
2722
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
2723
2723
|
"""
|
2724
2724
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
2725
|
-
see https://binance-docs.github.io/apidocs/spot/en/#order-book # spot
|
2726
|
-
see https://binance-docs.github.io/apidocs/futures/en/#order-book # swap
|
2727
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#order-book # future
|
2728
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#order-book # option
|
2725
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#order-book # spot
|
2726
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#order-book # swap
|
2727
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#order-book # future
|
2728
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#order-book # option
|
2729
2729
|
:param str symbol: unified symbol of the market to fetch the order book for
|
2730
2730
|
:param int [limit]: the maximum amount of order book entries to return
|
2731
2731
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -2936,7 +2936,7 @@ class binance(Exchange, ImplicitAPI):
|
|
2936
2936
|
def fetch_status(self, params={}):
|
2937
2937
|
"""
|
2938
2938
|
the latest known information on the availability of the exchange API
|
2939
|
-
see https://binance-docs.github.io/apidocs/spot/en/#system-status-system
|
2939
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#system-status-system
|
2940
2940
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
2941
2941
|
:returns dict: a `status structure <https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure>`
|
2942
2942
|
"""
|
@@ -2959,10 +2959,10 @@ class binance(Exchange, ImplicitAPI):
|
|
2959
2959
|
def fetch_ticker(self, symbol: str, params={}):
|
2960
2960
|
"""
|
2961
2961
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
2962
|
-
see https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics # spot
|
2963
|
-
see https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
|
2964
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
|
2965
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
|
2962
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics # spot
|
2963
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
|
2964
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
|
2965
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
|
2966
2966
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
2967
2967
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
2968
2968
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -2989,9 +2989,9 @@ class binance(Exchange, ImplicitAPI):
|
|
2989
2989
|
def fetch_bids_asks(self, symbols: Optional[List[str]] = None, params={}):
|
2990
2990
|
"""
|
2991
2991
|
fetches the bid and ask price and volume for multiple markets
|
2992
|
-
see https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker # spot
|
2993
|
-
see https://binance-docs.github.io/apidocs/futures/en/#symbol-order-book-ticker # swap
|
2994
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#symbol-order-book-ticker # future
|
2992
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker # spot
|
2993
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#symbol-order-book-ticker # swap
|
2994
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#symbol-order-book-ticker # future
|
2995
2995
|
:param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
2996
2996
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
2997
2997
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -3018,9 +3018,9 @@ class binance(Exchange, ImplicitAPI):
|
|
3018
3018
|
def fetch_last_prices(self, symbols: Optional[List[str]] = None, params={}):
|
3019
3019
|
"""
|
3020
3020
|
fetches the last price for multiple markets
|
3021
|
-
see https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker # spot
|
3022
|
-
see https://binance-docs.github.io/apidocs/future/en/#symbol-price-ticker # swap
|
3023
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-ticker # future
|
3021
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker # spot
|
3022
|
+
:see: https://binance-docs.github.io/apidocs/future/en/#symbol-price-ticker # swap
|
3023
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-ticker # future
|
3024
3024
|
:param str[]|None symbols: unified symbols of the markets to fetch the last prices
|
3025
3025
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
3026
3026
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -3116,10 +3116,10 @@ class binance(Exchange, ImplicitAPI):
|
|
3116
3116
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
3117
3117
|
"""
|
3118
3118
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
3119
|
-
see https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics # spot
|
3120
|
-
see https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
|
3121
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
|
3122
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
|
3119
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics # spot
|
3120
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#24hr-ticker-price-change-statistics # swap
|
3121
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#24hr-ticker-price-change-statistics # future
|
3122
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics # option
|
3123
3123
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
3124
3124
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
3125
3125
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -3213,14 +3213,14 @@ class binance(Exchange, ImplicitAPI):
|
|
3213
3213
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3214
3214
|
"""
|
3215
3215
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
3216
|
-
see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
3217
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#kline-candlestick-data
|
3218
|
-
see https://binance-docs.github.io/apidocs/futures/en/#index-price-kline-candlestick-data
|
3219
|
-
see https://binance-docs.github.io/apidocs/futures/en/#mark-price-kline-candlestick-data
|
3220
|
-
see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
3221
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#index-price-kline-candlestick-data
|
3222
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#mark-price-kline-candlestick-data
|
3223
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
3216
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
3217
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#kline-candlestick-data
|
3218
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#index-price-kline-candlestick-data
|
3219
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#mark-price-kline-candlestick-data
|
3220
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
3221
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-kline-candlestick-data
|
3222
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#mark-price-kline-candlestick-data
|
3223
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
3224
3224
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
3225
3225
|
:param str timeframe: the length of time each candle represents
|
3226
3226
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -3522,18 +3522,18 @@ class binance(Exchange, ImplicitAPI):
|
|
3522
3522
|
"""
|
3523
3523
|
get the list of most recent trades for a particular symbol
|
3524
3524
|
* Default fetchTradesMethod
|
3525
|
-
see https://binance-docs.github.io/apidocs/spot/en/#compressed-aggregate-trades-list # publicGetAggTrades(spot)
|
3526
|
-
see https://binance-docs.github.io/apidocs/futures/en/#compressed-aggregate-trades-list # fapiPublicGetAggTrades(swap)
|
3527
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#compressed-aggregate-trades-list # dapiPublicGetAggTrades(future)
|
3528
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#recent-trades-list # eapiPublicGetTrades(option)
|
3525
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#compressed-aggregate-trades-list # publicGetAggTrades(spot)
|
3526
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#compressed-aggregate-trades-list # fapiPublicGetAggTrades(swap)
|
3527
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#compressed-aggregate-trades-list # dapiPublicGetAggTrades(future)
|
3528
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#recent-trades-list # eapiPublicGetTrades(option)
|
3529
3529
|
* Other fetchTradesMethod
|
3530
|
-
see https://binance-docs.github.io/apidocs/spot/en/#recent-trades-list # publicGetTrades(spot)
|
3531
|
-
see https://binance-docs.github.io/apidocs/futures/en/#recent-trades-list # fapiPublicGetTrades(swap)
|
3532
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#recent-trades-list # dapiPublicGetTrades(future)
|
3533
|
-
see https://binance-docs.github.io/apidocs/spot/en/#old-trade-lookup-market_data # publicGetHistoricalTrades(spot)
|
3534
|
-
see https://binance-docs.github.io/apidocs/future/en/#old-trade-lookup-market_data # fapiPublicGetHistoricalTrades(swap)
|
3535
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#old-trade-lookup-market_data # dapiPublicGetHistoricalTrades(future)
|
3536
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#old-trade-lookup-market_data # eapiPublicGetHistoricalTrades(option)
|
3530
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#recent-trades-list # publicGetTrades(spot)
|
3531
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#recent-trades-list # fapiPublicGetTrades(swap)
|
3532
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#recent-trades-list # dapiPublicGetTrades(future)
|
3533
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#old-trade-lookup-market_data # publicGetHistoricalTrades(spot)
|
3534
|
+
:see: https://binance-docs.github.io/apidocs/future/en/#old-trade-lookup-market_data # fapiPublicGetHistoricalTrades(swap)
|
3535
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#old-trade-lookup-market_data # dapiPublicGetHistoricalTrades(future)
|
3536
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#old-trade-lookup-market_data # eapiPublicGetHistoricalTrades(option)
|
3537
3537
|
:param str symbol: unified symbol of the market to fetch trades for
|
3538
3538
|
:param int [since]: only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
|
3539
3539
|
:param int [limit]: default 500, max 1000
|
@@ -3655,7 +3655,7 @@ class binance(Exchange, ImplicitAPI):
|
|
3655
3655
|
def edit_spot_order(self, id: str, symbol, type, side, amount, price=None, params={}):
|
3656
3656
|
"""
|
3657
3657
|
edit a trade order
|
3658
|
-
see https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
|
3658
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
|
3659
3659
|
:param str id: cancel order id
|
3660
3660
|
:param str symbol: unified symbol of the market to create an order in
|
3661
3661
|
:param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
|
@@ -3822,8 +3822,8 @@ class binance(Exchange, ImplicitAPI):
|
|
3822
3822
|
def edit_contract_order(self, id: str, symbol, type, side, amount, price=None, params={}):
|
3823
3823
|
"""
|
3824
3824
|
edit a trade order
|
3825
|
-
see https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
|
3826
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#modify-order-trade
|
3825
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
|
3826
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#modify-order-trade
|
3827
3827
|
:param str id: cancel order id
|
3828
3828
|
:param str symbol: unified symbol of the market to create an order in
|
3829
3829
|
:param str type: 'market' or 'limit'
|
@@ -3886,9 +3886,9 @@ class binance(Exchange, ImplicitAPI):
|
|
3886
3886
|
def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
3887
3887
|
"""
|
3888
3888
|
edit a trade order
|
3889
|
-
see https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
|
3890
|
-
see https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
|
3891
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#modify-order-trade
|
3889
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
|
3890
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
|
3891
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#modify-order-trade
|
3892
3892
|
:param str id: cancel order id
|
3893
3893
|
:param str symbol: unified symbol of the market to create an order in
|
3894
3894
|
:param str type: 'market' or 'limit'
|
@@ -4160,13 +4160,13 @@ class binance(Exchange, ImplicitAPI):
|
|
4160
4160
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
4161
4161
|
"""
|
4162
4162
|
create a trade order
|
4163
|
-
see https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
|
4164
|
-
see https://binance-docs.github.io/apidocs/spot/en/#test-new-order-trade
|
4165
|
-
see https://binance-docs.github.io/apidocs/futures/en/#new-order-trade
|
4166
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#new-order-trade
|
4167
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#new-order-trade
|
4168
|
-
see https://binance-docs.github.io/apidocs/spot/en/#new-order-using-sor-trade
|
4169
|
-
see https://binance-docs.github.io/apidocs/spot/en/#test-new-order-using-sor-trade
|
4163
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
|
4164
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#test-new-order-trade
|
4165
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#new-order-trade
|
4166
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#new-order-trade
|
4167
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#new-order-trade
|
4168
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#new-order-using-sor-trade
|
4169
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#test-new-order-using-sor-trade
|
4170
4170
|
:param str symbol: unified symbol of the market to create an order in
|
4171
4171
|
:param str type: 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
|
4172
4172
|
:param str side: 'buy' or 'sell'
|
@@ -4390,11 +4390,11 @@ class binance(Exchange, ImplicitAPI):
|
|
4390
4390
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
4391
4391
|
"""
|
4392
4392
|
fetches information on an order made by the user
|
4393
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data
|
4394
|
-
see https://binance-docs.github.io/apidocs/futures/en/#query-order-user_data
|
4395
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#query-order-user_data
|
4396
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#query-single-order-trade
|
4397
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-order-user_data
|
4393
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data
|
4394
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#query-order-user_data
|
4395
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#query-order-user_data
|
4396
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#query-single-order-trade
|
4397
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-order-user_data
|
4398
4398
|
:param str symbol: unified symbol of the market the order was made in
|
4399
4399
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
4400
4400
|
:param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
|
@@ -4435,11 +4435,11 @@ class binance(Exchange, ImplicitAPI):
|
|
4435
4435
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4436
4436
|
"""
|
4437
4437
|
fetches information on multiple orders made by the user
|
4438
|
-
see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
4439
|
-
see https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
4440
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
4441
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
4442
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
4438
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
4439
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
4440
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
4441
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
4442
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
4443
4443
|
:param str symbol: unified market symbol of the market orders were made in
|
4444
4444
|
:param int [since]: the earliest time in ms to fetch orders for
|
4445
4445
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -4560,16 +4560,16 @@ class binance(Exchange, ImplicitAPI):
|
|
4560
4560
|
|
4561
4561
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4562
4562
|
"""
|
4563
|
-
see https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
|
4564
|
-
see https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
|
4565
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
|
4566
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
|
4563
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
|
4564
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
|
4565
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
|
4566
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
|
4567
4567
|
fetch all unfilled currently open orders
|
4568
|
-
see https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
|
4569
|
-
see https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
|
4570
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
|
4571
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
|
4572
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-orders-user_data
|
4568
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
|
4569
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
|
4570
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
|
4571
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
|
4572
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-orders-user_data
|
4573
4573
|
:param str symbol: unified market symbol
|
4574
4574
|
:param int [since]: the earliest time in ms to fetch open orders for
|
4575
4575
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -4624,11 +4624,11 @@ class binance(Exchange, ImplicitAPI):
|
|
4624
4624
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4625
4625
|
"""
|
4626
4626
|
fetches information on multiple closed orders made by the user
|
4627
|
-
see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
4628
|
-
see https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
4629
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
4630
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
4631
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
4627
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
4628
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
4629
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
4630
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
4631
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
4632
4632
|
:param str symbol: unified market symbol of the market orders were made in
|
4633
4633
|
:param int [since]: the earliest time in ms to fetch orders for
|
4634
4634
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -4642,9 +4642,9 @@ class binance(Exchange, ImplicitAPI):
|
|
4642
4642
|
def fetch_canceled_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4643
4643
|
"""
|
4644
4644
|
fetches information on multiple canceled orders made by the user
|
4645
|
-
see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
4646
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
4647
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
4645
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
4646
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
4647
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
4648
4648
|
:param str symbol: unified market symbol of the market the orders were made in
|
4649
4649
|
:param int [since]: the earliest time in ms to fetch orders for
|
4650
4650
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -4665,11 +4665,11 @@ class binance(Exchange, ImplicitAPI):
|
|
4665
4665
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
4666
4666
|
"""
|
4667
4667
|
cancels an open order
|
4668
|
-
see https://binance-docs.github.io/apidocs/spot/en/#cancel-order-trade
|
4669
|
-
see https://binance-docs.github.io/apidocs/futures/en/#cancel-order-trade
|
4670
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#cancel-order-trade
|
4671
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#cancel-option-order-trade
|
4672
|
-
see https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
|
4668
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#cancel-order-trade
|
4669
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#cancel-order-trade
|
4670
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#cancel-order-trade
|
4671
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#cancel-option-order-trade
|
4672
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
|
4673
4673
|
:param str id: order id
|
4674
4674
|
:param str symbol: unified symbol of the market the order was made in
|
4675
4675
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -4711,11 +4711,11 @@ class binance(Exchange, ImplicitAPI):
|
|
4711
4711
|
|
4712
4712
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
4713
4713
|
"""
|
4714
|
-
see https://binance-docs.github.io/apidocs/spot/en/#cancel-all-open-orders-on-a-symbol-trade
|
4715
|
-
see https://binance-docs.github.io/apidocs/futures/en/#cancel-all-open-orders-trade
|
4716
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#cancel-all-open-orders-trade
|
4717
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#cancel-all-option-orders-on-specific-symbol-trade
|
4718
|
-
see https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
|
4714
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#cancel-all-open-orders-on-a-symbol-trade
|
4715
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#cancel-all-open-orders-trade
|
4716
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#cancel-all-open-orders-trade
|
4717
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#cancel-all-option-orders-on-specific-symbol-trade
|
4718
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
|
4719
4719
|
cancel all open orders in a market
|
4720
4720
|
:param str symbol: unified market symbol of the market to cancel orders in
|
4721
4721
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -4751,8 +4751,8 @@ class binance(Exchange, ImplicitAPI):
|
|
4751
4751
|
def cancel_orders(self, ids: List[int], symbol: Optional[str] = None, params={}):
|
4752
4752
|
"""
|
4753
4753
|
cancel multiple orders
|
4754
|
-
see https://binance-docs.github.io/apidocs/futures/en/#cancel-multiple-orders-trade
|
4755
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#cancel-multiple-orders-trade
|
4754
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#cancel-multiple-orders-trade
|
4755
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#cancel-multiple-orders-trade
|
4756
4756
|
:param [str] ids: order ids
|
4757
4757
|
:param str [symbol]: unified market symbol
|
4758
4758
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -4816,10 +4816,10 @@ class binance(Exchange, ImplicitAPI):
|
|
4816
4816
|
def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4817
4817
|
"""
|
4818
4818
|
fetch all the trades made from a single order
|
4819
|
-
see https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
4820
|
-
see https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
4821
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
4822
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
4819
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
4820
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
4821
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
4822
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
4823
4823
|
:param str id: order id
|
4824
4824
|
:param str symbol: unified market symbol
|
4825
4825
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -4843,10 +4843,10 @@ class binance(Exchange, ImplicitAPI):
|
|
4843
4843
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4844
4844
|
"""
|
4845
4845
|
fetch all trades made by the user
|
4846
|
-
see https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
4847
|
-
see https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
4848
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
4849
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
4846
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
4847
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
4848
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
4849
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
4850
4850
|
:param str symbol: unified market symbol
|
4851
4851
|
:param int [since]: the earliest time in ms to fetch trades for
|
4852
4852
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -4976,7 +4976,7 @@ class binance(Exchange, ImplicitAPI):
|
|
4976
4976
|
def fetch_my_dust_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
4977
4977
|
"""
|
4978
4978
|
fetch all dust trades made by the user
|
4979
|
-
see https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
|
4979
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
|
4980
4980
|
:param str symbol: not used by binance fetchMyDustTrades()
|
4981
4981
|
:param int [since]: the earliest time in ms to fetch my dust trades for
|
4982
4982
|
:param int [limit]: the maximum number of dust trades to retrieve
|
@@ -5104,10 +5104,10 @@ class binance(Exchange, ImplicitAPI):
|
|
5104
5104
|
|
5105
5105
|
def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
5106
5106
|
"""
|
5107
|
-
see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5107
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5108
5108
|
fetch all deposits made to an account
|
5109
|
-
see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5110
|
-
see https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data
|
5109
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5110
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data
|
5111
5111
|
:param str code: unified currency code
|
5112
5112
|
:param int [since]: the earliest time in ms to fetch deposits for
|
5113
5113
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -5205,11 +5205,11 @@ class binance(Exchange, ImplicitAPI):
|
|
5205
5205
|
|
5206
5206
|
def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
5207
5207
|
"""
|
5208
|
-
see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5209
|
-
see https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
5208
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5209
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
5210
5210
|
fetch all withdrawals made from an account
|
5211
|
-
see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5212
|
-
see https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
5211
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
5212
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
5213
5213
|
:param str code: unified currency code
|
5214
5214
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
5215
5215
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -5568,8 +5568,8 @@ class binance(Exchange, ImplicitAPI):
|
|
5568
5568
|
def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
5569
5569
|
"""
|
5570
5570
|
transfer currency internally between wallets on the same account
|
5571
|
-
see https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
|
5572
|
-
see https://binance-docs.github.io/apidocs/spot/en/#isolated-margin-account-transfer-margin
|
5571
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
|
5572
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#isolated-margin-account-transfer-margin
|
5573
5573
|
:param str code: unified currency code
|
5574
5574
|
:param float amount: amount to transfer
|
5575
5575
|
:param str fromAccount: account to transfer from
|
@@ -5646,9 +5646,9 @@ class binance(Exchange, ImplicitAPI):
|
|
5646
5646
|
|
5647
5647
|
def fetch_transfers(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
5648
5648
|
"""
|
5649
|
-
see https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
|
5649
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
|
5650
5650
|
fetch a history of internal transfers made on an account
|
5651
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
|
5651
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
|
5652
5652
|
:param str code: unified currency code of the currency transferred
|
5653
5653
|
:param int [since]: the earliest time in ms to fetch transfers for
|
5654
5654
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -5714,7 +5714,7 @@ class binance(Exchange, ImplicitAPI):
|
|
5714
5714
|
def fetch_deposit_address(self, code: str, params={}):
|
5715
5715
|
"""
|
5716
5716
|
fetch the deposit address for a currency associated with self account
|
5717
|
-
see https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
|
5717
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
|
5718
5718
|
:param str code: unified currency code
|
5719
5719
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
5720
5720
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -5782,7 +5782,7 @@ class binance(Exchange, ImplicitAPI):
|
|
5782
5782
|
"""
|
5783
5783
|
* @deprecated
|
5784
5784
|
please use fetchDepositWithdrawFees instead
|
5785
|
-
see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
5785
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
5786
5786
|
:param str[]|None codes: not used by binance fetchTransactionFees()
|
5787
5787
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
5788
5788
|
:returns dict[]: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -5892,7 +5892,7 @@ class binance(Exchange, ImplicitAPI):
|
|
5892
5892
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
5893
5893
|
"""
|
5894
5894
|
fetch deposit and withdraw fees
|
5895
|
-
see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
5895
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
5896
5896
|
:param str[]|None codes: not used by binance fetchDepositWithdrawFees()
|
5897
5897
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
5898
5898
|
:returns dict[]: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -6012,7 +6012,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6012
6012
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
6013
6013
|
"""
|
6014
6014
|
make a withdrawal
|
6015
|
-
see https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
|
6015
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
|
6016
6016
|
:param str code: unified currency code
|
6017
6017
|
:param float amount: the amount to withdraw
|
6018
6018
|
:param str address: the address to withdraw to
|
@@ -6074,9 +6074,9 @@ class binance(Exchange, ImplicitAPI):
|
|
6074
6074
|
def fetch_trading_fee(self, symbol: str, params={}):
|
6075
6075
|
"""
|
6076
6076
|
fetch the trading fees for a market
|
6077
|
-
see https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
6078
|
-
see https://binance-docs.github.io/apidocs/futures/en/#user-commission-rate-user_data
|
6079
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#user-commission-rate-user_data
|
6077
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
6078
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#user-commission-rate-user_data
|
6079
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#user-commission-rate-user_data
|
6080
6080
|
:param str symbol: unified market symbol
|
6081
6081
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6082
6082
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -6126,9 +6126,9 @@ class binance(Exchange, ImplicitAPI):
|
|
6126
6126
|
def fetch_trading_fees(self, params={}):
|
6127
6127
|
"""
|
6128
6128
|
fetch the trading fees for multiple markets
|
6129
|
-
see https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
6130
|
-
see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
6131
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
6129
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
6130
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
6131
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
6132
6132
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6133
6133
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
6134
6134
|
"""
|
@@ -6292,7 +6292,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6292
6292
|
def futures_transfer(self, code: str, amount, type, params={}):
|
6293
6293
|
"""
|
6294
6294
|
transfer between futures account
|
6295
|
-
see https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data
|
6295
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data
|
6296
6296
|
:param str code: unified currency code
|
6297
6297
|
:param float amount: the amount to transfer
|
6298
6298
|
:param str type: 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account
|
@@ -6320,8 +6320,8 @@ class binance(Exchange, ImplicitAPI):
|
|
6320
6320
|
def fetch_funding_rate(self, symbol: str, params={}):
|
6321
6321
|
"""
|
6322
6322
|
fetch the current funding rate
|
6323
|
-
see https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
6324
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
6323
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
6324
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
6325
6325
|
:param str symbol: unified market symbol
|
6326
6326
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6327
6327
|
:returns dict: a `funding rate structure <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -6358,8 +6358,8 @@ class binance(Exchange, ImplicitAPI):
|
|
6358
6358
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6359
6359
|
"""
|
6360
6360
|
fetches historical funding rate prices
|
6361
|
-
see https://binance-docs.github.io/apidocs/futures/en/#get-funding-rate-history
|
6362
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#get-funding-rate-history-of-perpetual-futures
|
6361
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#get-funding-rate-history
|
6362
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#get-funding-rate-history-of-perpetual-futures
|
6363
6363
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
6364
6364
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
6365
6365
|
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
@@ -6425,8 +6425,8 @@ class binance(Exchange, ImplicitAPI):
|
|
6425
6425
|
def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
6426
6426
|
"""
|
6427
6427
|
fetch the funding rate for multiple markets
|
6428
|
-
see https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
6429
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
6428
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
6429
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
6430
6430
|
:param str[]|None symbols: list of unified market symbols
|
6431
6431
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6432
6432
|
:returns dict: a dictionary of `funding rates structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure>`, indexe by market symbols
|
@@ -6907,8 +6907,8 @@ class binance(Exchange, ImplicitAPI):
|
|
6907
6907
|
def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
|
6908
6908
|
"""
|
6909
6909
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
6910
|
-
see https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-user_data
|
6911
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#notional-bracket-for-symbol-user_data
|
6910
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-user_data
|
6911
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#notional-bracket-for-symbol-user_data
|
6912
6912
|
:param str[]|None symbols: list of unified market symbols
|
6913
6913
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6914
6914
|
:returns dict: a dictionary of `leverage tiers structures <https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure>`, indexed by market symbols
|
@@ -7006,7 +7006,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7006
7006
|
|
7007
7007
|
def fetch_position(self, symbol: str, params={}):
|
7008
7008
|
"""
|
7009
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
7009
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
7010
7010
|
fetch data on an open position
|
7011
7011
|
:param str symbol: unified market symbol of the market the position is held in
|
7012
7012
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -7047,7 +7047,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7047
7047
|
|
7048
7048
|
def fetch_option_positions(self, symbols: Optional[List[str]] = None, params={}):
|
7049
7049
|
"""
|
7050
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
7050
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
7051
7051
|
fetch data on open options positions
|
7052
7052
|
:param str[]|None symbols: list of unified market symbols
|
7053
7053
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -7173,8 +7173,8 @@ class binance(Exchange, ImplicitAPI):
|
|
7173
7173
|
def fetch_account_positions(self, symbols: Optional[List[str]] = None, params={}):
|
7174
7174
|
"""
|
7175
7175
|
fetch account positions
|
7176
|
-
see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
7177
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
7176
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
7177
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
7178
7178
|
:param str[]|None symbols: list of unified market symbols
|
7179
7179
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
7180
7180
|
:returns dict: data on account positions
|
@@ -7204,8 +7204,8 @@ class binance(Exchange, ImplicitAPI):
|
|
7204
7204
|
def fetch_positions_risk(self, symbols: Optional[List[str]] = None, params={}):
|
7205
7205
|
"""
|
7206
7206
|
fetch positions risk
|
7207
|
-
see https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
|
7208
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
|
7207
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
|
7208
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
|
7209
7209
|
:param str[]|None symbols: list of unified market symbols
|
7210
7210
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
7211
7211
|
:returns dict: data on the positions risk
|
@@ -7294,8 +7294,8 @@ class binance(Exchange, ImplicitAPI):
|
|
7294
7294
|
def fetch_funding_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
7295
7295
|
"""
|
7296
7296
|
fetch the history of funding payments paid and received on self account
|
7297
|
-
see https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
|
7298
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
|
7297
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
|
7298
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
|
7299
7299
|
:param str symbol: unified market symbol
|
7300
7300
|
:param int [since]: the earliest time in ms to fetch funding history for
|
7301
7301
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -7334,8 +7334,8 @@ class binance(Exchange, ImplicitAPI):
|
|
7334
7334
|
def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
7335
7335
|
"""
|
7336
7336
|
set the level of leverage for a market
|
7337
|
-
see https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade
|
7338
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#change-initial-leverage-trade
|
7337
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade
|
7338
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#change-initial-leverage-trade
|
7339
7339
|
:param float leverage: the rate of leverage
|
7340
7340
|
:param str symbol: unified market symbol
|
7341
7341
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -7365,8 +7365,8 @@ class binance(Exchange, ImplicitAPI):
|
|
7365
7365
|
def set_margin_mode(self, marginMode: str, symbol: Optional[str] = None, params={}):
|
7366
7366
|
"""
|
7367
7367
|
set margin mode to 'cross' or 'isolated'
|
7368
|
-
see https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade
|
7369
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#change-margin-type-trade
|
7368
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade
|
7369
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#change-margin-type-trade
|
7370
7370
|
:param str marginMode: 'cross' or 'isolated'
|
7371
7371
|
:param str symbol: unified market symbol
|
7372
7372
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -7421,8 +7421,8 @@ class binance(Exchange, ImplicitAPI):
|
|
7421
7421
|
def set_position_mode(self, hedged, symbol: Optional[str] = None, params={}):
|
7422
7422
|
"""
|
7423
7423
|
set hedged to True or False for a market
|
7424
|
-
see https://binance-docs.github.io/apidocs/futures/en/#change-position-mode-trade
|
7425
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#change-position-mode-trade
|
7424
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#change-position-mode-trade
|
7425
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#change-position-mode-trade
|
7426
7426
|
:param bool hedged: set to True to use dualSidePosition
|
7427
7427
|
:param str symbol: not used by binance setPositionMode()
|
7428
7428
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -7456,7 +7456,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7456
7456
|
def fetch_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
7457
7457
|
"""
|
7458
7458
|
fetches historical settlement records
|
7459
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#historical-exercise-records
|
7459
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#historical-exercise-records
|
7460
7460
|
:param str symbol: unified market symbol of the settlement history
|
7461
7461
|
:param int [since]: timestamp in ms
|
7462
7462
|
:param int [limit]: number of records, default 100, max 100
|
@@ -7496,7 +7496,7 @@ class binance(Exchange, ImplicitAPI):
|
|
7496
7496
|
def fetch_my_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
7497
7497
|
"""
|
7498
7498
|
fetches historical settlement records of the user
|
7499
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#user-exercise-record-user_data
|
7499
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#user-exercise-record-user_data
|
7500
7500
|
:param str symbol: unified market symbol of the settlement history
|
7501
7501
|
:param int [since]: timestamp in ms
|
7502
7502
|
:param int [limit]: number of records
|
@@ -7625,9 +7625,9 @@ class binance(Exchange, ImplicitAPI):
|
|
7625
7625
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
7626
7626
|
"""
|
7627
7627
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
7628
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#account-funding-flow-user_data
|
7629
|
-
see https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
|
7630
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
|
7628
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#account-funding-flow-user_data
|
7629
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
|
7630
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
|
7631
7631
|
:param str code: unified currency code
|
7632
7632
|
:param int [since]: timestamp in ms of the earliest ledger entry
|
7633
7633
|
:param int [limit]: max number of ledger entrys to return
|
@@ -8006,8 +8006,8 @@ class binance(Exchange, ImplicitAPI):
|
|
8006
8006
|
|
8007
8007
|
def reduce_margin(self, symbol: str, amount, params={}):
|
8008
8008
|
"""
|
8009
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
|
8010
|
-
see https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
|
8009
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
|
8010
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
|
8011
8011
|
remove margin from a position
|
8012
8012
|
:param str symbol: unified market symbol
|
8013
8013
|
:param float amount: the amount of margin to remove
|
@@ -8018,8 +8018,8 @@ class binance(Exchange, ImplicitAPI):
|
|
8018
8018
|
|
8019
8019
|
def add_margin(self, symbol: str, amount, params={}):
|
8020
8020
|
"""
|
8021
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
|
8022
|
-
see https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
|
8021
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
|
8022
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
|
8023
8023
|
add margin
|
8024
8024
|
:param str symbol: unified market symbol
|
8025
8025
|
:param float amount: amount of margin to add
|
@@ -8031,7 +8031,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8031
8031
|
def fetch_borrow_rate(self, code: str, params={}):
|
8032
8032
|
"""
|
8033
8033
|
fetch the rate of interest to borrow a currency for margin trading
|
8034
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
8034
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
8035
8035
|
:param str code: unified currency code
|
8036
8036
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
8037
8037
|
:returns dict: a `borrow rate structure <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>`
|
@@ -8059,7 +8059,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8059
8059
|
def fetch_borrow_rate_history(self, code: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
8060
8060
|
"""
|
8061
8061
|
retrieves a history of a currencies borrow interest rate at specific time slots
|
8062
|
-
see https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
8062
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
8063
8063
|
:param str code: unified currency code
|
8064
8064
|
:param int [since]: timestamp for the earliest borrow rate
|
8065
8065
|
:param int [limit]: the maximum number of `borrow rate structures <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>` to retrieve
|
@@ -8127,7 +8127,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8127
8127
|
def create_gift_code(self, code: str, amount, params={}):
|
8128
8128
|
"""
|
8129
8129
|
create gift code
|
8130
|
-
see https://binance-docs.github.io/apidocs/spot/en/#create-a-single-token-gift-card-user_data
|
8130
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#create-a-single-token-gift-card-user_data
|
8131
8131
|
:param str code: gift code
|
8132
8132
|
:param float amount: amount of currency for the gift
|
8133
8133
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
@@ -8163,7 +8163,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8163
8163
|
def redeem_gift_code(self, giftcardCode, params={}):
|
8164
8164
|
"""
|
8165
8165
|
redeem gift code
|
8166
|
-
see https://binance-docs.github.io/apidocs/spot/en/#redeem-a-binance-gift-card-user_data
|
8166
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#redeem-a-binance-gift-card-user_data
|
8167
8167
|
:param str giftcardCode:
|
8168
8168
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
8169
8169
|
:returns dict: response from the exchange
|
@@ -8188,7 +8188,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8188
8188
|
def verify_gift_code(self, id: str, params={}):
|
8189
8189
|
"""
|
8190
8190
|
verify gift code
|
8191
|
-
see https://binance-docs.github.io/apidocs/spot/en/#verify-binance-gift-card-by-gift-card-number-user_data
|
8191
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#verify-binance-gift-card-by-gift-card-number-user_data
|
8192
8192
|
:param str id: reference number id
|
8193
8193
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
8194
8194
|
:returns dict: response from the exchange
|
@@ -8210,7 +8210,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8210
8210
|
def fetch_borrow_interest(self, code: Optional[str] = None, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
8211
8211
|
"""
|
8212
8212
|
fetch the interest owed by the user for borrowing currency for margin trading
|
8213
|
-
see https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
|
8213
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
|
8214
8214
|
:param str code: unified currency code
|
8215
8215
|
:param str symbol: unified market symbol when fetch interest in isolated markets
|
8216
8216
|
:param int [since]: the earliest time in ms to fetch borrrow interest for
|
@@ -8272,7 +8272,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8272
8272
|
def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
8273
8273
|
"""
|
8274
8274
|
repay borrowed margin and interest
|
8275
|
-
see https://binance-docs.github.io/apidocs/spot/en/#margin-account-repay-margin
|
8275
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-repay-margin
|
8276
8276
|
:param str code: unified currency code of the currency to repay
|
8277
8277
|
:param float amount: the amount to repay
|
8278
8278
|
:param str symbol: unified market symbol, required for isolated margin
|
@@ -8303,7 +8303,7 @@ class binance(Exchange, ImplicitAPI):
|
|
8303
8303
|
def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
8304
8304
|
"""
|
8305
8305
|
create a loan to borrow margin
|
8306
|
-
see https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-margin
|
8306
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-margin
|
8307
8307
|
:param str code: unified currency code of the currency to borrow
|
8308
8308
|
:param float amount: the amount to borrow
|
8309
8309
|
:param str symbol: unified market symbol, required for isolated margin
|
@@ -8351,8 +8351,8 @@ class binance(Exchange, ImplicitAPI):
|
|
8351
8351
|
def fetch_open_interest_history(self, symbol: str, timeframe='5m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
8352
8352
|
"""
|
8353
8353
|
Retrieves the open interest history of a currency
|
8354
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#open-interest-statistics
|
8355
|
-
see https://binance-docs.github.io/apidocs/futures/en/#open-interest-statistics
|
8354
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#open-interest-statistics
|
8355
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#open-interest-statistics
|
8356
8356
|
:param str symbol: Unified CCXT market symbol
|
8357
8357
|
:param str timeframe: "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
|
8358
8358
|
:param int [since]: the time(ms) of the earliest record to retrieve unix timestamp
|
@@ -8410,9 +8410,9 @@ class binance(Exchange, ImplicitAPI):
|
|
8410
8410
|
def fetch_open_interest(self, symbol: str, params={}):
|
8411
8411
|
"""
|
8412
8412
|
retrieves the open interest of a contract trading pair
|
8413
|
-
see https://binance-docs.github.io/apidocs/futures/en/#open-interest
|
8414
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#open-interest
|
8415
|
-
see https://binance-docs.github.io/apidocs/voptions/en/#open-interest
|
8413
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#open-interest
|
8414
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#open-interest
|
8415
|
+
:see: https://binance-docs.github.io/apidocs/voptions/en/#open-interest
|
8416
8416
|
:param str symbol: unified CCXT market symbol
|
8417
8417
|
:param dict [params]: exchange specific parameters
|
8418
8418
|
:returns dict} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure:
|
@@ -8491,9 +8491,9 @@ class binance(Exchange, ImplicitAPI):
|
|
8491
8491
|
def fetch_my_liquidations(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
8492
8492
|
"""
|
8493
8493
|
retrieves the users liquidated positions
|
8494
|
-
see https://binance-docs.github.io/apidocs/spot/en/#get-force-liquidation-record-user_data
|
8495
|
-
see https://binance-docs.github.io/apidocs/futures/en/#user-39-s-force-orders-user_data
|
8496
|
-
see https://binance-docs.github.io/apidocs/delivery/en/#user-39-s-force-orders-user_data
|
8494
|
+
:see: https://binance-docs.github.io/apidocs/spot/en/#get-force-liquidation-record-user_data
|
8495
|
+
:see: https://binance-docs.github.io/apidocs/futures/en/#user-39-s-force-orders-user_data
|
8496
|
+
:see: https://binance-docs.github.io/apidocs/delivery/en/#user-39-s-force-orders-user_data
|
8497
8497
|
:param str [symbol]: unified CCXT market symbol
|
8498
8498
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
8499
8499
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|