ccxt 4.4.98__py2.py3-none-any.whl → 4.4.99__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 +3 -1
- ccxt/abstract/bitget.py +6 -0
- ccxt/abstract/hibachi.py +26 -0
- ccxt/async_support/__init__.py +3 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/binance.py +7 -6
- ccxt/async_support/bitget.py +2018 -557
- ccxt/async_support/bybit.py +5 -1
- ccxt/async_support/coinex.py +64 -3
- ccxt/async_support/cryptocom.py +1 -1
- ccxt/async_support/gate.py +1 -2
- ccxt/async_support/hibachi.py +2080 -0
- ccxt/async_support/novadax.py +34 -0
- ccxt/base/errors.py +0 -6
- ccxt/base/exchange.py +1 -1
- ccxt/binance.py +7 -6
- ccxt/bitget.py +2018 -557
- ccxt/bybit.py +5 -1
- ccxt/coinex.py +64 -3
- ccxt/cryptocom.py +1 -1
- ccxt/gate.py +1 -2
- ccxt/hibachi.py +2079 -0
- ccxt/novadax.py +34 -0
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +2 -2
- ccxt/pro/apex.py +2 -2
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +2 -4
- ccxt/pro/bitget.py +3 -3
- ccxt/pro/bithumb.py +2 -2
- ccxt/pro/bitmart.py +2 -2
- ccxt/pro/bitmex.py +3 -3
- ccxt/pro/bitstamp.py +3 -3
- ccxt/pro/bittrade.py +2 -2
- ccxt/pro/bitvavo.py +4 -2
- ccxt/pro/bybit.py +4 -4
- ccxt/pro/cex.py +3 -2
- ccxt/pro/coinbaseexchange.py +4 -4
- ccxt/pro/coinbaseinternational.py +2 -2
- ccxt/pro/coincatch.py +1 -1
- ccxt/pro/coinone.py +2 -2
- ccxt/pro/cryptocom.py +2 -2
- ccxt/pro/derive.py +2 -2
- ccxt/pro/gate.py +3 -3
- ccxt/pro/hollaex.py +2 -2
- ccxt/pro/htx.py +3 -3
- ccxt/pro/hyperliquid.py +2 -2
- ccxt/pro/kraken.py +2 -2
- ccxt/pro/krakenfutures.py +4 -3
- ccxt/pro/kucoin.py +3 -2
- ccxt/pro/kucoinfutures.py +3 -2
- ccxt/pro/modetrade.py +2 -2
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +5 -5
- ccxt/pro/onetrading.py +2 -2
- ccxt/pro/p2b.py +2 -2
- ccxt/pro/paradex.py +2 -2
- ccxt/pro/poloniex.py +2 -2
- ccxt/pro/probit.py +2 -2
- ccxt/pro/vertex.py +2 -2
- ccxt/pro/whitebit.py +2 -2
- ccxt/pro/woo.py +2 -2
- ccxt/pro/woofipro.py +2 -2
- ccxt/test/tests_async.py +1 -1
- ccxt/test/tests_sync.py +1 -1
- {ccxt-4.4.98.dist-info → ccxt-4.4.99.dist-info}/METADATA +7 -6
- {ccxt-4.4.98.dist-info → ccxt-4.4.99.dist-info}/RECORD +70 -67
- {ccxt-4.4.98.dist-info → ccxt-4.4.99.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.98.dist-info → ccxt-4.4.99.dist-info}/WHEEL +0 -0
- {ccxt-4.4.98.dist-info → ccxt-4.4.99.dist-info}/top_level.txt +0 -0
ccxt/async_support/novadax.py
CHANGED
@@ -46,6 +46,9 @@ class novadax(Exchange, ImplicitAPI):
|
|
46
46
|
'future': False,
|
47
47
|
'option': False,
|
48
48
|
'addMargin': False,
|
49
|
+
'borrowCrossMargin': False,
|
50
|
+
'borrowIsolatedMargin': False,
|
51
|
+
'borrowMargin': False,
|
49
52
|
'cancelOrder': True,
|
50
53
|
'closeAllPositions': False,
|
51
54
|
'closePosition': False,
|
@@ -58,9 +61,14 @@ class novadax(Exchange, ImplicitAPI):
|
|
58
61
|
'createStopMarketOrder': True,
|
59
62
|
'createStopOrder': True,
|
60
63
|
'fetchAccounts': True,
|
64
|
+
'fetchAllGreeks': False,
|
61
65
|
'fetchBalance': True,
|
66
|
+
'fetchBorrowInterest': False,
|
67
|
+
'fetchBorrowRate': False,
|
62
68
|
'fetchBorrowRateHistories': False,
|
63
69
|
'fetchBorrowRateHistory': False,
|
70
|
+
'fetchBorrowRates': False,
|
71
|
+
'fetchBorrowRatesPerSymbol': False,
|
64
72
|
'fetchClosedOrders': True,
|
65
73
|
'fetchCrossBorrowRate': False,
|
66
74
|
'fetchCrossBorrowRates': False,
|
@@ -70,20 +78,40 @@ class novadax(Exchange, ImplicitAPI):
|
|
70
78
|
'fetchDeposits': True,
|
71
79
|
'fetchDepositsWithdrawals': True,
|
72
80
|
'fetchFundingHistory': False,
|
81
|
+
'fetchFundingInterval': False,
|
82
|
+
'fetchFundingIntervals': False,
|
73
83
|
'fetchFundingRate': False,
|
74
84
|
'fetchFundingRateHistory': False,
|
75
85
|
'fetchFundingRates': False,
|
86
|
+
'fetchGreeks': False,
|
76
87
|
'fetchIndexOHLCV': False,
|
77
88
|
'fetchIsolatedBorrowRate': False,
|
78
89
|
'fetchIsolatedBorrowRates': False,
|
90
|
+
'fetchIsolatedPositions': False,
|
79
91
|
'fetchLeverage': False,
|
92
|
+
'fetchLeverages': False,
|
80
93
|
'fetchLeverageTiers': False,
|
94
|
+
'fetchLiquidations': False,
|
95
|
+
'fetchLongShortRatio': False,
|
96
|
+
'fetchLongShortRatioHistory': False,
|
97
|
+
'fetchMarginAdjustmentHistory': False,
|
98
|
+
'fetchMarginMode': False,
|
99
|
+
'fetchMarginModes': False,
|
100
|
+
'fetchMarketLeverageTiers': False,
|
81
101
|
'fetchMarkets': True,
|
82
102
|
'fetchMarkOHLCV': False,
|
103
|
+
'fetchMarkPrice': False,
|
104
|
+
'fetchMarkPrices': False,
|
105
|
+
'fetchMyLiquidations': False,
|
106
|
+
'fetchMySettlementHistory': False,
|
83
107
|
'fetchMyTrades': True,
|
84
108
|
'fetchOHLCV': True,
|
109
|
+
'fetchOpenInterest': False,
|
85
110
|
'fetchOpenInterestHistory': False,
|
111
|
+
'fetchOpenInterests': False,
|
86
112
|
'fetchOpenOrders': True,
|
113
|
+
'fetchOption': False,
|
114
|
+
'fetchOptionChain': False,
|
87
115
|
'fetchOrder': True,
|
88
116
|
'fetchOrderBook': True,
|
89
117
|
'fetchOrders': True,
|
@@ -96,6 +124,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
96
124
|
'fetchPositionsHistory': False,
|
97
125
|
'fetchPositionsRisk': False,
|
98
126
|
'fetchPremiumIndexOHLCV': False,
|
127
|
+
'fetchSettlementHistory': False,
|
99
128
|
'fetchTicker': True,
|
100
129
|
'fetchTickers': True,
|
101
130
|
'fetchTime': True,
|
@@ -103,9 +132,14 @@ class novadax(Exchange, ImplicitAPI):
|
|
103
132
|
'fetchTradingFee': False,
|
104
133
|
'fetchTradingFees': False,
|
105
134
|
'fetchTransactions': 'emulated',
|
135
|
+
'fetchUnderlyingAssets': False,
|
136
|
+
'fetchVolatilityHistory': False,
|
106
137
|
'fetchWithdrawals': True,
|
107
138
|
'reduceMargin': False,
|
139
|
+
'repayCrossMargin': False,
|
140
|
+
'repayIsolatedMargin': False,
|
108
141
|
'setLeverage': False,
|
142
|
+
'setMargin': False,
|
109
143
|
'setMarginMode': False,
|
110
144
|
'setPositionMode': False,
|
111
145
|
'transfer': True,
|
ccxt/base/errors.py
CHANGED
@@ -1,9 +1,3 @@
|
|
1
|
-
# ----------------------------------------------------------------------------
|
2
|
-
|
3
|
-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
4
|
-
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
|
-
# EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
6
|
-
|
7
1
|
error_hierarchy = {
|
8
2
|
'BaseError': {
|
9
3
|
'ExchangeError': {
|
ccxt/base/exchange.py
CHANGED
ccxt/binance.py
CHANGED
@@ -2731,12 +2731,13 @@ class binance(Exchange, ImplicitAPI):
|
|
2731
2731
|
return market
|
2732
2732
|
return markets[0]
|
2733
2733
|
elif (symbol.find('/') > -1) and (symbol.find(':') < 0):
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2734
|
+
if (defaultType is not None) and (defaultType != 'spot'):
|
2735
|
+
# support legacy symbols
|
2736
|
+
base, quote = symbol.split('/')
|
2737
|
+
settle = base if (quote == 'USD') else quote
|
2738
|
+
futuresSymbol = symbol + ':' + settle
|
2739
|
+
if futuresSymbol in self.markets:
|
2740
|
+
return self.markets[futuresSymbol]
|
2740
2741
|
elif (symbol.find('-C') > -1) or (symbol.find('-P') > -1): # both exchange-id and unified symbols are supported self way regardless of the defaultType
|
2741
2742
|
return self.create_expired_option_market(symbol)
|
2742
2743
|
raise BadSymbol(self.id + ' does not have market symbol ' + symbol)
|