ccxt 4.3.30__py2.py3-none-any.whl → 4.3.32__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/binance.py +2 -0
- ccxt/abstract/binancecoinm.py +2 -0
- ccxt/abstract/binanceus.py +2 -0
- ccxt/abstract/binanceusdm.py +2 -0
- ccxt/ace.py +14 -14
- ccxt/alpaca.py +16 -16
- ccxt/ascendex.py +46 -46
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +14 -14
- ccxt/async_support/alpaca.py +16 -16
- ccxt/async_support/ascendex.py +46 -46
- ccxt/async_support/base/exchange.py +23 -23
- ccxt/async_support/bigone.py +32 -32
- ccxt/async_support/binance.py +105 -96
- ccxt/async_support/bingx.py +21 -21
- ccxt/async_support/bit2c.py +13 -13
- ccxt/async_support/bitbank.py +19 -19
- ccxt/async_support/bitbns.py +17 -17
- ccxt/async_support/bitfinex.py +24 -24
- ccxt/async_support/bitfinex2.py +142 -109
- ccxt/async_support/bitflyer.py +23 -23
- ccxt/async_support/bitget.py +76 -76
- ccxt/async_support/bithumb.py +20 -20
- ccxt/async_support/bitmart.py +55 -55
- ccxt/async_support/bitmex.py +41 -41
- ccxt/async_support/bitopro.py +30 -30
- ccxt/async_support/bitrue.py +37 -37
- ccxt/async_support/bitso.py +30 -30
- ccxt/async_support/bitstamp.py +31 -31
- ccxt/async_support/bitteam.py +26 -26
- ccxt/async_support/bitvavo.py +27 -27
- ccxt/async_support/bl3p.py +8 -8
- ccxt/async_support/blockchaincom.py +24 -24
- ccxt/async_support/blofin.py +37 -37
- ccxt/async_support/btcalpha.py +19 -19
- ccxt/async_support/btcbox.py +11 -11
- ccxt/async_support/btcmarkets.py +22 -22
- ccxt/async_support/btcturk.py +13 -13
- ccxt/async_support/bybit.py +96 -96
- ccxt/async_support/cex.py +21 -21
- ccxt/async_support/coinbase.py +53 -53
- ccxt/async_support/coinbaseexchange.py +29 -29
- ccxt/async_support/coinbaseinternational.py +32 -32
- ccxt/async_support/coincheck.py +14 -14
- ccxt/async_support/coinex.py +208 -175
- ccxt/async_support/coinlist.py +35 -35
- ccxt/async_support/coinmate.py +22 -22
- ccxt/async_support/coinmetro.py +22 -22
- ccxt/async_support/coinone.py +18 -18
- ccxt/async_support/coinsph.py +32 -32
- ccxt/async_support/coinspot.py +8 -8
- ccxt/async_support/cryptocom.py +43 -43
- ccxt/async_support/currencycom.py +33 -33
- ccxt/async_support/delta.py +35 -35
- ccxt/async_support/deribit.py +54 -54
- ccxt/async_support/digifinex.py +56 -56
- ccxt/async_support/exmo.py +34 -34
- ccxt/async_support/gate.py +60 -60
- ccxt/async_support/gemini.py +24 -24
- ccxt/async_support/hitbtc.py +51 -51
- ccxt/async_support/hollaex.py +29 -29
- ccxt/async_support/htx.py +73 -73
- ccxt/async_support/huobijp.py +30 -30
- ccxt/async_support/hyperliquid.py +58 -58
- ccxt/async_support/idex.py +33 -33
- ccxt/async_support/independentreserve.py +12 -12
- ccxt/async_support/indodax.py +21 -21
- ccxt/async_support/kraken.py +46 -51
- ccxt/async_support/krakenfutures.py +29 -29
- ccxt/async_support/kucoin.py +51 -51
- ccxt/async_support/kucoinfutures.py +33 -33
- ccxt/async_support/kuna.py +27 -27
- ccxt/async_support/latoken.py +27 -27
- ccxt/async_support/lbank.py +35 -35
- ccxt/async_support/luno.py +19 -19
- ccxt/async_support/lykke.py +20 -20
- ccxt/async_support/mercado.py +17 -17
- ccxt/async_support/mexc.py +64 -64
- ccxt/async_support/ndax.py +38 -38
- ccxt/async_support/novadax.py +26 -26
- ccxt/async_support/oceanex.py +21 -21
- ccxt/async_support/okcoin.py +35 -35
- ccxt/async_support/okx.py +85 -85
- ccxt/async_support/onetrading.py +32 -32
- ccxt/async_support/p2b.py +14 -14
- ccxt/async_support/paymium.py +12 -12
- ccxt/async_support/phemex.py +50 -50
- ccxt/async_support/poloniex.py +35 -35
- ccxt/async_support/poloniexfutures.py +25 -21
- ccxt/async_support/probit.py +30 -30
- ccxt/async_support/timex.py +22 -22
- ccxt/async_support/tokocrypto.py +26 -26
- ccxt/async_support/tradeogre.py +12 -12
- ccxt/async_support/upbit.py +28 -28
- ccxt/async_support/wavesexchange.py +33 -33
- ccxt/async_support/wazirx.py +21 -21
- ccxt/async_support/whitebit.py +37 -37
- ccxt/async_support/woo.py +51 -51
- ccxt/async_support/woofipro.py +46 -46
- ccxt/async_support/yobit.py +20 -20
- ccxt/async_support/zaif.py +12 -12
- ccxt/async_support/zonda.py +22 -22
- ccxt/base/exchange.py +48 -36
- ccxt/base/types.py +13 -0
- ccxt/bigone.py +32 -32
- ccxt/binance.py +105 -96
- ccxt/bingx.py +21 -21
- ccxt/bit2c.py +13 -13
- ccxt/bitbank.py +19 -19
- ccxt/bitbns.py +17 -17
- ccxt/bitfinex.py +24 -24
- ccxt/bitfinex2.py +142 -109
- ccxt/bitflyer.py +23 -23
- ccxt/bitget.py +76 -76
- ccxt/bithumb.py +20 -20
- ccxt/bitmart.py +55 -55
- ccxt/bitmex.py +41 -41
- ccxt/bitopro.py +30 -30
- ccxt/bitrue.py +37 -37
- ccxt/bitso.py +30 -30
- ccxt/bitstamp.py +31 -31
- ccxt/bitteam.py +26 -26
- ccxt/bitvavo.py +27 -27
- ccxt/bl3p.py +8 -8
- ccxt/blockchaincom.py +24 -24
- ccxt/blofin.py +37 -37
- ccxt/btcalpha.py +19 -19
- ccxt/btcbox.py +11 -11
- ccxt/btcmarkets.py +22 -22
- ccxt/btcturk.py +13 -13
- ccxt/bybit.py +96 -96
- ccxt/cex.py +21 -21
- ccxt/coinbase.py +53 -53
- ccxt/coinbaseexchange.py +29 -29
- ccxt/coinbaseinternational.py +32 -32
- ccxt/coincheck.py +14 -14
- ccxt/coinex.py +208 -175
- ccxt/coinlist.py +35 -35
- ccxt/coinmate.py +22 -22
- ccxt/coinmetro.py +22 -22
- ccxt/coinone.py +18 -18
- ccxt/coinsph.py +32 -32
- ccxt/coinspot.py +8 -8
- ccxt/cryptocom.py +43 -43
- ccxt/currencycom.py +33 -33
- ccxt/delta.py +35 -35
- ccxt/deribit.py +54 -54
- ccxt/digifinex.py +56 -56
- ccxt/exmo.py +34 -34
- ccxt/gate.py +60 -60
- ccxt/gemini.py +24 -24
- ccxt/hitbtc.py +51 -51
- ccxt/hollaex.py +29 -29
- ccxt/htx.py +73 -73
- ccxt/huobijp.py +30 -30
- ccxt/hyperliquid.py +58 -58
- ccxt/idex.py +33 -33
- ccxt/independentreserve.py +12 -12
- ccxt/indodax.py +21 -21
- ccxt/kraken.py +46 -51
- ccxt/krakenfutures.py +29 -29
- ccxt/kucoin.py +51 -51
- ccxt/kucoinfutures.py +33 -33
- ccxt/kuna.py +27 -27
- ccxt/latoken.py +27 -27
- ccxt/lbank.py +35 -35
- ccxt/luno.py +19 -19
- ccxt/lykke.py +20 -20
- ccxt/mercado.py +17 -17
- ccxt/mexc.py +64 -64
- ccxt/ndax.py +38 -38
- ccxt/novadax.py +26 -26
- ccxt/oceanex.py +21 -21
- ccxt/okcoin.py +35 -35
- ccxt/okx.py +85 -85
- ccxt/onetrading.py +32 -32
- ccxt/p2b.py +14 -14
- ccxt/paymium.py +12 -12
- ccxt/phemex.py +50 -50
- ccxt/poloniex.py +35 -35
- ccxt/poloniexfutures.py +25 -21
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +8 -8
- ccxt/pro/ascendex.py +4 -4
- ccxt/pro/binance.py +56 -56
- ccxt/pro/bingx.py +5 -5
- ccxt/pro/bitfinex.py +6 -6
- ccxt/pro/bitfinex2.py +10 -10
- ccxt/pro/bitget.py +17 -17
- ccxt/pro/bithumb.py +6 -6
- ccxt/pro/bitmart.py +8 -8
- ccxt/pro/bitmex.py +16 -16
- ccxt/pro/bitopro.py +4 -4
- ccxt/pro/bitrue.py +8 -8
- ccxt/pro/bitstamp.py +5 -5
- ccxt/pro/bitvavo.py +14 -14
- ccxt/pro/blockchaincom.py +7 -7
- ccxt/pro/bybit.py +12 -12
- ccxt/pro/cex.py +20 -20
- ccxt/pro/coinbase.py +32 -2
- ccxt/pro/coinbaseexchange.py +10 -10
- ccxt/pro/coinbaseinternational.py +4 -4
- ccxt/pro/coincheck.py +2 -2
- ccxt/pro/coinex.py +15 -15
- ccxt/pro/coinone.py +4 -4
- ccxt/pro/cryptocom.py +11 -11
- ccxt/pro/currencycom.py +4 -4
- ccxt/pro/deribit.py +9 -9
- ccxt/pro/exmo.py +9 -9
- ccxt/pro/gate.py +12 -12
- ccxt/pro/gemini.py +11 -11
- ccxt/pro/hitbtc.py +13 -13
- ccxt/pro/hollaex.py +6 -6
- ccxt/pro/htx.py +15 -15
- ccxt/pro/huobijp.py +16 -16
- ccxt/pro/hyperliquid.py +9 -9
- ccxt/pro/idex.py +12 -12
- ccxt/pro/independentreserve.py +2 -2
- ccxt/pro/kraken.py +14 -14
- ccxt/pro/krakenfutures.py +12 -12
- ccxt/pro/kucoin.py +12 -12
- ccxt/pro/kucoinfutures.py +16 -16
- ccxt/pro/lbank.py +12 -12
- ccxt/pro/luno.py +4 -4
- ccxt/pro/mexc.py +14 -14
- ccxt/pro/ndax.py +12 -12
- ccxt/pro/okcoin.py +6 -6
- ccxt/pro/okx.py +30 -30
- ccxt/pro/onetrading.py +13 -13
- ccxt/pro/p2b.py +2 -2
- ccxt/pro/phemex.py +9 -9
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +10 -10
- ccxt/pro/probit.py +8 -8
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +10 -10
- ccxt/pro/whitebit.py +8 -8
- ccxt/pro/woo.py +14 -14
- ccxt/pro/woofipro.py +14 -14
- ccxt/probit.py +30 -30
- ccxt/test/base/test_shared_methods.py +1 -0
- ccxt/test/test_async.py +1 -1
- ccxt/test/test_sync.py +1 -1
- ccxt/timex.py +22 -22
- ccxt/tokocrypto.py +26 -26
- ccxt/tradeogre.py +12 -12
- ccxt/upbit.py +28 -28
- ccxt/wavesexchange.py +33 -33
- ccxt/wazirx.py +21 -21
- ccxt/whitebit.py +37 -37
- ccxt/woo.py +51 -51
- ccxt/woofipro.py +46 -46
- ccxt/yobit.py +20 -20
- ccxt/zaif.py +12 -12
- ccxt/zonda.py +22 -22
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/METADATA +4 -4
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/RECORD +260 -260
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/WHEEL +0 -0
- {ccxt-4.3.30.dist-info → ccxt-4.3.32.dist-info}/top_level.txt +0 -0
ccxt/async_support/lykke.py
CHANGED
@@ -231,7 +231,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
231
231
|
# "error":null
|
232
232
|
# }
|
233
233
|
#
|
234
|
-
result = {}
|
234
|
+
result: dict = {}
|
235
235
|
for i in range(0, len(currencies)):
|
236
236
|
currency = currencies[i]
|
237
237
|
id = self.safe_string(currency, 'assetId')
|
@@ -436,7 +436,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
436
436
|
"""
|
437
437
|
await self.load_markets()
|
438
438
|
market = self.market(symbol)
|
439
|
-
request = {
|
439
|
+
request: dict = {
|
440
440
|
'assetPairIds': market['id'],
|
441
441
|
}
|
442
442
|
# publicGetTickers or publicGetPrices
|
@@ -523,7 +523,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
523
523
|
"""
|
524
524
|
await self.load_markets()
|
525
525
|
market = self.market(symbol)
|
526
|
-
request = {
|
526
|
+
request: dict = {
|
527
527
|
'assetPairId': market['id'],
|
528
528
|
}
|
529
529
|
if limit is not None:
|
@@ -557,7 +557,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
557
557
|
timestamp = self.safe_integer(orderbook, 'timestamp')
|
558
558
|
return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 'p', 'v')
|
559
559
|
|
560
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
560
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
561
561
|
#
|
562
562
|
# public fetchTrades
|
563
563
|
#
|
@@ -625,7 +625,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
625
625
|
"""
|
626
626
|
await self.load_markets()
|
627
627
|
market = self.market(symbol)
|
628
|
-
request = {
|
628
|
+
request: dict = {
|
629
629
|
'assetPairId': market['id'],
|
630
630
|
# 'offset': 0,
|
631
631
|
}
|
@@ -661,7 +661,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
661
661
|
# }
|
662
662
|
# ]
|
663
663
|
#
|
664
|
-
result = {'info': response}
|
664
|
+
result: dict = {'info': response}
|
665
665
|
for i in range(0, len(response)):
|
666
666
|
balance = response[i]
|
667
667
|
currencyId = self.safe_string(balance, 'assetId')
|
@@ -699,8 +699,8 @@ class lykke(Exchange, ImplicitAPI):
|
|
699
699
|
#
|
700
700
|
return self.parse_balance(payload)
|
701
701
|
|
702
|
-
def parse_order_status(self, status):
|
703
|
-
statuses = {
|
702
|
+
def parse_order_status(self, status: Str):
|
703
|
+
statuses: dict = {
|
704
704
|
'Open': 'open',
|
705
705
|
'Pending': 'open',
|
706
706
|
'InOrderBook': 'open',
|
@@ -713,7 +713,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
713
713
|
}
|
714
714
|
return self.safe_string(statuses, status, status)
|
715
715
|
|
716
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
716
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
717
717
|
#
|
718
718
|
# {
|
719
719
|
# "id":"1b367978-7e4f-454b-b870-64040d484443",
|
@@ -783,7 +783,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
783
783
|
"""
|
784
784
|
await self.load_markets()
|
785
785
|
market = self.market(symbol)
|
786
|
-
query = {
|
786
|
+
query: dict = {
|
787
787
|
'assetPairId': market['id'],
|
788
788
|
'side': self.capitalize(side),
|
789
789
|
'volume': float(self.amount_to_precision(market['symbol'], amount)),
|
@@ -849,7 +849,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
849
849
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
850
850
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
851
851
|
"""
|
852
|
-
request = {
|
852
|
+
request: dict = {
|
853
853
|
'orderId': id,
|
854
854
|
}
|
855
855
|
#
|
@@ -869,7 +869,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
869
869
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
870
870
|
"""
|
871
871
|
await self.load_markets()
|
872
|
-
request = {
|
872
|
+
request: dict = {
|
873
873
|
# 'side': 'Buy',
|
874
874
|
}
|
875
875
|
market = None
|
@@ -893,7 +893,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
893
893
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
894
894
|
"""
|
895
895
|
await self.load_markets()
|
896
|
-
request = {
|
896
|
+
request: dict = {
|
897
897
|
'orderId': id,
|
898
898
|
}
|
899
899
|
response = await self.privateGetOrdersOrderId(self.extend(request, params))
|
@@ -933,7 +933,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
933
933
|
market = None
|
934
934
|
if symbol is not None:
|
935
935
|
market = self.market(symbol)
|
936
|
-
request = {
|
936
|
+
request: dict = {
|
937
937
|
# 'offset': 0,
|
938
938
|
# 'take': 1,
|
939
939
|
}
|
@@ -978,7 +978,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
978
978
|
market = None
|
979
979
|
if symbol is not None:
|
980
980
|
market = self.market(symbol)
|
981
|
-
request = {
|
981
|
+
request: dict = {
|
982
982
|
# 'offset': 0,
|
983
983
|
# 'take': 1,
|
984
984
|
}
|
@@ -1020,7 +1020,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
1020
1020
|
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1021
1021
|
"""
|
1022
1022
|
await self.load_markets()
|
1023
|
-
request = {
|
1023
|
+
request: dict = {
|
1024
1024
|
# 'side': 'buy',
|
1025
1025
|
# 'offset': 0,
|
1026
1026
|
# 'take': 1,
|
@@ -1074,7 +1074,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
1074
1074
|
"""
|
1075
1075
|
await self.load_markets()
|
1076
1076
|
currency = self.currency(code)
|
1077
|
-
request = {
|
1077
|
+
request: dict = {
|
1078
1078
|
'assetId': self.safe_string(currency, 'id'),
|
1079
1079
|
}
|
1080
1080
|
response = await self.privateGetOperationsDepositsAddressesAssetId(self.extend(request, params))
|
@@ -1099,7 +1099,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
1099
1099
|
'info': response,
|
1100
1100
|
}
|
1101
1101
|
|
1102
|
-
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1102
|
+
def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
|
1103
1103
|
#
|
1104
1104
|
# withdraw
|
1105
1105
|
# "3035b1ad-2005-4587-a986-1f7966be78e0"
|
@@ -1169,7 +1169,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
1169
1169
|
:returns dict: a list of `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1170
1170
|
"""
|
1171
1171
|
await self.load_markets()
|
1172
|
-
request = {
|
1172
|
+
request: dict = {
|
1173
1173
|
# 'offset': 0,
|
1174
1174
|
# 'take': 1,
|
1175
1175
|
}
|
@@ -1211,7 +1211,7 @@ class lykke(Exchange, ImplicitAPI):
|
|
1211
1211
|
await self.load_markets()
|
1212
1212
|
self.check_address(address)
|
1213
1213
|
currency = self.currency(code)
|
1214
|
-
request = {
|
1214
|
+
request: dict = {
|
1215
1215
|
'assetId': currency['id'],
|
1216
1216
|
'volume': float(self.currency_to_precision(code, amount)),
|
1217
1217
|
'destinationAddress': address,
|
ccxt/async_support/mercado.py
CHANGED
@@ -262,7 +262,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
262
262
|
"""
|
263
263
|
await self.load_markets()
|
264
264
|
market = self.market(symbol)
|
265
|
-
request = {
|
265
|
+
request: dict = {
|
266
266
|
'coin': market['base'],
|
267
267
|
}
|
268
268
|
response = await self.publicGetCoinOrderbook(self.extend(request, params))
|
@@ -316,7 +316,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
316
316
|
"""
|
317
317
|
await self.load_markets()
|
318
318
|
market = self.market(symbol)
|
319
|
-
request = {
|
319
|
+
request: dict = {
|
320
320
|
'coin': market['base'],
|
321
321
|
}
|
322
322
|
response = await self.publicGetCoinTicker(self.extend(request, params))
|
@@ -337,7 +337,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
337
337
|
#
|
338
338
|
return self.parse_ticker(ticker, market)
|
339
339
|
|
340
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
340
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
341
341
|
timestamp = self.safe_timestamp_2(trade, 'date', 'executed_timestamp')
|
342
342
|
market = self.safe_market(None, market)
|
343
343
|
id = self.safe_string_2(trade, 'tid', 'operation_id')
|
@@ -380,7 +380,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
380
380
|
await self.load_markets()
|
381
381
|
market = self.market(symbol)
|
382
382
|
method = 'publicGetCoinTrades'
|
383
|
-
request = {
|
383
|
+
request: dict = {
|
384
384
|
'coin': market['base'],
|
385
385
|
}
|
386
386
|
if since is not None:
|
@@ -395,7 +395,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
395
395
|
def parse_balance(self, response) -> Balances:
|
396
396
|
data = self.safe_value(response, 'response_data', {})
|
397
397
|
balances = self.safe_value(data, 'balance', {})
|
398
|
-
result = {'info': response}
|
398
|
+
result: dict = {'info': response}
|
399
399
|
currencyIds = list(balances.keys())
|
400
400
|
for i in range(0, len(currencyIds)):
|
401
401
|
currencyId = currencyIds[i]
|
@@ -431,7 +431,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
431
431
|
"""
|
432
432
|
await self.load_markets()
|
433
433
|
market = self.market(symbol)
|
434
|
-
request = {
|
434
|
+
request: dict = {
|
435
435
|
'coin_pair': market['id'],
|
436
436
|
}
|
437
437
|
method = self.capitalize(side) + 'Order'
|
@@ -466,7 +466,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
466
466
|
raise ArgumentsRequired(self.id + ' cancelOrder() requires a symbol argument')
|
467
467
|
await self.load_markets()
|
468
468
|
market = self.market(symbol)
|
469
|
-
request = {
|
469
|
+
request: dict = {
|
470
470
|
'coin_pair': market['id'],
|
471
471
|
'order_id': id,
|
472
472
|
}
|
@@ -498,15 +498,15 @@ class mercado(Exchange, ImplicitAPI):
|
|
498
498
|
order = self.safe_dict(responseData, 'order', {})
|
499
499
|
return self.parse_order(order, market)
|
500
500
|
|
501
|
-
def parse_order_status(self, status):
|
502
|
-
statuses = {
|
501
|
+
def parse_order_status(self, status: Str):
|
502
|
+
statuses: dict = {
|
503
503
|
'2': 'open',
|
504
504
|
'3': 'canceled',
|
505
505
|
'4': 'closed',
|
506
506
|
}
|
507
507
|
return self.safe_string(statuses, status, status)
|
508
508
|
|
509
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
509
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
510
510
|
#
|
511
511
|
# {
|
512
512
|
# "order_id": 4,
|
@@ -588,7 +588,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
588
588
|
raise ArgumentsRequired(self.id + ' fetchOrder() requires a symbol argument')
|
589
589
|
await self.load_markets()
|
590
590
|
market = self.market(symbol)
|
591
|
-
request = {
|
591
|
+
request: dict = {
|
592
592
|
'coin_pair': market['id'],
|
593
593
|
'order_id': int(id),
|
594
594
|
}
|
@@ -611,7 +611,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
611
611
|
self.check_address(address)
|
612
612
|
await self.load_markets()
|
613
613
|
currency = self.currency(code)
|
614
|
-
request = {
|
614
|
+
request: dict = {
|
615
615
|
'coin': currency['id'],
|
616
616
|
'quantity': format(amount, '.10f'),
|
617
617
|
'address': address,
|
@@ -654,7 +654,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
654
654
|
withdrawal = self.safe_dict(responseData, 'withdrawal')
|
655
655
|
return self.parse_transaction(withdrawal, currency)
|
656
656
|
|
657
|
-
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
657
|
+
def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
|
658
658
|
#
|
659
659
|
# {
|
660
660
|
# "id": 1,
|
@@ -714,7 +714,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
714
714
|
"""
|
715
715
|
await self.load_markets()
|
716
716
|
market = self.market(symbol)
|
717
|
-
request = {
|
717
|
+
request: dict = {
|
718
718
|
'resolution': self.safe_string(self.timeframes, timeframe, timeframe),
|
719
719
|
'symbol': market['base'] + '-' + market['quote'], # exceptional endpoint, that needs custom symbol syntax
|
720
720
|
}
|
@@ -743,7 +743,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
743
743
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
|
744
744
|
await self.load_markets()
|
745
745
|
market = self.market(symbol)
|
746
|
-
request = {
|
746
|
+
request: dict = {
|
747
747
|
'coin_pair': market['id'],
|
748
748
|
}
|
749
749
|
response = await self.privatePostListOrders(self.extend(request, params))
|
@@ -764,7 +764,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
764
764
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
765
765
|
await self.load_markets()
|
766
766
|
market = self.market(symbol)
|
767
|
-
request = {
|
767
|
+
request: dict = {
|
768
768
|
'coin_pair': market['id'],
|
769
769
|
'status_list': '[2]', # open only
|
770
770
|
}
|
@@ -786,7 +786,7 @@ class mercado(Exchange, ImplicitAPI):
|
|
786
786
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
787
787
|
await self.load_markets()
|
788
788
|
market = self.market(symbol)
|
789
|
-
request = {
|
789
|
+
request: dict = {
|
790
790
|
'coin_pair': market['id'],
|
791
791
|
'has_fills': True,
|
792
792
|
}
|