ccxt 4.4.70__py2.py3-none-any.whl → 4.4.71__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 -3
- ccxt/abstract/bingx.py +1 -0
- ccxt/abstract/bitmart.py +1 -0
- ccxt/abstract/poloniex.py +36 -0
- ccxt/async_support/__init__.py +1 -3
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/binance.py +106 -101
- ccxt/async_support/bingx.py +64 -42
- ccxt/async_support/bitget.py +0 -3
- ccxt/async_support/bitmart.py +12 -1
- ccxt/async_support/bitopro.py +1 -0
- ccxt/async_support/bitrue.py +1 -0
- ccxt/async_support/cex.py +1 -0
- ccxt/async_support/coinbaseexchange.py +1 -0
- ccxt/async_support/deribit.py +1 -0
- ccxt/async_support/hashkey.py +4 -2
- ccxt/async_support/kraken.py +77 -5
- ccxt/async_support/kucoin.py +4 -2
- ccxt/async_support/mexc.py +8 -4
- ccxt/async_support/okx.py +58 -46
- ccxt/async_support/poloniex.py +1263 -85
- ccxt/async_support/whitebit.py +4 -2
- ccxt/base/exchange.py +23 -3
- ccxt/base/types.py +28 -0
- ccxt/binance.py +106 -101
- ccxt/bingx.py +64 -42
- ccxt/bitget.py +0 -3
- ccxt/bitmart.py +12 -1
- ccxt/bitopro.py +1 -0
- ccxt/bitrue.py +1 -0
- ccxt/cex.py +1 -0
- ccxt/coinbaseexchange.py +1 -0
- ccxt/deribit.py +1 -0
- ccxt/hashkey.py +4 -2
- ccxt/kraken.py +77 -5
- ccxt/kucoin.py +4 -2
- ccxt/mexc.py +8 -4
- ccxt/okx.py +58 -46
- ccxt/poloniex.py +1262 -85
- ccxt/pro/__init__.py +1 -3
- ccxt/pro/binance.py +102 -102
- ccxt/pro/bingx.py +62 -51
- ccxt/test/tests_async.py +1 -0
- ccxt/test/tests_sync.py +1 -0
- ccxt/whitebit.py +4 -2
- {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/METADATA +6 -9
- {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/RECORD +50 -51
- ccxt/abstract/poloniexfutures.py +0 -48
- {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/WHEEL +0 -0
- {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/top_level.txt +0 -0
ccxt/async_support/bingx.py
CHANGED
@@ -58,6 +58,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
58
58
|
'createOrder': True,
|
59
59
|
'createOrders': True,
|
60
60
|
'createOrderWithTakeProfitAndStopLoss': True,
|
61
|
+
'createReduceOnlyOrder': True,
|
61
62
|
'createStopLossOrder': True,
|
62
63
|
'createStopOrder': True,
|
63
64
|
'createTakeProfitOrder': True,
|
@@ -175,6 +176,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
175
176
|
'trade/myTrades': 2,
|
176
177
|
'user/commissionRate': 5,
|
177
178
|
'account/balance': 2,
|
179
|
+
'account/allAccountBalance': 2,
|
178
180
|
},
|
179
181
|
'post': {
|
180
182
|
'trade/order': 2,
|
@@ -1429,62 +1431,82 @@ class bingx(Exchange, ImplicitAPI):
|
|
1429
1431
|
# spot
|
1430
1432
|
#
|
1431
1433
|
# {
|
1432
|
-
# "code":
|
1433
|
-
# "
|
1434
|
-
#
|
1435
|
-
# [
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
#
|
1439
|
-
# [
|
1440
|
-
# "26324.71",
|
1441
|
-
# "0.31888"
|
1442
|
-
# ],
|
1443
|
-
# ],
|
1444
|
-
# "asks": [
|
1445
|
-
# [
|
1446
|
-
# "26340.30",
|
1447
|
-
# "6.45221"
|
1434
|
+
# "code":0,
|
1435
|
+
# "timestamp":1743240504535,
|
1436
|
+
# "data":{
|
1437
|
+
# "bids":[
|
1438
|
+
# ["83775.39","1.981875"],
|
1439
|
+
# ["83775.38","0.001076"],
|
1440
|
+
# ["83775.34","0.254716"],
|
1448
1441
|
# ],
|
1449
|
-
# [
|
1450
|
-
#
|
1451
|
-
#
|
1442
|
+
# "asks":[
|
1443
|
+
# ["83985.40","0.000013"],
|
1444
|
+
# ["83980.00","0.000011"],
|
1445
|
+
# ["83975.70","0.000061000000000000005"],
|
1452
1446
|
# ],
|
1453
|
-
#
|
1447
|
+
# "ts":1743240504535,
|
1448
|
+
# "lastUpdateId":13565639906
|
1449
|
+
# }
|
1454
1450
|
# }
|
1455
1451
|
#
|
1456
|
-
#
|
1452
|
+
#
|
1453
|
+
# linear swap
|
1457
1454
|
#
|
1458
1455
|
# {
|
1459
|
-
# "code":
|
1460
|
-
# "msg":
|
1461
|
-
# "data":
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
#
|
1456
|
+
# "code":0,
|
1457
|
+
# "msg":"",
|
1458
|
+
# "data":{
|
1459
|
+
# "T":1743240836255,
|
1460
|
+
# "bids":[
|
1461
|
+
# ["83760.7","7.0861"],
|
1462
|
+
# ["83760.6","0.0044"],
|
1463
|
+
# ["83757.7","1.9526"],
|
1467
1464
|
# ],
|
1468
|
-
# [
|
1469
|
-
#
|
1470
|
-
#
|
1465
|
+
# "asks":[
|
1466
|
+
# ["83784.3","8.3531"],
|
1467
|
+
# ["83782.8","23.7289"],
|
1468
|
+
# ["83780.1","18.0617"],
|
1471
1469
|
# ],
|
1472
|
-
#
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
#
|
1476
|
-
# "43616.00000000"
|
1470
|
+
# "bidsCoin":[
|
1471
|
+
# ["83760.7","0.0007"],
|
1472
|
+
# ["83760.6","0.0000"],
|
1473
|
+
# ["83757.7","0.0002"],
|
1477
1474
|
# ],
|
1478
|
-
# [
|
1479
|
-
#
|
1480
|
-
#
|
1475
|
+
# "asksCoin":[
|
1476
|
+
# ["83784.3","0.0008"],
|
1477
|
+
# ["83782.8","0.0024"],
|
1478
|
+
# ["83780.1","0.0018"],
|
1479
|
+
# ]
|
1480
|
+
# }
|
1481
|
+
# }
|
1482
|
+
#
|
1483
|
+
# inverse swap
|
1484
|
+
#
|
1485
|
+
# {
|
1486
|
+
# "code":0,
|
1487
|
+
# "msg":"",
|
1488
|
+
# "timestamp":1743240979146,
|
1489
|
+
# "data":{
|
1490
|
+
# "T":1743240978691,
|
1491
|
+
# "bids":[
|
1492
|
+
# ["83611.4","241.0"],
|
1493
|
+
# ["83611.3","1.0"],
|
1494
|
+
# ["83602.9","666.0"],
|
1481
1495
|
# ],
|
1482
|
-
#
|
1496
|
+
# "asks":[
|
1497
|
+
# ["83645.0","4253.0"],
|
1498
|
+
# ["83640.5","3188.0"],
|
1499
|
+
# ["83636.0","5540.0"],
|
1500
|
+
# ]
|
1501
|
+
# }
|
1483
1502
|
# }
|
1484
1503
|
#
|
1485
1504
|
orderbook = self.safe_dict(response, 'data', {})
|
1505
|
+
nonce = self.safe_integer(orderbook, 'lastUpdateId')
|
1486
1506
|
timestamp = self.safe_integer_2(orderbook, 'T', 'ts')
|
1487
|
-
|
1507
|
+
result = self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 0, 1)
|
1508
|
+
result['nonce'] = nonce
|
1509
|
+
return result
|
1488
1510
|
|
1489
1511
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1490
1512
|
"""
|
ccxt/async_support/bitget.py
CHANGED
@@ -1758,10 +1758,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
1758
1758
|
"""
|
1759
1759
|
if self.options['adjustForTimeDifference']:
|
1760
1760
|
await self.load_time_difference()
|
1761
|
-
sandboxMode = self.safe_bool(self.options, 'sandboxMode', False)
|
1762
1761
|
types = self.safe_value(self.options, 'fetchMarkets', ['spot', 'swap'])
|
1763
|
-
if sandboxMode:
|
1764
|
-
types = ['swap']
|
1765
1762
|
promises = []
|
1766
1763
|
fetchMargins = False
|
1767
1764
|
for i in range(0, len(types)):
|
ccxt/async_support/bitmart.py
CHANGED
@@ -61,6 +61,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
61
61
|
'createOrder': True,
|
62
62
|
'createOrders': True,
|
63
63
|
'createPostOnlyOrder': True,
|
64
|
+
'createReduceOnlyOrder': True,
|
64
65
|
'createStopLimitOrder': False,
|
65
66
|
'createStopMarketOrder': False,
|
66
67
|
'createStopOrder': False,
|
@@ -278,6 +279,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
278
279
|
'contract/private/submit-tp-sl-order': 2.5,
|
279
280
|
'contract/private/modify-plan-order': 2.5,
|
280
281
|
'contract/private/modify-preset-plan-order': 2.5,
|
282
|
+
'contract/private/modify-limit-order': 2.5,
|
281
283
|
'contract/private/modify-tp-sl-order': 2.5,
|
282
284
|
'contract/private/submit-trail-order': 2.5, # weight is not provided by the exchange, is set order
|
283
285
|
'contract/private/cancel-trail-order': 1.5, # weight is not provided by the exchange, is set order
|
@@ -4875,6 +4877,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
4875
4877
|
https://developer-pro.bitmart.com/en/futuresv2/#modify-plan-order-signed
|
4876
4878
|
https://developer-pro.bitmart.com/en/futuresv2/#modify-tp-sl-order-signed
|
4877
4879
|
https://developer-pro.bitmart.com/en/futuresv2/#modify-preset-plan-order-signed
|
4880
|
+
https://developer-pro.bitmart.com/en/futuresv2/#modify-limit-order-signed
|
4878
4881
|
|
4879
4882
|
:param str id: order id
|
4880
4883
|
:param str symbol: unified symbol of the market to edit an order in
|
@@ -4909,6 +4912,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
4909
4912
|
isTakeProfit = takeProfitPrice is not None
|
4910
4913
|
isPresetStopLoss = presetStopLoss is not None
|
4911
4914
|
isPresetTakeProfit = presetTakeProfit is not None
|
4915
|
+
isLimitOrder = (type == 'limit')
|
4912
4916
|
request: dict = {
|
4913
4917
|
'symbol': market['id'],
|
4914
4918
|
}
|
@@ -4973,8 +4977,15 @@ class bitmart(Exchange, ImplicitAPI):
|
|
4973
4977
|
# "trace": "a5c3234534534a836bc476a203.123452.172716624359200197"
|
4974
4978
|
# }
|
4975
4979
|
#
|
4980
|
+
elif isLimitOrder:
|
4981
|
+
request['order_id'] = self.parse_to_int(id) # reparse id self endpoint is the only one requiring it
|
4982
|
+
if amount is not None:
|
4983
|
+
request['size'] = self.amount_to_precision(symbol, amount)
|
4984
|
+
if price is not None:
|
4985
|
+
request['price'] = self.price_to_precision(symbol, price)
|
4986
|
+
response = await self.privatePostContractPrivateModifyLimitOrder(self.extend(request, params))
|
4976
4987
|
else:
|
4977
|
-
raise NotSupported(self.id + ' editOrder() only supports trigger, stop loss and take profit orders')
|
4988
|
+
raise NotSupported(self.id + ' editOrder() only supports limit, trigger, stop loss and take profit orders')
|
4978
4989
|
data = self.safe_dict(response, 'data', {})
|
4979
4990
|
return self.parse_order(data, market)
|
4980
4991
|
|
ccxt/async_support/bitopro.py
CHANGED
ccxt/async_support/bitrue.py
CHANGED
@@ -57,6 +57,7 @@ class bitrue(Exchange, ImplicitAPI):
|
|
57
57
|
'createMarketOrderWithCost': False,
|
58
58
|
'createMarketSellOrderWithCost': False,
|
59
59
|
'createOrder': True,
|
60
|
+
'createReduceOnlyOrder': True,
|
60
61
|
'createStopLimitOrder': True,
|
61
62
|
'createStopMarketOrder': True,
|
62
63
|
'createStopOrder': True,
|
ccxt/async_support/cex.py
CHANGED
ccxt/async_support/deribit.py
CHANGED
ccxt/async_support/hashkey.py
CHANGED
@@ -2399,8 +2399,10 @@ class hashkey(Exchange, ImplicitAPI):
|
|
2399
2399
|
market = self.market(symbol)
|
2400
2400
|
if not market['spot']:
|
2401
2401
|
raise NotSupported(self.id + ' createMarketBuyOrderWithCost() is supported for spot markets only')
|
2402
|
-
|
2403
|
-
|
2402
|
+
req = {
|
2403
|
+
'cost': cost,
|
2404
|
+
}
|
2405
|
+
return await self.create_order(symbol, 'market', 'buy', cost, None, self.extend(req, params))
|
2404
2406
|
|
2405
2407
|
async def create_spot_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2406
2408
|
"""
|
ccxt/async_support/kraken.py
CHANGED
@@ -243,13 +243,13 @@ class kraken(Exchange, ImplicitAPI):
|
|
243
243
|
},
|
244
244
|
},
|
245
245
|
'commonCurrencies': {
|
246
|
+
# about X & Z prefixes and .S & .M suffixes, see comment under fetchCurrencies
|
246
247
|
'LUNA': 'LUNC',
|
247
248
|
'LUNA2': 'LUNA',
|
248
249
|
'REPV2': 'REP',
|
249
250
|
'REP': 'REPV1',
|
250
251
|
'UST': 'USTC',
|
251
252
|
'XBT': 'BTC',
|
252
|
-
'XBT.M': 'BTC.M', # https://support.kraken.com/hc/en-us/articles/360039879471-What-is-Asset-S-and-Asset-M-
|
253
253
|
'XDG': 'DOGE',
|
254
254
|
},
|
255
255
|
'options': {
|
@@ -780,9 +780,48 @@ class kraken(Exchange, ImplicitAPI):
|
|
780
780
|
# {
|
781
781
|
# "error": [],
|
782
782
|
# "result": {
|
783
|
-
# "
|
783
|
+
# "ATOM": {
|
784
784
|
# "aclass": "currency",
|
785
|
-
# "altname": "
|
785
|
+
# "altname": "ATOM",
|
786
|
+
# "collateral_value": "0.7",
|
787
|
+
# "decimals": 8,
|
788
|
+
# "display_decimals": 6,
|
789
|
+
# "margin_rate": 0.02,
|
790
|
+
# "status": "enabled",
|
791
|
+
# },
|
792
|
+
# "ATOM.S": {
|
793
|
+
# "aclass": "currency",
|
794
|
+
# "altname": "ATOM.S",
|
795
|
+
# "decimals": 8,
|
796
|
+
# "display_decimals": 6,
|
797
|
+
# "status": "enabled",
|
798
|
+
# },
|
799
|
+
# "XXBT": {
|
800
|
+
# "aclass": "currency",
|
801
|
+
# "altname": "XBT",
|
802
|
+
# "decimals": 10,
|
803
|
+
# "display_decimals": 5,
|
804
|
+
# "margin_rate": 0.01,
|
805
|
+
# "status": "enabled",
|
806
|
+
# },
|
807
|
+
# "XETH": {
|
808
|
+
# "aclass": "currency",
|
809
|
+
# "altname": "ETH",
|
810
|
+
# "decimals": 10,
|
811
|
+
# "display_decimals": 5
|
812
|
+
# "margin_rate": 0.02,
|
813
|
+
# "status": "enabled",
|
814
|
+
# },
|
815
|
+
# "XBT.M": {
|
816
|
+
# "aclass": "currency",
|
817
|
+
# "altname": "XBT.M",
|
818
|
+
# "decimals": 10,
|
819
|
+
# "display_decimals": 5
|
820
|
+
# "status": "enabled",
|
821
|
+
# },
|
822
|
+
# "ETH.M": {
|
823
|
+
# "aclass": "currency",
|
824
|
+
# "altname": "ETH.M",
|
786
825
|
# "decimals": 10,
|
787
826
|
# "display_decimals": 5
|
788
827
|
# "status": "enabled",
|
@@ -801,7 +840,27 @@ class kraken(Exchange, ImplicitAPI):
|
|
801
840
|
# see: https://support.kraken.com/hc/en-us/articles/201893608-What-are-the-withdrawal-fees-
|
802
841
|
# to add support for multiple withdrawal/deposit methods and
|
803
842
|
# differentiated fees for each particular method
|
843
|
+
#
|
844
|
+
# Notes about abbreviations:
|
845
|
+
# Z and X prefixes: https://support.kraken.com/hc/en-us/articles/360001206766-Bitcoin-currency-code-XBT-vs-BTC
|
846
|
+
# S and M suffixes: https://support.kraken.com/hc/en-us/articles/360039879471-What-is-Asset-S-and-Asset-M-
|
847
|
+
#
|
804
848
|
code = self.safe_currency_code(id)
|
849
|
+
# the below can not be reliable done in `safeCurrencyCode`, so we have to do it here
|
850
|
+
if id.find('.') < 0:
|
851
|
+
altName = self.safe_string(currency, 'altname')
|
852
|
+
# handle cases like below:
|
853
|
+
#
|
854
|
+
# id | altname
|
855
|
+
# ---------------
|
856
|
+
# XXBT | XBT
|
857
|
+
# ZUSD | USD
|
858
|
+
if id != altName and (id.startswith('X') or id.startswith('Z')):
|
859
|
+
code = self.safe_currency_code(altName)
|
860
|
+
# also, add map in commonCurrencies:
|
861
|
+
self.commonCurrencies[id] = code
|
862
|
+
else:
|
863
|
+
code = self.safe_currency_code(id)
|
805
864
|
precision = self.parse_number(self.parse_precision(self.safe_string(currency, 'decimals')))
|
806
865
|
# assumes all currencies are active except those listed above
|
807
866
|
active = self.safe_string(currency, 'status') == 'enabled'
|
@@ -829,6 +888,17 @@ class kraken(Exchange, ImplicitAPI):
|
|
829
888
|
}
|
830
889
|
return result
|
831
890
|
|
891
|
+
def safe_currency_code(self, currencyId: Str, currency: Currency = None) -> Str:
|
892
|
+
if currencyId is None:
|
893
|
+
return currencyId
|
894
|
+
if currencyId.find('.') > 0:
|
895
|
+
# if ID contains .M, .S or .F, then it can't contain X or Z prefix. in such case, ID equals to ALTNAME
|
896
|
+
parts = currencyId.split('.')
|
897
|
+
firstPart = self.safe_string(parts, 0)
|
898
|
+
secondPart = self.safe_string(parts, 1)
|
899
|
+
return super(kraken, self).safe_currency_code(firstPart, currency) + '.' + secondPart
|
900
|
+
return super(kraken, self).safe_currency_code(currencyId, currency)
|
901
|
+
|
832
902
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
833
903
|
"""
|
834
904
|
fetch the trading fees for a market
|
@@ -1492,8 +1562,10 @@ class kraken(Exchange, ImplicitAPI):
|
|
1492
1562
|
"""
|
1493
1563
|
await self.load_markets()
|
1494
1564
|
# only buy orders are supported by the endpoint
|
1495
|
-
|
1496
|
-
|
1565
|
+
req = {
|
1566
|
+
'cost': cost,
|
1567
|
+
}
|
1568
|
+
return await self.create_order(symbol, 'market', side, cost, None, self.extend(req, params))
|
1497
1569
|
|
1498
1570
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
1499
1571
|
"""
|
ccxt/async_support/kucoin.py
CHANGED
@@ -2272,8 +2272,10 @@ class kucoin(Exchange, ImplicitAPI):
|
|
2272
2272
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
2273
2273
|
"""
|
2274
2274
|
await self.load_markets()
|
2275
|
-
|
2276
|
-
|
2275
|
+
req = {
|
2276
|
+
'cost': cost,
|
2277
|
+
}
|
2278
|
+
return await self.create_order(symbol, 'market', side, cost, None, self.extend(req, params))
|
2277
2279
|
|
2278
2280
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
2279
2281
|
"""
|
ccxt/async_support/mexc.py
CHANGED
@@ -2196,8 +2196,10 @@ class mexc(Exchange, ImplicitAPI):
|
|
2196
2196
|
market = self.market(symbol)
|
2197
2197
|
if not market['spot']:
|
2198
2198
|
raise NotSupported(self.id + ' createMarketBuyOrderWithCost() supports spot orders only')
|
2199
|
-
|
2200
|
-
|
2199
|
+
req = {
|
2200
|
+
'cost': cost,
|
2201
|
+
}
|
2202
|
+
return await self.create_order(symbol, 'market', 'buy', 0, None, self.extend(req, params))
|
2201
2203
|
|
2202
2204
|
async def create_market_sell_order_with_cost(self, symbol: str, cost: float, params={}):
|
2203
2205
|
"""
|
@@ -2214,8 +2216,10 @@ class mexc(Exchange, ImplicitAPI):
|
|
2214
2216
|
market = self.market(symbol)
|
2215
2217
|
if not market['spot']:
|
2216
2218
|
raise NotSupported(self.id + ' createMarketBuyOrderWithCost() supports spot orders only')
|
2217
|
-
|
2218
|
-
|
2219
|
+
req = {
|
2220
|
+
'cost': cost,
|
2221
|
+
}
|
2222
|
+
return await self.create_order(symbol, 'market', 'sell', 0, None, self.extend(req, params))
|
2219
2223
|
|
2220
2224
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
2221
2225
|
"""
|
ccxt/async_support/okx.py
CHANGED
@@ -1013,71 +1013,64 @@ class okx(Exchange, ImplicitAPI):
|
|
1013
1013
|
'networks': {
|
1014
1014
|
'BTC': 'Bitcoin',
|
1015
1015
|
'BTCLN': 'Lightning',
|
1016
|
+
'BTCLIGHTNING': 'Lightning',
|
1016
1017
|
'BEP20': 'BSC',
|
1018
|
+
'BRC20': 'BRC20',
|
1017
1019
|
'ERC20': 'ERC20',
|
1018
1020
|
'TRC20': 'TRC20',
|
1019
1021
|
'CRC20': 'Crypto',
|
1020
|
-
# sorted
|
1021
1022
|
'ACA': 'Acala',
|
1022
1023
|
'ALGO': 'Algorand',
|
1023
|
-
'BHP': 'BHP',
|
1024
1024
|
'APT': 'Aptos',
|
1025
|
+
'SCROLL': 'Scroll',
|
1025
1026
|
'ARBONE': 'Arbitrum One',
|
1026
1027
|
'AVAXC': 'Avalanche C-Chain',
|
1027
1028
|
'AVAXX': 'Avalanche X-Chain',
|
1028
|
-
'
|
1029
|
+
'BASE': 'Base',
|
1030
|
+
'SUI': 'SUI',
|
1031
|
+
'ZKSYNCERA': 'zkSync Era',
|
1032
|
+
'LINEA': 'Linea',
|
1029
1033
|
'AR': 'Arweave',
|
1030
1034
|
'ASTR': 'Astar',
|
1031
1035
|
'BCH': 'BitcoinCash',
|
1032
1036
|
'BSV': 'Bitcoin SV',
|
1033
|
-
'BTM': 'Bytom',
|
1034
1037
|
'ADA': 'Cardano',
|
1035
1038
|
'CSPR': 'Casper',
|
1036
1039
|
'CELO': 'CELO',
|
1037
1040
|
'XCH': 'Chia',
|
1038
|
-
'CHZ': 'Chiliz',
|
1041
|
+
# 'CHZ': 'Chiliz', TBD: Chiliz 2.0 Chain vs Chiliz Chain
|
1039
1042
|
'ATOM': 'Cosmos',
|
1040
|
-
'TRUE': 'TrueChain',
|
1041
|
-
'DCR': 'Decred',
|
1042
1043
|
'DGB': 'Digibyte',
|
1043
1044
|
'DOGE': 'Dogecoin',
|
1044
|
-
'XEC': 'XEC',
|
1045
1045
|
'EGLD': 'Elrond',
|
1046
|
+
'CFX': 'Conflux', # CFX_EVM is different
|
1046
1047
|
'EOS': 'EOS',
|
1048
|
+
'CORE': 'CORE',
|
1047
1049
|
'ETC': 'Ethereum Classic',
|
1048
1050
|
'ETHW': 'EthereumPow',
|
1049
|
-
'FTM': 'Fantom',
|
1051
|
+
# 'FTM': 'Fantom', 'Sonic' TBD
|
1050
1052
|
'FIL': 'Filecoin',
|
1051
|
-
'FLOW': 'FLOW',
|
1052
|
-
'FSN': 'Fusion',
|
1053
1053
|
'ONE': 'Harmony',
|
1054
1054
|
'HBAR': 'Hedera',
|
1055
|
-
'HNT': 'Helium',
|
1056
|
-
'ZEN': 'Horizen',
|
1057
1055
|
'ICX': 'ICON',
|
1058
1056
|
'ICP': 'Dfinity',
|
1059
1057
|
'IOST': 'IOST',
|
1060
1058
|
'IOTA': 'MIOTA',
|
1061
|
-
'KDA': 'Kadena',
|
1062
|
-
'KAR': 'KAR',
|
1063
1059
|
'KLAY': 'Klaytn',
|
1064
1060
|
'KSM': 'Kusama',
|
1065
1061
|
'LSK': 'Lisk',
|
1066
1062
|
'LTC': 'Litecoin',
|
1067
1063
|
'METIS': 'Metis',
|
1068
1064
|
'MINA': 'Mina',
|
1069
|
-
'XMR': 'Monero',
|
1070
1065
|
'GLRM': 'Moonbeam',
|
1071
1066
|
'MOVR': 'Moonriver',
|
1072
1067
|
'NANO': 'Nano',
|
1073
1068
|
'NEAR': 'NEAR',
|
1074
|
-
'NAS': 'Nebulas',
|
1075
|
-
'NEM': 'New Economy Movement',
|
1076
1069
|
'NULS': 'NULS',
|
1077
1070
|
'OASYS': 'OASYS',
|
1078
|
-
'OKC': 'OKC',
|
1079
1071
|
'ONT': 'Ontology',
|
1080
1072
|
'OPTIMISM': 'Optimism',
|
1073
|
+
# 'OP': 'Optimism', or Optimism(V2), TBD
|
1081
1074
|
'LAT': 'PlatON',
|
1082
1075
|
'DOT': 'Polkadot',
|
1083
1076
|
'MATIC': 'Polygon',
|
@@ -1090,35 +1083,54 @@ class okx(Exchange, ImplicitAPI):
|
|
1090
1083
|
'XTZ': 'Tezos',
|
1091
1084
|
'TON': 'TON',
|
1092
1085
|
'THETA': 'Theta',
|
1093
|
-
'VSYS': 'VSYSTEMS',
|
1094
|
-
'WAVES': 'WAVES',
|
1095
1086
|
'WAX': 'Wax',
|
1096
|
-
'ZEC': 'Zcash',
|
1097
1087
|
'ZIL': 'Zilliqa',
|
1098
|
-
|
1099
|
-
|
1100
|
-
#
|
1101
|
-
#
|
1102
|
-
#
|
1103
|
-
#
|
1104
|
-
#
|
1105
|
-
#
|
1106
|
-
#
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1113
|
-
#
|
1114
|
-
#
|
1115
|
-
#
|
1116
|
-
#
|
1117
|
-
#
|
1118
|
-
#
|
1119
|
-
#
|
1120
|
-
#
|
1121
|
-
#
|
1088
|
+
# non-supported known network: CRP. KAVA, TAIKO, BOB, GNO, BLAST, RSK, SEI, MANTLE, HYPE, RUNE, OSMO, XIN, WEMIX, HT, FSN, NEO, TLOS, CANTO, SCRT, AURORA, XMR
|
1089
|
+
# others:
|
1090
|
+
# "OKTC",
|
1091
|
+
# "X Layer",
|
1092
|
+
# "Polygon(Bridged)",
|
1093
|
+
# "BTCK-OKTC",
|
1094
|
+
# "ETHK-OKTC",
|
1095
|
+
# "Starknet",
|
1096
|
+
# "LTCK-OKTC",
|
1097
|
+
# "XRPK-OKTC",
|
1098
|
+
# "BCHK-OKTC",
|
1099
|
+
# "ETCK-OKTC",
|
1100
|
+
# "Endurance Smart Chain",
|
1101
|
+
# "Berachain",
|
1102
|
+
# "CELO-TOKEN",
|
1103
|
+
# "CFX_EVM",
|
1104
|
+
# "Cortex",
|
1105
|
+
# "DAIK-OKTC",
|
1106
|
+
# "Dora Vota Mainnet",
|
1107
|
+
# "DOTK-OKTC",
|
1108
|
+
# "DYDX",
|
1109
|
+
# "AELF",
|
1110
|
+
# "Enjin Relay Chain",
|
1111
|
+
# "FEVM",
|
1112
|
+
# "FILK-OKTC",
|
1113
|
+
# "Flare",
|
1114
|
+
# "Gravity Alpha Mainnet",
|
1115
|
+
# "INJ",
|
1116
|
+
# "Story",
|
1117
|
+
# "LINKK-OKTC",
|
1118
|
+
# "Terra",
|
1119
|
+
# "Terra Classic",
|
1120
|
+
# "Terra Classic(USTC)",
|
1121
|
+
# "MERLIN Network",
|
1122
|
+
# "Layer 3",
|
1123
|
+
# "PI",
|
1124
|
+
# "Ronin",
|
1125
|
+
# "Quantum",
|
1126
|
+
# "SHIBK-OKTC",
|
1127
|
+
# "SUSHIK-OKTC",
|
1128
|
+
# "Celestia",
|
1129
|
+
# "TRXK-OKTC",
|
1130
|
+
# "UNIK-OKTC",
|
1131
|
+
# "Venom",
|
1132
|
+
# "WBTCK-OKTC",
|
1133
|
+
# "ZetaChain",
|
1122
1134
|
},
|
1123
1135
|
'fetchOpenInterestHistory': {
|
1124
1136
|
'timeframes': {
|