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/kucoin.py
CHANGED
@@ -827,7 +827,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
827
827
|
async def fetch_time(self, params={}):
|
828
828
|
"""
|
829
829
|
fetches the current integer timestamp in milliseconds from the exchange server
|
830
|
-
see https://docs.kucoin.com/#server-time
|
830
|
+
:see: https://docs.kucoin.com/#server-time
|
831
831
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
832
832
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
833
833
|
"""
|
@@ -844,7 +844,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
844
844
|
async def fetch_status(self, params={}):
|
845
845
|
"""
|
846
846
|
the latest known information on the availability of the exchange API
|
847
|
-
see https://docs.kucoin.com/#service-status
|
847
|
+
:see: https://docs.kucoin.com/#service-status
|
848
848
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
849
849
|
:returns dict: a `status structure <https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure>`
|
850
850
|
"""
|
@@ -871,8 +871,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
871
871
|
async def fetch_markets(self, params={}):
|
872
872
|
"""
|
873
873
|
retrieves data on all markets for kucoin
|
874
|
-
see https://docs.kucoin.com/#get-symbols-list-deprecated
|
875
|
-
see https://docs.kucoin.com/#get-all-tickers
|
874
|
+
:see: https://docs.kucoin.com/#get-symbols-list-deprecated
|
875
|
+
:see: https://docs.kucoin.com/#get-all-tickers
|
876
876
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
877
877
|
:returns dict[]: an array of objects representing market data
|
878
878
|
"""
|
@@ -1008,7 +1008,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1008
1008
|
async def fetch_currencies(self, params={}):
|
1009
1009
|
"""
|
1010
1010
|
fetches all available currencies on an exchange
|
1011
|
-
see https://docs.kucoin.com/#get-currencies
|
1011
|
+
:see: https://docs.kucoin.com/#get-currencies
|
1012
1012
|
:param dict params: extra parameters specific to the kucoin api endpoint
|
1013
1013
|
:returns dict: an associative dictionary of currencies
|
1014
1014
|
"""
|
@@ -1160,7 +1160,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1160
1160
|
async def fetch_accounts(self, params={}):
|
1161
1161
|
"""
|
1162
1162
|
fetch all the accounts associated with a profile
|
1163
|
-
see https://docs.kucoin.com/#list-accounts
|
1163
|
+
:see: https://docs.kucoin.com/#list-accounts
|
1164
1164
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1165
1165
|
:returns dict: a dictionary of `account structures <https://github.com/ccxt/ccxt/wiki/Manual#account-structure>` indexed by the account type
|
1166
1166
|
"""
|
@@ -1208,7 +1208,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1208
1208
|
async def fetch_transaction_fee(self, code: str, params={}):
|
1209
1209
|
"""
|
1210
1210
|
*DEPRECATED* please use fetchDepositWithdrawFee instead
|
1211
|
-
see https://docs.kucoin.com/#get-withdrawal-quotas
|
1211
|
+
:see: https://docs.kucoin.com/#get-withdrawal-quotas
|
1212
1212
|
:param str code: unified currency code
|
1213
1213
|
:param dict params: extra parameters specific to the kucoin api endpoint
|
1214
1214
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -1235,7 +1235,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1235
1235
|
async def fetch_deposit_withdraw_fee(self, code: str, params={}):
|
1236
1236
|
"""
|
1237
1237
|
fetch the fee for deposits and withdrawals
|
1238
|
-
see https://docs.kucoin.com/#get-withdrawal-quotas
|
1238
|
+
:see: https://docs.kucoin.com/#get-withdrawal-quotas
|
1239
1239
|
:param str code: unified currency code
|
1240
1240
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1241
1241
|
:param str [params.network]: The chain of currency. This only apply for multi-chain currency, and there is no need for single chain currency; you can query the chain through the response of the GET /api/v2/currencies/{currency} interface
|
@@ -1426,7 +1426,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1426
1426
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1427
1427
|
"""
|
1428
1428
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1429
|
-
see https://docs.kucoin.com/#get-all-tickers
|
1429
|
+
:see: https://docs.kucoin.com/#get-all-tickers
|
1430
1430
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1431
1431
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1432
1432
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1477,7 +1477,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1477
1477
|
async def fetch_ticker(self, symbol: str, params={}):
|
1478
1478
|
"""
|
1479
1479
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1480
|
-
see https://docs.kucoin.com/#get-24hr-stats
|
1480
|
+
:see: https://docs.kucoin.com/#get-24hr-stats
|
1481
1481
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1482
1482
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1483
1483
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1537,7 +1537,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1537
1537
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1538
1538
|
"""
|
1539
1539
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1540
|
-
see https://docs.kucoin.com/#get-klines
|
1540
|
+
:see: https://docs.kucoin.com/#get-klines
|
1541
1541
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1542
1542
|
:param str timeframe: the length of time each candle represents
|
1543
1543
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1588,7 +1588,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1588
1588
|
|
1589
1589
|
async def create_deposit_address(self, code: str, params={}):
|
1590
1590
|
"""
|
1591
|
-
see https://docs.kucoin.com/#create-deposit-address
|
1591
|
+
:see: https://docs.kucoin.com/#create-deposit-address
|
1592
1592
|
create a currency deposit address
|
1593
1593
|
:param str code: unified currency code of the currency for the deposit address
|
1594
1594
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1614,7 +1614,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1614
1614
|
async def fetch_deposit_address(self, code: str, params={}):
|
1615
1615
|
"""
|
1616
1616
|
fetch the deposit address for a currency associated with self account
|
1617
|
-
see https://docs.kucoin.com/#get-deposit-addresses-v2
|
1617
|
+
:see: https://docs.kucoin.com/#get-deposit-addresses-v2
|
1618
1618
|
:param str code: unified currency code
|
1619
1619
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1620
1620
|
:param str [params.network]: the blockchain network name
|
@@ -1664,7 +1664,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1664
1664
|
|
1665
1665
|
async def fetch_deposit_addresses_by_network(self, code: str, params={}):
|
1666
1666
|
"""
|
1667
|
-
see https://docs.kucoin.com/#get-deposit-addresses-v2
|
1667
|
+
:see: https://docs.kucoin.com/#get-deposit-addresses-v2
|
1668
1668
|
fetch the deposit address for a currency associated with self account
|
1669
1669
|
:param str code: unified currency code
|
1670
1670
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1703,8 +1703,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1703
1703
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
1704
1704
|
"""
|
1705
1705
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1706
|
-
see https://docs.kucoin.com/#get-part-order-book-aggregated
|
1707
|
-
see https://docs.kucoin.com/#get-full-order-book-aggregated
|
1706
|
+
:see: https://docs.kucoin.com/#get-part-order-book-aggregated
|
1707
|
+
:see: https://docs.kucoin.com/#get-full-order-book-aggregated
|
1708
1708
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1709
1709
|
:param int [limit]: the maximum amount of order book entries to return
|
1710
1710
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1779,10 +1779,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1779
1779
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1780
1780
|
"""
|
1781
1781
|
Create an order on the exchange
|
1782
|
-
see https://docs.kucoin.com/spot#place-a-new-order
|
1783
|
-
see https://docs.kucoin.com/spot#place-a-new-order-2
|
1784
|
-
see https://docs.kucoin.com/spot#place-a-margin-order
|
1785
|
-
see https://docs.kucoin.com/spot-hf/#place-hf-order
|
1782
|
+
:see: https://docs.kucoin.com/spot#place-a-new-order
|
1783
|
+
:see: https://docs.kucoin.com/spot#place-a-new-order-2
|
1784
|
+
:see: https://docs.kucoin.com/spot#place-a-margin-order
|
1785
|
+
:see: https://docs.kucoin.com/spot-hf/#place-hf-order
|
1786
1786
|
:param str symbol: Unified CCXT market symbol
|
1787
1787
|
:param str type: 'limit' or 'market'
|
1788
1788
|
:param str side: 'buy' or 'sell'
|
@@ -1888,7 +1888,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1888
1888
|
async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
1889
1889
|
"""
|
1890
1890
|
edit an order, kucoin currently only supports the modification of HF orders
|
1891
|
-
see https://docs.kucoin.com/spot-hf/#modify-order
|
1891
|
+
:see: https://docs.kucoin.com/spot-hf/#modify-order
|
1892
1892
|
:param str id: order id
|
1893
1893
|
:param str symbol: unified symbol of the market to create an order in
|
1894
1894
|
:param str type: not used
|
@@ -1928,12 +1928,12 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1928
1928
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1929
1929
|
"""
|
1930
1930
|
cancels an open order
|
1931
|
-
see https://docs.kucoin.com/spot#cancel-an-order
|
1932
|
-
see https://docs.kucoin.com/spot#cancel-an-order-2
|
1933
|
-
see https://docs.kucoin.com/spot#cancel-single-order-by-clientoid
|
1934
|
-
see https://docs.kucoin.com/spot#cancel-single-order-by-clientoid-2
|
1935
|
-
see https://docs.kucoin.com/spot-hf/#cancel-orders-by-orderid
|
1936
|
-
see https://docs.kucoin.com/spot-hf/#cancel-order-by-clientoid
|
1931
|
+
:see: https://docs.kucoin.com/spot#cancel-an-order
|
1932
|
+
:see: https://docs.kucoin.com/spot#cancel-an-order-2
|
1933
|
+
:see: https://docs.kucoin.com/spot#cancel-single-order-by-clientoid
|
1934
|
+
:see: https://docs.kucoin.com/spot#cancel-single-order-by-clientoid-2
|
1935
|
+
:see: https://docs.kucoin.com/spot-hf/#cancel-orders-by-orderid
|
1936
|
+
:see: https://docs.kucoin.com/spot-hf/#cancel-order-by-clientoid
|
1937
1937
|
:param str id: order id
|
1938
1938
|
:param str symbol: unified symbol of the market the order was made in
|
1939
1939
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1972,9 +1972,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1972
1972
|
async def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1973
1973
|
"""
|
1974
1974
|
cancel all open orders
|
1975
|
-
see https://docs.kucoin.com/spot#cancel-all-orders
|
1976
|
-
see https://docs.kucoin.com/spot#cancel-orders
|
1977
|
-
see https://docs.kucoin.com/spot-hf/#cancel-all-hf-orders-by-symbol
|
1975
|
+
:see: https://docs.kucoin.com/spot#cancel-all-orders
|
1976
|
+
:see: https://docs.kucoin.com/spot#cancel-orders
|
1977
|
+
:see: https://docs.kucoin.com/spot-hf/#cancel-all-hf-orders-by-symbol
|
1978
1978
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1979
1979
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1980
1980
|
:param bool [params.stop]: *invalid for isolated margin* True if cancelling all stop orders
|
@@ -2008,10 +2008,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2008
2008
|
async def fetch_orders_by_status(self, status, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2009
2009
|
"""
|
2010
2010
|
fetch a list of orders
|
2011
|
-
see https://docs.kucoin.com/spot#list-orders
|
2012
|
-
see https://docs.kucoin.com/spot#list-stop-orders
|
2013
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2014
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2011
|
+
:see: https://docs.kucoin.com/spot#list-orders
|
2012
|
+
:see: https://docs.kucoin.com/spot#list-stop-orders
|
2013
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2014
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2015
2015
|
:param str status: *not used for stop orders* 'open' or 'closed'
|
2016
2016
|
:param str symbol: unified market symbol
|
2017
2017
|
:param int [since]: timestamp in ms of the earliest order
|
@@ -2112,10 +2112,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2112
2112
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2113
2113
|
"""
|
2114
2114
|
fetches information on multiple closed orders made by the user
|
2115
|
-
see https://docs.kucoin.com/spot#list-orders
|
2116
|
-
see https://docs.kucoin.com/spot#list-stop-orders
|
2117
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2118
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2115
|
+
:see: https://docs.kucoin.com/spot#list-orders
|
2116
|
+
:see: https://docs.kucoin.com/spot#list-stop-orders
|
2117
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2118
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2119
2119
|
:param str symbol: unified market symbol of the market orders were made in
|
2120
2120
|
:param int [since]: the earliest time in ms to fetch orders for
|
2121
2121
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2139,10 +2139,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2139
2139
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2140
2140
|
"""
|
2141
2141
|
fetch all unfilled currently open orders
|
2142
|
-
see https://docs.kucoin.com/spot#list-orders
|
2143
|
-
see https://docs.kucoin.com/spot#list-stop-orders
|
2144
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2145
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2142
|
+
:see: https://docs.kucoin.com/spot#list-orders
|
2143
|
+
:see: https://docs.kucoin.com/spot#list-stop-orders
|
2144
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2145
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2146
2146
|
:param str symbol: unified market symbol
|
2147
2147
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2148
2148
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2169,12 +2169,12 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2169
2169
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
2170
2170
|
"""
|
2171
2171
|
fetch an order
|
2172
|
-
see https://docs.kucoin.com/spot#get-an-order
|
2173
|
-
see https://docs.kucoin.com/spot#get-single-active-order-by-clientoid
|
2174
|
-
see https://docs.kucoin.com/spot#get-single-order-info
|
2175
|
-
see https://docs.kucoin.com/spot#get-single-order-by-clientoid
|
2176
|
-
see https://docs.kucoin.com/spot-hf/#details-of-a-single-hf-order
|
2177
|
-
see https://docs.kucoin.com/spot-hf/#obtain-details-of-a-single-hf-order-using-clientoid
|
2172
|
+
:see: https://docs.kucoin.com/spot#get-an-order
|
2173
|
+
:see: https://docs.kucoin.com/spot#get-single-active-order-by-clientoid
|
2174
|
+
:see: https://docs.kucoin.com/spot#get-single-order-info
|
2175
|
+
:see: https://docs.kucoin.com/spot#get-single-order-by-clientoid
|
2176
|
+
:see: https://docs.kucoin.com/spot-hf/#details-of-a-single-hf-order
|
2177
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-details-of-a-single-hf-order-using-clientoid
|
2178
2178
|
:param str id: Order id
|
2179
2179
|
:param str symbol: not sent to exchange except for stop orders with clientOid, but used internally by CCXT to filter
|
2180
2180
|
:param dict [params]: exchange specific parameters
|
@@ -2401,8 +2401,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2401
2401
|
async def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2402
2402
|
"""
|
2403
2403
|
fetch all the trades made from a single order
|
2404
|
-
see https://docs.kucoin.com/#list-fills
|
2405
|
-
see https://docs.kucoin.com/spot-hf/#transaction-details
|
2404
|
+
:see: https://docs.kucoin.com/#list-fills
|
2405
|
+
:see: https://docs.kucoin.com/spot-hf/#transaction-details
|
2406
2406
|
:param str id: order id
|
2407
2407
|
:param str symbol: unified market symbol
|
2408
2408
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2417,8 +2417,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2417
2417
|
|
2418
2418
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2419
2419
|
"""
|
2420
|
-
see https://docs.kucoin.com/#list-fills
|
2421
|
-
see https://docs.kucoin.com/spot-hf/#transaction-details
|
2420
|
+
:see: https://docs.kucoin.com/#list-fills
|
2421
|
+
:see: https://docs.kucoin.com/spot-hf/#transaction-details
|
2422
2422
|
fetch all trades made by the user
|
2423
2423
|
:param str symbol: unified market symbol
|
2424
2424
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2519,7 +2519,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2519
2519
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2520
2520
|
"""
|
2521
2521
|
get the list of most recent trades for a particular symbol
|
2522
|
-
see https://docs.kucoin.com/#get-trade-histories
|
2522
|
+
:see: https://docs.kucoin.com/#get-trade-histories
|
2523
2523
|
:param str symbol: unified symbol of the market to fetch trades for
|
2524
2524
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2525
2525
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -2684,7 +2684,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2684
2684
|
async def fetch_trading_fee(self, symbol: str, params={}):
|
2685
2685
|
"""
|
2686
2686
|
fetch the trading fees for a market
|
2687
|
-
see https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
2687
|
+
:see: https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
2688
2688
|
:param str symbol: unified market symbol
|
2689
2689
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
2690
2690
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2722,7 +2722,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2722
2722
|
async def withdraw(self, code: str, amount, address, tag=None, params={}):
|
2723
2723
|
"""
|
2724
2724
|
make a withdrawal
|
2725
|
-
see https://docs.kucoin.com/#apply-withdraw-2
|
2725
|
+
:see: https://docs.kucoin.com/#apply-withdraw-2
|
2726
2726
|
:param str code: unified currency code
|
2727
2727
|
:param float amount: the amount to withdraw
|
2728
2728
|
:param str address: the address to withdraw to
|
@@ -2880,11 +2880,11 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2880
2880
|
|
2881
2881
|
async def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2882
2882
|
"""
|
2883
|
-
see https://docs.kucoin.com/#get-deposit-list
|
2884
|
-
see https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2883
|
+
:see: https://docs.kucoin.com/#get-deposit-list
|
2884
|
+
:see: https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2885
2885
|
fetch all deposits made to an account
|
2886
|
-
see https://docs.kucoin.com/#get-deposit-list
|
2887
|
-
see https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2886
|
+
:see: https://docs.kucoin.com/#get-deposit-list
|
2887
|
+
:see: https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2888
2888
|
:param str code: unified currency code
|
2889
2889
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2890
2890
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2959,8 +2959,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2959
2959
|
async def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2960
2960
|
"""
|
2961
2961
|
fetch all withdrawals made from an account
|
2962
|
-
see https://docs.kucoin.com/#get-withdrawals-list
|
2963
|
-
see https://docs.kucoin.com/#get-v1-historical-withdrawals-list
|
2962
|
+
:see: https://docs.kucoin.com/#get-withdrawals-list
|
2963
|
+
:see: https://docs.kucoin.com/#get-v1-historical-withdrawals-list
|
2964
2964
|
:param str code: unified currency code
|
2965
2965
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2966
2966
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -3046,8 +3046,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3046
3046
|
async def fetch_balance(self, params={}):
|
3047
3047
|
"""
|
3048
3048
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
3049
|
-
see https://docs.kucoin.com/#list-accounts
|
3050
|
-
see https://docs.kucoin.com/#query-isolated-margin-account-info
|
3049
|
+
:see: https://docs.kucoin.com/#list-accounts
|
3050
|
+
:see: https://docs.kucoin.com/#query-isolated-margin-account-info
|
3051
3051
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
3052
3052
|
:param dict [params.marginMode]: 'cross' or 'isolated', margin type for fetching margin balance
|
3053
3053
|
:param dict [params.type]: extra parameters specific to the kucoin api endpoint
|
@@ -3177,9 +3177,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3177
3177
|
async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
3178
3178
|
"""
|
3179
3179
|
transfer currency internally between wallets on the same account
|
3180
|
-
see https://docs.kucoin.com/#inner-transfer
|
3181
|
-
see https://docs.kucoin.com/futures/#transfer-funds-to-kucoin-main-account-2
|
3182
|
-
see https://docs.kucoin.com/spot-hf/#internal-funds-transfers-in-high-frequency-trading-accounts
|
3180
|
+
:see: https://docs.kucoin.com/#inner-transfer
|
3181
|
+
:see: https://docs.kucoin.com/futures/#transfer-funds-to-kucoin-main-account-2
|
3182
|
+
:see: https://docs.kucoin.com/spot-hf/#internal-funds-transfers-in-high-frequency-trading-accounts
|
3183
3183
|
:param str code: unified currency code
|
3184
3184
|
:param float amount: amount to transfer
|
3185
3185
|
:param str fromAccount: account to transfer from
|
@@ -3444,9 +3444,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3444
3444
|
|
3445
3445
|
async def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3446
3446
|
"""
|
3447
|
-
see https://docs.kucoin.com/#get-account-ledgers
|
3447
|
+
:see: https://docs.kucoin.com/#get-account-ledgers
|
3448
3448
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
3449
|
-
see https://docs.kucoin.com/#get-account-ledgers
|
3449
|
+
:see: https://docs.kucoin.com/#get-account-ledgers
|
3450
3450
|
:param str code: unified currency code, default is None
|
3451
3451
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
3452
3452
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -3535,7 +3535,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3535
3535
|
async def fetch_borrow_rate_history(self, code: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3536
3536
|
"""
|
3537
3537
|
retrieves a history of a currencies borrow interest rate at specific time slots
|
3538
|
-
see https://docs.kucoin.com/#margin-trade-data
|
3538
|
+
:see: https://docs.kucoin.com/#margin-trade-data
|
3539
3539
|
:param str code: unified currency code
|
3540
3540
|
:param int [since]: timestamp for the earliest borrow rate
|
3541
3541
|
:param int [limit]: the maximum number of [borrow rate structures]
|
@@ -3601,8 +3601,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3601
3601
|
async def fetch_borrow_interest(self, code: Optional[str] = None, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3602
3602
|
"""
|
3603
3603
|
fetch the interest owed by the user for borrowing currency for margin trading
|
3604
|
-
see https://docs.kucoin.com/#get-repay-record
|
3605
|
-
see https://docs.kucoin.com/#query-isolated-margin-account-info
|
3604
|
+
:see: https://docs.kucoin.com/#get-repay-record
|
3605
|
+
:see: https://docs.kucoin.com/#query-isolated-margin-account-info
|
3606
3606
|
:param str code: unified currency code
|
3607
3607
|
:param str symbol: unified market symbol, required for isolated margin
|
3608
3608
|
:param int [since]: the earliest time in ms to fetch borrrow interest for
|
@@ -3769,7 +3769,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3769
3769
|
async def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
3770
3770
|
"""
|
3771
3771
|
create a loan to borrow margin
|
3772
|
-
see https://docs.kucoin.com/#1-margin-borrowing
|
3772
|
+
:see: https://docs.kucoin.com/#1-margin-borrowing
|
3773
3773
|
:param str code: unified currency code of the currency to borrow
|
3774
3774
|
:param float amount: the amount to borrow
|
3775
3775
|
:param str symbol: unified market symbol, required for isolated margin
|
@@ -3816,7 +3816,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3816
3816
|
async def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
3817
3817
|
"""
|
3818
3818
|
repay borrowed margin and interest
|
3819
|
-
see https://docs.kucoin.com/#2-repayment
|
3819
|
+
:see: https://docs.kucoin.com/#2-repayment
|
3820
3820
|
:param str code: unified currency code of the currency to repay
|
3821
3821
|
:param float amount: the amount to repay
|
3822
3822
|
:param str symbol: unified market symbol
|
@@ -3878,7 +3878,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3878
3878
|
async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
3879
3879
|
"""
|
3880
3880
|
fetch deposit and withdraw fees - *IMPORTANT* use fetchDepositWithdrawFee to get more in-depth info
|
3881
|
-
see https://docs.kucoin.com/#get-currencies
|
3881
|
+
:see: https://docs.kucoin.com/#get-currencies
|
3882
3882
|
:param str[]|None codes: list of unified currency codes
|
3883
3883
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
3884
3884
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -845,7 +845,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
845
845
|
|
846
846
|
async def fetch_position(self, symbol: str, params={}):
|
847
847
|
"""
|
848
|
-
see https://docs.kucoin.com/futures/#get-position-details
|
848
|
+
:see: https://docs.kucoin.com/futures/#get-position-details
|
849
849
|
fetch data on an open position
|
850
850
|
:param str symbol: unified market symbol of the market the position is held in
|
851
851
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
@@ -907,7 +907,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
907
907
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
908
908
|
"""
|
909
909
|
fetch all open positions
|
910
|
-
see https://docs.kucoin.com/futures/#get-position-list
|
910
|
+
:see: https://docs.kucoin.com/futures/#get-position-list
|
911
911
|
:param str[]|None symbols: list of unified market symbols
|
912
912
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
913
913
|
:returns dict[]: a list of `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -1060,7 +1060,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1060
1060
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1061
1061
|
"""
|
1062
1062
|
Create an order on the exchange
|
1063
|
-
see https://docs.kucoin.com/futures/#place-an-order
|
1063
|
+
:see: https://docs.kucoin.com/futures/#place-an-order
|
1064
1064
|
:param str symbol: Unified CCXT market symbol
|
1065
1065
|
:param str type: 'limit' or 'market'
|
1066
1066
|
:param str side: 'buy' or 'sell'
|
@@ -1367,8 +1367,8 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1367
1367
|
async def fetch_orders_by_status(self, status, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1368
1368
|
"""
|
1369
1369
|
fetches a list of orders placed on the exchange
|
1370
|
-
see https://docs.kucoin.com/futures/#get-order-list
|
1371
|
-
see https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
|
1370
|
+
:see: https://docs.kucoin.com/futures/#get-order-list
|
1371
|
+
:see: https://docs.kucoin.com/futures/#get-untriggered-stop-order-list
|
1372
1372
|
:param str status: 'active' or 'closed', only 'active' is valid for stop orders
|
1373
1373
|
:param str symbol: unified symbol for the market to retrieve orders from
|
1374
1374
|
:param int [since]: timestamp in ms of the earliest order to retrieve
|
@@ -1466,7 +1466,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1466
1466
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1467
1467
|
"""
|
1468
1468
|
fetches information on multiple closed orders made by the user
|
1469
|
-
see https://docs.kucoin.com/futures/#get-order-list
|
1469
|
+
:see: https://docs.kucoin.com/futures/#get-order-list
|
1470
1470
|
:param str symbol: unified market symbol of the market orders were made in
|
1471
1471
|
:param int [since]: the earliest time in ms to fetch orders for
|
1472
1472
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -1487,7 +1487,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1487
1487
|
async def fetch_order(self, id=None, symbol: Optional[str] = None, params={}):
|
1488
1488
|
"""
|
1489
1489
|
fetches information on an order made by the user
|
1490
|
-
see https://docs.kucoin.com/futures/#get-details-of-a-single-order
|
1490
|
+
:see: https://docs.kucoin.com/futures/#get-details-of-a-single-order
|
1491
1491
|
:param str symbol: unified symbol of the market the order was made in
|
1492
1492
|
:param dict [params]: extra parameters specific to the kucoinfutures api endpoint
|
1493
1493
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1823,7 +1823,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1823
1823
|
|
1824
1824
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1825
1825
|
"""
|
1826
|
-
see https://docs.kucoin.com/futures/#get-fills
|
1826
|
+
:see: https://docs.kucoin.com/futures/#get-fills
|
1827
1827
|
fetch all trades made by the user
|
1828
1828
|
:param str symbol: unified market symbol
|
1829
1829
|
:param int [since]: the earliest time in ms to fetch trades for
|
ccxt/async_support/latoken.py
CHANGED
@@ -1028,8 +1028,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1028
1028
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1029
1029
|
"""
|
1030
1030
|
fetch all unfilled currently open orders
|
1031
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/getMyActiveOrdersByPair
|
1032
|
-
see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyActiveStopOrdersByPair # stop
|
1031
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getMyActiveOrdersByPair
|
1032
|
+
:see: https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyActiveStopOrdersByPair # stop
|
1033
1033
|
:param str symbol: unified market symbol
|
1034
1034
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1035
1035
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1080,10 +1080,10 @@ class latoken(Exchange, ImplicitAPI):
|
|
1080
1080
|
async def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1081
1081
|
"""
|
1082
1082
|
fetches information on multiple orders made by the user
|
1083
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrders
|
1084
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrdersByPair
|
1085
|
-
see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrders # stop
|
1086
|
-
see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrdersByPair # stop
|
1083
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrders
|
1084
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrdersByPair
|
1085
|
+
:see: https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrders # stop
|
1086
|
+
:see: https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrdersByPair # stop
|
1087
1087
|
:param str symbol: unified market symbol of the market orders were made in
|
1088
1088
|
:param int [since]: the earliest time in ms to fetch orders for
|
1089
1089
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -1144,8 +1144,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1144
1144
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1145
1145
|
"""
|
1146
1146
|
fetches information on an order made by the user
|
1147
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/getOrderById
|
1148
|
-
see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getStopOrderById
|
1147
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getOrderById
|
1148
|
+
:see: https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getStopOrderById
|
1149
1149
|
:param str [symbol]: not used by latoken fetchOrder
|
1150
1150
|
:param dict [params]: extra parameters specific to the latoken api endpoint
|
1151
1151
|
:param boolean [params.trigger]: True if fetching a trigger order
|
@@ -1187,8 +1187,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1187
1187
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1188
1188
|
"""
|
1189
1189
|
create a trade order
|
1190
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/placeOrder
|
1191
|
-
see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/placeStopOrder # stop
|
1190
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/placeOrder
|
1191
|
+
:see: https://api.latoken.com/doc/v2/#tag/StopOrder/operation/placeStopOrder # stop
|
1192
1192
|
:param str symbol: unified symbol of the market to create an order in
|
1193
1193
|
:param str type: 'market' or 'limit'
|
1194
1194
|
:param str side: 'buy' or 'sell'
|
@@ -1244,8 +1244,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1244
1244
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1245
1245
|
"""
|
1246
1246
|
cancels an open order
|
1247
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/cancelOrder
|
1248
|
-
see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/cancelStopOrder # stop
|
1247
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/cancelOrder
|
1248
|
+
:see: https://api.latoken.com/doc/v2/#tag/StopOrder/operation/cancelStopOrder # stop
|
1249
1249
|
:param str id: order id
|
1250
1250
|
:param str symbol: not used by latoken cancelOrder()
|
1251
1251
|
:param dict [params]: extra parameters specific to the latoken api endpoint
|
@@ -1277,8 +1277,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1277
1277
|
async def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1278
1278
|
"""
|
1279
1279
|
cancel all open orders in a market
|
1280
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrders
|
1281
|
-
see https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrdersByPair
|
1280
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrders
|
1281
|
+
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrdersByPair
|
1282
1282
|
:param str symbol: unified market symbol of the market to cancel orders in
|
1283
1283
|
:param dict [params]: extra parameters specific to the latoken api endpoint
|
1284
1284
|
:param boolean [params.trigger]: True if cancelling trigger orders
|