ccxt 4.2.82__py2.py3-none-any.whl → 4.2.83__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/bitstamp.py +1 -1
- ccxt/ace.py +1 -1
- ccxt/alpaca.py +1 -1
- ccxt/ascendex.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +1 -1
- ccxt/async_support/alpaca.py +1 -1
- ccxt/async_support/ascendex.py +1 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +1 -1
- ccxt/async_support/binance.py +1 -1
- ccxt/async_support/bingx.py +1 -1
- ccxt/async_support/bitbank.py +1 -1
- ccxt/async_support/bitbns.py +1 -1
- ccxt/async_support/bitfinex.py +1 -1
- ccxt/async_support/bitfinex2.py +1 -1
- ccxt/async_support/bitflyer.py +1 -1
- ccxt/async_support/bitget.py +2 -1
- ccxt/async_support/bithumb.py +2 -1
- ccxt/async_support/bitmart.py +1 -1
- ccxt/async_support/bitmex.py +1 -1
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitrue.py +1 -1
- ccxt/async_support/bitso.py +1 -1
- ccxt/async_support/bitstamp.py +43 -16
- ccxt/async_support/bitteam.py +1 -1
- ccxt/async_support/bitvavo.py +1 -1
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/blofin.py +1 -1
- ccxt/async_support/btcalpha.py +1 -1
- ccxt/async_support/btcmarkets.py +1 -1
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +1 -1
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +1 -1
- ccxt/async_support/coinbaseinternational.py +1 -1
- ccxt/async_support/coinbasepro.py +1 -1
- ccxt/async_support/coinex.py +1 -1
- ccxt/async_support/coinlist.py +1 -1
- ccxt/async_support/coinmate.py +1 -1
- ccxt/async_support/coinmetro.py +1 -1
- ccxt/async_support/coinone.py +1 -1
- ccxt/async_support/coinsph.py +1 -1
- ccxt/async_support/cryptocom.py +1 -1
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +1 -1
- ccxt/async_support/deribit.py +17 -2
- ccxt/async_support/digifinex.py +1 -1
- ccxt/async_support/exmo.py +1 -1
- ccxt/async_support/gate.py +1 -1
- ccxt/async_support/gemini.py +2 -1
- ccxt/async_support/hitbtc.py +1 -1
- ccxt/async_support/hollaex.py +1 -1
- ccxt/async_support/htx.py +1 -1
- ccxt/async_support/huobijp.py +1 -1
- ccxt/async_support/hyperliquid.py +6 -5
- ccxt/async_support/idex.py +1 -1
- ccxt/async_support/independentreserve.py +1 -1
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +1 -1
- ccxt/async_support/krakenfutures.py +1 -1
- ccxt/async_support/kucoin.py +1 -1
- ccxt/async_support/kucoinfutures.py +147 -10
- ccxt/async_support/kuna.py +1 -1
- ccxt/async_support/latoken.py +1 -1
- ccxt/async_support/lbank.py +1 -1
- ccxt/async_support/luno.py +1 -1
- ccxt/async_support/lykke.py +1 -1
- ccxt/async_support/mercado.py +1 -1
- ccxt/async_support/mexc.py +1 -1
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +1 -1
- ccxt/async_support/oceanex.py +1 -1
- ccxt/async_support/okcoin.py +1 -1
- ccxt/async_support/okx.py +1 -1
- ccxt/async_support/onetrading.py +1 -1
- ccxt/async_support/p2b.py +1 -1
- ccxt/async_support/phemex.py +1 -1
- ccxt/async_support/poloniex.py +1 -1
- ccxt/async_support/poloniexfutures.py +1 -1
- ccxt/async_support/probit.py +1 -1
- ccxt/async_support/timex.py +1 -1
- ccxt/async_support/tokocrypto.py +1 -1
- ccxt/async_support/tradeogre.py +2 -1
- ccxt/async_support/upbit.py +1 -1
- ccxt/async_support/wavesexchange.py +1 -1
- ccxt/async_support/wazirx.py +1 -1
- ccxt/async_support/whitebit.py +1 -1
- ccxt/async_support/woo.py +1 -1
- ccxt/async_support/yobit.py +1 -1
- ccxt/async_support/zaif.py +1 -1
- ccxt/async_support/zonda.py +1 -1
- ccxt/base/exchange.py +1 -1
- ccxt/bigone.py +1 -1
- ccxt/binance.py +1 -1
- ccxt/bingx.py +1 -1
- ccxt/bitbank.py +1 -1
- ccxt/bitbns.py +1 -1
- ccxt/bitfinex.py +1 -1
- ccxt/bitfinex2.py +1 -1
- ccxt/bitflyer.py +1 -1
- ccxt/bitget.py +2 -1
- ccxt/bithumb.py +2 -1
- ccxt/bitmart.py +1 -1
- ccxt/bitmex.py +1 -1
- ccxt/bitopro.py +1 -1
- ccxt/bitrue.py +1 -1
- ccxt/bitso.py +1 -1
- ccxt/bitstamp.py +43 -16
- ccxt/bitteam.py +1 -1
- ccxt/bitvavo.py +1 -1
- ccxt/blockchaincom.py +1 -1
- ccxt/blofin.py +1 -1
- ccxt/btcalpha.py +1 -1
- ccxt/btcmarkets.py +1 -1
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +1 -1
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +1 -1
- ccxt/coinbaseinternational.py +1 -1
- ccxt/coinbasepro.py +1 -1
- ccxt/coinex.py +1 -1
- ccxt/coinlist.py +1 -1
- ccxt/coinmate.py +1 -1
- ccxt/coinmetro.py +1 -1
- ccxt/coinone.py +1 -1
- ccxt/coinsph.py +1 -1
- ccxt/cryptocom.py +1 -1
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +1 -1
- ccxt/deribit.py +17 -2
- ccxt/digifinex.py +1 -1
- ccxt/exmo.py +1 -1
- ccxt/gate.py +1 -1
- ccxt/gemini.py +2 -1
- ccxt/hitbtc.py +1 -1
- ccxt/hollaex.py +1 -1
- ccxt/htx.py +1 -1
- ccxt/huobijp.py +1 -1
- ccxt/hyperliquid.py +6 -5
- ccxt/idex.py +1 -1
- ccxt/independentreserve.py +1 -1
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +1 -1
- ccxt/krakenfutures.py +1 -1
- ccxt/kucoin.py +1 -1
- ccxt/kucoinfutures.py +147 -10
- ccxt/kuna.py +1 -1
- ccxt/latoken.py +1 -1
- ccxt/lbank.py +1 -1
- ccxt/luno.py +1 -1
- ccxt/lykke.py +1 -1
- ccxt/mercado.py +1 -1
- ccxt/mexc.py +1 -1
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +1 -1
- ccxt/oceanex.py +1 -1
- ccxt/okcoin.py +1 -1
- ccxt/okx.py +1 -1
- ccxt/onetrading.py +1 -1
- ccxt/p2b.py +1 -1
- ccxt/phemex.py +1 -1
- ccxt/poloniex.py +1 -1
- ccxt/poloniexfutures.py +1 -1
- ccxt/pro/__init__.py +3 -1
- ccxt/pro/bithumb.py +368 -0
- ccxt/pro/bitmart.py +1 -1
- ccxt/pro/bybit.py +1 -1
- ccxt/pro/cex.py +15 -5
- ccxt/pro/okx.py +2 -1
- ccxt/pro/p2b.py +14 -4
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +1 -1
- ccxt/timex.py +1 -1
- ccxt/tokocrypto.py +1 -1
- ccxt/tradeogre.py +2 -1
- ccxt/upbit.py +1 -1
- ccxt/wavesexchange.py +1 -1
- ccxt/wazirx.py +1 -1
- ccxt/whitebit.py +1 -1
- ccxt/woo.py +1 -1
- ccxt/yobit.py +1 -1
- ccxt/zaif.py +1 -1
- ccxt/zonda.py +1 -1
- {ccxt-4.2.82.dist-info → ccxt-4.2.83.dist-info}/METADATA +5 -5
- {ccxt-4.2.82.dist-info → ccxt-4.2.83.dist-info}/RECORD +189 -188
- {ccxt-4.2.82.dist-info → ccxt-4.2.83.dist-info}/WHEEL +0 -0
- {ccxt-4.2.82.dist-info → ccxt-4.2.83.dist-info}/top_level.txt +0 -0
ccxt/async_support/timex.py
CHANGED
@@ -292,7 +292,7 @@ class timex(Exchange, ImplicitAPI):
|
|
292
292
|
#
|
293
293
|
return self.parse_to_int(response) * 1000
|
294
294
|
|
295
|
-
async def fetch_markets(self, params={}):
|
295
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
296
296
|
"""
|
297
297
|
retrieves data on all markets for timex
|
298
298
|
:see: https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Public/listMarkets
|
ccxt/async_support/tokocrypto.py
CHANGED
@@ -637,7 +637,7 @@ class tokocrypto(Exchange, ImplicitAPI):
|
|
637
637
|
#
|
638
638
|
return self.safe_integer(response, 'serverTime')
|
639
639
|
|
640
|
-
async def fetch_markets(self, params={}):
|
640
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
641
641
|
"""
|
642
642
|
:see: https://www.tokocrypto.com/apidocs/#get-all-supported-trading-symbol
|
643
643
|
retrieves data on all markets for tokocrypto
|
ccxt/async_support/tradeogre.py
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.tradeogre import ImplicitAPI
|
8
8
|
from ccxt.base.types import IndexType, Int, Market, Num, Order, OrderSide, OrderType, Str, Ticker
|
9
|
+
from typing import List
|
9
10
|
from ccxt.base.errors import ExchangeError
|
10
11
|
from ccxt.base.errors import BadRequest
|
11
12
|
from ccxt.base.errors import InsufficientFunds
|
@@ -162,7 +163,7 @@ class tradeogre(Exchange, ImplicitAPI):
|
|
162
163
|
},
|
163
164
|
})
|
164
165
|
|
165
|
-
async def fetch_markets(self, params={}):
|
166
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
166
167
|
"""
|
167
168
|
retrieves data on all markets for bigone
|
168
169
|
:see: https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#markets
|
ccxt/async_support/upbit.py
CHANGED
@@ -403,7 +403,7 @@ class upbit(Exchange, ImplicitAPI):
|
|
403
403
|
},
|
404
404
|
})
|
405
405
|
|
406
|
-
async def fetch_markets(self, params={}):
|
406
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
407
407
|
"""
|
408
408
|
:see: https://docs.upbit.com/reference/%EB%A7%88%EC%BC%93-%EC%BD%94%EB%93%9C-%EC%A1%B0%ED%9A%8C
|
409
409
|
retrieves data on all markets for upbit
|
@@ -495,7 +495,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
495
495
|
self.options['quotes'] = quotes
|
496
496
|
return quotes
|
497
497
|
|
498
|
-
async def fetch_markets(self, params={}):
|
498
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
499
499
|
"""
|
500
500
|
retrieves data on all markets for wavesexchange
|
501
501
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/wazirx.py
CHANGED
@@ -196,7 +196,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
196
196
|
},
|
197
197
|
})
|
198
198
|
|
199
|
-
async def fetch_markets(self, params={}):
|
199
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
200
200
|
"""
|
201
201
|
:see: https://docs.wazirx.com/#exchange-info
|
202
202
|
retrieves data on all markets for wazirx
|
ccxt/async_support/whitebit.py
CHANGED
@@ -281,7 +281,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
281
281
|
},
|
282
282
|
})
|
283
283
|
|
284
|
-
async def fetch_markets(self, params={}):
|
284
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
285
285
|
"""
|
286
286
|
retrieves data on all markets for whitebit
|
287
287
|
:see: https://docs.whitebit.com/public/http-v4/#market-info
|
ccxt/async_support/woo.py
CHANGED
@@ -387,7 +387,7 @@ class woo(Exchange, ImplicitAPI):
|
|
387
387
|
#
|
388
388
|
return self.safe_integer(response, 'timestamp')
|
389
389
|
|
390
|
-
async def fetch_markets(self, params={}):
|
390
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
391
391
|
"""
|
392
392
|
retrieves data on all markets for woo
|
393
393
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/yobit.py
CHANGED
@@ -347,7 +347,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
347
347
|
#
|
348
348
|
return self.parse_balance(response)
|
349
349
|
|
350
|
-
async def fetch_markets(self, params={}):
|
350
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
351
351
|
"""
|
352
352
|
:see: https://yobit.net/en/api
|
353
353
|
retrieves data on all markets for yobit
|
ccxt/async_support/zaif.py
CHANGED
@@ -143,7 +143,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
143
143
|
},
|
144
144
|
})
|
145
145
|
|
146
|
-
async def fetch_markets(self, params={}):
|
146
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
147
147
|
"""
|
148
148
|
:see: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12
|
149
149
|
retrieves data on all markets for zaif
|
ccxt/async_support/zonda.py
CHANGED
@@ -311,7 +311,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
311
311
|
},
|
312
312
|
})
|
313
313
|
|
314
|
-
async def fetch_markets(self, params={}):
|
314
|
+
async def fetch_markets(self, params={}) -> List[Market]:
|
315
315
|
"""
|
316
316
|
:see: https://docs.zondacrypto.exchange/reference/ticker-1
|
317
317
|
retrieves data on all markets for zonda
|
ccxt/base/exchange.py
CHANGED
ccxt/bigone.py
CHANGED
@@ -518,7 +518,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
518
518
|
}
|
519
519
|
return result
|
520
520
|
|
521
|
-
def fetch_markets(self, params={}):
|
521
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
522
522
|
"""
|
523
523
|
retrieves data on all markets for bigone
|
524
524
|
:see: https://open.big.one/docs/spot_asset_pair.html
|
ccxt/binance.py
CHANGED
@@ -2789,7 +2789,7 @@ class binance(Exchange, ImplicitAPI):
|
|
2789
2789
|
}
|
2790
2790
|
return result
|
2791
2791
|
|
2792
|
-
def fetch_markets(self, params={}):
|
2792
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
2793
2793
|
"""
|
2794
2794
|
retrieves data on all markets for binance
|
2795
2795
|
:see: https://binance-docs.github.io/apidocs/spot/en/#exchange-information # spot
|
ccxt/bingx.py
CHANGED
@@ -687,7 +687,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
687
687
|
'info': market,
|
688
688
|
})
|
689
689
|
|
690
|
-
def fetch_markets(self, params={}):
|
690
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
691
691
|
"""
|
692
692
|
retrieves data on all markets for bingx
|
693
693
|
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
ccxt/bitbank.py
CHANGED
@@ -164,7 +164,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
164
164
|
},
|
165
165
|
})
|
166
166
|
|
167
|
-
def fetch_markets(self, params={}):
|
167
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
168
168
|
"""
|
169
169
|
retrieves data on all markets for bitbank
|
170
170
|
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
ccxt/bitbns.py
CHANGED
@@ -186,7 +186,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
186
186
|
'info': response,
|
187
187
|
}
|
188
188
|
|
189
|
-
def fetch_markets(self, params={}):
|
189
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
190
190
|
"""
|
191
191
|
retrieves data on all markets for bitbns
|
192
192
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/bitfinex.py
CHANGED
@@ -557,7 +557,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
557
557
|
result[symbol] = fee
|
558
558
|
return result
|
559
559
|
|
560
|
-
def fetch_markets(self, params={}):
|
560
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
561
561
|
"""
|
562
562
|
retrieves data on all markets for bitfinex
|
563
563
|
:see: https://docs.bitfinex.com/v1/reference/rest-public-symbols
|
ccxt/bitfinex2.py
CHANGED
@@ -508,7 +508,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
508
508
|
'info': response,
|
509
509
|
}
|
510
510
|
|
511
|
-
def fetch_markets(self, params={}):
|
511
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
512
512
|
"""
|
513
513
|
retrieves data on all markets for bitfinex2
|
514
514
|
:see: https://docs.bitfinex.com/reference/rest-public-conf
|
ccxt/bitflyer.py
CHANGED
@@ -147,7 +147,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
147
147
|
# Since they're the same we just need to return one
|
148
148
|
return super(bitflyer, self).safe_market(marketId, market, delimiter, 'spot')
|
149
149
|
|
150
|
-
def fetch_markets(self, params={}):
|
150
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
151
151
|
"""
|
152
152
|
retrieves data on all markets for bitflyer
|
153
153
|
:see: https://lightning.bitflyer.com/docs?lang=en#market-list
|
ccxt/bitget.py
CHANGED
@@ -1314,6 +1314,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
1314
1314
|
'precisionMode': TICK_SIZE,
|
1315
1315
|
'commonCurrencies': {
|
1316
1316
|
'JADE': 'Jade Protocol',
|
1317
|
+
'DEGEN': 'DegenReborn',
|
1317
1318
|
},
|
1318
1319
|
'options': {
|
1319
1320
|
'timeframes': {
|
@@ -1509,7 +1510,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
1509
1510
|
data = self.safe_value(response, 'data', {})
|
1510
1511
|
return self.safe_integer(data, 'serverTime')
|
1511
1512
|
|
1512
|
-
def fetch_markets(self, params={}):
|
1513
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
1513
1514
|
"""
|
1514
1515
|
retrieves data on all markets for bitget
|
1515
1516
|
:see: https://www.bitget.com/api-doc/spot/market/Get-Symbols
|
ccxt/bithumb.py
CHANGED
@@ -30,6 +30,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
30
30
|
'name': 'Bithumb',
|
31
31
|
'countries': ['KR'], # South Korea
|
32
32
|
'rateLimit': 500,
|
33
|
+
'pro': True,
|
33
34
|
'has': {
|
34
35
|
'CORS': True,
|
35
36
|
'spot': True,
|
@@ -199,7 +200,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
199
200
|
def amount_to_precision(self, symbol, amount):
|
200
201
|
return self.decimal_to_precision(amount, TRUNCATE, self.markets[symbol]['precision']['amount'], DECIMAL_PLACES)
|
201
202
|
|
202
|
-
def fetch_markets(self, params={}):
|
203
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
203
204
|
"""
|
204
205
|
retrieves data on all markets for bithumb
|
205
206
|
:see: https://apidocs.bithumb.com/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C-all
|
ccxt/bitmart.py
CHANGED
@@ -975,7 +975,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
975
975
|
})
|
976
976
|
return result
|
977
977
|
|
978
|
-
def fetch_markets(self, params={}):
|
978
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
979
979
|
"""
|
980
980
|
retrieves data on all markets for bitmart
|
981
981
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/bitmex.py
CHANGED
@@ -453,7 +453,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
453
453
|
def convert_from_raw_cost(self, symbol, rawQuantity):
|
454
454
|
return self.convert_from_raw_quantity(symbol, rawQuantity, 'quote')
|
455
455
|
|
456
|
-
def fetch_markets(self, params={}):
|
456
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
457
457
|
"""
|
458
458
|
retrieves data on all markets for bitmex
|
459
459
|
:see: https://www.bitmex.com/api/explorer/#not /Instrument/Instrument_getActive
|
ccxt/bitopro.py
CHANGED
@@ -280,7 +280,7 @@ class bitopro(Exchange, ImplicitAPI):
|
|
280
280
|
}
|
281
281
|
return result
|
282
282
|
|
283
|
-
def fetch_markets(self, params={}):
|
283
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
284
284
|
"""
|
285
285
|
retrieves data on all markets for bitopro
|
286
286
|
:see: https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_trading_pair_info.md
|
ccxt/bitrue.py
CHANGED
@@ -713,7 +713,7 @@ class bitrue(Exchange, ImplicitAPI):
|
|
713
713
|
}
|
714
714
|
return result
|
715
715
|
|
716
|
-
def fetch_markets(self, params={}):
|
716
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
717
717
|
"""
|
718
718
|
retrieves data on all markets for bitrue
|
719
719
|
:see: https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
ccxt/bitso.py
CHANGED
@@ -338,7 +338,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
338
338
|
'info': item,
|
339
339
|
}, currency)
|
340
340
|
|
341
|
-
def fetch_markets(self, params={}):
|
341
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
342
342
|
"""
|
343
343
|
retrieves data on all markets for bitso
|
344
344
|
:see: https://docs.bitso.com/bitso-api/docs/list-available-books
|
ccxt/bitstamp.py
CHANGED
@@ -176,7 +176,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
176
176
|
'transfer-from-main/': 1,
|
177
177
|
'my_trading_pairs/': 1,
|
178
178
|
'fees/trading/': 1,
|
179
|
-
'fees/trading/{
|
179
|
+
'fees/trading/{market_symbol}': 1,
|
180
180
|
'fees/withdrawal/': 1,
|
181
181
|
'fees/withdrawal/{currency}/': 1,
|
182
182
|
'withdrawal-requests/': 1,
|
@@ -468,7 +468,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
468
468
|
},
|
469
469
|
})
|
470
470
|
|
471
|
-
def fetch_markets(self, params={}):
|
471
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
472
472
|
"""
|
473
473
|
retrieves data on all markets for bitstamp
|
474
474
|
:see: https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
@@ -1120,7 +1120,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1120
1120
|
def fetch_trading_fee(self, symbol: str, params={}):
|
1121
1121
|
"""
|
1122
1122
|
fetch the trading fees for a market
|
1123
|
-
:see: https://www.bitstamp.net/api/#tag/Fees/operation/
|
1123
|
+
:see: https://www.bitstamp.net/api/#tag/Fees/operation/GetTradingFeesForCurrency
|
1124
1124
|
:param str symbol: unified market symbol
|
1125
1125
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1126
1126
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1128,21 +1128,35 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1128
1128
|
self.load_markets()
|
1129
1129
|
market = self.market(symbol)
|
1130
1130
|
request = {
|
1131
|
-
'
|
1131
|
+
'market_symbol': market['id'],
|
1132
1132
|
}
|
1133
|
-
response = self.
|
1134
|
-
|
1133
|
+
response = self.privatePostFeesTrading(self.extend(request, params))
|
1134
|
+
#
|
1135
|
+
# [
|
1136
|
+
# {
|
1137
|
+
# "currency_pair": "btcusd",
|
1138
|
+
# "fees":
|
1139
|
+
# {
|
1140
|
+
# "maker": "0.15000",
|
1141
|
+
# "taker": "0.16000"
|
1142
|
+
# },
|
1143
|
+
# "market": "btcusd"
|
1144
|
+
# }
|
1145
|
+
# ...
|
1146
|
+
# ]
|
1147
|
+
#
|
1148
|
+
tradingFeesByMarketId = self.index_by(response, 'currency_pair')
|
1149
|
+
tradingFee = self.safe_dict(tradingFeesByMarketId, market['id'])
|
1150
|
+
return self.parse_trading_fee(tradingFee, market)
|
1135
1151
|
|
1136
1152
|
def parse_trading_fee(self, fee, market: Market = None):
|
1137
|
-
|
1138
|
-
|
1139
|
-
dividedFeeString = Precise.string_div(feeString, '100')
|
1140
|
-
tradeFee = self.parse_number(dividedFeeString)
|
1153
|
+
marketId = self.safe_string(fee, 'market')
|
1154
|
+
fees = self.safe_dict(fee, 'fees', {})
|
1141
1155
|
return {
|
1142
1156
|
'info': fee,
|
1143
|
-
'symbol': market
|
1144
|
-
'maker':
|
1145
|
-
'taker':
|
1157
|
+
'symbol': self.safe_symbol(marketId, market),
|
1158
|
+
'maker': self.safe_number(fees, 'maker'),
|
1159
|
+
'taker': self.safe_number(fees, 'taker'),
|
1146
1160
|
}
|
1147
1161
|
|
1148
1162
|
def parse_trading_fees(self, fees):
|
@@ -1150,8 +1164,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1150
1164
|
symbols = self.symbols
|
1151
1165
|
for i in range(0, len(symbols)):
|
1152
1166
|
symbol = symbols[i]
|
1153
|
-
|
1154
|
-
fee = self.parse_trading_fee(fees, market)
|
1167
|
+
fee = self.parse_trading_fee(fees[i])
|
1155
1168
|
result[symbol] = fee
|
1156
1169
|
return result
|
1157
1170
|
|
@@ -1163,7 +1176,21 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1163
1176
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
1164
1177
|
"""
|
1165
1178
|
self.load_markets()
|
1166
|
-
response = self.
|
1179
|
+
response = self.privatePostFeesTrading(params)
|
1180
|
+
#
|
1181
|
+
# [
|
1182
|
+
# {
|
1183
|
+
# "currency_pair": "btcusd",
|
1184
|
+
# "fees":
|
1185
|
+
# {
|
1186
|
+
# "maker": "0.15000",
|
1187
|
+
# "taker": "0.16000"
|
1188
|
+
# },
|
1189
|
+
# "market": "btcusd"
|
1190
|
+
# }
|
1191
|
+
# ...
|
1192
|
+
# ]
|
1193
|
+
#
|
1167
1194
|
return self.parse_trading_fees(response)
|
1168
1195
|
|
1169
1196
|
def fetch_transaction_fees(self, codes: List[str] = None, params={}):
|
ccxt/bitteam.py
CHANGED
@@ -247,7 +247,7 @@ class bitteam(Exchange, ImplicitAPI):
|
|
247
247
|
},
|
248
248
|
})
|
249
249
|
|
250
|
-
def fetch_markets(self, params={}):
|
250
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
251
251
|
"""
|
252
252
|
retrieves data on all markets for bitteam
|
253
253
|
:see: https://bit.team/trade/api/documentation#/CCXT/getTradeApiCcxtPairs
|
ccxt/bitvavo.py
CHANGED
@@ -322,7 +322,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
322
322
|
#
|
323
323
|
return self.safe_integer(response, 'time')
|
324
324
|
|
325
|
-
def fetch_markets(self, params={}):
|
325
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
326
326
|
"""
|
327
327
|
:see: https://docs.bitvavo.com/#tag/General/paths/~1markets/get
|
328
328
|
retrieves data on all markets for bitvavo
|
ccxt/blockchaincom.py
CHANGED
@@ -227,7 +227,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
227
227
|
},
|
228
228
|
})
|
229
229
|
|
230
|
-
def fetch_markets(self, params={}):
|
230
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
231
231
|
"""
|
232
232
|
retrieves data on all markets for blockchaincom
|
233
233
|
:see: https://api.blockchain.com/v3/#/unauthenticated/getSymbols
|
ccxt/blofin.py
CHANGED
@@ -355,7 +355,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
355
355
|
},
|
356
356
|
})
|
357
357
|
|
358
|
-
def fetch_markets(self, params={}):
|
358
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
359
359
|
"""
|
360
360
|
retrieves data on all markets for blofin
|
361
361
|
:see: https://blofin.com/docs#get-instruments
|
ccxt/btcalpha.py
CHANGED
@@ -158,7 +158,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
158
158
|
},
|
159
159
|
})
|
160
160
|
|
161
|
-
def fetch_markets(self, params={}):
|
161
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
162
162
|
"""
|
163
163
|
retrieves data on all markets for btcalpha
|
164
164
|
:see: https://btc-alpha.github.io/api-docs/#list-all-currencies
|
ccxt/btcmarkets.py
CHANGED
@@ -350,7 +350,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
350
350
|
'info': transaction,
|
351
351
|
}
|
352
352
|
|
353
|
-
def fetch_markets(self, params={}):
|
353
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
354
354
|
"""
|
355
355
|
retrieves data on all markets for btcmarkets
|
356
356
|
:see: https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets/get
|
ccxt/btcturk.py
CHANGED
@@ -149,7 +149,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
149
149
|
'precisionMode': TICK_SIZE,
|
150
150
|
})
|
151
151
|
|
152
|
-
def fetch_markets(self, params={}):
|
152
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
153
153
|
"""
|
154
154
|
retrieves data on all markets for btcturk
|
155
155
|
:see: https://docs.btcturk.com/public-endpoints/exchange-info
|
ccxt/bybit.py
CHANGED
@@ -1420,7 +1420,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
1420
1420
|
}
|
1421
1421
|
return result
|
1422
1422
|
|
1423
|
-
def fetch_markets(self, params={}):
|
1423
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
1424
1424
|
"""
|
1425
1425
|
retrieves data on all markets for bybit
|
1426
1426
|
:see: https://bybit-exchange.github.io/docs/v5/market/instrument
|
ccxt/cex.py
CHANGED
@@ -340,7 +340,7 @@ class cex(Exchange, ImplicitAPI):
|
|
340
340
|
}
|
341
341
|
return result
|
342
342
|
|
343
|
-
def fetch_markets(self, params={}):
|
343
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
344
344
|
"""
|
345
345
|
retrieves data on all markets for cex
|
346
346
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/coinbase.py
CHANGED
@@ -1030,7 +1030,7 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1030
1030
|
},
|
1031
1031
|
})
|
1032
1032
|
|
1033
|
-
def fetch_markets(self, params={}):
|
1033
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
1034
1034
|
"""
|
1035
1035
|
:see: https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getproducts
|
1036
1036
|
:see: https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
ccxt/coinbaseinternational.py
CHANGED
@@ -894,7 +894,7 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
894
894
|
},
|
895
895
|
})
|
896
896
|
|
897
|
-
def fetch_markets(self, params={}):
|
897
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
898
898
|
"""
|
899
899
|
:see: https://docs.cloud.coinbase.com/intx/reference/getinstruments
|
900
900
|
retrieves data on all markets for coinbaseinternational
|
ccxt/coinbasepro.py
CHANGED
@@ -307,7 +307,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
307
307
|
}
|
308
308
|
return result
|
309
309
|
|
310
|
-
def fetch_markets(self, params={}):
|
310
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
311
311
|
"""
|
312
312
|
retrieves data on all markets for coinbasepro
|
313
313
|
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducts
|
ccxt/coinex.py
CHANGED
@@ -488,7 +488,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
488
488
|
result[code]['limits']['withdraw']['min'] = self.parse_number(minWithdrawString)
|
489
489
|
return result
|
490
490
|
|
491
|
-
def fetch_markets(self, params={}):
|
491
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
492
492
|
"""
|
493
493
|
retrieves data on all markets for coinex
|
494
494
|
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market002_all_market_info
|
ccxt/coinlist.py
CHANGED
@@ -397,7 +397,7 @@ class coinlist(Exchange, ImplicitAPI):
|
|
397
397
|
}
|
398
398
|
return result
|
399
399
|
|
400
|
-
def fetch_markets(self, params={}):
|
400
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
401
401
|
"""
|
402
402
|
retrieves data on all markets for coinlist
|
403
403
|
:see: https://trade-docs.coinlist.co/?javascript--nodejs#list-symbols
|
ccxt/coinmate.py
CHANGED
@@ -230,7 +230,7 @@ class coinmate(Exchange, ImplicitAPI):
|
|
230
230
|
'precisionMode': TICK_SIZE,
|
231
231
|
})
|
232
232
|
|
233
|
-
def fetch_markets(self, params={}):
|
233
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
234
234
|
"""
|
235
235
|
retrieves data on all markets for coinmate
|
236
236
|
:see: https://coinmate.docs.apiary.io/#reference/trading-pairs/get-trading-pairs/get
|
ccxt/coinmetro.py
CHANGED
@@ -339,7 +339,7 @@ class coinmetro(Exchange, ImplicitAPI):
|
|
339
339
|
self.options['currencyIdsListForParseMarket'] = list(currenciesById.keys())
|
340
340
|
return result
|
341
341
|
|
342
|
-
def fetch_markets(self, params={}):
|
342
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
343
343
|
"""
|
344
344
|
retrieves data on all markets for coinmetro
|
345
345
|
:see: https://documenter.getpostman.com/view/3653795/SVfWN6KS#9fd18008-338e-4863-b07d-722878a46832
|
ccxt/coinone.py
CHANGED
@@ -268,7 +268,7 @@ class coinone(Exchange, ImplicitAPI):
|
|
268
268
|
}
|
269
269
|
return result
|
270
270
|
|
271
|
-
def fetch_markets(self, params={}):
|
271
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
272
272
|
"""
|
273
273
|
retrieves data on all markets for coinone
|
274
274
|
:see: https://docs.coinone.co.kr/v1.0/reference/tickers
|
ccxt/coinsph.py
CHANGED
@@ -478,7 +478,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
478
478
|
#
|
479
479
|
return self.safe_integer(response, 'serverTime')
|
480
480
|
|
481
|
-
def fetch_markets(self, params={}):
|
481
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
482
482
|
"""
|
483
483
|
retrieves data on all markets for coinsph
|
484
484
|
:see: https://coins-docs.github.io/rest-api/#exchange-information
|
ccxt/cryptocom.py
CHANGED
@@ -390,7 +390,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
390
390
|
},
|
391
391
|
})
|
392
392
|
|
393
|
-
def fetch_markets(self, params={}):
|
393
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
394
394
|
"""
|
395
395
|
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-instruments
|
396
396
|
retrieves data on all markets for cryptocom
|
ccxt/currencycom.py
CHANGED
@@ -395,7 +395,7 @@ class currencycom(Exchange, ImplicitAPI):
|
|
395
395
|
}
|
396
396
|
return result
|
397
397
|
|
398
|
-
def fetch_markets(self, params={}):
|
398
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
399
399
|
"""
|
400
400
|
retrieves data on all markets for currencycom
|
401
401
|
:see: https://apitradedoc.currency.com/swagger-ui.html#/rest-api/exchangeInfoUsingGET
|
ccxt/delta.py
CHANGED
@@ -513,7 +513,7 @@ class delta(Exchange, ImplicitAPI):
|
|
513
513
|
result[numericIdString] = item
|
514
514
|
return result
|
515
515
|
|
516
|
-
def fetch_markets(self, params={}):
|
516
|
+
def fetch_markets(self, params={}) -> List[Market]:
|
517
517
|
"""
|
518
518
|
retrieves data on all markets for delta
|
519
519
|
:see: https://docs.delta.exchange/#get-list-of-products
|