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/async_support/huobi.py
CHANGED
@@ -1908,10 +1908,10 @@ class huobi(Exchange, ImplicitAPI):
|
|
1908
1908
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1909
1909
|
"""
|
1910
1910
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1911
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#get-latest-tickers-for-all-pairs
|
1912
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
|
1913
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#get-a-batch-of-market-data-overview
|
1914
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-a-batch-of-market-data-overview-v2
|
1911
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#get-latest-tickers-for-all-pairs
|
1912
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
|
1913
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#get-a-batch-of-market-data-overview
|
1914
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-a-batch-of-market-data-overview-v2
|
1915
1915
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1916
1916
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
1917
1917
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -2284,9 +2284,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
2284
2284
|
|
2285
2285
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2286
2286
|
"""
|
2287
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-match-results-via-multiple-fields-new
|
2288
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-match-results-via-multiple-fields-new
|
2289
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#search-match-results
|
2287
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-match-results-via-multiple-fields-new
|
2288
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-match-results-via-multiple-fields-new
|
2289
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#search-match-results
|
2290
2290
|
fetch all trades made by the user
|
2291
2291
|
:param str symbol: unified market symbol
|
2292
2292
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2437,10 +2437,10 @@ class huobi(Exchange, ImplicitAPI):
|
|
2437
2437
|
|
2438
2438
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit=1000, params={}):
|
2439
2439
|
"""
|
2440
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#get-the-most-recent-trades
|
2441
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#query-a-batch-of-trade-records-of-a-contract
|
2442
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-a-batch-of-trade-records-of-a-contract
|
2443
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-a-batch-of-trade-records-of-a-contract
|
2440
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#get-the-most-recent-trades
|
2441
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#query-a-batch-of-trade-records-of-a-contract
|
2442
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-a-batch-of-trade-records-of-a-contract
|
2443
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-a-batch-of-trade-records-of-a-contract
|
2444
2444
|
get the list of most recent trades for a particular symbol
|
2445
2445
|
:param str symbol: unified symbol of the market to fetch trades for
|
2446
2446
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -2531,10 +2531,10 @@ class huobi(Exchange, ImplicitAPI):
|
|
2531
2531
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2532
2532
|
"""
|
2533
2533
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
2534
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#get-klines-candles
|
2535
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#get-kline-data
|
2536
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-kline-data
|
2537
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-kline-data
|
2534
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#get-klines-candles
|
2535
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#get-kline-data
|
2536
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-kline-data
|
2537
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-kline-data
|
2538
2538
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
2539
2539
|
:param str timeframe: the length of time each candle represents
|
2540
2540
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -3637,12 +3637,12 @@ class huobi(Exchange, ImplicitAPI):
|
|
3637
3637
|
|
3638
3638
|
async def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3639
3639
|
"""
|
3640
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
|
3641
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
|
3642
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
|
3643
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-orders-new
|
3644
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-history-orders-new
|
3645
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-history-orders-via-multiple-fields-new
|
3640
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
|
3641
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
|
3642
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
|
3643
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-orders-new
|
3644
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-history-orders-new
|
3645
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-history-orders-via-multiple-fields-new
|
3646
3646
|
fetches information on multiple orders made by the user
|
3647
3647
|
:param str symbol: unified market symbol of the market orders were made in
|
3648
3648
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -3669,12 +3669,12 @@ class huobi(Exchange, ImplicitAPI):
|
|
3669
3669
|
|
3670
3670
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3671
3671
|
"""
|
3672
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
|
3673
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
|
3674
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
|
3675
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-orders-new
|
3676
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-history-orders-new
|
3677
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-history-orders-via-multiple-fields-new
|
3672
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
|
3673
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
|
3674
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
|
3675
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-orders-new
|
3676
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-history-orders-new
|
3677
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-history-orders-via-multiple-fields-new
|
3678
3678
|
fetches information on multiple closed orders made by the user
|
3679
3679
|
:param str symbol: unified market symbol of the market orders were made in
|
3680
3680
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -3701,9 +3701,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
3701
3701
|
|
3702
3702
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3703
3703
|
"""
|
3704
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#get-all-open-orders
|
3705
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-current-unfilled-order-acquisition
|
3706
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-current-unfilled-order-acquisition
|
3704
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#get-all-open-orders
|
3705
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-current-unfilled-order-acquisition
|
3706
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-current-unfilled-order-acquisition
|
3707
3707
|
fetch all unfilled currently open orders
|
3708
3708
|
:param str symbol: unified market symbol
|
3709
3709
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -4329,15 +4329,15 @@ class huobi(Exchange, ImplicitAPI):
|
|
4329
4329
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
4330
4330
|
"""
|
4331
4331
|
create a trade order
|
4332
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#place-a-new-order # spot, margin
|
4333
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-an-order # coin-m swap
|
4334
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-trigger-order # coin-m swap trigger
|
4335
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-an-order # usdt-m swap cross
|
4336
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-trigger-order # usdt-m swap cross trigger
|
4337
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-an-order # usdt-m swap isolated
|
4338
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-trigger-order # usdt-m swap isolated trigger
|
4339
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#place-an-order # coin-m futures
|
4340
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#place-trigger-order # coin-m futures contract trigger
|
4332
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#place-a-new-order # spot, margin
|
4333
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-an-order # coin-m swap
|
4334
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-trigger-order # coin-m swap trigger
|
4335
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-an-order # usdt-m swap cross
|
4336
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-trigger-order # usdt-m swap cross trigger
|
4337
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-an-order # usdt-m swap isolated
|
4338
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-trigger-order # usdt-m swap isolated trigger
|
4339
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#place-an-order # coin-m futures
|
4340
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#place-trigger-order # coin-m futures contract trigger
|
4341
4341
|
:param str symbol: unified symbol of the market to create an order in
|
4342
4342
|
:param str type: 'market' or 'limit'
|
4343
4343
|
:param str side: 'buy' or 'sell'
|
@@ -4366,7 +4366,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
4366
4366
|
"""
|
4367
4367
|
* @ignore
|
4368
4368
|
create a spot trade order
|
4369
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#place-a-new-order
|
4369
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#place-a-new-order
|
4370
4370
|
:param str symbol: unified symbol of the market to create an order in
|
4371
4371
|
:param str type: 'market' or 'limit'
|
4372
4372
|
:param str side: 'buy' or 'sell'
|
@@ -4482,10 +4482,10 @@ class huobi(Exchange, ImplicitAPI):
|
|
4482
4482
|
"""
|
4483
4483
|
* @ignore
|
4484
4484
|
create a contract trade order
|
4485
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#place-an-order
|
4486
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-an-order
|
4487
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-an-order
|
4488
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-an-order
|
4485
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#place-an-order
|
4486
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-an-order
|
4487
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-an-order
|
4488
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-an-order
|
4489
4489
|
:param str symbol: unified symbol of the market to create an order in
|
4490
4490
|
:param str type: 'market' or 'limit'
|
4491
4491
|
:param str side: 'buy' or 'sell'
|
@@ -5374,13 +5374,13 @@ class huobi(Exchange, ImplicitAPI):
|
|
5374
5374
|
async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
5375
5375
|
"""
|
5376
5376
|
transfer currency internally between wallets on the same account
|
5377
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#transfer-margin-between-spot-account-and-future-account
|
5378
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#transfer-fund-between-spot-account-and-future-contract-account
|
5379
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-transfer-margin-between-spot-account-and-usdt-margined-contracts-account
|
5380
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-spot-trading-account-to-cross-margin-account-cross
|
5381
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-spot-trading-account-to-isolated-margin-account-isolated
|
5382
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-cross-margin-account-to-spot-trading-account-cross
|
5383
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-isolated-margin-account-to-spot-trading-account-isolated
|
5377
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#transfer-margin-between-spot-account-and-future-account
|
5378
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#transfer-fund-between-spot-account-and-future-contract-account
|
5379
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-transfer-margin-between-spot-account-and-usdt-margined-contracts-account
|
5380
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-spot-trading-account-to-cross-margin-account-cross
|
5381
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-spot-trading-account-to-isolated-margin-account-isolated
|
5382
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-cross-margin-account-to-spot-trading-account-cross
|
5383
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-isolated-margin-account-to-spot-trading-account-isolated
|
5384
5384
|
:param str code: unified currency code
|
5385
5385
|
:param float amount: amount to transfer
|
5386
5386
|
:param str fromAccount: account to transfer from 'spot', 'future', 'swap'
|
@@ -5573,8 +5573,8 @@ class huobi(Exchange, ImplicitAPI):
|
|
5573
5573
|
|
5574
5574
|
async def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
5575
5575
|
"""
|
5576
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-historical-funding-rate
|
5577
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-historical-funding-rate
|
5576
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-historical-funding-rate
|
5577
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-historical-funding-rate
|
5578
5578
|
fetches historical funding rate prices
|
5579
5579
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
5580
5580
|
:param int [since]: not used by huobi, but filtered internally by ccxt
|
@@ -6017,9 +6017,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
6017
6017
|
async def fetch_funding_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6018
6018
|
"""
|
6019
6019
|
fetch the history of funding payments paid and received on self account
|
6020
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-account-financial-records-via-multiple-fields-new # linear swaps
|
6021
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#query-financial-records-via-multiple-fields-new # coin-m futures
|
6022
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-financial-records-via-multiple-fields-new # coin-m swaps
|
6020
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-account-financial-records-via-multiple-fields-new # linear swaps
|
6021
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#query-financial-records-via-multiple-fields-new # coin-m futures
|
6022
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-financial-records-via-multiple-fields-new # coin-m swaps
|
6023
6023
|
:param str symbol: unified market symbol
|
6024
6024
|
:param int [since]: the earliest time in ms to fetch funding history for
|
6025
6025
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -6705,7 +6705,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
6705
6705
|
|
6706
6706
|
async def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6707
6707
|
"""
|
6708
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#get-account-history
|
6708
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#get-account-history
|
6709
6709
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
6710
6710
|
:param str code: unified currency code, default is None
|
6711
6711
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
@@ -6897,9 +6897,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
6897
6897
|
async def fetch_open_interest_history(self, symbol: str, timeframe='1h', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
6898
6898
|
"""
|
6899
6899
|
Retrieves the open interest history of a currency
|
6900
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#query-information-on-open-interest
|
6901
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-information-on-open-interest
|
6902
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-information-on-open-interest
|
6900
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#query-information-on-open-interest
|
6901
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-information-on-open-interest
|
6902
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-information-on-open-interest
|
6903
6903
|
:param str symbol: Unified CCXT market symbol
|
6904
6904
|
:param str timeframe: '1h', '4h', '12h', or '1d'
|
6905
6905
|
:param int [since]: Not used by huobi api, but response parsed by CCXT
|
@@ -7007,9 +7007,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
7007
7007
|
async def fetch_open_interest(self, symbol: str, params={}):
|
7008
7008
|
"""
|
7009
7009
|
Retrieves the open interest of a currency
|
7010
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#get-contract-open-interest-information
|
7011
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-swap-open-interest-information
|
7012
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-swap-open-interest-information
|
7010
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#get-contract-open-interest-information
|
7011
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-swap-open-interest-information
|
7012
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-swap-open-interest-information
|
7013
7013
|
:param str symbol: Unified CCXT market symbol
|
7014
7014
|
:param dict [params]: exchange specific parameters
|
7015
7015
|
:returns dict} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure:
|
@@ -7172,8 +7172,8 @@ class huobi(Exchange, ImplicitAPI):
|
|
7172
7172
|
async def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
7173
7173
|
"""
|
7174
7174
|
create a loan to borrow margin
|
7175
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-isolated
|
7176
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
|
7175
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-isolated
|
7176
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
|
7177
7177
|
:param str code: unified currency code of the currency to borrow
|
7178
7178
|
:param float amount: the amount to borrow
|
7179
7179
|
:param str symbol: unified market symbol, required for isolated margin
|
@@ -7221,7 +7221,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
7221
7221
|
async def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
7222
7222
|
"""
|
7223
7223
|
repay borrowed margin and interest
|
7224
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
|
7224
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
|
7225
7225
|
:param str code: unified currency code of the currency to repay
|
7226
7226
|
:param float amount: the amount to repay
|
7227
7227
|
:param str symbol: unified market symbol
|
@@ -7394,7 +7394,7 @@ class huobi(Exchange, ImplicitAPI):
|
|
7394
7394
|
async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
7395
7395
|
"""
|
7396
7396
|
fetch deposit and withdraw fees
|
7397
|
-
see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
|
7397
|
+
:see: https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
|
7398
7398
|
:param str[]|None codes: list of unified currency codes
|
7399
7399
|
:param dict [params]: extra parameters specific to the huobi api endpoint
|
7400
7400
|
:returns dict[]: a list of `fees structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -7595,9 +7595,9 @@ class huobi(Exchange, ImplicitAPI):
|
|
7595
7595
|
async def fetch_liquidations(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
7596
7596
|
"""
|
7597
7597
|
retrieves the public liquidations of a trading pair
|
7598
|
-
see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-liquidation-orders-new
|
7599
|
-
see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-liquidation-orders-new
|
7600
|
-
see https://huobiapi.github.io/docs/dm/v1/en/#query-liquidation-order-information-new
|
7598
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-liquidation-orders-new
|
7599
|
+
:see: https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-liquidation-orders-new
|
7600
|
+
:see: https://huobiapi.github.io/docs/dm/v1/en/#query-liquidation-order-information-new
|
7601
7601
|
:param str symbol: unified CCXT market symbol
|
7602
7602
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
7603
7603
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
ccxt/async_support/indodax.py
CHANGED
@@ -440,7 +440,7 @@ class indodax(Exchange, ImplicitAPI):
|
|
440
440
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
441
441
|
"""
|
442
442
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
443
|
-
see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
443
|
+
:see: https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
444
444
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
445
445
|
:param dict [params]: extra parameters specific to the indodax api endpoint
|
446
446
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
ccxt/async_support/kraken.py
CHANGED
@@ -383,7 +383,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
383
383
|
async def fetch_markets(self, params={}):
|
384
384
|
"""
|
385
385
|
retrieves data on all markets for kraken
|
386
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTradableAssetPairs
|
386
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getTradableAssetPairs
|
387
387
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
388
388
|
:returns dict[]: an array of objects representing market data
|
389
389
|
"""
|
@@ -559,7 +559,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
559
559
|
async def fetch_currencies(self, params={}):
|
560
560
|
"""
|
561
561
|
fetches all available currencies on an exchange
|
562
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getAssetInfo
|
562
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getAssetInfo
|
563
563
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
564
564
|
:returns dict: an associative dictionary of currencies
|
565
565
|
"""
|
@@ -615,7 +615,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
615
615
|
async def fetch_trading_fee(self, symbol: str, params={}):
|
616
616
|
"""
|
617
617
|
fetch the trading fees for a market
|
618
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
|
618
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
|
619
619
|
:param str symbol: unified market symbol
|
620
620
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
621
621
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -682,7 +682,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
682
682
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
683
683
|
"""
|
684
684
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
685
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getOrderBook
|
685
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getOrderBook
|
686
686
|
:param str symbol: unified symbol of the market to fetch the order book for
|
687
687
|
:param int [limit]: the maximum amount of order book entries to return
|
688
688
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
@@ -780,7 +780,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
780
780
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
781
781
|
"""
|
782
782
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
783
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
|
783
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
|
784
784
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
785
785
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
786
786
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -811,7 +811,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
811
811
|
async def fetch_ticker(self, symbol: str, params={}):
|
812
812
|
"""
|
813
813
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
814
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
|
814
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
|
815
815
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
816
816
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
817
817
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -853,7 +853,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
853
853
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
854
854
|
"""
|
855
855
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
856
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getOHLCData
|
856
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getOHLCData
|
857
857
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
858
858
|
:param str timeframe: the length of time each candle represents
|
859
859
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -959,9 +959,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
959
959
|
|
960
960
|
async def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
961
961
|
"""
|
962
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
962
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
963
963
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
964
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
964
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
965
965
|
:param str code: unified currency code, default is None
|
966
966
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
967
967
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -1127,7 +1127,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1127
1127
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1128
1128
|
"""
|
1129
1129
|
get the list of most recent trades for a particular symbol
|
1130
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getRecentTrades
|
1130
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getRecentTrades
|
1131
1131
|
:param str symbol: unified symbol of the market to fetch trades for
|
1132
1132
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1133
1133
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1194,7 +1194,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1194
1194
|
async def fetch_balance(self, params={}):
|
1195
1195
|
"""
|
1196
1196
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1197
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getAccountBalance
|
1197
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getAccountBalance
|
1198
1198
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
1199
1199
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1200
1200
|
"""
|
@@ -1214,7 +1214,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1214
1214
|
|
1215
1215
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1216
1216
|
"""
|
1217
|
-
see https://docs.kraken.com/rest/#tag/User-Trading/operation/addOrder
|
1217
|
+
:see: https://docs.kraken.com/rest/#tag/User-Trading/operation/addOrder
|
1218
1218
|
create a trade order
|
1219
1219
|
:param str symbol: unified symbol of the market to create an order in
|
1220
1220
|
:param str type: 'market' or 'limit'
|
@@ -1517,7 +1517,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1517
1517
|
async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
1518
1518
|
"""
|
1519
1519
|
edit a trade order
|
1520
|
-
see https://docs.kraken.com/rest/#tag/User-Trading/operation/editOrder
|
1520
|
+
:see: https://docs.kraken.com/rest/#tag/User-Trading/operation/editOrder
|
1521
1521
|
:param str id: order id
|
1522
1522
|
:param str symbol: unified symbol of the market to create an order in
|
1523
1523
|
:param str type: 'market' or 'limit'
|
@@ -1561,7 +1561,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1561
1561
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1562
1562
|
"""
|
1563
1563
|
fetches information on an order made by the user
|
1564
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOrdersInfo
|
1564
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getOrdersInfo
|
1565
1565
|
:param str symbol: not used by kraken fetchOrder
|
1566
1566
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
1567
1567
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1627,7 +1627,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1627
1627
|
async def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1628
1628
|
"""
|
1629
1629
|
fetch all the trades made from a single order
|
1630
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradesInfo
|
1630
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradesInfo
|
1631
1631
|
:param str id: order id
|
1632
1632
|
:param str symbol: unified market symbol
|
1633
1633
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1714,7 +1714,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1714
1714
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1715
1715
|
"""
|
1716
1716
|
fetch all trades made by the user
|
1717
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeHistory
|
1717
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeHistory
|
1718
1718
|
:param str symbol: unified market symbol
|
1719
1719
|
:param int [since]: the earliest time in ms to fetch trades for
|
1720
1720
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1769,7 +1769,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1769
1769
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1770
1770
|
"""
|
1771
1771
|
cancels an open order
|
1772
|
-
see https://docs.kraken.com/rest/#tag/Trading/operation/cancelOrder
|
1772
|
+
:see: https://docs.kraken.com/rest/#tag/Trading/operation/cancelOrder
|
1773
1773
|
:param str id: order id
|
1774
1774
|
:param str symbol: unified symbol of the market the order was made in
|
1775
1775
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
@@ -1794,7 +1794,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1794
1794
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
1795
1795
|
"""
|
1796
1796
|
cancel multiple orders
|
1797
|
-
see https://docs.kraken.com/rest/#tag/Trading/operation/cancelOrderBatch
|
1797
|
+
:see: https://docs.kraken.com/rest/#tag/Trading/operation/cancelOrderBatch
|
1798
1798
|
:param str[] ids: open orders transaction ID(txid) or user reference(userref)
|
1799
1799
|
:param str symbol: unified market symbol
|
1800
1800
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
@@ -1817,7 +1817,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
1817
1817
|
async def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1818
1818
|
"""
|
1819
1819
|
cancel all open orders
|
1820
|
-
see https://docs.kraken.com/rest/#tag/Trading/operation/cancelAllOrders
|
1820
|
+
:see: https://docs.kraken.com/rest/#tag/Trading/operation/cancelAllOrders
|
1821
1821
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1822
1822
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
1823
1823
|
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1827,9 +1827,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1827
1827
|
|
1828
1828
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1829
1829
|
"""
|
1830
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
1830
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
1831
1831
|
fetch all unfilled currently open orders
|
1832
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
1832
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
1833
1833
|
:param str symbol: unified market symbol
|
1834
1834
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1835
1835
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1855,9 +1855,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1855
1855
|
|
1856
1856
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1857
1857
|
"""
|
1858
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
1858
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
1859
1859
|
fetches information on multiple closed orders made by the user
|
1860
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
1860
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
1861
1861
|
:param str symbol: unified market symbol of the market orders were made in
|
1862
1862
|
:param int [since]: the earliest time in ms to fetch orders for
|
1863
1863
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2047,9 +2047,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2047
2047
|
|
2048
2048
|
async def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2049
2049
|
"""
|
2050
|
-
see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
2050
|
+
:see: https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
2051
2051
|
fetch all deposits made to an account
|
2052
|
-
see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
2052
|
+
:see: https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
2053
2053
|
:param str code: unified currency code
|
2054
2054
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2055
2055
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2083,7 +2083,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2083
2083
|
async def fetch_time(self, params={}):
|
2084
2084
|
"""
|
2085
2085
|
fetches the current integer timestamp in milliseconds from the exchange server
|
2086
|
-
see https://docs.kraken.com/rest/#tag/Market-Data/operation/getServerTime
|
2086
|
+
:see: https://docs.kraken.com/rest/#tag/Market-Data/operation/getServerTime
|
2087
2087
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
2088
2088
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
2089
2089
|
"""
|
@@ -2104,7 +2104,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2104
2104
|
async def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2105
2105
|
"""
|
2106
2106
|
fetch all withdrawals made from an account
|
2107
|
-
see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentWithdrawals
|
2107
|
+
:see: https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentWithdrawals
|
2108
2108
|
:param str code: unified currency code
|
2109
2109
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2110
2110
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2138,7 +2138,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2138
2138
|
async def create_deposit_address(self, code: str, params={}):
|
2139
2139
|
"""
|
2140
2140
|
create a currency deposit address
|
2141
|
-
see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
2141
|
+
:see: https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
2142
2142
|
:param str code: unified currency code of the currency for the deposit address
|
2143
2143
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
2144
2144
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -2183,7 +2183,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2183
2183
|
async def fetch_deposit_address(self, code: str, params={}):
|
2184
2184
|
"""
|
2185
2185
|
fetch the deposit address for a currency associated with self account
|
2186
|
-
see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
2186
|
+
:see: https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
2187
2187
|
:param str code: unified currency code
|
2188
2188
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
2189
2189
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -2256,7 +2256,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2256
2256
|
async def withdraw(self, code: str, amount, address, tag=None, params={}):
|
2257
2257
|
"""
|
2258
2258
|
make a withdrawal
|
2259
|
-
see https://docs.kraken.com/rest/#tag/Funding/operation/withdrawFunds
|
2259
|
+
:see: https://docs.kraken.com/rest/#tag/Funding/operation/withdrawFunds
|
2260
2260
|
:param str code: unified currency code
|
2261
2261
|
:param float amount: the amount to withdraw
|
2262
2262
|
:param str address: the address to withdraw to
|
@@ -2290,7 +2290,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2290
2290
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
2291
2291
|
"""
|
2292
2292
|
fetch all open positions
|
2293
|
-
see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenPositions
|
2293
|
+
:see: https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenPositions
|
2294
2294
|
:param str[]|None symbols: not used by kraken fetchPositions()
|
2295
2295
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
2296
2296
|
:returns dict[]: a list of `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -2362,7 +2362,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2362
2362
|
async def transfer_out(self, code: str, amount, params={}):
|
2363
2363
|
"""
|
2364
2364
|
transfer from spot wallet to futures wallet
|
2365
|
-
see https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
2365
|
+
:see: https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
2366
2366
|
:param str code: Unified currency code
|
2367
2367
|
:param float amount: Size of the transfer
|
2368
2368
|
:param dict [params]: Exchange specific parameters
|
@@ -2372,7 +2372,7 @@ class kraken(Exchange, ImplicitAPI):
|
|
2372
2372
|
|
2373
2373
|
async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
2374
2374
|
"""
|
2375
|
-
see https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
2375
|
+
:see: https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
2376
2376
|
transfers currencies between sub-accounts(only spot->swap direction is supported)
|
2377
2377
|
:param str code: Unified currency code
|
2378
2378
|
:param float amount: Size of the transfer
|
@@ -247,7 +247,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
247
247
|
async def fetch_markets(self, params={}):
|
248
248
|
"""
|
249
249
|
Fetches the available trading markets from the exchange, Multi-collateral markets are returned markets, but can be settled in multiple currencies
|
250
|
-
see https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
|
250
|
+
:see: https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
|
251
251
|
:param dict [params]: exchange specific params
|
252
252
|
:returns: An array of market structures
|
253
253
|
"""
|
@@ -564,7 +564,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
564
564
|
|
565
565
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
566
566
|
"""
|
567
|
-
see https://docs.futures.kraken.com/#http-api-charts-candles
|
567
|
+
:see: https://docs.futures.kraken.com/#http-api-charts-candles
|
568
568
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
569
569
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
570
570
|
:param str timeframe: the length of time each candle represents
|
@@ -1291,6 +1291,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1291
1291
|
'type': self.parse_order_type(type),
|
1292
1292
|
'timeInForce': timeInForce,
|
1293
1293
|
'postOnly': type == 'post',
|
1294
|
+
'reduceOnly': self.safe_value(details, 'reduceOnly'),
|
1294
1295
|
'side': self.safe_string(details, 'side'),
|
1295
1296
|
'price': price,
|
1296
1297
|
'stopPrice': self.safe_string(details, 'triggerPrice'),
|
@@ -1547,7 +1548,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1547
1548
|
|
1548
1549
|
async def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
1549
1550
|
"""
|
1550
|
-
see https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
|
1551
|
+
:see: https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
|
1551
1552
|
fetch the current funding rates
|
1552
1553
|
:param str[] symbols: unified market symbols
|
1553
1554
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
@@ -1965,7 +1966,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1965
1966
|
async def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
1966
1967
|
"""
|
1967
1968
|
set the level of leverage for a market
|
1968
|
-
see https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-set-the-leverage-setting-for-a-market
|
1969
|
+
:see: https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-set-the-leverage-setting-for-a-market
|
1969
1970
|
:param float leverage: the rate of leverage
|
1970
1971
|
:param str symbol: unified market symbol
|
1971
1972
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
@@ -1985,7 +1986,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1985
1986
|
async def fetch_leverage(self, symbol: Optional[str] = None, params={}):
|
1986
1987
|
"""
|
1987
1988
|
fetch the set leverage for a market
|
1988
|
-
see https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
|
1989
|
+
:see: https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
|
1989
1990
|
:param str symbol: unified market symbol
|
1990
1991
|
:param dict [params]: extra parameters specific to the krakenfutures api endpoint
|
1991
1992
|
:returns dict: a `leverage structure <https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure>`
|