ccxt 4.3.87__py2.py3-none-any.whl → 4.3.89__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/kucoin.py +1 -0
- ccxt/abstract/kucoinfutures.py +1 -0
- ccxt/ace.py +1 -0
- ccxt/alpaca.py +1 -0
- ccxt/ascendex.py +7 -19
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +1 -0
- ccxt/async_support/alpaca.py +1 -0
- ccxt/async_support/ascendex.py +7 -19
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +1 -0
- ccxt/async_support/bingx.py +1 -0
- ccxt/async_support/bit2c.py +1 -0
- ccxt/async_support/bitbank.py +1 -0
- ccxt/async_support/bitfinex.py +1 -0
- ccxt/async_support/bitflyer.py +1 -0
- ccxt/async_support/bitget.py +1 -0
- ccxt/async_support/bitmex.py +1 -0
- ccxt/async_support/bitopro.py +1 -0
- ccxt/async_support/bitrue.py +62 -71
- ccxt/async_support/bitso.py +1 -0
- ccxt/async_support/bitstamp.py +1 -0
- ccxt/async_support/bitvavo.py +1 -0
- ccxt/async_support/blockchaincom.py +1 -0
- ccxt/async_support/btcalpha.py +1 -0
- ccxt/async_support/btcbox.py +1 -0
- ccxt/async_support/btcmarkets.py +1 -0
- ccxt/async_support/bybit.py +2 -0
- ccxt/async_support/cex.py +1 -0
- ccxt/async_support/coinbaseexchange.py +1 -0
- ccxt/async_support/coinex.py +1 -1
- ccxt/async_support/cryptocom.py +0 -12
- ccxt/async_support/kraken.py +48 -48
- ccxt/async_support/kucoin.py +2 -0
- ccxt/async_support/mexc.py +1 -61
- ccxt/async_support/okcoin.py +4 -9
- ccxt/async_support/onetrading.py +1 -0
- ccxt/async_support/phemex.py +1 -0
- ccxt/async_support/poloniexfutures.py +1 -0
- ccxt/async_support/probit.py +1 -0
- ccxt/async_support/vertex.py +1 -0
- ccxt/async_support/woo.py +1 -0
- ccxt/async_support/woofipro.py +1 -0
- ccxt/base/exchange.py +8 -6
- ccxt/bigone.py +1 -0
- ccxt/bingx.py +1 -0
- ccxt/bit2c.py +1 -0
- ccxt/bitbank.py +1 -0
- ccxt/bitfinex.py +1 -0
- ccxt/bitflyer.py +1 -0
- ccxt/bitget.py +1 -0
- ccxt/bitmex.py +1 -0
- ccxt/bitopro.py +1 -0
- ccxt/bitrue.py +62 -71
- ccxt/bitso.py +1 -0
- ccxt/bitstamp.py +1 -0
- ccxt/bitvavo.py +1 -0
- ccxt/blockchaincom.py +1 -0
- ccxt/btcalpha.py +1 -0
- ccxt/btcbox.py +1 -0
- ccxt/btcmarkets.py +1 -0
- ccxt/bybit.py +2 -0
- ccxt/cex.py +1 -0
- ccxt/coinbaseexchange.py +1 -0
- ccxt/coinex.py +1 -1
- ccxt/cryptocom.py +0 -12
- ccxt/kraken.py +48 -48
- ccxt/kucoin.py +2 -0
- ccxt/mexc.py +1 -61
- ccxt/okcoin.py +4 -9
- ccxt/onetrading.py +1 -0
- ccxt/phemex.py +1 -0
- ccxt/poloniexfutures.py +1 -0
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitfinex.py +1 -0
- ccxt/pro/bitfinex2.py +1 -0
- ccxt/pro/bitopro.py +1 -0
- ccxt/pro/bitstamp.py +1 -0
- ccxt/pro/bitvavo.py +1 -0
- ccxt/pro/blockchaincom.py +1 -0
- ccxt/pro/bybit.py +252 -1
- ccxt/pro/cex.py +2 -0
- ccxt/pro/coincheck.py +1 -0
- ccxt/pro/coinone.py +1 -0
- ccxt/pro/hashkey.py +1 -0
- ccxt/pro/hitbtc.py +1 -0
- ccxt/pro/hollaex.py +1 -0
- ccxt/pro/htx.py +1 -0
- ccxt/pro/huobijp.py +1 -0
- ccxt/pro/hyperliquid.py +7 -0
- ccxt/pro/independentreserve.py +1 -0
- ccxt/pro/lbank.py +1 -0
- ccxt/pro/luno.py +1 -0
- ccxt/pro/ndax.py +5 -0
- ccxt/pro/okcoin.py +7 -0
- ccxt/pro/onetrading.py +1 -0
- ccxt/pro/paradex.py +1 -0
- ccxt/probit.py +1 -0
- ccxt/vertex.py +1 -0
- ccxt/woo.py +1 -0
- ccxt/woofipro.py +1 -0
- {ccxt-4.3.87.dist-info → ccxt-4.3.89.dist-info}/METADATA +4 -4
- {ccxt-4.3.87.dist-info → ccxt-4.3.89.dist-info}/RECORD +107 -107
- {ccxt-4.3.87.dist-info → ccxt-4.3.89.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.3.87.dist-info → ccxt-4.3.89.dist-info}/WHEEL +0 -0
- {ccxt-4.3.87.dist-info → ccxt-4.3.89.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/abstract/kucoin.py
CHANGED
@@ -198,6 +198,7 @@ class ImplicitAPI:
|
|
198
198
|
broker_get_broker_nd_account = brokerGetBrokerNdAccount = Entry('broker/nd/account', 'broker', 'GET', {'cost': 2})
|
199
199
|
broker_get_broker_nd_account_apikey = brokerGetBrokerNdAccountApikey = Entry('broker/nd/account/apikey', 'broker', 'GET', {'cost': 2})
|
200
200
|
broker_get_broker_nd_rebase_download = brokerGetBrokerNdRebaseDownload = Entry('broker/nd/rebase/download', 'broker', 'GET', {'cost': 3})
|
201
|
+
broker_get_asset_ndbroker_deposit_list = brokerGetAssetNdbrokerDepositList = Entry('asset/ndbroker/deposit/list', 'broker', 'GET', {'cost': 1})
|
201
202
|
broker_get_broker_nd_transfer_detail = brokerGetBrokerNdTransferDetail = Entry('broker/nd/transfer/detail', 'broker', 'GET', {'cost': 1})
|
202
203
|
broker_get_broker_nd_deposit_detail = brokerGetBrokerNdDepositDetail = Entry('broker/nd/deposit/detail', 'broker', 'GET', {'cost': 1})
|
203
204
|
broker_get_broker_nd_withdraw_detail = brokerGetBrokerNdWithdrawDetail = Entry('broker/nd/withdraw/detail', 'broker', 'GET', {'cost': 1})
|
ccxt/abstract/kucoinfutures.py
CHANGED
@@ -219,6 +219,7 @@ class ImplicitAPI:
|
|
219
219
|
broker_get_broker_nd_account = brokerGetBrokerNdAccount = Entry('broker/nd/account', 'broker', 'GET', {'cost': 2})
|
220
220
|
broker_get_broker_nd_account_apikey = brokerGetBrokerNdAccountApikey = Entry('broker/nd/account/apikey', 'broker', 'GET', {'cost': 2})
|
221
221
|
broker_get_broker_nd_rebase_download = brokerGetBrokerNdRebaseDownload = Entry('broker/nd/rebase/download', 'broker', 'GET', {'cost': 3})
|
222
|
+
broker_get_asset_ndbroker_deposit_list = brokerGetAssetNdbrokerDepositList = Entry('asset/ndbroker/deposit/list', 'broker', 'GET', {'cost': 1})
|
222
223
|
broker_get_broker_nd_transfer_detail = brokerGetBrokerNdTransferDetail = Entry('broker/nd/transfer/detail', 'broker', 'GET', {'cost': 1})
|
223
224
|
broker_get_broker_nd_deposit_detail = brokerGetBrokerNdDepositDetail = Entry('broker/nd/deposit/detail', 'broker', 'GET', {'cost': 1})
|
224
225
|
broker_get_broker_nd_withdraw_detail = brokerGetBrokerNdWithdrawDetail = Entry('broker/nd/withdraw/detail', 'broker', 'GET', {'cost': 1})
|
ccxt/ace.py
CHANGED
@@ -651,6 +651,7 @@ class ace(Exchange, ImplicitAPI):
|
|
651
651
|
"""
|
652
652
|
fetches information on an order made by the user
|
653
653
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
654
|
+
:param str id: the order id
|
654
655
|
:param str symbol: unified symbol of the market the order was made in
|
655
656
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
656
657
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/alpaca.py
CHANGED
@@ -797,6 +797,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
797
797
|
"""
|
798
798
|
fetches information on an order made by the user
|
799
799
|
:see: https://docs.alpaca.markets/reference/getorderbyorderid
|
800
|
+
:param str id: the order id
|
800
801
|
:param str symbol: unified symbol of the market the order was made in
|
801
802
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
802
803
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/ascendex.py
CHANGED
@@ -293,26 +293,17 @@ class ascendex(Exchange, ImplicitAPI):
|
|
293
293
|
'SOL': 'Solana',
|
294
294
|
'AVAX': 'avalanche C chain',
|
295
295
|
'OMNI': 'Omni',
|
296
|
-
'TRC': 'TRC20',
|
296
|
+
# 'TRC': 'TRC20',
|
297
297
|
'TRX': 'TRC20',
|
298
|
-
'ERC': 'ERC20',
|
299
|
-
},
|
300
|
-
'networksById': {
|
301
|
-
'BEP20(BSC)': 'BSC',
|
302
|
-
'arbitrum': 'ARB',
|
303
|
-
'Solana': 'SOL',
|
304
|
-
'avalanche C chain': 'AVAX',
|
305
|
-
'Omni': 'OMNI',
|
306
298
|
'TRC20': 'TRC20',
|
307
299
|
'ERC20': 'ERC20',
|
308
300
|
'GO20': 'GO20',
|
309
301
|
'BEP2': 'BEP2',
|
310
|
-
'
|
311
|
-
'
|
312
|
-
'
|
313
|
-
'
|
314
|
-
'
|
315
|
-
'Akash': 'AKT',
|
302
|
+
'BTC': 'Bitcoin',
|
303
|
+
'BCH': 'Bitcoin ABC',
|
304
|
+
'LTC': 'Litecoin',
|
305
|
+
'MATIC': 'Matic Network',
|
306
|
+
'AKT': 'Akash',
|
316
307
|
},
|
317
308
|
},
|
318
309
|
'exceptions': {
|
@@ -1703,6 +1694,7 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1703
1694
|
fetches information on an order made by the user
|
1704
1695
|
:see: https://ascendex.github.io/ascendex-pro-api/#query-order
|
1705
1696
|
:see: https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
|
1697
|
+
:param str id: the order id
|
1706
1698
|
:param str symbol: unified symbol of the market the order was made in
|
1707
1699
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1708
1700
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2283,10 +2275,6 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2283
2275
|
'info': depositAddress,
|
2284
2276
|
}
|
2285
2277
|
|
2286
|
-
def safe_network(self, networkId):
|
2287
|
-
networksById = self.safe_dict(self.options, 'networksById')
|
2288
|
-
return self.safe_string(networksById, networkId, networkId)
|
2289
|
-
|
2290
2278
|
def fetch_deposit_address(self, code: str, params={}):
|
2291
2279
|
"""
|
2292
2280
|
fetch the deposit address for a currency associated with self account
|
ccxt/async_support/__init__.py
CHANGED
ccxt/async_support/ace.py
CHANGED
@@ -651,6 +651,7 @@ class ace(Exchange, ImplicitAPI):
|
|
651
651
|
"""
|
652
652
|
fetches information on an order made by the user
|
653
653
|
:see: https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
654
|
+
:param str id: the order id
|
654
655
|
:param str symbol: unified symbol of the market the order was made in
|
655
656
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
656
657
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/alpaca.py
CHANGED
@@ -797,6 +797,7 @@ class alpaca(Exchange, ImplicitAPI):
|
|
797
797
|
"""
|
798
798
|
fetches information on an order made by the user
|
799
799
|
:see: https://docs.alpaca.markets/reference/getorderbyorderid
|
800
|
+
:param str id: the order id
|
800
801
|
:param str symbol: unified symbol of the market the order was made in
|
801
802
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
802
803
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/ascendex.py
CHANGED
@@ -293,26 +293,17 @@ class ascendex(Exchange, ImplicitAPI):
|
|
293
293
|
'SOL': 'Solana',
|
294
294
|
'AVAX': 'avalanche C chain',
|
295
295
|
'OMNI': 'Omni',
|
296
|
-
'TRC': 'TRC20',
|
296
|
+
# 'TRC': 'TRC20',
|
297
297
|
'TRX': 'TRC20',
|
298
|
-
'ERC': 'ERC20',
|
299
|
-
},
|
300
|
-
'networksById': {
|
301
|
-
'BEP20(BSC)': 'BSC',
|
302
|
-
'arbitrum': 'ARB',
|
303
|
-
'Solana': 'SOL',
|
304
|
-
'avalanche C chain': 'AVAX',
|
305
|
-
'Omni': 'OMNI',
|
306
298
|
'TRC20': 'TRC20',
|
307
299
|
'ERC20': 'ERC20',
|
308
300
|
'GO20': 'GO20',
|
309
301
|
'BEP2': 'BEP2',
|
310
|
-
'
|
311
|
-
'
|
312
|
-
'
|
313
|
-
'
|
314
|
-
'
|
315
|
-
'Akash': 'AKT',
|
302
|
+
'BTC': 'Bitcoin',
|
303
|
+
'BCH': 'Bitcoin ABC',
|
304
|
+
'LTC': 'Litecoin',
|
305
|
+
'MATIC': 'Matic Network',
|
306
|
+
'AKT': 'Akash',
|
316
307
|
},
|
317
308
|
},
|
318
309
|
'exceptions': {
|
@@ -1703,6 +1694,7 @@ class ascendex(Exchange, ImplicitAPI):
|
|
1703
1694
|
fetches information on an order made by the user
|
1704
1695
|
:see: https://ascendex.github.io/ascendex-pro-api/#query-order
|
1705
1696
|
:see: https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
|
1697
|
+
:param str id: the order id
|
1706
1698
|
:param str symbol: unified symbol of the market the order was made in
|
1707
1699
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1708
1700
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -2283,10 +2275,6 @@ class ascendex(Exchange, ImplicitAPI):
|
|
2283
2275
|
'info': depositAddress,
|
2284
2276
|
}
|
2285
2277
|
|
2286
|
-
def safe_network(self, networkId):
|
2287
|
-
networksById = self.safe_dict(self.options, 'networksById')
|
2288
|
-
return self.safe_string(networksById, networkId, networkId)
|
2289
|
-
|
2290
2278
|
async def fetch_deposit_address(self, code: str, params={}):
|
2291
2279
|
"""
|
2292
2280
|
fetch the deposit address for a currency associated with self account
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# -----------------------------------------------------------------------------
|
4
4
|
|
5
|
-
__version__ = '4.3.
|
5
|
+
__version__ = '4.3.89'
|
6
6
|
|
7
7
|
# -----------------------------------------------------------------------------
|
8
8
|
|
@@ -1792,7 +1792,7 @@ class Exchange(BaseExchange):
|
|
1792
1792
|
errors = 0
|
1793
1793
|
result = self.array_concat(result, response)
|
1794
1794
|
last = self.safe_value(response, responseLength - 1)
|
1795
|
-
paginationTimestamp = self.safe_integer(last, 'timestamp')
|
1795
|
+
paginationTimestamp = self.safe_integer(last, 'timestamp') + 1
|
1796
1796
|
if (until is not None) and (paginationTimestamp >= until):
|
1797
1797
|
break
|
1798
1798
|
except Exception as e:
|
@@ -1945,7 +1945,7 @@ class Exchange(BaseExchange):
|
|
1945
1945
|
"""
|
1946
1946
|
if self.has['fetchPositionsHistory']:
|
1947
1947
|
positions = await self.fetch_positions_history([symbol], since, limit, params)
|
1948
|
-
return
|
1948
|
+
return positions
|
1949
1949
|
else:
|
1950
1950
|
raise NotSupported(self.id + ' fetchPositionHistory() is not supported yet')
|
1951
1951
|
|
ccxt/async_support/bigone.py
CHANGED
@@ -1564,6 +1564,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1564
1564
|
"""
|
1565
1565
|
fetches information on an order made by the user
|
1566
1566
|
:see: https://open.big.one/docs/spot_orders.html#get-one-order
|
1567
|
+
:param str id: the order id
|
1567
1568
|
:param str symbol: not used by bigone fetchOrder
|
1568
1569
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1569
1570
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bingx.py
CHANGED
@@ -3426,6 +3426,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
3426
3426
|
:see: https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20details
|
3427
3427
|
:see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20details
|
3428
3428
|
:see: https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order
|
3429
|
+
:param str id: the order id
|
3429
3430
|
:param str symbol: unified symbol of the market the order was made in
|
3430
3431
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3431
3432
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bit2c.py
CHANGED
@@ -478,6 +478,7 @@ class bit2c(Exchange, ImplicitAPI):
|
|
478
478
|
"""
|
479
479
|
fetches information on an order made by the user
|
480
480
|
:see: https://bit2c.co.il/home/api#getoid
|
481
|
+
:param str id: the order id
|
481
482
|
:param str symbol: unified market symbol
|
482
483
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
483
484
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitbank.py
CHANGED
@@ -699,6 +699,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
699
699
|
"""
|
700
700
|
fetches information on an order made by the user
|
701
701
|
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
702
|
+
:param str id: the order id
|
702
703
|
:param str symbol: unified symbol of the market the order was made in
|
703
704
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
704
705
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitfinex.py
CHANGED
@@ -1272,6 +1272,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1272
1272
|
"""
|
1273
1273
|
fetches information on an order made by the user
|
1274
1274
|
:see: https://docs.bitfinex.com/v1/reference/rest-auth-order-status
|
1275
|
+
:param str id: the order id
|
1275
1276
|
:param str symbol: not used by bitfinex fetchOrder
|
1276
1277
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1277
1278
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitflyer.py
CHANGED
@@ -687,6 +687,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
687
687
|
"""
|
688
688
|
fetches information on an order made by the user
|
689
689
|
:see: https://lightning.bitflyer.com/docs?lang=en#list-orders
|
690
|
+
:param str id: the order id
|
690
691
|
:param str symbol: unified symbol of the market the order was made in
|
691
692
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
692
693
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitget.py
CHANGED
@@ -4771,6 +4771,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
4771
4771
|
fetches information on an order made by the user
|
4772
4772
|
:see: https://www.bitget.com/api-doc/spot/trade/Get-Order-Info
|
4773
4773
|
:see: https://www.bitget.com/api-doc/contract/trade/Get-Order-Details
|
4774
|
+
:param str id: the order id
|
4774
4775
|
:param str symbol: unified symbol of the market the order was made in
|
4775
4776
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4776
4777
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitmex.py
CHANGED
@@ -861,6 +861,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
861
861
|
"""
|
862
862
|
fetches information on an order made by the user
|
863
863
|
:see: https://www.bitmex.com/api/explorer/#not /Order/Order_getOrders
|
864
|
+
:param str id: the order id
|
864
865
|
:param str symbol: unified symbol of the market the order was made in
|
865
866
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
866
867
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitopro.py
CHANGED
@@ -1118,6 +1118,7 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1118
1118
|
"""
|
1119
1119
|
fetches information on an order made by the user
|
1120
1120
|
:see: https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
|
1121
|
+
:param str id: the order id
|
1121
1122
|
:param str symbol: unified symbol of the market the order was made in
|
1122
1123
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1123
1124
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitrue.py
CHANGED
@@ -356,6 +356,67 @@ class bitrue(Exchange, ImplicitAPI):
|
|
356
356
|
'networks': {
|
357
357
|
'ERC20': 'ETH',
|
358
358
|
'TRC20': 'TRX',
|
359
|
+
'AETERNITY': 'Aeternity',
|
360
|
+
'AION': 'AION',
|
361
|
+
'ALGO': 'Algorand',
|
362
|
+
'ASK': 'ASK',
|
363
|
+
'ATOM': 'ATOM',
|
364
|
+
'AVAXC': 'AVAX C-Chain',
|
365
|
+
'BCH': 'BCH',
|
366
|
+
'BEP2': 'BEP2',
|
367
|
+
'BEP20': 'BEP20',
|
368
|
+
'Bitcoin': 'Bitcoin',
|
369
|
+
'BRP20': 'BRP20',
|
370
|
+
'ADA': 'Cardano',
|
371
|
+
'CASINOCOIN': 'CasinoCoin',
|
372
|
+
'CASINOCOIN-XRPL': 'CasinoCoin XRPL',
|
373
|
+
'CONTENTOS': 'Contentos',
|
374
|
+
'DASH': 'Dash',
|
375
|
+
'DECOIN': 'Decoin',
|
376
|
+
'DFI': 'DeFiChain',
|
377
|
+
'DGB': 'DGB',
|
378
|
+
'DIVI': 'Divi',
|
379
|
+
'DOGE': 'dogecoin',
|
380
|
+
'EOS': 'EOS',
|
381
|
+
'ETC': 'ETC',
|
382
|
+
'FILECOIN': 'Filecoin',
|
383
|
+
'FREETON': 'FREETON',
|
384
|
+
'HBAR': 'HBAR',
|
385
|
+
'HEDERA': 'Hedera Hashgraph',
|
386
|
+
'HRC20': 'HRC20',
|
387
|
+
'ICON': 'ICON',
|
388
|
+
'ICP': 'ICP',
|
389
|
+
'IGNIS': 'Ignis',
|
390
|
+
'INTERNETCOMPUTER': 'Internet Computer',
|
391
|
+
'IOTA': 'IOTA',
|
392
|
+
'KAVA': 'KAVA',
|
393
|
+
'KSM': 'KSM',
|
394
|
+
'LTC': 'LiteCoin',
|
395
|
+
'LUNA': 'Luna',
|
396
|
+
'MATIC': 'MATIC',
|
397
|
+
'MOBILECOIN': 'Mobile Coin',
|
398
|
+
'MONACOIN': 'MonaCoin',
|
399
|
+
'XMR': 'Monero',
|
400
|
+
'NEM': 'NEM',
|
401
|
+
'NEP5': 'NEP5',
|
402
|
+
'OMNI': 'OMNI',
|
403
|
+
'PAC': 'PAC',
|
404
|
+
'DOT': 'Polkadot',
|
405
|
+
'RAVEN': 'Ravencoin',
|
406
|
+
'SAFEX': 'Safex',
|
407
|
+
'SOL': 'SOLANA',
|
408
|
+
'SGB': 'Songbird',
|
409
|
+
'XML': 'Stellar Lumens',
|
410
|
+
'XYM': 'Symbol',
|
411
|
+
'XTZ': 'Tezos',
|
412
|
+
'theta': 'theta',
|
413
|
+
'THETA': 'THETA',
|
414
|
+
'VECHAIN': 'VeChain',
|
415
|
+
'WANCHAIN': 'Wanchain',
|
416
|
+
'XINFIN': 'XinFin Network',
|
417
|
+
'XRP': 'XRP',
|
418
|
+
'XRPL': 'XRPL',
|
419
|
+
'ZIL': 'ZIL',
|
359
420
|
},
|
360
421
|
'defaultType': 'spot',
|
361
422
|
'timeframes': {
|
@@ -522,77 +583,6 @@ class bitrue(Exchange, ImplicitAPI):
|
|
522
583
|
#
|
523
584
|
return self.safe_integer(response, 'serverTime')
|
524
585
|
|
525
|
-
def safe_network(self, networkId):
|
526
|
-
uppercaseNetworkId = networkId.upper()
|
527
|
-
networksById: dict = {
|
528
|
-
'Aeternity': 'Aeternity',
|
529
|
-
'AION': 'AION',
|
530
|
-
'Algorand': 'Algorand',
|
531
|
-
'ASK': 'ASK',
|
532
|
-
'ATOM': 'ATOM',
|
533
|
-
'AVAX C-Chain': 'AVAX C-Chain',
|
534
|
-
'bch': 'bch',
|
535
|
-
'BCH': 'BCH',
|
536
|
-
'BEP2': 'BEP2',
|
537
|
-
'BEP20': 'BEP20',
|
538
|
-
'Bitcoin': 'Bitcoin',
|
539
|
-
'BRP20': 'BRP20',
|
540
|
-
'Cardano': 'ADA',
|
541
|
-
'CasinoCoin': 'CasinoCoin',
|
542
|
-
'CasinoCoin XRPL': 'CasinoCoin XRPL',
|
543
|
-
'Contentos': 'Contentos',
|
544
|
-
'Dash': 'Dash',
|
545
|
-
'Decoin': 'Decoin',
|
546
|
-
'DeFiChain': 'DeFiChain',
|
547
|
-
'DGB': 'DGB',
|
548
|
-
'Divi': 'Divi',
|
549
|
-
'dogecoin': 'DOGE',
|
550
|
-
'EOS': 'EOS',
|
551
|
-
'ERC20': 'ERC20',
|
552
|
-
'ETC': 'ETC',
|
553
|
-
'Filecoin': 'Filecoin',
|
554
|
-
'FREETON': 'FREETON',
|
555
|
-
'HBAR': 'HBAR',
|
556
|
-
'Hedera Hashgraph': 'Hedera Hashgraph',
|
557
|
-
'HRC20': 'HRC20',
|
558
|
-
'ICON': 'ICON',
|
559
|
-
'ICP': 'ICP',
|
560
|
-
'Ignis': 'Ignis',
|
561
|
-
'Internet Computer': 'Internet Computer',
|
562
|
-
'IOTA': 'IOTA',
|
563
|
-
'KAVA': 'KAVA',
|
564
|
-
'KSM': 'KSM',
|
565
|
-
'LiteCoin': 'LiteCoin',
|
566
|
-
'Luna': 'Luna',
|
567
|
-
'MATIC': 'MATIC',
|
568
|
-
'Mobile Coin': 'Mobile Coin',
|
569
|
-
'MonaCoin': 'MonaCoin',
|
570
|
-
'Monero': 'Monero',
|
571
|
-
'NEM': 'NEM',
|
572
|
-
'NEP5': 'NEP5',
|
573
|
-
'OMNI': 'OMNI',
|
574
|
-
'PAC': 'PAC',
|
575
|
-
'Polkadot': 'Polkadot',
|
576
|
-
'Ravencoin': 'Ravencoin',
|
577
|
-
'Safex': 'Safex',
|
578
|
-
'SOLANA': 'SOL',
|
579
|
-
'Songbird': 'Songbird',
|
580
|
-
'Stellar Lumens': 'Stellar Lumens',
|
581
|
-
'Symbol': 'Symbol',
|
582
|
-
'Tezos': 'XTZ',
|
583
|
-
'theta': 'theta',
|
584
|
-
'THETA': 'THETA',
|
585
|
-
'TRC20': 'TRC20',
|
586
|
-
'VeChain': 'VeChain',
|
587
|
-
'VECHAIN': 'VECHAIN',
|
588
|
-
'Wanchain': 'Wanchain',
|
589
|
-
'XinFin Network': 'XinFin Network',
|
590
|
-
'XRP': 'XRP',
|
591
|
-
'XRPL': 'XRPL',
|
592
|
-
'ZIL': 'ZIL',
|
593
|
-
}
|
594
|
-
return self.safe_string_2(networksById, networkId, uppercaseNetworkId, networkId)
|
595
|
-
|
596
586
|
async def fetch_currencies(self, params={}) -> Currencies:
|
597
587
|
"""
|
598
588
|
fetches all available currencies on an exchange
|
@@ -1942,6 +1932,7 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1942
1932
|
:see: https://github.com/Bitrue-exchange/Spot-official-api-docs#query-order-user_data
|
1943
1933
|
:see: https://www.bitrue.com/api-docs#query-order-user_data-hmac-sha256
|
1944
1934
|
:see: https://www.bitrue.com/api_docs_includes_file/delivery.html#query-order-user_data-hmac-sha256
|
1935
|
+
:param str id: the order id
|
1945
1936
|
:param str symbol: unified symbol of the market the order was made in
|
1946
1937
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1947
1938
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitso.py
CHANGED
@@ -1129,6 +1129,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1129
1129
|
"""
|
1130
1130
|
fetches information on an order made by the user
|
1131
1131
|
:see: https://docs.bitso.com/bitso-api/docs/look-up-orders
|
1132
|
+
:param str id: the order id
|
1132
1133
|
:param str symbol: not used by bitso fetchOrder
|
1133
1134
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1134
1135
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitstamp.py
CHANGED
@@ -1466,6 +1466,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1466
1466
|
"""
|
1467
1467
|
fetches information on an order made by the user
|
1468
1468
|
:see: https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus
|
1469
|
+
:param str id: the order id
|
1469
1470
|
:param str symbol: unified symbol of the market the order was made in
|
1470
1471
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1471
1472
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bitvavo.py
CHANGED
@@ -1255,6 +1255,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1255
1255
|
"""
|
1256
1256
|
fetches information on an order made by the user
|
1257
1257
|
:see: https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
|
1258
|
+
:param str id: the order id
|
1258
1259
|
:param str symbol: unified symbol of the market the order was made in
|
1259
1260
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1260
1261
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1036,6 +1036,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
1036
1036
|
"""
|
1037
1037
|
fetches information on an order made by the user
|
1038
1038
|
:see: https://api.blockchain.com/v3/#getorderbyid
|
1039
|
+
:param str id: the order id
|
1039
1040
|
:param str symbol: not used by blockchaincom fetchOrder
|
1040
1041
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1041
1042
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/btcalpha.py
CHANGED
@@ -760,6 +760,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
760
760
|
"""
|
761
761
|
:see: https://btc-alpha.github.io/api-docs/#retrieve-single-order
|
762
762
|
fetches information on an order made by the user
|
763
|
+
:param str id: the order id
|
763
764
|
:param str symbol: not used by btcalpha fetchOrder
|
764
765
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
765
766
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/btcbox.py
CHANGED
@@ -549,6 +549,7 @@ class btcbox(Exchange, ImplicitAPI):
|
|
549
549
|
"""
|
550
550
|
fetches information on an order made by the user
|
551
551
|
:see: https://blog.btcbox.jp/en/archives/8762#toc16
|
552
|
+
:param str id: the order id
|
552
553
|
:param str symbol: unified symbol of the market the order was made in
|
553
554
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
554
555
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/btcmarkets.py
CHANGED
@@ -1018,6 +1018,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1018
1018
|
"""
|
1019
1019
|
fetches information on an order made by the user
|
1020
1020
|
:see: https://docs.btcmarkets.net/v3/#operation/getOrderById
|
1021
|
+
:param str id: the order id
|
1021
1022
|
:param str symbol: not used by btcmarkets fetchOrder
|
1022
1023
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1023
1024
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/bybit.py
CHANGED
@@ -4494,6 +4494,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4494
4494
|
"""
|
4495
4495
|
fetches information on an order made by the user *classic accounts only*
|
4496
4496
|
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4497
|
+
:param str id: the order id
|
4497
4498
|
:param str symbol: unified symbol of the market the order was made in
|
4498
4499
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4499
4500
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -4521,6 +4522,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
4521
4522
|
"""
|
4522
4523
|
*classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
|
4523
4524
|
:see: https://bybit-exchange.github.io/docs/v5/order/order-list
|
4525
|
+
:param str id: the order id
|
4524
4526
|
:param str symbol: unified symbol of the market the order was made in
|
4525
4527
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4526
4528
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/cex.py
CHANGED
@@ -1149,6 +1149,7 @@ class cex(Exchange, ImplicitAPI):
|
|
1149
1149
|
"""
|
1150
1150
|
:see: https://docs.cex.io/?python#get-order-details
|
1151
1151
|
fetches information on an order made by the user
|
1152
|
+
:param str id: the order id
|
1152
1153
|
:param str symbol: not used by cex fetchOrder
|
1153
1154
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1154
1155
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1047,6 +1047,7 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1047
1047
|
"""
|
1048
1048
|
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
|
1049
1049
|
fetches information on an order made by the user
|
1050
|
+
:param str id: the order id
|
1050
1051
|
:param str symbol: not used by coinbaseexchange fetchOrder
|
1051
1052
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1052
1053
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/coinex.py
CHANGED
@@ -5269,7 +5269,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
5269
5269
|
'shortLeverage': leverageValue,
|
5270
5270
|
}
|
5271
5271
|
|
5272
|
-
async def fetch_position_history(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> Position:
|
5272
|
+
async def fetch_position_history(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
5273
5273
|
"""
|
5274
5274
|
fetches historical positions
|
5275
5275
|
:see: https://docs.coinex.com/api/v2/futures/position/http/list-finished-position
|
ccxt/async_support/cryptocom.py
CHANGED
@@ -1673,18 +1673,6 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1673
1673
|
keys = list(depositAddresses.keys())
|
1674
1674
|
return depositAddresses[keys[0]]
|
1675
1675
|
|
1676
|
-
def safe_network(self, networkId):
|
1677
|
-
networksById: dict = {
|
1678
|
-
'BTC': 'BTC',
|
1679
|
-
'ETH': 'ETH',
|
1680
|
-
'SOL': 'SOL',
|
1681
|
-
'BNB': 'BNB',
|
1682
|
-
'CRONOS': 'CRONOS',
|
1683
|
-
'MATIC': 'MATIC',
|
1684
|
-
'OP': 'OP',
|
1685
|
-
}
|
1686
|
-
return self.safe_string(networksById, networkId, networkId)
|
1687
|
-
|
1688
1676
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1689
1677
|
"""
|
1690
1678
|
fetch all deposits made to an account
|