ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/ascendex.py
CHANGED
@@ -801,9 +801,11 @@ class ascendex(Exchange, ImplicitAPI):
|
|
801
801
|
def fetch_balance(self, params={}) -> Balances:
|
802
802
|
"""
|
803
803
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
804
|
-
|
805
|
-
|
806
|
-
|
804
|
+
|
805
|
+
https://ascendex.github.io/ascendex-pro-api/#cash-account-balance
|
806
|
+
https://ascendex.github.io/ascendex-pro-api/#margin-account-balance
|
807
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
808
|
+
|
807
809
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
808
810
|
:param str [params.type]: wallet type, 'spot', 'margin', or 'swap'
|
809
811
|
:param str [params.marginMode]: 'cross' or None, for spot margin trading, value of 'isolated' is invalid
|
@@ -1012,8 +1014,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1012
1014
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1013
1015
|
"""
|
1014
1016
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1015
|
-
|
1016
|
-
|
1017
|
+
|
1018
|
+
https://ascendex.github.io/ascendex-pro-api/#ticker
|
1019
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
1020
|
+
|
1017
1021
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1018
1022
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1019
1023
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1171,7 +1175,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1171
1175
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1172
1176
|
"""
|
1173
1177
|
get the list of most recent trades for a particular symbol
|
1174
|
-
|
1178
|
+
|
1179
|
+
https://ascendex.github.io/ascendex-pro-api/#market-trades
|
1180
|
+
|
1175
1181
|
:param str symbol: unified symbol of the market to fetch trades for
|
1176
1182
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1177
1183
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1437,7 +1443,7 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1437
1443
|
|
1438
1444
|
def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1439
1445
|
"""
|
1440
|
-
|
1446
|
+
@ignore
|
1441
1447
|
helper function to build request
|
1442
1448
|
:param str symbol: unified symbol of the market to create an order in
|
1443
1449
|
:param str type: 'market' or 'limit'
|
@@ -1510,8 +1516,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1510
1516
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1511
1517
|
"""
|
1512
1518
|
create a trade order on the exchange
|
1513
|
-
|
1514
|
-
|
1519
|
+
|
1520
|
+
https://ascendex.github.io/ascendex-pro-api/#place-order
|
1521
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#new-order
|
1522
|
+
|
1515
1523
|
:param str symbol: unified CCXT market symbol
|
1516
1524
|
:param str type: "limit" or "market"
|
1517
1525
|
:param str side: "buy" or "sell"
|
@@ -1606,8 +1614,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1606
1614
|
def create_orders(self, orders: List[OrderRequest], params={}):
|
1607
1615
|
"""
|
1608
1616
|
create a list of trade orders
|
1609
|
-
|
1610
|
-
|
1617
|
+
|
1618
|
+
https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
|
1619
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
|
1620
|
+
|
1611
1621
|
: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
|
1612
1622
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1613
1623
|
:param str [params.timeInForce]: "GTC", "IOC", "FOK", or "PO"
|
@@ -1692,8 +1702,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1692
1702
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1693
1703
|
"""
|
1694
1704
|
fetches information on an order made by the user
|
1695
|
-
|
1696
|
-
|
1705
|
+
|
1706
|
+
https://ascendex.github.io/ascendex-pro-api/#query-order
|
1707
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
|
1708
|
+
|
1697
1709
|
:param str id: the order id
|
1698
1710
|
:param str symbol: unified symbol of the market the order was made in
|
1699
1711
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1795,8 +1807,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1795
1807
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1796
1808
|
"""
|
1797
1809
|
fetch all unfilled currently open orders
|
1798
|
-
|
1799
|
-
|
1810
|
+
|
1811
|
+
https://ascendex.github.io/ascendex-pro-api/#list-open-orders
|
1812
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-open-orders
|
1813
|
+
|
1800
1814
|
:param str symbol: unified market symbol
|
1801
1815
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1802
1816
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1906,8 +1920,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1906
1920
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1907
1921
|
"""
|
1908
1922
|
fetches information on multiple closed orders made by the user
|
1909
|
-
|
1910
|
-
|
1923
|
+
|
1924
|
+
https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
|
1925
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-current-history-orders
|
1926
|
+
|
1911
1927
|
:param str symbol: unified market symbol of the market orders were made in
|
1912
1928
|
:param int [since]: the earliest time in ms to fetch orders for
|
1913
1929
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2069,8 +2085,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2069
2085
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2070
2086
|
"""
|
2071
2087
|
cancels an open order
|
2072
|
-
|
2073
|
-
|
2088
|
+
|
2089
|
+
https://ascendex.github.io/ascendex-pro-api/#cancel-order
|
2090
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-order
|
2091
|
+
|
2074
2092
|
:param str id: order id
|
2075
2093
|
:param str symbol: unified symbol of the market the order was made in
|
2076
2094
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2177,8 +2195,10 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2177
2195
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
2178
2196
|
"""
|
2179
2197
|
cancel all open orders
|
2180
|
-
|
2181
|
-
|
2198
|
+
|
2199
|
+
https://ascendex.github.io/ascendex-pro-api/#cancel-all-orders
|
2200
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-all-open-orders
|
2201
|
+
|
2182
2202
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
2183
2203
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2184
2204
|
:returns dict[]: a list with a single `order structure <https://docs.ccxt.com/#/?id=order-structure>` with the response assigned to the info property
|
@@ -2278,7 +2298,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2278
2298
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
2279
2299
|
"""
|
2280
2300
|
fetch the deposit address for a currency associated with self account
|
2281
|
-
|
2301
|
+
|
2302
|
+
https://ascendex.github.io/ascendex-pro-api/#query-deposit-addresses
|
2303
|
+
|
2282
2304
|
:param str code: unified currency code
|
2283
2305
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2284
2306
|
:param str [params.network]: unified network code for deposit chain
|
@@ -2769,7 +2791,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2769
2791
|
def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2770
2792
|
"""
|
2771
2793
|
set the level of leverage for a market
|
2772
|
-
|
2794
|
+
|
2795
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
|
2796
|
+
|
2773
2797
|
:param float leverage: the rate of leverage
|
2774
2798
|
:param str symbol: unified market symbol
|
2775
2799
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2796,7 +2820,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2796
2820
|
def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
|
2797
2821
|
"""
|
2798
2822
|
set margin mode to 'cross' or 'isolated'
|
2799
|
-
|
2823
|
+
|
2824
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
|
2825
|
+
|
2800
2826
|
:param str marginMode: 'cross' or 'isolated'
|
2801
2827
|
:param str symbol: unified market symbol
|
2802
2828
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2893,14 +2919,15 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2893
2919
|
# }
|
2894
2920
|
#
|
2895
2921
|
marginRequirements = self.safe_list(info, 'marginRequirements', [])
|
2896
|
-
|
2897
|
-
market = self.safe_market(
|
2922
|
+
marketId = self.safe_string(info, 'symbol')
|
2923
|
+
market = self.safe_market(marketId, market)
|
2898
2924
|
tiers = []
|
2899
2925
|
for i in range(0, len(marginRequirements)):
|
2900
2926
|
tier = marginRequirements[i]
|
2901
2927
|
initialMarginRate = self.safe_string(tier, 'initialMarginRate')
|
2902
2928
|
tiers.append({
|
2903
2929
|
'tier': self.sum(i, 1),
|
2930
|
+
'symbol': self.safe_symbol(marketId, market, None, 'contract'),
|
2904
2931
|
'currency': market['quote'],
|
2905
2932
|
'minNotional': self.safe_number(tier, 'positionNotionalLowerBound'),
|
2906
2933
|
'maxNotional': self.safe_number(tier, 'positionNotionalUpperBound'),
|
@@ -2961,7 +2988,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2961
2988
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2962
2989
|
"""
|
2963
2990
|
fetch deposit and withdraw fees
|
2964
|
-
|
2991
|
+
|
2992
|
+
https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
2993
|
+
|
2965
2994
|
:param str[]|None codes: list of unified currency codes
|
2966
2995
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2967
2996
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -3038,7 +3067,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
3038
3067
|
def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3039
3068
|
"""
|
3040
3069
|
fetch the history of funding payments paid and received on self account
|
3041
|
-
|
3070
|
+
|
3071
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#funding-payment-history
|
3072
|
+
|
3042
3073
|
:param str [symbol]: unified market symbol
|
3043
3074
|
:param int [since]: the earliest time in ms to fetch funding history for
|
3044
3075
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -3110,7 +3141,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
3110
3141
|
def fetch_margin_modes(self, symbols: Strings = None, params={}) -> MarginModes:
|
3111
3142
|
"""
|
3112
3143
|
fetches the set margin mode of the user
|
3113
|
-
|
3144
|
+
|
3145
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
3146
|
+
|
3114
3147
|
:param str[] [symbols]: a list of unified market symbols
|
3115
3148
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3116
3149
|
:returns dict: a list of `margin mode structures <https://docs.ccxt.com/#/?id=margin-mode-structure>`
|
@@ -3179,7 +3212,9 @@ class ascendex(Exchange, ImplicitAPI):
|
|
3179
3212
|
def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
|
3180
3213
|
"""
|
3181
3214
|
fetch the set leverage for all contract markets
|
3182
|
-
|
3215
|
+
|
3216
|
+
https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
3217
|
+
|
3183
3218
|
:param str[] [symbols]: a list of unified market symbols
|
3184
3219
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3185
3220
|
:returns dict: a list of `leverage structures <https://docs.ccxt.com/#/?id=leverage-structure>`
|
ccxt/async_support/__init__.py
CHANGED
ccxt/async_support/ace.py
CHANGED
@@ -181,7 +181,9 @@ class ace(Exchange, ImplicitAPI):
|
|
181
181
|
async def fetch_markets(self, params={}) -> List[Market]:
|
182
182
|
"""
|
183
183
|
retrieves data on all markets for ace
|
184
|
-
|
184
|
+
|
185
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
|
186
|
+
|
185
187
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
186
188
|
:returns dict[]: an array of objects representing market data
|
187
189
|
"""
|
@@ -308,7 +310,9 @@ class ace(Exchange, ImplicitAPI):
|
|
308
310
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
309
311
|
"""
|
310
312
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
311
|
-
|
313
|
+
|
314
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
315
|
+
|
312
316
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
313
317
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
314
318
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -332,7 +336,9 @@ class ace(Exchange, ImplicitAPI):
|
|
332
336
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
333
337
|
"""
|
334
338
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
335
|
-
|
339
|
+
|
340
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
341
|
+
|
336
342
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
337
343
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
338
344
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -361,7 +367,9 @@ class ace(Exchange, ImplicitAPI):
|
|
361
367
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
362
368
|
"""
|
363
369
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
364
|
-
|
370
|
+
|
371
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
|
372
|
+
|
365
373
|
:param str symbol: unified symbol of the market to fetch the order book for
|
366
374
|
:param int [limit]: the maximum amount of order book entries to return
|
367
375
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -447,7 +455,9 @@ class ace(Exchange, ImplicitAPI):
|
|
447
455
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
448
456
|
"""
|
449
457
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
450
|
-
|
458
|
+
|
459
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---klinecandlestick-data
|
460
|
+
|
451
461
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
452
462
|
:param str timeframe: the length of time each candle represents
|
453
463
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -589,7 +599,9 @@ class ace(Exchange, ImplicitAPI):
|
|
589
599
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
590
600
|
"""
|
591
601
|
create a trade order
|
592
|
-
|
602
|
+
|
603
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---new-order
|
604
|
+
|
593
605
|
:param str symbol: unified symbol of the market to create an order in
|
594
606
|
:param str type: 'market' or 'limit'
|
595
607
|
:param str side: 'buy' or 'sell'
|
@@ -626,7 +638,9 @@ class ace(Exchange, ImplicitAPI):
|
|
626
638
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
627
639
|
"""
|
628
640
|
cancels an open order
|
629
|
-
|
641
|
+
|
642
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
643
|
+
|
630
644
|
:param str id: order id
|
631
645
|
:param str symbol: unified symbol of the market the order was made in
|
632
646
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -650,7 +664,9 @@ class ace(Exchange, ImplicitAPI):
|
|
650
664
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
651
665
|
"""
|
652
666
|
fetches information on an order made by the user
|
653
|
-
|
667
|
+
|
668
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
669
|
+
|
654
670
|
:param str id: the order id
|
655
671
|
:param str symbol: unified symbol of the market the order was made in
|
656
672
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -689,7 +705,9 @@ class ace(Exchange, ImplicitAPI):
|
|
689
705
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
690
706
|
"""
|
691
707
|
fetch all unfilled currently open orders
|
692
|
-
|
708
|
+
|
709
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
|
710
|
+
|
693
711
|
:param str symbol: unified market symbol of the market orders were made in
|
694
712
|
:param int [since]: the earliest time in ms to fetch orders for
|
695
713
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -818,7 +836,9 @@ class ace(Exchange, ImplicitAPI):
|
|
818
836
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
819
837
|
"""
|
820
838
|
fetch all the trades made from a single order
|
821
|
-
|
839
|
+
|
840
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-history
|
841
|
+
|
822
842
|
:param str id: order id
|
823
843
|
:param str symbol: unified market symbol
|
824
844
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -872,7 +892,9 @@ class ace(Exchange, ImplicitAPI):
|
|
872
892
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
873
893
|
"""
|
874
894
|
fetch all trades made by the user
|
875
|
-
|
895
|
+
|
896
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---trade-list
|
897
|
+
|
876
898
|
:param str symbol: unified symbol of the market to fetch trades for
|
877
899
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
878
900
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -955,7 +977,9 @@ class ace(Exchange, ImplicitAPI):
|
|
955
977
|
async def fetch_balance(self, params={}) -> Balances:
|
956
978
|
"""
|
957
979
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
958
|
-
|
980
|
+
|
981
|
+
https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
982
|
+
|
959
983
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
960
984
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
961
985
|
"""
|