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/kucoin.py
CHANGED
@@ -826,7 +826,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
826
826
|
def fetch_time(self, params={}):
|
827
827
|
"""
|
828
828
|
fetches the current integer timestamp in milliseconds from the exchange server
|
829
|
-
see https://docs.kucoin.com/#server-time
|
829
|
+
:see: https://docs.kucoin.com/#server-time
|
830
830
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
831
831
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
832
832
|
"""
|
@@ -843,7 +843,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
843
843
|
def fetch_status(self, params={}):
|
844
844
|
"""
|
845
845
|
the latest known information on the availability of the exchange API
|
846
|
-
see https://docs.kucoin.com/#service-status
|
846
|
+
:see: https://docs.kucoin.com/#service-status
|
847
847
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
848
848
|
:returns dict: a `status structure <https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure>`
|
849
849
|
"""
|
@@ -870,8 +870,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
870
870
|
def fetch_markets(self, params={}):
|
871
871
|
"""
|
872
872
|
retrieves data on all markets for kucoin
|
873
|
-
see https://docs.kucoin.com/#get-symbols-list-deprecated
|
874
|
-
see https://docs.kucoin.com/#get-all-tickers
|
873
|
+
:see: https://docs.kucoin.com/#get-symbols-list-deprecated
|
874
|
+
:see: https://docs.kucoin.com/#get-all-tickers
|
875
875
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
876
876
|
:returns dict[]: an array of objects representing market data
|
877
877
|
"""
|
@@ -1007,7 +1007,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1007
1007
|
def fetch_currencies(self, params={}):
|
1008
1008
|
"""
|
1009
1009
|
fetches all available currencies on an exchange
|
1010
|
-
see https://docs.kucoin.com/#get-currencies
|
1010
|
+
:see: https://docs.kucoin.com/#get-currencies
|
1011
1011
|
:param dict params: extra parameters specific to the kucoin api endpoint
|
1012
1012
|
:returns dict: an associative dictionary of currencies
|
1013
1013
|
"""
|
@@ -1159,7 +1159,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1159
1159
|
def fetch_accounts(self, params={}):
|
1160
1160
|
"""
|
1161
1161
|
fetch all the accounts associated with a profile
|
1162
|
-
see https://docs.kucoin.com/#list-accounts
|
1162
|
+
:see: https://docs.kucoin.com/#list-accounts
|
1163
1163
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1164
1164
|
:returns dict: a dictionary of `account structures <https://github.com/ccxt/ccxt/wiki/Manual#account-structure>` indexed by the account type
|
1165
1165
|
"""
|
@@ -1207,7 +1207,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1207
1207
|
def fetch_transaction_fee(self, code: str, params={}):
|
1208
1208
|
"""
|
1209
1209
|
*DEPRECATED* please use fetchDepositWithdrawFee instead
|
1210
|
-
see https://docs.kucoin.com/#get-withdrawal-quotas
|
1210
|
+
:see: https://docs.kucoin.com/#get-withdrawal-quotas
|
1211
1211
|
:param str code: unified currency code
|
1212
1212
|
:param dict params: extra parameters specific to the kucoin api endpoint
|
1213
1213
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -1234,7 +1234,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1234
1234
|
def fetch_deposit_withdraw_fee(self, code: str, params={}):
|
1235
1235
|
"""
|
1236
1236
|
fetch the fee for deposits and withdrawals
|
1237
|
-
see https://docs.kucoin.com/#get-withdrawal-quotas
|
1237
|
+
:see: https://docs.kucoin.com/#get-withdrawal-quotas
|
1238
1238
|
:param str code: unified currency code
|
1239
1239
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1240
1240
|
: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
|
@@ -1425,7 +1425,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1425
1425
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1426
1426
|
"""
|
1427
1427
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1428
|
-
see https://docs.kucoin.com/#get-all-tickers
|
1428
|
+
:see: https://docs.kucoin.com/#get-all-tickers
|
1429
1429
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1430
1430
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1431
1431
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1476,7 +1476,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1476
1476
|
def fetch_ticker(self, symbol: str, params={}):
|
1477
1477
|
"""
|
1478
1478
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1479
|
-
see https://docs.kucoin.com/#get-24hr-stats
|
1479
|
+
:see: https://docs.kucoin.com/#get-24hr-stats
|
1480
1480
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1481
1481
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1482
1482
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1536,7 +1536,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1536
1536
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1537
1537
|
"""
|
1538
1538
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1539
|
-
see https://docs.kucoin.com/#get-klines
|
1539
|
+
:see: https://docs.kucoin.com/#get-klines
|
1540
1540
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1541
1541
|
:param str timeframe: the length of time each candle represents
|
1542
1542
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1587,7 +1587,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1587
1587
|
|
1588
1588
|
def create_deposit_address(self, code: str, params={}):
|
1589
1589
|
"""
|
1590
|
-
see https://docs.kucoin.com/#create-deposit-address
|
1590
|
+
:see: https://docs.kucoin.com/#create-deposit-address
|
1591
1591
|
create a currency deposit address
|
1592
1592
|
:param str code: unified currency code of the currency for the deposit address
|
1593
1593
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1613,7 +1613,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1613
1613
|
def fetch_deposit_address(self, code: str, params={}):
|
1614
1614
|
"""
|
1615
1615
|
fetch the deposit address for a currency associated with self account
|
1616
|
-
see https://docs.kucoin.com/#get-deposit-addresses-v2
|
1616
|
+
:see: https://docs.kucoin.com/#get-deposit-addresses-v2
|
1617
1617
|
:param str code: unified currency code
|
1618
1618
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1619
1619
|
:param str [params.network]: the blockchain network name
|
@@ -1663,7 +1663,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1663
1663
|
|
1664
1664
|
def fetch_deposit_addresses_by_network(self, code: str, params={}):
|
1665
1665
|
"""
|
1666
|
-
see https://docs.kucoin.com/#get-deposit-addresses-v2
|
1666
|
+
:see: https://docs.kucoin.com/#get-deposit-addresses-v2
|
1667
1667
|
fetch the deposit address for a currency associated with self account
|
1668
1668
|
:param str code: unified currency code
|
1669
1669
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1702,8 +1702,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1702
1702
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
1703
1703
|
"""
|
1704
1704
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1705
|
-
see https://docs.kucoin.com/#get-part-order-book-aggregated
|
1706
|
-
see https://docs.kucoin.com/#get-full-order-book-aggregated
|
1705
|
+
:see: https://docs.kucoin.com/#get-part-order-book-aggregated
|
1706
|
+
:see: https://docs.kucoin.com/#get-full-order-book-aggregated
|
1707
1707
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1708
1708
|
:param int [limit]: the maximum amount of order book entries to return
|
1709
1709
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1778,10 +1778,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1778
1778
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1779
1779
|
"""
|
1780
1780
|
Create an order on the exchange
|
1781
|
-
see https://docs.kucoin.com/spot#place-a-new-order
|
1782
|
-
see https://docs.kucoin.com/spot#place-a-new-order-2
|
1783
|
-
see https://docs.kucoin.com/spot#place-a-margin-order
|
1784
|
-
see https://docs.kucoin.com/spot-hf/#place-hf-order
|
1781
|
+
:see: https://docs.kucoin.com/spot#place-a-new-order
|
1782
|
+
:see: https://docs.kucoin.com/spot#place-a-new-order-2
|
1783
|
+
:see: https://docs.kucoin.com/spot#place-a-margin-order
|
1784
|
+
:see: https://docs.kucoin.com/spot-hf/#place-hf-order
|
1785
1785
|
:param str symbol: Unified CCXT market symbol
|
1786
1786
|
:param str type: 'limit' or 'market'
|
1787
1787
|
:param str side: 'buy' or 'sell'
|
@@ -1887,7 +1887,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1887
1887
|
def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
1888
1888
|
"""
|
1889
1889
|
edit an order, kucoin currently only supports the modification of HF orders
|
1890
|
-
see https://docs.kucoin.com/spot-hf/#modify-order
|
1890
|
+
:see: https://docs.kucoin.com/spot-hf/#modify-order
|
1891
1891
|
:param str id: order id
|
1892
1892
|
:param str symbol: unified symbol of the market to create an order in
|
1893
1893
|
:param str type: not used
|
@@ -1927,12 +1927,12 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1927
1927
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1928
1928
|
"""
|
1929
1929
|
cancels an open order
|
1930
|
-
see https://docs.kucoin.com/spot#cancel-an-order
|
1931
|
-
see https://docs.kucoin.com/spot#cancel-an-order-2
|
1932
|
-
see https://docs.kucoin.com/spot#cancel-single-order-by-clientoid
|
1933
|
-
see https://docs.kucoin.com/spot#cancel-single-order-by-clientoid-2
|
1934
|
-
see https://docs.kucoin.com/spot-hf/#cancel-orders-by-orderid
|
1935
|
-
see https://docs.kucoin.com/spot-hf/#cancel-order-by-clientoid
|
1930
|
+
:see: https://docs.kucoin.com/spot#cancel-an-order
|
1931
|
+
:see: https://docs.kucoin.com/spot#cancel-an-order-2
|
1932
|
+
:see: https://docs.kucoin.com/spot#cancel-single-order-by-clientoid
|
1933
|
+
:see: https://docs.kucoin.com/spot#cancel-single-order-by-clientoid-2
|
1934
|
+
:see: https://docs.kucoin.com/spot-hf/#cancel-orders-by-orderid
|
1935
|
+
:see: https://docs.kucoin.com/spot-hf/#cancel-order-by-clientoid
|
1936
1936
|
:param str id: order id
|
1937
1937
|
:param str symbol: unified symbol of the market the order was made in
|
1938
1938
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
@@ -1971,9 +1971,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
1971
1971
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1972
1972
|
"""
|
1973
1973
|
cancel all open orders
|
1974
|
-
see https://docs.kucoin.com/spot#cancel-all-orders
|
1975
|
-
see https://docs.kucoin.com/spot#cancel-orders
|
1976
|
-
see https://docs.kucoin.com/spot-hf/#cancel-all-hf-orders-by-symbol
|
1974
|
+
:see: https://docs.kucoin.com/spot#cancel-all-orders
|
1975
|
+
:see: https://docs.kucoin.com/spot#cancel-orders
|
1976
|
+
:see: https://docs.kucoin.com/spot-hf/#cancel-all-hf-orders-by-symbol
|
1977
1977
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1978
1978
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
1979
1979
|
:param bool [params.stop]: *invalid for isolated margin* True if cancelling all stop orders
|
@@ -2007,10 +2007,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2007
2007
|
def fetch_orders_by_status(self, status, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2008
2008
|
"""
|
2009
2009
|
fetch a list of orders
|
2010
|
-
see https://docs.kucoin.com/spot#list-orders
|
2011
|
-
see https://docs.kucoin.com/spot#list-stop-orders
|
2012
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2013
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2010
|
+
:see: https://docs.kucoin.com/spot#list-orders
|
2011
|
+
:see: https://docs.kucoin.com/spot#list-stop-orders
|
2012
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2013
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2014
2014
|
:param str status: *not used for stop orders* 'open' or 'closed'
|
2015
2015
|
:param str symbol: unified market symbol
|
2016
2016
|
:param int [since]: timestamp in ms of the earliest order
|
@@ -2111,10 +2111,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2111
2111
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2112
2112
|
"""
|
2113
2113
|
fetches information on multiple closed orders made by the user
|
2114
|
-
see https://docs.kucoin.com/spot#list-orders
|
2115
|
-
see https://docs.kucoin.com/spot#list-stop-orders
|
2116
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2117
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2114
|
+
:see: https://docs.kucoin.com/spot#list-orders
|
2115
|
+
:see: https://docs.kucoin.com/spot#list-stop-orders
|
2116
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2117
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2118
2118
|
:param str symbol: unified market symbol of the market orders were made in
|
2119
2119
|
:param int [since]: the earliest time in ms to fetch orders for
|
2120
2120
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2138,10 +2138,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2138
2138
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2139
2139
|
"""
|
2140
2140
|
fetch all unfilled currently open orders
|
2141
|
-
see https://docs.kucoin.com/spot#list-orders
|
2142
|
-
see https://docs.kucoin.com/spot#list-stop-orders
|
2143
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2144
|
-
see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2141
|
+
:see: https://docs.kucoin.com/spot#list-orders
|
2142
|
+
:see: https://docs.kucoin.com/spot#list-stop-orders
|
2143
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
2144
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
2145
2145
|
:param str symbol: unified market symbol
|
2146
2146
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2147
2147
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2168,12 +2168,12 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2168
2168
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
2169
2169
|
"""
|
2170
2170
|
fetch an order
|
2171
|
-
see https://docs.kucoin.com/spot#get-an-order
|
2172
|
-
see https://docs.kucoin.com/spot#get-single-active-order-by-clientoid
|
2173
|
-
see https://docs.kucoin.com/spot#get-single-order-info
|
2174
|
-
see https://docs.kucoin.com/spot#get-single-order-by-clientoid
|
2175
|
-
see https://docs.kucoin.com/spot-hf/#details-of-a-single-hf-order
|
2176
|
-
see https://docs.kucoin.com/spot-hf/#obtain-details-of-a-single-hf-order-using-clientoid
|
2171
|
+
:see: https://docs.kucoin.com/spot#get-an-order
|
2172
|
+
:see: https://docs.kucoin.com/spot#get-single-active-order-by-clientoid
|
2173
|
+
:see: https://docs.kucoin.com/spot#get-single-order-info
|
2174
|
+
:see: https://docs.kucoin.com/spot#get-single-order-by-clientoid
|
2175
|
+
:see: https://docs.kucoin.com/spot-hf/#details-of-a-single-hf-order
|
2176
|
+
:see: https://docs.kucoin.com/spot-hf/#obtain-details-of-a-single-hf-order-using-clientoid
|
2177
2177
|
:param str id: Order id
|
2178
2178
|
:param str symbol: not sent to exchange except for stop orders with clientOid, but used internally by CCXT to filter
|
2179
2179
|
:param dict [params]: exchange specific parameters
|
@@ -2400,8 +2400,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2400
2400
|
def fetch_order_trades(self, id: str, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2401
2401
|
"""
|
2402
2402
|
fetch all the trades made from a single order
|
2403
|
-
see https://docs.kucoin.com/#list-fills
|
2404
|
-
see https://docs.kucoin.com/spot-hf/#transaction-details
|
2403
|
+
:see: https://docs.kucoin.com/#list-fills
|
2404
|
+
:see: https://docs.kucoin.com/spot-hf/#transaction-details
|
2405
2405
|
:param str id: order id
|
2406
2406
|
:param str symbol: unified market symbol
|
2407
2407
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2416,8 +2416,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2416
2416
|
|
2417
2417
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2418
2418
|
"""
|
2419
|
-
see https://docs.kucoin.com/#list-fills
|
2420
|
-
see https://docs.kucoin.com/spot-hf/#transaction-details
|
2419
|
+
:see: https://docs.kucoin.com/#list-fills
|
2420
|
+
:see: https://docs.kucoin.com/spot-hf/#transaction-details
|
2421
2421
|
fetch all trades made by the user
|
2422
2422
|
:param str symbol: unified market symbol
|
2423
2423
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2518,7 +2518,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2518
2518
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2519
2519
|
"""
|
2520
2520
|
get the list of most recent trades for a particular symbol
|
2521
|
-
see https://docs.kucoin.com/#get-trade-histories
|
2521
|
+
:see: https://docs.kucoin.com/#get-trade-histories
|
2522
2522
|
:param str symbol: unified symbol of the market to fetch trades for
|
2523
2523
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
2524
2524
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -2683,7 +2683,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2683
2683
|
def fetch_trading_fee(self, symbol: str, params={}):
|
2684
2684
|
"""
|
2685
2685
|
fetch the trading fees for a market
|
2686
|
-
see https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
2686
|
+
:see: https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
2687
2687
|
:param str symbol: unified market symbol
|
2688
2688
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
2689
2689
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2721,7 +2721,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2721
2721
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
2722
2722
|
"""
|
2723
2723
|
make a withdrawal
|
2724
|
-
see https://docs.kucoin.com/#apply-withdraw-2
|
2724
|
+
:see: https://docs.kucoin.com/#apply-withdraw-2
|
2725
2725
|
:param str code: unified currency code
|
2726
2726
|
:param float amount: the amount to withdraw
|
2727
2727
|
:param str address: the address to withdraw to
|
@@ -2879,11 +2879,11 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2879
2879
|
|
2880
2880
|
def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2881
2881
|
"""
|
2882
|
-
see https://docs.kucoin.com/#get-deposit-list
|
2883
|
-
see https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2882
|
+
:see: https://docs.kucoin.com/#get-deposit-list
|
2883
|
+
:see: https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2884
2884
|
fetch all deposits made to an account
|
2885
|
-
see https://docs.kucoin.com/#get-deposit-list
|
2886
|
-
see https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2885
|
+
:see: https://docs.kucoin.com/#get-deposit-list
|
2886
|
+
:see: https://docs.kucoin.com/#get-v1-historical-deposits-list
|
2887
2887
|
:param str code: unified currency code
|
2888
2888
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2889
2889
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2958,8 +2958,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2958
2958
|
def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2959
2959
|
"""
|
2960
2960
|
fetch all withdrawals made from an account
|
2961
|
-
see https://docs.kucoin.com/#get-withdrawals-list
|
2962
|
-
see https://docs.kucoin.com/#get-v1-historical-withdrawals-list
|
2961
|
+
:see: https://docs.kucoin.com/#get-withdrawals-list
|
2962
|
+
:see: https://docs.kucoin.com/#get-v1-historical-withdrawals-list
|
2963
2963
|
:param str code: unified currency code
|
2964
2964
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2965
2965
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -3045,8 +3045,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3045
3045
|
def fetch_balance(self, params={}):
|
3046
3046
|
"""
|
3047
3047
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
3048
|
-
see https://docs.kucoin.com/#list-accounts
|
3049
|
-
see https://docs.kucoin.com/#query-isolated-margin-account-info
|
3048
|
+
:see: https://docs.kucoin.com/#list-accounts
|
3049
|
+
:see: https://docs.kucoin.com/#query-isolated-margin-account-info
|
3050
3050
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
3051
3051
|
:param dict [params.marginMode]: 'cross' or 'isolated', margin type for fetching margin balance
|
3052
3052
|
:param dict [params.type]: extra parameters specific to the kucoin api endpoint
|
@@ -3176,9 +3176,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3176
3176
|
def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
3177
3177
|
"""
|
3178
3178
|
transfer currency internally between wallets on the same account
|
3179
|
-
see https://docs.kucoin.com/#inner-transfer
|
3180
|
-
see https://docs.kucoin.com/futures/#transfer-funds-to-kucoin-main-account-2
|
3181
|
-
see https://docs.kucoin.com/spot-hf/#internal-funds-transfers-in-high-frequency-trading-accounts
|
3179
|
+
:see: https://docs.kucoin.com/#inner-transfer
|
3180
|
+
:see: https://docs.kucoin.com/futures/#transfer-funds-to-kucoin-main-account-2
|
3181
|
+
:see: https://docs.kucoin.com/spot-hf/#internal-funds-transfers-in-high-frequency-trading-accounts
|
3182
3182
|
:param str code: unified currency code
|
3183
3183
|
:param float amount: amount to transfer
|
3184
3184
|
:param str fromAccount: account to transfer from
|
@@ -3443,9 +3443,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3443
3443
|
|
3444
3444
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3445
3445
|
"""
|
3446
|
-
see https://docs.kucoin.com/#get-account-ledgers
|
3446
|
+
:see: https://docs.kucoin.com/#get-account-ledgers
|
3447
3447
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
3448
|
-
see https://docs.kucoin.com/#get-account-ledgers
|
3448
|
+
:see: https://docs.kucoin.com/#get-account-ledgers
|
3449
3449
|
:param str code: unified currency code, default is None
|
3450
3450
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
3451
3451
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -3534,7 +3534,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3534
3534
|
def fetch_borrow_rate_history(self, code: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3535
3535
|
"""
|
3536
3536
|
retrieves a history of a currencies borrow interest rate at specific time slots
|
3537
|
-
see https://docs.kucoin.com/#margin-trade-data
|
3537
|
+
:see: https://docs.kucoin.com/#margin-trade-data
|
3538
3538
|
:param str code: unified currency code
|
3539
3539
|
:param int [since]: timestamp for the earliest borrow rate
|
3540
3540
|
:param int [limit]: the maximum number of [borrow rate structures]
|
@@ -3600,8 +3600,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3600
3600
|
def fetch_borrow_interest(self, code: Optional[str] = None, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3601
3601
|
"""
|
3602
3602
|
fetch the interest owed by the user for borrowing currency for margin trading
|
3603
|
-
see https://docs.kucoin.com/#get-repay-record
|
3604
|
-
see https://docs.kucoin.com/#query-isolated-margin-account-info
|
3603
|
+
:see: https://docs.kucoin.com/#get-repay-record
|
3604
|
+
:see: https://docs.kucoin.com/#query-isolated-margin-account-info
|
3605
3605
|
:param str code: unified currency code
|
3606
3606
|
:param str symbol: unified market symbol, required for isolated margin
|
3607
3607
|
:param int [since]: the earliest time in ms to fetch borrrow interest for
|
@@ -3768,7 +3768,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3768
3768
|
def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
3769
3769
|
"""
|
3770
3770
|
create a loan to borrow margin
|
3771
|
-
see https://docs.kucoin.com/#1-margin-borrowing
|
3771
|
+
:see: https://docs.kucoin.com/#1-margin-borrowing
|
3772
3772
|
:param str code: unified currency code of the currency to borrow
|
3773
3773
|
:param float amount: the amount to borrow
|
3774
3774
|
:param str symbol: unified market symbol, required for isolated margin
|
@@ -3815,7 +3815,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3815
3815
|
def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
3816
3816
|
"""
|
3817
3817
|
repay borrowed margin and interest
|
3818
|
-
see https://docs.kucoin.com/#2-repayment
|
3818
|
+
:see: https://docs.kucoin.com/#2-repayment
|
3819
3819
|
:param str code: unified currency code of the currency to repay
|
3820
3820
|
:param float amount: the amount to repay
|
3821
3821
|
:param str symbol: unified market symbol
|
@@ -3877,7 +3877,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
3877
3877
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
3878
3878
|
"""
|
3879
3879
|
fetch deposit and withdraw fees - *IMPORTANT* use fetchDepositWithdrawFee to get more in-depth info
|
3880
|
-
see https://docs.kucoin.com/#get-currencies
|
3880
|
+
:see: https://docs.kucoin.com/#get-currencies
|
3881
3881
|
:param str[]|None codes: list of unified currency codes
|
3882
3882
|
:param dict [params]: extra parameters specific to the kucoin api endpoint
|
3883
3883
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
ccxt/kucoinfutures.py
CHANGED
@@ -845,7 +845,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
845
845
|
|
846
846
|
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
|
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
|
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
|
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
|
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
|
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
|
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/latoken.py
CHANGED
@@ -1028,8 +1028,8 @@ class latoken(Exchange, ImplicitAPI):
|
|
1028
1028
|
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
|
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
|
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
|
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
|
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
|
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
|