ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__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/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +145 -79
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/async_support/indodax.py
CHANGED
@@ -220,7 +220,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
220
220
|
async def fetch_time(self, params={}):
|
221
221
|
"""
|
222
222
|
fetches the current integer timestamp in milliseconds from the exchange server
|
223
|
-
|
223
|
+
|
224
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#server-time
|
225
|
+
|
224
226
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
225
227
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
226
228
|
"""
|
@@ -236,7 +238,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
236
238
|
async def fetch_markets(self, params={}) -> List[Market]:
|
237
239
|
"""
|
238
240
|
retrieves data on all markets for indodax
|
239
|
-
|
241
|
+
|
242
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#pairs
|
243
|
+
|
240
244
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
241
245
|
:returns dict[]: an array of objects representing market data
|
242
246
|
"""
|
@@ -353,7 +357,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
353
357
|
async def fetch_balance(self, params={}) -> Balances:
|
354
358
|
"""
|
355
359
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
356
|
-
|
360
|
+
|
361
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
|
362
|
+
|
357
363
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
358
364
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
359
365
|
"""
|
@@ -394,7 +400,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
394
400
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
395
401
|
"""
|
396
402
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
397
|
-
|
403
|
+
|
404
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#depth
|
405
|
+
|
398
406
|
:param str symbol: unified symbol of the market to fetch the order book for
|
399
407
|
:param int [limit]: the maximum amount of order book entries to return
|
400
408
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -452,7 +460,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
452
460
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
453
461
|
"""
|
454
462
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
455
|
-
|
463
|
+
|
464
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
|
465
|
+
|
456
466
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
457
467
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
458
468
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -483,7 +493,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
483
493
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
484
494
|
"""
|
485
495
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
486
|
-
|
496
|
+
|
497
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
498
|
+
|
487
499
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
488
500
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
489
501
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -530,7 +542,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
530
542
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
531
543
|
"""
|
532
544
|
get the list of most recent trades for a particular symbol
|
533
|
-
|
545
|
+
|
546
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#trades
|
547
|
+
|
534
548
|
:param str symbol: unified symbol of the market to fetch trades for
|
535
549
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
536
550
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -714,7 +728,10 @@ class indodax(Exchange, ImplicitAPI):
|
|
714
728
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
715
729
|
"""
|
716
730
|
fetches information on an order made by the user
|
717
|
-
|
731
|
+
|
732
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-order-endpoints
|
733
|
+
|
734
|
+
:param str id: order id
|
718
735
|
:param str symbol: unified symbol of the market the order was made in
|
719
736
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
720
737
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -736,7 +753,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
736
753
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
737
754
|
"""
|
738
755
|
fetch all unfilled currently open orders
|
739
|
-
|
756
|
+
|
757
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#open-orders-endpoints
|
758
|
+
|
740
759
|
:param str symbol: unified market symbol
|
741
760
|
:param int [since]: the earliest time in ms to fetch open orders for
|
742
761
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -771,7 +790,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
771
790
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
772
791
|
"""
|
773
792
|
fetches information on multiple closed orders made by the user
|
774
|
-
|
793
|
+
|
794
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#order-history
|
795
|
+
|
775
796
|
:param str symbol: unified market symbol of the market orders were made in
|
776
797
|
:param int [since]: the earliest time in ms to fetch orders for
|
777
798
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -793,7 +814,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
793
814
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
794
815
|
"""
|
795
816
|
create a trade order
|
796
|
-
|
817
|
+
|
818
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#trade-endpoints
|
819
|
+
|
797
820
|
:param str symbol: unified symbol of the market to create an order in
|
798
821
|
:param str type: 'market' or 'limit'
|
799
822
|
:param str side: 'buy' or 'sell'
|
@@ -850,7 +873,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
850
873
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
851
874
|
"""
|
852
875
|
cancels an open order
|
853
|
-
|
876
|
+
|
877
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#cancel-order-endpoints
|
878
|
+
|
854
879
|
:param str id: order id
|
855
880
|
:param str symbol: unified symbol of the market the order was made in
|
856
881
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -894,7 +919,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
894
919
|
async def fetch_transaction_fee(self, code: str, params={}):
|
895
920
|
"""
|
896
921
|
fetch the fee for a transaction
|
897
|
-
|
922
|
+
|
923
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
|
924
|
+
|
898
925
|
:param str code: unified currency code
|
899
926
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
900
927
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -926,7 +953,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
926
953
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
927
954
|
"""
|
928
955
|
fetch history of deposits and withdrawals
|
929
|
-
|
956
|
+
|
957
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#transaction-history-endpoints
|
958
|
+
|
930
959
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
931
960
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
932
961
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1021,7 +1050,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
1021
1050
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1022
1051
|
"""
|
1023
1052
|
make a withdrawal
|
1024
|
-
|
1053
|
+
|
1054
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-coin-endpoints
|
1055
|
+
|
1025
1056
|
:param str code: unified currency code
|
1026
1057
|
:param float amount: the amount to withdraw
|
1027
1058
|
:param str address: the address to withdraw to
|
@@ -1151,7 +1182,9 @@ class indodax(Exchange, ImplicitAPI):
|
|
1151
1182
|
async def fetch_deposit_addresses(self, codes: Strings = None, params={}) -> List[DepositAddress]:
|
1152
1183
|
"""
|
1153
1184
|
fetch deposit addresses for multiple currencies and chain types
|
1154
|
-
|
1185
|
+
|
1186
|
+
https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
|
1187
|
+
|
1155
1188
|
:param str[] [codes]: list of unified currency codes, default is None
|
1156
1189
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1157
1190
|
:returns dict: a list of `address structures <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1253,11 +1286,15 @@ class indodax(Exchange, ImplicitAPI):
|
|
1253
1286
|
# {success: 0, error: "invalid order."}
|
1254
1287
|
# or
|
1255
1288
|
# [{data, ...}, {...}, ...]
|
1289
|
+
# {"success":"1","status":"approved","withdraw_currency":"strm","withdraw_address":"0x2b9A8cd5535D99b419aEfFBF1ae8D90a7eBdb24E","withdraw_amount":"2165.05767839","fee":"21.11000000","amount_after_fee":"2143.94767839","submit_time":"1730759489","withdraw_id":"strm-3423","txid":""}
|
1256
1290
|
if isinstance(response, list):
|
1257
1291
|
return None # public endpoints may return []-arrays
|
1258
1292
|
error = self.safe_value(response, 'error', '')
|
1259
1293
|
if not ('success' in response) and error == '':
|
1260
1294
|
return None # no 'success' property on public responses
|
1295
|
+
status = self.safe_string(response, 'success')
|
1296
|
+
if status == 'approved':
|
1297
|
+
return None
|
1261
1298
|
if self.safe_integer(response, 'success', 0) == 1:
|
1262
1299
|
# {success: 1, return: {orders: []}}
|
1263
1300
|
if not ('return' in response):
|
ccxt/async_support/kraken.py
CHANGED
@@ -480,7 +480,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
480
480
|
async def fetch_markets(self, params={}) -> List[Market]:
|
481
481
|
"""
|
482
482
|
retrieves data on all markets for kraken
|
483
|
-
|
483
|
+
|
484
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getTradableAssetPairs
|
485
|
+
|
484
486
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
485
487
|
:returns dict[]: an array of objects representing market data
|
486
488
|
"""
|
@@ -658,7 +660,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
658
660
|
async def fetch_status(self, params={}):
|
659
661
|
"""
|
660
662
|
the latest known information on the availability of the exchange API
|
661
|
-
|
663
|
+
|
664
|
+
https://docs.kraken.com/api/docs/rest-api/get-system-status/
|
665
|
+
|
662
666
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
663
667
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
664
668
|
"""
|
@@ -682,7 +686,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
682
686
|
async def fetch_currencies(self, params={}) -> Currencies:
|
683
687
|
"""
|
684
688
|
fetches all available currencies on an exchange
|
685
|
-
|
689
|
+
|
690
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getAssetInfo
|
691
|
+
|
686
692
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
687
693
|
:returns dict: an associative dictionary of currencies
|
688
694
|
"""
|
@@ -743,7 +749,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
743
749
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
744
750
|
"""
|
745
751
|
fetch the trading fees for a market
|
746
|
-
|
752
|
+
|
753
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
|
754
|
+
|
747
755
|
:param str symbol: unified market symbol
|
748
756
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
749
757
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -810,7 +818,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
810
818
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
811
819
|
"""
|
812
820
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
813
|
-
|
821
|
+
|
822
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getOrderBook
|
823
|
+
|
814
824
|
:param str symbol: unified symbol of the market to fetch the order book for
|
815
825
|
:param int [limit]: the maximum amount of order book entries to return
|
816
826
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -907,7 +917,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
907
917
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
908
918
|
"""
|
909
919
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
910
|
-
|
920
|
+
|
921
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getTickerInformation
|
922
|
+
|
911
923
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
912
924
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
913
925
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -938,7 +950,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
938
950
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
939
951
|
"""
|
940
952
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
941
|
-
|
953
|
+
|
954
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getTickerInformation
|
955
|
+
|
942
956
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
943
957
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
944
958
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -980,7 +994,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
980
994
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
981
995
|
"""
|
982
996
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
983
|
-
|
997
|
+
|
998
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getOHLCData
|
999
|
+
|
984
1000
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
985
1001
|
:param str timeframe: the length of time each candle represents
|
986
1002
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1091,7 +1107,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1091
1107
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
1092
1108
|
"""
|
1093
1109
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
1094
|
-
|
1110
|
+
|
1111
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
1112
|
+
|
1095
1113
|
:param str [code]: unified currency code, default is None
|
1096
1114
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1097
1115
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -1286,7 +1304,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1286
1304
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1287
1305
|
"""
|
1288
1306
|
get the list of most recent trades for a particular symbol
|
1289
|
-
|
1307
|
+
|
1308
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getRecentTrades
|
1309
|
+
|
1290
1310
|
:param str symbol: unified symbol of the market to fetch trades for
|
1291
1311
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1292
1312
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1350,7 +1370,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1350
1370
|
async def fetch_balance(self, params={}) -> Balances:
|
1351
1371
|
"""
|
1352
1372
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1353
|
-
|
1373
|
+
|
1374
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getExtendedBalance
|
1375
|
+
|
1354
1376
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1355
1377
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1356
1378
|
"""
|
@@ -1376,7 +1398,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1376
1398
|
async def create_market_order_with_cost(self, symbol: str, side: OrderSide, cost: float, params={}):
|
1377
1399
|
"""
|
1378
1400
|
create a market order by providing the symbol, side and cost
|
1379
|
-
|
1401
|
+
|
1402
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/addOrder
|
1403
|
+
|
1380
1404
|
:param str symbol: unified symbol of the market to create an order in(only USD markets are supported)
|
1381
1405
|
:param str side: 'buy' or 'sell'
|
1382
1406
|
:param float cost: how much you want to trade in units of the quote currency
|
@@ -1391,7 +1415,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1391
1415
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
1392
1416
|
"""
|
1393
1417
|
create a market buy order by providing the symbol, side and cost
|
1394
|
-
|
1418
|
+
|
1419
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/addOrder
|
1420
|
+
|
1395
1421
|
:param str symbol: unified symbol of the market to create an order in
|
1396
1422
|
:param float cost: how much you want to trade in units of the quote currency
|
1397
1423
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1403,7 +1429,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1403
1429
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1404
1430
|
"""
|
1405
1431
|
create a trade order
|
1406
|
-
|
1432
|
+
|
1433
|
+
https://docs.kraken.com/api/docs/rest-api/add-order
|
1434
|
+
|
1407
1435
|
:param str symbol: unified symbol of the market to create an order in
|
1408
1436
|
:param str type: 'market' or 'limit'
|
1409
1437
|
:param str side: 'buy' or 'sell'
|
@@ -1824,7 +1852,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1824
1852
|
async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
1825
1853
|
"""
|
1826
1854
|
edit a trade order
|
1827
|
-
|
1855
|
+
|
1856
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/editOrder
|
1857
|
+
|
1828
1858
|
:param str id: order id
|
1829
1859
|
:param str symbol: unified symbol of the market to create an order in
|
1830
1860
|
:param str type: 'market' or 'limit'
|
@@ -1874,7 +1904,10 @@ class kraken(Exchange, ImplicitAPI):
|
|
1874
1904
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1875
1905
|
"""
|
1876
1906
|
fetches information on an order made by the user
|
1877
|
-
|
1907
|
+
|
1908
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getOrdersInfo
|
1909
|
+
|
1910
|
+
:param str id: order id
|
1878
1911
|
:param str symbol: not used by kraken fetchOrder
|
1879
1912
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1880
1913
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1936,7 +1969,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
1936
1969
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1937
1970
|
"""
|
1938
1971
|
fetch all the trades made from a single order
|
1939
|
-
|
1972
|
+
|
1973
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradesInfo
|
1974
|
+
|
1940
1975
|
:param str id: order id
|
1941
1976
|
:param str symbol: unified market symbol
|
1942
1977
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2007,8 +2042,11 @@ class kraken(Exchange, ImplicitAPI):
|
|
2007
2042
|
async def fetch_orders_by_ids(self, ids, symbol: Str = None, params={}):
|
2008
2043
|
"""
|
2009
2044
|
fetch orders by the list of order id
|
2010
|
-
|
2045
|
+
|
2046
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
2047
|
+
|
2011
2048
|
:param str[]|None ids: list of order id
|
2049
|
+
@param symbol
|
2012
2050
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
2013
2051
|
:returns dict[]: a list of `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
2014
2052
|
"""
|
@@ -2030,7 +2068,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2030
2068
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2031
2069
|
"""
|
2032
2070
|
fetch all trades made by the user
|
2033
|
-
|
2071
|
+
|
2072
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeHistory
|
2073
|
+
|
2034
2074
|
:param str symbol: unified market symbol
|
2035
2075
|
:param int [since]: the earliest time in ms to fetch trades for
|
2036
2076
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2095,7 +2135,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2095
2135
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2096
2136
|
"""
|
2097
2137
|
cancels an open order
|
2098
|
-
|
2138
|
+
|
2139
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/cancelOrder
|
2140
|
+
|
2099
2141
|
:param str id: order id
|
2100
2142
|
:param str symbol: unified symbol of the market the order was made in
|
2101
2143
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2130,7 +2172,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2130
2172
|
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
2131
2173
|
"""
|
2132
2174
|
cancel multiple orders
|
2133
|
-
|
2175
|
+
|
2176
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/cancelOrderBatch
|
2177
|
+
|
2134
2178
|
:param str[] ids: open orders transaction ID(txid) or user reference(userref)
|
2135
2179
|
:param str symbol: unified market symbol
|
2136
2180
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2157,7 +2201,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2157
2201
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
2158
2202
|
"""
|
2159
2203
|
cancel all open orders
|
2160
|
-
|
2204
|
+
|
2205
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/cancelAllOrders
|
2206
|
+
|
2161
2207
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
2162
2208
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2163
2209
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2181,7 +2227,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2181
2227
|
async def cancel_all_orders_after(self, timeout: Int, params={}):
|
2182
2228
|
"""
|
2183
2229
|
dead man's switch, cancel all orders after the given timeout
|
2184
|
-
|
2230
|
+
|
2231
|
+
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/cancelAllOrdersAfter
|
2232
|
+
|
2185
2233
|
:param number timeout: time in milliseconds, 0 represents cancel the timer
|
2186
2234
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2187
2235
|
:returns dict: the api result
|
@@ -2207,7 +2255,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2207
2255
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2208
2256
|
"""
|
2209
2257
|
fetch all unfilled currently open orders
|
2210
|
-
|
2258
|
+
|
2259
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
2260
|
+
|
2211
2261
|
:param str symbol: unified market symbol
|
2212
2262
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2213
2263
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2234,7 +2284,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2234
2284
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2235
2285
|
"""
|
2236
2286
|
fetches information on multiple closed orders made by the user
|
2237
|
-
|
2287
|
+
|
2288
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
2289
|
+
|
2238
2290
|
:param str symbol: unified market symbol of the market orders were made in
|
2239
2291
|
:param int [since]: the earliest time in ms to fetch orders for
|
2240
2292
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2433,7 +2485,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2433
2485
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2434
2486
|
"""
|
2435
2487
|
fetch all deposits made to an account
|
2436
|
-
|
2488
|
+
|
2489
|
+
https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
2490
|
+
|
2437
2491
|
:param str code: unified currency code
|
2438
2492
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2439
2493
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2475,7 +2529,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2475
2529
|
async def fetch_time(self, params={}):
|
2476
2530
|
"""
|
2477
2531
|
fetches the current integer timestamp in milliseconds from the exchange server
|
2478
|
-
|
2532
|
+
|
2533
|
+
https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getServerTime
|
2534
|
+
|
2479
2535
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2480
2536
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
2481
2537
|
"""
|
@@ -2496,7 +2552,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2496
2552
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2497
2553
|
"""
|
2498
2554
|
fetch all withdrawals made from an account
|
2499
|
-
|
2555
|
+
|
2556
|
+
https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentWithdrawals
|
2557
|
+
|
2500
2558
|
:param str code: unified currency code
|
2501
2559
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2502
2560
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2584,7 +2642,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2584
2642
|
async def create_deposit_address(self, code: str, params={}):
|
2585
2643
|
"""
|
2586
2644
|
create a currency deposit address
|
2587
|
-
|
2645
|
+
|
2646
|
+
https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
2647
|
+
|
2588
2648
|
:param str code: unified currency code of the currency for the deposit address
|
2589
2649
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2590
2650
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2597,7 +2657,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2597
2657
|
async def fetch_deposit_methods(self, code: str, params={}):
|
2598
2658
|
"""
|
2599
2659
|
fetch deposit methods for a currency associated with self account
|
2600
|
-
|
2660
|
+
|
2661
|
+
https://docs.kraken.com/rest/#tag/Funding/operation/getDepositMethods
|
2662
|
+
|
2601
2663
|
:param str code: unified currency code
|
2602
2664
|
:param dict [params]: extra parameters specific to the kraken api endpoint
|
2603
2665
|
:returns dict: of deposit methods
|
@@ -2636,7 +2698,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2636
2698
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
2637
2699
|
"""
|
2638
2700
|
fetch the deposit address for a currency associated with self account
|
2639
|
-
|
2701
|
+
|
2702
|
+
https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
2703
|
+
|
2640
2704
|
:param str code: unified currency code
|
2641
2705
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2642
2706
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2709,7 +2773,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2709
2773
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2710
2774
|
"""
|
2711
2775
|
make a withdrawal
|
2712
|
-
|
2776
|
+
|
2777
|
+
https://docs.kraken.com/rest/#tag/Funding/operation/withdrawFunds
|
2778
|
+
|
2713
2779
|
:param str code: unified currency code
|
2714
2780
|
:param float amount: the amount to withdraw
|
2715
2781
|
:param str address: the address to withdraw to
|
@@ -2743,7 +2809,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2743
2809
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
2744
2810
|
"""
|
2745
2811
|
fetch all open positions
|
2746
|
-
|
2812
|
+
|
2813
|
+
https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenPositions
|
2814
|
+
|
2747
2815
|
:param str[] [symbols]: not used by kraken fetchPositions()
|
2748
2816
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2749
2817
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2864,7 +2932,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2864
2932
|
async def transfer_out(self, code: str, amount, params={}):
|
2865
2933
|
"""
|
2866
2934
|
transfer from spot wallet to futures wallet
|
2867
|
-
|
2935
|
+
|
2936
|
+
https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
2937
|
+
|
2868
2938
|
:param str code: Unified currency code
|
2869
2939
|
:param float amount: Size of the transfer
|
2870
2940
|
:param dict [params]: Exchange specific parameters
|
@@ -2874,7 +2944,9 @@ class kraken(Exchange, ImplicitAPI):
|
|
2874
2944
|
|
2875
2945
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2876
2946
|
"""
|
2877
|
-
|
2947
|
+
|
2948
|
+
https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
2949
|
+
|
2878
2950
|
transfers currencies between sub-accounts(only spot->swap direction is supported)
|
2879
2951
|
:param str code: Unified currency code
|
2880
2952
|
:param float amount: Size of the transfer
|