ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +145 -79
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/async_support/coincatch.py
CHANGED
@@ -501,7 +501,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
501
501
|
async def fetch_time(self, params={}):
|
502
502
|
"""
|
503
503
|
fetches the current integer timestamp in milliseconds from the exchange server
|
504
|
-
|
504
|
+
|
505
|
+
https://coincatch.github.io/github.io/en/spot/#get-server-time
|
506
|
+
|
505
507
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
506
508
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
507
509
|
"""
|
@@ -519,7 +521,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
519
521
|
async def fetch_currencies(self, params={}) -> Currencies:
|
520
522
|
"""
|
521
523
|
fetches all available currencies on an exchange
|
522
|
-
|
524
|
+
|
525
|
+
https://coincatch.github.io/github.io/en/spot/#get-coin-list
|
526
|
+
|
523
527
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
524
528
|
:returns dict: an associative dictionary of currencies
|
525
529
|
"""
|
@@ -635,8 +639,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
635
639
|
async def fetch_markets(self, params={}) -> List[Market]:
|
636
640
|
"""
|
637
641
|
retrieves data on all markets for the exchange
|
638
|
-
|
639
|
-
|
642
|
+
|
643
|
+
https://coincatch.github.io/github.io/en/spot/#get-all-tickers
|
644
|
+
https://coincatch.github.io/github.io/en/mix/#get-all-symbols
|
645
|
+
|
640
646
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
641
647
|
:returns dict[]: an array of objects representing market data
|
642
648
|
"""
|
@@ -939,8 +945,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
939
945
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
940
946
|
"""
|
941
947
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
942
|
-
|
943
|
-
|
948
|
+
|
949
|
+
https://coincatch.github.io/github.io/en/spot/#get-single-ticker
|
950
|
+
https://coincatch.github.io/github.io/en/mix/#get-single-symbol-ticker
|
951
|
+
|
944
952
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
945
953
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
946
954
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1017,8 +1025,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1017
1025
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1018
1026
|
"""
|
1019
1027
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1020
|
-
|
1021
|
-
|
1028
|
+
|
1029
|
+
https://coincatch.github.io/github.io/en/spot/#get-all-tickers
|
1030
|
+
https://coincatch.github.io/github.io/en/mix/#get-all-symbol-ticker
|
1031
|
+
|
1022
1032
|
:param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1023
1033
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1024
1034
|
:param str [params.type]: 'spot' or 'swap'(default 'spot')
|
@@ -1186,8 +1196,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1186
1196
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1187
1197
|
"""
|
1188
1198
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1189
|
-
|
1190
|
-
|
1199
|
+
|
1200
|
+
https://coincatch.github.io/github.io/en/spot/#get-merged-depth-data
|
1201
|
+
https://coincatch.github.io/github.io/en/mix/#get-merged-depth-data
|
1202
|
+
|
1191
1203
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1192
1204
|
:param int [limit]: the maximum amount of order book entries to return(maximum and default value is 100)
|
1193
1205
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1234,8 +1246,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1234
1246
|
|
1235
1247
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1236
1248
|
"""
|
1237
|
-
|
1238
|
-
|
1249
|
+
|
1250
|
+
https://coincatch.github.io/github.io/en/spot/#get-candle-data
|
1251
|
+
https://coincatch.github.io/github.io/en/mix/#get-candle-data
|
1252
|
+
|
1239
1253
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1240
1254
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1241
1255
|
:param str timeframe: the length of time each candle represents
|
@@ -1338,8 +1352,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1338
1352
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1339
1353
|
"""
|
1340
1354
|
get the list of most recent trades for a particular symbol
|
1341
|
-
|
1342
|
-
|
1355
|
+
|
1356
|
+
https://coincatch.github.io/github.io/en/spot/#get-recent-trades
|
1357
|
+
https://coincatch.github.io/github.io/en/mix/#get-fills
|
1358
|
+
|
1343
1359
|
:param str symbol: unified symbol of the market to fetch trades for
|
1344
1360
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1345
1361
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1500,7 +1516,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1500
1516
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1501
1517
|
"""
|
1502
1518
|
fetch the current funding rate
|
1503
|
-
|
1519
|
+
|
1520
|
+
https://coincatch.github.io/github.io/en/mix/#get-current-funding-rate
|
1521
|
+
|
1504
1522
|
:param str symbol: unified market symbol
|
1505
1523
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1506
1524
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1561,7 +1579,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1561
1579
|
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1562
1580
|
"""
|
1563
1581
|
fetches historical funding rate prices
|
1564
|
-
|
1582
|
+
|
1583
|
+
https://coincatch.github.io/github.io/en/mix/#get-history-funding-rate
|
1584
|
+
|
1565
1585
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
1566
1586
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
1567
1587
|
:param int [limit]: the maximum amount of entries to fetch
|
@@ -1616,7 +1636,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1616
1636
|
async def fetch_balance(self, params={}) -> Balances:
|
1617
1637
|
"""
|
1618
1638
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1619
|
-
|
1639
|
+
|
1640
|
+
https://coincatch.github.io/github.io/en/spot/#get-account-assets
|
1641
|
+
|
1620
1642
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1621
1643
|
:param str [params.type]: 'spot' or 'swap' - the type of the market to fetch balance for(default 'spot')
|
1622
1644
|
:param str [params.productType]: *swap only* 'umcbl' or 'dmcbl'(default 'umcbl')
|
@@ -1624,8 +1646,8 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1624
1646
|
"""
|
1625
1647
|
await self.load_markets()
|
1626
1648
|
methodName = 'fetchBalance'
|
1627
|
-
marketType =
|
1628
|
-
marketType, params = self.handle_market_type_and_params(methodName, None, params
|
1649
|
+
marketType = None
|
1650
|
+
marketType, params = self.handle_market_type_and_params(methodName, None, params)
|
1629
1651
|
response = None
|
1630
1652
|
if marketType == 'spot':
|
1631
1653
|
#
|
@@ -1736,7 +1758,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1736
1758
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1737
1759
|
"""
|
1738
1760
|
transfer currency internally between wallets on the same account
|
1739
|
-
|
1761
|
+
|
1762
|
+
https://coincatch.github.io/github.io/en/spot/#transfer
|
1763
|
+
|
1740
1764
|
:param str code: unified currency code
|
1741
1765
|
:param float amount: amount to transfer
|
1742
1766
|
:param str fromAccount: 'spot' or 'swap' or 'mix_usdt' or 'mix_usd' - account to transfer from
|
@@ -1802,10 +1826,12 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1802
1826
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1803
1827
|
"""
|
1804
1828
|
fetch the deposit address for a currency associated with self account
|
1805
|
-
|
1829
|
+
|
1830
|
+
https://coincatch.github.io/github.io/en/spot/#get-coin-address
|
1831
|
+
|
1806
1832
|
:param str code: unified currency code
|
1807
|
-
:param str [params.network]: network for fetch deposit address
|
1808
1833
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1834
|
+
:param str [params.network]: network for fetch deposit address
|
1809
1835
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
1810
1836
|
"""
|
1811
1837
|
await self.load_markets()
|
@@ -1865,7 +1891,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1865
1891
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1866
1892
|
"""
|
1867
1893
|
fetch all deposits made to an account
|
1868
|
-
|
1894
|
+
|
1895
|
+
https://coincatch.github.io/github.io/en/spot/#get-deposit-list
|
1896
|
+
|
1869
1897
|
:param str code: unified currency code of the currency transferred
|
1870
1898
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1871
1899
|
:param int [limit]: the maximum number of transfer structures to retrieve(not used by exchange)
|
@@ -1922,7 +1950,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1922
1950
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1923
1951
|
"""
|
1924
1952
|
fetch all withdrawals made from an account
|
1925
|
-
|
1953
|
+
|
1954
|
+
https://coincatch.github.io/github.io/en/spot/#get-withdraw-list-v2
|
1955
|
+
|
1926
1956
|
:param str code: unified currency code of the currency transferred
|
1927
1957
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1928
1958
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1957,7 +1987,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
1957
1987
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1958
1988
|
"""
|
1959
1989
|
make a withdrawal
|
1960
|
-
|
1990
|
+
|
1991
|
+
https://coincatch.github.io/github.io/en/spot/#withdraw
|
1992
|
+
|
1961
1993
|
:param str code: unified currency code
|
1962
1994
|
:param float amount: the amount to withdraw
|
1963
1995
|
:param str address: the address to withdraw to
|
@@ -2077,7 +2109,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2077
2109
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
2078
2110
|
"""
|
2079
2111
|
create a market buy order by providing the symbol and cost
|
2080
|
-
|
2112
|
+
|
2113
|
+
https://coincatch.github.io/github.io/en/spot/#place-order
|
2114
|
+
|
2081
2115
|
:param str symbol: unified symbol of the market to create an order in
|
2082
2116
|
:param float cost: how much you want to trade in units of the quote currency
|
2083
2117
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2095,10 +2129,12 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2095
2129
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2096
2130
|
"""
|
2097
2131
|
create a trade order
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2132
|
+
|
2133
|
+
https://coincatch.github.io/github.io/en/spot/#place-order
|
2134
|
+
https://coincatch.github.io/github.io/en/spot/#place-plan-order
|
2135
|
+
https://coincatch.github.io/github.io/en/mix/#place-order
|
2136
|
+
https://coincatch.github.io/github.io/en/mix/#place-plan-order
|
2137
|
+
|
2102
2138
|
:param str symbol: unified symbol of the market to create an order in
|
2103
2139
|
:param str type: 'market' or 'limit' or 'LIMIT_MAKER' for spot, 'market' or 'limit' or 'STOP' for swap
|
2104
2140
|
:param str side: 'buy' or 'sell'
|
@@ -2125,8 +2161,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2125
2161
|
async def create_spot_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2126
2162
|
"""
|
2127
2163
|
create a trade order on spot market
|
2128
|
-
|
2129
|
-
|
2164
|
+
|
2165
|
+
https://coincatch.github.io/github.io/en/spot/#place-order
|
2166
|
+
https://coincatch.github.io/github.io/en/spot/#place-plan-order
|
2167
|
+
|
2130
2168
|
:param str symbol: unified symbol of the market to create an order in
|
2131
2169
|
:param str type: 'market' or 'limit'
|
2132
2170
|
:param str side: 'buy' or 'sell'
|
@@ -2166,7 +2204,7 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2166
2204
|
|
2167
2205
|
def create_spot_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> dict:
|
2168
2206
|
"""
|
2169
|
-
|
2207
|
+
@ignore
|
2170
2208
|
helper function to build request
|
2171
2209
|
:param str symbol: unified symbol of the market to create an order in
|
2172
2210
|
:param str type: 'market' or 'limit'
|
@@ -2270,9 +2308,11 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2270
2308
|
async def create_swap_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2271
2309
|
"""
|
2272
2310
|
create a trade order on swap market
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2311
|
+
|
2312
|
+
https://coincatch.github.io/github.io/en/mix/#place-order
|
2313
|
+
https://coincatch.github.io/github.io/en/mix/#place-plan-order
|
2314
|
+
https://coincatch.github.io/github.io/en/mix/#place-stop-order
|
2315
|
+
|
2276
2316
|
:param str symbol: unified symbol of the market to create an order in
|
2277
2317
|
:param str type: 'market' or 'limit'
|
2278
2318
|
:param str side: 'buy' or 'sell'
|
@@ -2322,7 +2362,7 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2322
2362
|
|
2323
2363
|
def create_swap_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> dict:
|
2324
2364
|
"""
|
2325
|
-
|
2365
|
+
@ignore
|
2326
2366
|
helper function to build request
|
2327
2367
|
:param str symbol: unified symbol of the market to create an order in
|
2328
2368
|
:param str type: 'market' or 'limit'
|
@@ -2487,8 +2527,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2487
2527
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
2488
2528
|
"""
|
2489
2529
|
create a list of trade orders(all orders should be of the same symbol)
|
2490
|
-
|
2491
|
-
|
2530
|
+
|
2531
|
+
https://hashkeyglobal-apidoc.readme.io/reference/create-multiple-orders
|
2532
|
+
https://hashkeyglobal-apidoc.readme.io/reference/batch-create-new-futures-order
|
2533
|
+
|
2492
2534
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params(max 50 entries)
|
2493
2535
|
:param dict [params]: extra parameters specific to the api endpoint
|
2494
2536
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2611,7 +2653,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2611
2653
|
async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
2612
2654
|
"""
|
2613
2655
|
edit a trade trigger, stop-looss or take-profit order
|
2614
|
-
|
2656
|
+
|
2657
|
+
https://coincatch.github.io/github.io/en/spot/#modify-plan-order
|
2658
|
+
|
2615
2659
|
:param str id: order id
|
2616
2660
|
:param str symbol: unified symbol of the market to create an order in
|
2617
2661
|
:param str type: 'market' or 'limit'
|
@@ -2634,9 +2678,11 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2634
2678
|
|
2635
2679
|
async def edit_spot_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
2636
2680
|
"""
|
2637
|
-
|
2681
|
+
@ignore
|
2638
2682
|
edit a trade order
|
2639
|
-
|
2683
|
+
|
2684
|
+
https://coincatch.github.io/github.io/en/spot/#modify-plan-order
|
2685
|
+
|
2640
2686
|
:param str id: order id
|
2641
2687
|
:param str symbol: unified symbol of the market to create an order in
|
2642
2688
|
:param str type: 'market' or 'limit'
|
@@ -2699,8 +2745,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2699
2745
|
async def fetch_order(self, id: str, symbol: Str = None, params={}) -> Order:
|
2700
2746
|
"""
|
2701
2747
|
fetches information on an order made by the user(non-trigger orders only)
|
2702
|
-
|
2703
|
-
|
2748
|
+
|
2749
|
+
https://coincatch.github.io/github.io/en/spot/#get-order-details
|
2750
|
+
https://coincatch.github.io/github.io/en/mix/#get-order-details
|
2751
|
+
|
2704
2752
|
:param str id: the order id
|
2705
2753
|
:param str symbol: unified symbol of the market the order was made in(is mandatory for swap)
|
2706
2754
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2821,11 +2869,13 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2821
2869
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2822
2870
|
"""
|
2823
2871
|
fetch all unfilled currently open orders
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2872
|
+
|
2873
|
+
https://coincatch.github.io/github.io/en/spot/#get-order-list
|
2874
|
+
https://coincatch.github.io/github.io/en/spot/#get-current-plan-orders
|
2875
|
+
https://coincatch.github.io/github.io/en/mix/#get-open-order
|
2876
|
+
https://coincatch.github.io/github.io/en/mix/#get-all-open-order
|
2877
|
+
https://coincatch.github.io/github.io/en/mix/#get-plan-order-tpsl-list
|
2878
|
+
|
2829
2879
|
:param str [symbol]: unified market symbol of the market orders were made in
|
2830
2880
|
:param int [since]: the earliest time in ms to fetch orders for
|
2831
2881
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2854,10 +2904,12 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2854
2904
|
|
2855
2905
|
async def fetch_open_spot_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2856
2906
|
"""
|
2857
|
-
|
2907
|
+
@ignore
|
2858
2908
|
fetch all unfilled currently open orders for spot markets
|
2859
|
-
|
2860
|
-
|
2909
|
+
|
2910
|
+
https://coincatch.github.io/github.io/en/spot/#get-order-list
|
2911
|
+
https://coincatch.github.io/github.io/en/spot/#get-current-plan-orders
|
2912
|
+
|
2861
2913
|
:param str [symbol]: unified market symbol of the market orders were made in
|
2862
2914
|
:param int [since]: the earliest time in ms to fetch orders for
|
2863
2915
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2949,11 +3001,13 @@ class coincatch(Exchange, ImplicitAPI):
|
|
2949
3001
|
|
2950
3002
|
async def fetch_open_swap_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2951
3003
|
"""
|
2952
|
-
|
3004
|
+
@ignore
|
2953
3005
|
fetch all unfilled currently open orders for swap markets
|
2954
|
-
|
2955
|
-
|
2956
|
-
|
3006
|
+
|
3007
|
+
https://coincatch.github.io/github.io/en/mix/#get-open-order
|
3008
|
+
https://coincatch.github.io/github.io/en/mix/#get-all-open-order
|
3009
|
+
https://coincatch.github.io/github.io/en/mix/#get-plan-order-tpsl-list
|
3010
|
+
|
2957
3011
|
:param str [symbol]: unified market symbol of the market orders were made in
|
2958
3012
|
:param int [since]: the earliest time in ms to fetch orders for
|
2959
3013
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3073,11 +3127,13 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3073
3127
|
async def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3074
3128
|
"""
|
3075
3129
|
fetches information on multiple canceled and closed orders made by the user
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
3080
|
-
|
3130
|
+
|
3131
|
+
https://coincatch.github.io/github.io/en/spot/#get-order-list
|
3132
|
+
https://coincatch.github.io/github.io/en/spot/#get-history-plan-orders
|
3133
|
+
https://coincatch.github.io/github.io/en/mix/#get-history-orders
|
3134
|
+
https://coincatch.github.io/github.io/en/mix/#get-producttype-history-orders
|
3135
|
+
https://coincatch.github.io/github.io/en/mix/#get-history-plan-orders-tpsl
|
3136
|
+
|
3081
3137
|
:param str symbol: *is mandatory* unified market symbol of the market orders were made in
|
3082
3138
|
:param int [since]: the earliest time in ms to fetch orders for
|
3083
3139
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3106,10 +3162,12 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3106
3162
|
|
3107
3163
|
async def fetch_canceled_and_closed_spot_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3108
3164
|
"""
|
3109
|
-
|
3165
|
+
@ignore
|
3110
3166
|
fetches information on multiple canceled and closed orders made by the user on spot markets
|
3111
|
-
|
3112
|
-
|
3167
|
+
|
3168
|
+
https://coincatch.github.io/github.io/en/spot/#get-order-history
|
3169
|
+
https://coincatch.github.io/github.io/en/spot/#get-history-plan-orders
|
3170
|
+
|
3113
3171
|
:param str symbol: *is mandatory* unified market symbol of the market orders were made in
|
3114
3172
|
:param int [since]: the earliest time in ms to fetch orders for
|
3115
3173
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3241,11 +3299,13 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3241
3299
|
|
3242
3300
|
async def fetch_canceled_and_closed_swap_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3243
3301
|
"""
|
3244
|
-
|
3302
|
+
@ignore
|
3245
3303
|
fetches information on multiple canceled and closed orders made by the user on swap markets
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3304
|
+
|
3305
|
+
https://coincatch.github.io/github.io/en/mix/#get-history-orders
|
3306
|
+
https://coincatch.github.io/github.io/en/mix/#get-producttype-history-orders
|
3307
|
+
https://coincatch.github.io/github.io/en/mix/#get-history-plan-orders-tpsl
|
3308
|
+
|
3249
3309
|
:param str [symbol]: unified market symbol of the market orders were made in
|
3250
3310
|
:param int [since]: the earliest time in ms to fetch orders for
|
3251
3311
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3388,10 +3448,12 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3388
3448
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
3389
3449
|
"""
|
3390
3450
|
cancels an open order
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3451
|
+
|
3452
|
+
https://coincatch.github.io/github.io/en/spot/#cancel-order-v2
|
3453
|
+
https://coincatch.github.io/github.io/en/spot/#cancel-plan-order
|
3454
|
+
https://coincatch.github.io/github.io/en/mix/#cancel-order
|
3455
|
+
https://coincatch.github.io/github.io/en/mix/#cancel-plan-order-tpsl
|
3456
|
+
|
3395
3457
|
:param str id: order id
|
3396
3458
|
:param str symbol: unified symbol of the market the order was made in
|
3397
3459
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3445,12 +3507,14 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3445
3507
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
3446
3508
|
"""
|
3447
3509
|
cancels all open orders
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3510
|
+
|
3511
|
+
https://coincatch.github.io/github.io/en/spot/#cancel-all-orders
|
3512
|
+
https://coincatch.github.io/github.io/en/spot/#batch-cancel-plan-orders
|
3513
|
+
https://coincatch.github.io/github.io/en/mix/#batch-cancel-order
|
3514
|
+
https://coincatch.github.io/github.io/en/mix/#cancel-order-by-symbol
|
3515
|
+
https://coincatch.github.io/github.io/en/mix/#cancel-plan-order-tpsl-by-symbol
|
3516
|
+
https://coincatch.github.io/github.io/en/mix/#cancel-all-trigger-order-tpsl
|
3517
|
+
|
3454
3518
|
:param str [symbol]: unified symbol of the market the orders were made in
|
3455
3519
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3456
3520
|
:param str [params.type]: 'spot' or 'swap' - the type of the market to cancel orders for(default 'spot')
|
@@ -3559,7 +3623,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3559
3623
|
async def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
|
3560
3624
|
"""
|
3561
3625
|
cancel multiple non-trigger orders
|
3562
|
-
|
3626
|
+
|
3627
|
+
https://coincatch.github.io/github.io/en/spot/#cancel-order-in-batch-v2-single-instruments
|
3628
|
+
|
3563
3629
|
:param str[] ids: order ids
|
3564
3630
|
:param str symbol: *is mandatory* unified market symbol
|
3565
3631
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3921,9 +3987,11 @@ class coincatch(Exchange, ImplicitAPI):
|
|
3921
3987
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
3922
3988
|
"""
|
3923
3989
|
fetch all trades made by the user
|
3924
|
-
|
3925
|
-
|
3926
|
-
|
3990
|
+
|
3991
|
+
https://coincatch.github.io/github.io/en/spot/#get-transaction-details
|
3992
|
+
https://coincatch.github.io/github.io/en/mix/#get-order-fill-detail
|
3993
|
+
https://coincatch.github.io/github.io/en/mix/#get-producttype-order-fill-detail
|
3994
|
+
|
3927
3995
|
:param str symbol: *is mandatory* unified market symbol
|
3928
3996
|
:param int [since]: the earliest time in ms to fetch trades for
|
3929
3997
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -4057,7 +4125,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4057
4125
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
4058
4126
|
"""
|
4059
4127
|
fetch all the trades made from a single order
|
4060
|
-
|
4128
|
+
|
4129
|
+
https://coincatch.github.io/github.io/en/spot/#get-transaction-details
|
4130
|
+
|
4061
4131
|
:param str id: order id
|
4062
4132
|
:param str symbol: unified market symbol
|
4063
4133
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -4077,7 +4147,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4077
4147
|
async def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
|
4078
4148
|
"""
|
4079
4149
|
fetches the margin mode of the trading pair
|
4080
|
-
|
4150
|
+
|
4151
|
+
https://coincatch.github.io/github.io/en/mix/#get-single-account
|
4152
|
+
|
4081
4153
|
:param str symbol: unified symbol of the market to fetch the margin mode for
|
4082
4154
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4083
4155
|
:returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
|
@@ -4138,7 +4210,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4138
4210
|
async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
|
4139
4211
|
"""
|
4140
4212
|
set margin mode to 'cross' or 'isolated'
|
4141
|
-
|
4213
|
+
|
4214
|
+
https://coincatch.github.io/github.io/en/mix/#change-margin-mode
|
4215
|
+
|
4142
4216
|
:param str marginMode: 'cross' or 'isolated'
|
4143
4217
|
:param str symbol: unified market symbol
|
4144
4218
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4184,7 +4258,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4184
4258
|
async def fetch_position_mode(self, symbol: Str = None, params={}):
|
4185
4259
|
"""
|
4186
4260
|
fetchs the position mode, hedged or one way
|
4187
|
-
|
4261
|
+
|
4262
|
+
https://coincatch.github.io/github.io/en/mix/#get-single-account
|
4263
|
+
|
4188
4264
|
:param str symbol: unified symbol of the market to fetch entry for
|
4189
4265
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4190
4266
|
:returns dict: an object detailing whether the market is in hedged or one-way mode
|
@@ -4210,7 +4286,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4210
4286
|
async def set_position_mode(self, hedged: bool, symbol: Str = None, params={}):
|
4211
4287
|
"""
|
4212
4288
|
set hedged to True or False for a market
|
4213
|
-
|
4289
|
+
|
4290
|
+
https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set%20Position%20Mode
|
4291
|
+
|
4214
4292
|
:param bool hedged: set to True to use dualSidePosition
|
4215
4293
|
:param str symbol: unified symbol of the market to fetch entry for
|
4216
4294
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4251,7 +4329,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4251
4329
|
async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
4252
4330
|
"""
|
4253
4331
|
fetch the set leverage for a market
|
4254
|
-
|
4332
|
+
|
4333
|
+
https://coincatch.github.io/github.io/en/mix/#get-single-account
|
4334
|
+
|
4255
4335
|
:param str symbol: unified market symbol
|
4256
4336
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4257
4337
|
:returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
|
@@ -4271,7 +4351,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4271
4351
|
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
4272
4352
|
"""
|
4273
4353
|
set the level of leverage for a market
|
4274
|
-
|
4354
|
+
|
4355
|
+
https://hashkeyglobal-apidoc.readme.io/reference/change-futures-leverage-trade
|
4356
|
+
|
4275
4357
|
:param float leverage: the rate of leverage
|
4276
4358
|
:param str symbol: unified market symbol
|
4277
4359
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4415,7 +4497,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4415
4497
|
async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
4416
4498
|
"""
|
4417
4499
|
remove margin from a position
|
4418
|
-
|
4500
|
+
|
4501
|
+
https://coincatch.github.io/github.io/en/mix/#change-margin
|
4502
|
+
|
4419
4503
|
:param str symbol: unified market symbol
|
4420
4504
|
:param float amount: the amount of margin to remove
|
4421
4505
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4428,7 +4512,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4428
4512
|
async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
4429
4513
|
"""
|
4430
4514
|
add margin
|
4431
|
-
|
4515
|
+
|
4516
|
+
https://coincatch.github.io/github.io/en/mix/#change-margin
|
4517
|
+
|
4432
4518
|
:param str symbol: unified market symbol
|
4433
4519
|
:param float amount: amount of margin to add
|
4434
4520
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4441,10 +4527,12 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4441
4527
|
async def fetch_position(self, symbol: str, params={}):
|
4442
4528
|
"""
|
4443
4529
|
fetch data on a single open contract trade position
|
4444
|
-
|
4530
|
+
|
4531
|
+
https://coincatch.github.io/github.io/en/mix/#get-symbol-position
|
4532
|
+
|
4445
4533
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
4446
4534
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4447
|
-
|
4535
|
+
@param {str} [params.side] 'long' or 'short' *for non-hedged position mode only* (default 'long')
|
4448
4536
|
:returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
4449
4537
|
"""
|
4450
4538
|
methodName = 'fetchPosition'
|
@@ -4462,7 +4550,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4462
4550
|
async def fetch_positions_for_symbol(self, symbol: str, params={}) -> List[Position]:
|
4463
4551
|
"""
|
4464
4552
|
fetch open positions for a single market
|
4465
|
-
|
4553
|
+
|
4554
|
+
https://coincatch.github.io/github.io/en/mix/#get-symbol-position
|
4555
|
+
|
4466
4556
|
fetch all open positions for specific symbol
|
4467
4557
|
:param str symbol: unified market symbol
|
4468
4558
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4512,7 +4602,9 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4512
4602
|
async def fetch_positions(self, symbols: Strings = None, params={}) -> List[Position]:
|
4513
4603
|
"""
|
4514
4604
|
fetch all open positions
|
4515
|
-
|
4605
|
+
|
4606
|
+
https://coincatch.github.io/github.io/en/mix/#get-all-position
|
4607
|
+
|
4516
4608
|
:param str[] [symbols]: list of unified market symbols(all symbols must belong to the same product type)
|
4517
4609
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4518
4610
|
:param str [params.productType]: 'umcbl' or 'dmcbl'(default 'umcbl' if symbols are not provided)
|
@@ -4673,8 +4765,10 @@ class coincatch(Exchange, ImplicitAPI):
|
|
4673
4765
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
4674
4766
|
"""
|
4675
4767
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
4676
|
-
|
4677
|
-
|
4768
|
+
|
4769
|
+
https://coincatch.github.io/github.io/en/spot/#get-bills
|
4770
|
+
https://coincatch.github.io/github.io/en/mix/#get-business-account-bill
|
4771
|
+
|
4678
4772
|
:param str [code]: unified currency code
|
4679
4773
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
4680
4774
|
:param int [limit]: max number of ledger entrys to return, default is None
|