ccxt 4.4.29__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/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- 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 +564 -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 +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- 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 +198 -132
- 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 +138 -53
- 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 +203 -42
- 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 +90 -39
- 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 +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- 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 +138 -53
- 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 +203 -42
- 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 +90 -39
- 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 +38 -13
- 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/test/tests_helpers.py +2 -2
- 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.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/kuna.py
CHANGED
@@ -411,7 +411,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
411
411
|
def fetch_time(self, params={}):
|
412
412
|
"""
|
413
413
|
fetches the current integer timestamp in milliseconds from the exchange server
|
414
|
-
|
414
|
+
|
415
|
+
https://docs.kuna.io/docs/get-time-on-the-server
|
416
|
+
|
415
417
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
416
418
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
417
419
|
"""
|
@@ -430,7 +432,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
430
432
|
def fetch_currencies(self, params={}) -> Currencies:
|
431
433
|
"""
|
432
434
|
fetches all available currencies on an exchange
|
433
|
-
|
435
|
+
|
436
|
+
https://docs.kuna.io/docs/get-information-about-available-currencies
|
437
|
+
|
434
438
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
435
439
|
:returns dict: an associative dictionary of currencies
|
436
440
|
"""
|
@@ -514,7 +518,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
514
518
|
def fetch_markets(self, params={}) -> List[Market]:
|
515
519
|
"""
|
516
520
|
retrieves data on all markets for kuna
|
517
|
-
|
521
|
+
|
522
|
+
https://docs.kuna.io/docs/get-all-traded-markets
|
523
|
+
|
518
524
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
519
525
|
:returns dict[]: an array of objects representing market data
|
520
526
|
"""
|
@@ -604,7 +610,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
604
610
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
605
611
|
"""
|
606
612
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
607
|
-
|
613
|
+
|
614
|
+
https://docs.kuna.io/docs/get-public-orders-book
|
615
|
+
|
608
616
|
:param str symbol: unified symbol of the market to fetch the order book for
|
609
617
|
:param int [limit]: 5, 10, 20, 50, 100, 500, or 1000(default)
|
610
618
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -688,7 +696,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
688
696
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
689
697
|
"""
|
690
698
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market. The average is not returned in the response, but the median can be accessed via response['info']['price']
|
691
|
-
|
699
|
+
|
700
|
+
https://docs.kuna.io/docs/get-market-info-by-tickers
|
701
|
+
|
692
702
|
:param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
693
703
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
694
704
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -728,7 +738,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
728
738
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
729
739
|
"""
|
730
740
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
731
|
-
|
741
|
+
|
742
|
+
https://docs.kuna.io/docs/get-market-info-by-tickers
|
743
|
+
|
732
744
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
733
745
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
734
746
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -765,7 +777,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
765
777
|
|
766
778
|
def fetch_l3_order_book(self, symbol: str, limit: Int = None, params={}):
|
767
779
|
"""
|
768
|
-
|
780
|
+
TODO: double check
|
769
781
|
fetches level 3 information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
770
782
|
:param str symbol: unified market symbol
|
771
783
|
:param int [limit]: max number of orders to return, default is None
|
@@ -777,7 +789,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
777
789
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
778
790
|
"""
|
779
791
|
get the list of most recent trades for a particular symbol
|
780
|
-
|
792
|
+
|
793
|
+
https://docs.kuna.io/docs/get-public-trades-book
|
794
|
+
|
781
795
|
:param str symbol: unified symbol of the market to fetch trades for
|
782
796
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
783
797
|
:param int [limit]: between 1 and 100, 25 by default
|
@@ -912,7 +926,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
912
926
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
913
927
|
"""
|
914
928
|
create a trade order
|
915
|
-
|
929
|
+
|
930
|
+
https://docs.kuna.io/docs/create-a-new-order-private
|
931
|
+
|
916
932
|
:param str symbol: unified symbol of the market to create an order in
|
917
933
|
:param str type: 'market' or 'limit'
|
918
934
|
:param str side: 'buy' or 'sell'
|
@@ -920,8 +936,8 @@ class kuna(Exchange, ImplicitAPI):
|
|
920
936
|
:param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
921
937
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
922
938
|
:param float [params.triggerPrice]: the price at which a trigger order is triggered at
|
923
|
-
|
924
|
-
|
939
|
+
|
940
|
+
EXCHANGE SPECIFIC PARAMETERS
|
925
941
|
:param str [params.id]: id must be a UUID format, if you do not specify id, it will be generated automatically.
|
926
942
|
:param float [params.quoteQuantity]: the max quantity of the quote asset to use for selling/buying
|
927
943
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1110,11 +1126,14 @@ class kuna(Exchange, ImplicitAPI):
|
|
1110
1126
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1111
1127
|
"""
|
1112
1128
|
fetches information on an order made by the user
|
1113
|
-
|
1129
|
+
|
1130
|
+
https://docs.kuna.io/docs/get-order-details-by-id
|
1131
|
+
|
1132
|
+
:param str id: order id
|
1114
1133
|
:param str symbol: not used by kuna fetchOrder
|
1115
1134
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1116
|
-
|
1117
|
-
|
1135
|
+
|
1136
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1118
1137
|
:param boolean [params.withTrades]: default is True, specify if the response should include trades associated with the order
|
1119
1138
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1120
1139
|
"""
|
@@ -1164,14 +1183,16 @@ class kuna(Exchange, ImplicitAPI):
|
|
1164
1183
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1165
1184
|
"""
|
1166
1185
|
fetch all unfilled currently open orders
|
1167
|
-
|
1186
|
+
|
1187
|
+
https://docs.kuna.io/docs/get-active-client-orders-private
|
1188
|
+
|
1168
1189
|
:param str symbol: unified market symbol
|
1169
1190
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1170
1191
|
:param int [limit]: 1-100, the maximum number of open orders structures to retrieve
|
1171
1192
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1172
1193
|
:param int [params.until]: the latest timestamp(ms) to fetch orders for
|
1173
|
-
|
1174
|
-
|
1194
|
+
|
1195
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1175
1196
|
:param str [params.sort]: asc(oldest-on-top) or desc(newest-on-top)
|
1176
1197
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1177
1198
|
"""
|
@@ -1218,14 +1239,16 @@ class kuna(Exchange, ImplicitAPI):
|
|
1218
1239
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1219
1240
|
"""
|
1220
1241
|
fetches information on multiple closed orders made by the user
|
1221
|
-
|
1242
|
+
|
1243
|
+
https://docs.kuna.io/docs/get-private-orders-history
|
1244
|
+
|
1222
1245
|
:param str symbol: unified market symbol of the market orders were made in
|
1223
1246
|
:param int [since]: the earliest time in ms to fetch orders for
|
1224
1247
|
:param int [limit]: the maximum number of order structures to retrieve
|
1225
1248
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1226
1249
|
:param int [params.until]: the latest time in ms to fetch orders for
|
1227
|
-
|
1228
|
-
|
1250
|
+
|
1251
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1229
1252
|
:param str [params.sort]: asc(oldest-on-top) or desc(newest-on-top)
|
1230
1253
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1231
1254
|
"""
|
@@ -1234,15 +1257,17 @@ class kuna(Exchange, ImplicitAPI):
|
|
1234
1257
|
def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1235
1258
|
"""
|
1236
1259
|
fetch a list of orders
|
1237
|
-
|
1260
|
+
|
1261
|
+
https://docs.kuna.io/docs/get-private-orders-history
|
1262
|
+
|
1238
1263
|
:param str status: canceled, closed, expired, open, pending, rejected, or waitStop
|
1239
1264
|
:param str symbol: unified market symbol of the market orders were made in
|
1240
1265
|
:param int [since]: the earliest time in ms to fetch orders for
|
1241
1266
|
:param int [limit]: 1-100, the maximum number of open orders structures to retrieve
|
1242
1267
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1243
1268
|
:param int [params.until]: the latest timestamp(ms) to fetch orders for
|
1244
|
-
|
1245
|
-
|
1269
|
+
|
1270
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1246
1271
|
:param str [params.sort]: asc(oldest-on-top) or desc(newest-on-top)
|
1247
1272
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1248
1273
|
"""
|
@@ -1293,13 +1318,15 @@ class kuna(Exchange, ImplicitAPI):
|
|
1293
1318
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1294
1319
|
"""
|
1295
1320
|
fetch all trades made by the user
|
1296
|
-
|
1321
|
+
|
1322
|
+
https://docs.kuna.io/docs/get-private-trades-history
|
1323
|
+
|
1297
1324
|
:param str symbol: unified market symbol
|
1298
1325
|
:param int [since]: not used by kuna fetchMyTrades
|
1299
1326
|
:param int [limit]: not used by kuna fetchMyTrades
|
1300
1327
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1301
|
-
|
1302
|
-
|
1328
|
+
|
1329
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1303
1330
|
:param str [params.orderId]: UUID of an order, to receive trades for self order only
|
1304
1331
|
:param str [params.sort]: asc(oldest-on-top) or desc(newest-on-top)
|
1305
1332
|
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
@@ -1336,15 +1363,17 @@ class kuna(Exchange, ImplicitAPI):
|
|
1336
1363
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1337
1364
|
"""
|
1338
1365
|
make a withdrawal
|
1339
|
-
|
1366
|
+
|
1367
|
+
https://docs.kuna.io/docs/create-a-withdraw
|
1368
|
+
|
1340
1369
|
:param str code: unified currency code
|
1341
1370
|
:param float amount: the amount to withdraw
|
1342
1371
|
:param str address: the address to withdraw to
|
1343
1372
|
:param str tag:
|
1344
1373
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1345
1374
|
:param str [params.chain]: the chain to withdraw to
|
1346
|
-
|
1347
|
-
|
1375
|
+
|
1376
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1348
1377
|
:param str [params.id]: id must be a uuid format, if you do not specify id, it will be generated automatically
|
1349
1378
|
:param boolean [params.withdrawAll]: self field says that the amount should also include a fee
|
1350
1379
|
:returns dict: a `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
|
@@ -1383,14 +1412,16 @@ class kuna(Exchange, ImplicitAPI):
|
|
1383
1412
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1384
1413
|
"""
|
1385
1414
|
fetch all withdrawals made to an account
|
1386
|
-
|
1415
|
+
|
1416
|
+
https://docs.kuna.io/docs/get-withdraw-history
|
1417
|
+
|
1387
1418
|
:param str code: unified currency code
|
1388
1419
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1389
1420
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
1390
1421
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1391
1422
|
:param int [params.until]: the latest time in ms to fetch deposits for
|
1392
|
-
|
1393
|
-
|
1423
|
+
|
1424
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1394
1425
|
:param str [params.status]: Created, Canceled, PartiallyProcessed, Processing, Processed, WaitForConfirmation, Pending, AmlChecking
|
1395
1426
|
:param str [params.sortField]: amount(sorting by time), createdAt(sorting by date)
|
1396
1427
|
:param str [params.sortOrder]: asc(oldest-on-top), or desc(newest-on-top, default)
|
@@ -1444,7 +1475,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
1444
1475
|
def fetch_withdrawal(self, id: str, code: Str = None, params={}):
|
1445
1476
|
"""
|
1446
1477
|
fetch data on a currency withdrawal via the withdrawal id
|
1447
|
-
|
1478
|
+
|
1479
|
+
https://docs.kuna.io/docs/get-withdraw-details-by-id
|
1480
|
+
|
1448
1481
|
:param str id: withdrawal id
|
1449
1482
|
:param str code: not used by kuna.fetchWithdrawal
|
1450
1483
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1482,7 +1515,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
1482
1515
|
def create_deposit_address(self, code: str, params={}):
|
1483
1516
|
"""
|
1484
1517
|
create a currency deposit address
|
1485
|
-
|
1518
|
+
|
1519
|
+
https://docs.kuna.io/docs/generate-a-constant-crypto-address-for-deposit
|
1520
|
+
|
1486
1521
|
:param str code: unified currency code of the currency for the deposit address
|
1487
1522
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1488
1523
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1508,7 +1543,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
1508
1543
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1509
1544
|
"""
|
1510
1545
|
fetch the deposit address for a currency associated with self account
|
1511
|
-
|
1546
|
+
|
1547
|
+
https://docs.kuna.io/docs/find-crypto-address-for-deposit
|
1548
|
+
|
1512
1549
|
:param str code: unified currency code
|
1513
1550
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1514
1551
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1564,14 +1601,16 @@ class kuna(Exchange, ImplicitAPI):
|
|
1564
1601
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1565
1602
|
"""
|
1566
1603
|
fetch all deposits made to an account
|
1567
|
-
|
1604
|
+
|
1605
|
+
https://docs.kuna.io/docs/get-deposit-history
|
1606
|
+
|
1568
1607
|
:param str code: unified currency code
|
1569
1608
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1570
1609
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
1571
1610
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1572
1611
|
:param int [params.until]: the latest time in ms to fetch deposits for
|
1573
|
-
|
1574
|
-
|
1612
|
+
|
1613
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1575
1614
|
:param str [params.status]: Created, Canceled, PartiallyProcessed, Processing, Processed, WaitForConfirmation, Pending, AmlChecking
|
1576
1615
|
:param str [params.sortField]: amount(sorting by time), createdAt(sorting by date)
|
1577
1616
|
:param str [params.sortOrder]: asc(oldest-on-top), or desc(newest-on-top, default)
|
@@ -1625,7 +1664,9 @@ class kuna(Exchange, ImplicitAPI):
|
|
1625
1664
|
def fetch_deposit(self, id: str, code: Str = None, params={}):
|
1626
1665
|
"""
|
1627
1666
|
fetch data on a currency deposit via the deposit id
|
1628
|
-
|
1667
|
+
|
1668
|
+
https://docs.kuna.io/docs/get-deposit-details-by-id
|
1669
|
+
|
1629
1670
|
:param str id: deposit id
|
1630
1671
|
:param str code: filter by currency code
|
1631
1672
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/latoken.py
CHANGED
@@ -256,7 +256,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
256
256
|
def fetch_time(self, params={}):
|
257
257
|
"""
|
258
258
|
fetches the current integer timestamp in milliseconds from the exchange server
|
259
|
-
|
259
|
+
|
260
|
+
https://api.latoken.com/doc/v2/#tag/Time/operation/currentTime
|
261
|
+
|
260
262
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
261
263
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
262
264
|
"""
|
@@ -271,7 +273,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
271
273
|
def fetch_markets(self, params={}) -> List[Market]:
|
272
274
|
"""
|
273
275
|
retrieves data on all markets for latoken
|
274
|
-
|
276
|
+
|
277
|
+
https://api.latoken.com/doc/v2/#tag/Pair/operation/getActivePairs
|
278
|
+
|
275
279
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
276
280
|
:returns dict[]: an array of objects representing market data
|
277
281
|
"""
|
@@ -497,7 +501,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
497
501
|
def fetch_balance(self, params={}) -> Balances:
|
498
502
|
"""
|
499
503
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
500
|
-
|
504
|
+
|
505
|
+
https://api.latoken.com/doc/v2/#tag/Account/operation/getBalancesByUser
|
506
|
+
|
501
507
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
502
508
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
503
509
|
"""
|
@@ -558,7 +564,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
558
564
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
559
565
|
"""
|
560
566
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
561
|
-
|
567
|
+
|
568
|
+
https://api.latoken.com/doc/v2/#tag/Order-Book/operation/getOrderBook
|
569
|
+
|
562
570
|
:param str symbol: unified symbol of the market to fetch the order book for
|
563
571
|
:param int [limit]: the maximum amount of order book entries to return
|
564
572
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -641,7 +649,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
641
649
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
642
650
|
"""
|
643
651
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
644
|
-
|
652
|
+
|
653
|
+
https://api.latoken.com/doc/v2/#tag/Ticker/operation/getTicker
|
654
|
+
|
645
655
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
646
656
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
647
657
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -678,7 +688,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
678
688
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
679
689
|
"""
|
680
690
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
681
|
-
|
691
|
+
|
692
|
+
https://api.latoken.com/doc/v2/#tag/Ticker/operation/getAllTickers
|
693
|
+
|
682
694
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
683
695
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
684
696
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -793,7 +805,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
793
805
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
794
806
|
"""
|
795
807
|
get the list of most recent trades for a particular symbol
|
796
|
-
|
808
|
+
|
809
|
+
https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByPair
|
810
|
+
|
797
811
|
:param str symbol: unified symbol of the market to fetch trades for
|
798
812
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
799
813
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -823,8 +837,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
823
837
|
def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
824
838
|
"""
|
825
839
|
fetch the trading fees for a market
|
826
|
-
|
827
|
-
|
840
|
+
|
841
|
+
https://api.latoken.com/doc/v2/#tag/Trade/operation/getFeeByPair
|
842
|
+
https://api.latoken.com/doc/v2/#tag/Trade/operation/getAuthFeeByPair
|
843
|
+
|
828
844
|
:param str symbol: unified market symbol
|
829
845
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
830
846
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -893,8 +909,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
893
909
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
894
910
|
"""
|
895
911
|
fetch all trades made by the user
|
896
|
-
|
897
|
-
|
912
|
+
|
913
|
+
https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByTrader
|
914
|
+
https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByAssetAndTrader
|
915
|
+
|
898
916
|
:param str symbol: unified market symbol
|
899
917
|
:param int [since]: the earliest time in ms to fetch trades for
|
900
918
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1066,8 +1084,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
1066
1084
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1067
1085
|
"""
|
1068
1086
|
fetch all unfilled currently open orders
|
1069
|
-
|
1070
|
-
|
1087
|
+
|
1088
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/getMyActiveOrdersByPair
|
1089
|
+
https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyActiveStopOrdersByPair # stop
|
1090
|
+
|
1071
1091
|
:param str symbol: unified market symbol
|
1072
1092
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1073
1093
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1118,10 +1138,12 @@ class latoken(Exchange, ImplicitAPI):
|
|
1118
1138
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1119
1139
|
"""
|
1120
1140
|
fetches information on multiple orders made by the user
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1141
|
+
|
1142
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrders
|
1143
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrdersByPair
|
1144
|
+
https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrders # stop
|
1145
|
+
https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrdersByPair # stop
|
1146
|
+
|
1125
1147
|
:param str symbol: unified market symbol of the market orders were made in
|
1126
1148
|
:param int [since]: the earliest time in ms to fetch orders for
|
1127
1149
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1182,8 +1204,11 @@ class latoken(Exchange, ImplicitAPI):
|
|
1182
1204
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1183
1205
|
"""
|
1184
1206
|
fetches information on an order made by the user
|
1185
|
-
|
1186
|
-
|
1207
|
+
|
1208
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/getOrderById
|
1209
|
+
https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getStopOrderById
|
1210
|
+
|
1211
|
+
:param str id: order id
|
1187
1212
|
:param str [symbol]: not used by latoken fetchOrder
|
1188
1213
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1189
1214
|
:param boolean [params.trigger]: True if fetching a trigger order
|
@@ -1225,8 +1250,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
1225
1250
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1226
1251
|
"""
|
1227
1252
|
create a trade order
|
1228
|
-
|
1229
|
-
|
1253
|
+
|
1254
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/placeOrder
|
1255
|
+
https://api.latoken.com/doc/v2/#tag/StopOrder/operation/placeStopOrder # stop
|
1256
|
+
|
1230
1257
|
:param str symbol: unified symbol of the market to create an order in
|
1231
1258
|
:param str type: 'market' or 'limit'
|
1232
1259
|
:param str side: 'buy' or 'sell'
|
@@ -1234,8 +1261,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1234
1261
|
:param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
1235
1262
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1236
1263
|
:param float [params.triggerPrice]: the price at which a trigger order is triggered at
|
1237
|
-
|
1238
|
-
|
1264
|
+
|
1265
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1239
1266
|
:param str [params.condition]: "GTC", "IOC", or "FOK"
|
1240
1267
|
:param str [params.clientOrderId]: [0 .. 50] characters, client's custom order id(free field for your convenience)
|
1241
1268
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1282,8 +1309,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
1282
1309
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1283
1310
|
"""
|
1284
1311
|
cancels an open order
|
1285
|
-
|
1286
|
-
|
1312
|
+
|
1313
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/cancelOrder
|
1314
|
+
https://api.latoken.com/doc/v2/#tag/StopOrder/operation/cancelStopOrder # stop
|
1315
|
+
|
1287
1316
|
:param str id: order id
|
1288
1317
|
:param str symbol: not used by latoken cancelOrder()
|
1289
1318
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1315,8 +1344,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
1315
1344
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1316
1345
|
"""
|
1317
1346
|
cancel all open orders in a market
|
1318
|
-
|
1319
|
-
|
1347
|
+
|
1348
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrders
|
1349
|
+
https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrdersByPair
|
1350
|
+
|
1320
1351
|
:param str symbol: unified market symbol of the market to cancel orders in
|
1321
1352
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1322
1353
|
:param boolean [params.trigger]: True if cancelling trigger orders
|
@@ -1358,9 +1389,11 @@ class latoken(Exchange, ImplicitAPI):
|
|
1358
1389
|
|
1359
1390
|
def fetch_transactions(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1360
1391
|
"""
|
1361
|
-
|
1392
|
+
@deprecated
|
1362
1393
|
use fetchDepositsWithdrawals instead
|
1363
|
-
|
1394
|
+
|
1395
|
+
https://api.latoken.com/doc/v2/#tag/Transaction/operation/getUserTransactions
|
1396
|
+
|
1364
1397
|
:param str code: unified currency code for the currency of the transactions, default is None
|
1365
1398
|
:param int [since]: timestamp in ms of the earliest transaction, default is None
|
1366
1399
|
:param int [limit]: max number of transactions to return, default is None
|
@@ -1486,7 +1519,9 @@ class latoken(Exchange, ImplicitAPI):
|
|
1486
1519
|
def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
|
1487
1520
|
"""
|
1488
1521
|
fetch a history of internal transfers made on an account
|
1489
|
-
|
1522
|
+
|
1523
|
+
https://api.latoken.com/doc/v2/#tag/Transfer/operation/getUsersTransfers
|
1524
|
+
|
1490
1525
|
:param str code: unified currency code of the currency transferred
|
1491
1526
|
:param int [since]: the earliest time in ms to fetch transfers for
|
1492
1527
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -1533,9 +1568,11 @@ class latoken(Exchange, ImplicitAPI):
|
|
1533
1568
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1534
1569
|
"""
|
1535
1570
|
transfer currency internally between wallets on the same account
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1571
|
+
|
1572
|
+
https://api.latoken.com/doc/v2/#tag/Transfer/operation/transferByEmail
|
1573
|
+
https://api.latoken.com/doc/v2/#tag/Transfer/operation/transferById
|
1574
|
+
https://api.latoken.com/doc/v2/#tag/Transfer/operation/transferByPhone
|
1575
|
+
|
1539
1576
|
:param str code: unified currency code
|
1540
1577
|
:param float amount: amount to transfer
|
1541
1578
|
:param str fromAccount: account to transfer from
|