ccxt 4.3.30__py2.py3-none-any.whl → 4.3.31__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 +168 -139
- 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 +35 -35
- 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 +168 -139
- 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 +19 -19
- ccxt/pro/coinbase.py +2 -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/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.31.dist-info}/METADATA +4 -4
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/RECORD +258 -258
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/WHEEL +0 -0
- {ccxt-4.3.30.dist-info → ccxt-4.3.31.dist-info}/top_level.txt +0 -0
ccxt/async_support/btcmarkets.py
CHANGED
@@ -190,7 +190,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
190
190
|
|
191
191
|
async def fetch_transactions_with_method(self, method, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
192
192
|
await self.load_markets()
|
193
|
-
request = {}
|
193
|
+
request: dict = {}
|
194
194
|
if limit is not None:
|
195
195
|
request['limit'] = limit
|
196
196
|
if since is not None:
|
@@ -238,7 +238,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
238
238
|
return await self.fetch_transactions_with_method('privateGetWithdrawals', code, since, limit, params)
|
239
239
|
|
240
240
|
def parse_transaction_status(self, status):
|
241
|
-
statuses = {
|
241
|
+
statuses: dict = {
|
242
242
|
'Accepted': 'pending',
|
243
243
|
'Pending Authorization': 'pending',
|
244
244
|
'Complete': 'ok',
|
@@ -248,13 +248,13 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
248
248
|
return self.safe_string(statuses, status, status)
|
249
249
|
|
250
250
|
def parse_transaction_type(self, type):
|
251
|
-
statuses = {
|
251
|
+
statuses: dict = {
|
252
252
|
'Withdraw': 'withdrawal',
|
253
253
|
'Deposit': 'deposit',
|
254
254
|
}
|
255
255
|
return self.safe_string(statuses, type, type)
|
256
256
|
|
257
|
-
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
257
|
+
def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
|
258
258
|
#
|
259
259
|
# {
|
260
260
|
# "id": "6500230339",
|
@@ -458,7 +458,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
458
458
|
return self.parse8601(self.safe_string(response, 'timestamp'))
|
459
459
|
|
460
460
|
def parse_balance(self, response) -> Balances:
|
461
|
-
result = {'info': response}
|
461
|
+
result: dict = {'info': response}
|
462
462
|
for i in range(0, len(response)):
|
463
463
|
balance = response[i]
|
464
464
|
currencyId = self.safe_string(balance, 'assetName')
|
@@ -513,7 +513,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
513
513
|
"""
|
514
514
|
await self.load_markets()
|
515
515
|
market = self.market(symbol)
|
516
|
-
request = {
|
516
|
+
request: dict = {
|
517
517
|
'marketId': market['id'],
|
518
518
|
'timeWindow': self.safe_string(self.timeframes, timeframe, timeframe),
|
519
519
|
# 'from': self.iso8601(since),
|
@@ -547,7 +547,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
547
547
|
"""
|
548
548
|
await self.load_markets()
|
549
549
|
market = self.market(symbol)
|
550
|
-
request = {
|
550
|
+
request: dict = {
|
551
551
|
'marketId': market['id'],
|
552
552
|
}
|
553
553
|
response = await self.publicGetMarketsMarketIdOrderbook(self.extend(request, params))
|
@@ -632,7 +632,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
632
632
|
"""
|
633
633
|
await self.load_markets()
|
634
634
|
market = self.market(symbol)
|
635
|
-
request = {
|
635
|
+
request: dict = {
|
636
636
|
'marketId': market['id'],
|
637
637
|
}
|
638
638
|
response = await self.publicGetMarketsMarketIdTicker(self.extend(request, params))
|
@@ -656,13 +656,13 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
656
656
|
async def fetch_ticker_2(self, symbol: str, params={}):
|
657
657
|
await self.load_markets()
|
658
658
|
market = self.market(symbol)
|
659
|
-
request = {
|
659
|
+
request: dict = {
|
660
660
|
'id': market['id'],
|
661
661
|
}
|
662
662
|
response = await self.publicGetMarketsMarketIdTicker(self.extend(request, params))
|
663
663
|
return self.parse_ticker(response, market)
|
664
664
|
|
665
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
665
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
666
666
|
#
|
667
667
|
# public fetchTrades
|
668
668
|
#
|
@@ -738,7 +738,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
738
738
|
"""
|
739
739
|
await self.load_markets()
|
740
740
|
market = self.market(symbol)
|
741
|
-
request = {
|
741
|
+
request: dict = {
|
742
742
|
# 'since': 59868345231,
|
743
743
|
'marketId': market['id'],
|
744
744
|
}
|
@@ -766,7 +766,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
766
766
|
"""
|
767
767
|
await self.load_markets()
|
768
768
|
market = self.market(symbol)
|
769
|
-
request = {
|
769
|
+
request: dict = {
|
770
770
|
'marketId': market['id'],
|
771
771
|
# 'price': self.price_to_precision(symbol, price),
|
772
772
|
'amount': self.amount_to_precision(symbol, amount),
|
@@ -852,7 +852,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
852
852
|
await self.load_markets()
|
853
853
|
for i in range(0, len(ids)):
|
854
854
|
ids[i] = int(ids[i])
|
855
|
-
request = {
|
855
|
+
request: dict = {
|
856
856
|
'ids': ids,
|
857
857
|
}
|
858
858
|
return await self.privateDeleteBatchordersIds(self.extend(request, params))
|
@@ -867,7 +867,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
867
867
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
868
868
|
"""
|
869
869
|
await self.load_markets()
|
870
|
-
request = {
|
870
|
+
request: dict = {
|
871
871
|
'id': id,
|
872
872
|
}
|
873
873
|
return await self.privateDeleteOrdersId(self.extend(request, params))
|
@@ -903,8 +903,8 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
903
903
|
'cost': float(self.fee_to_precision(symbol, rateCost)),
|
904
904
|
}
|
905
905
|
|
906
|
-
def parse_order_status(self, status):
|
907
|
-
statuses = {
|
906
|
+
def parse_order_status(self, status: Str):
|
907
|
+
statuses: dict = {
|
908
908
|
'Accepted': 'open',
|
909
909
|
'Placed': 'open',
|
910
910
|
'Partially Matched': 'open',
|
@@ -915,7 +915,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
915
915
|
}
|
916
916
|
return self.safe_string(statuses, status, status)
|
917
917
|
|
918
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
918
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
919
919
|
#
|
920
920
|
# createOrder
|
921
921
|
#
|
@@ -989,7 +989,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
989
989
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
990
990
|
"""
|
991
991
|
await self.load_markets()
|
992
|
-
request = {
|
992
|
+
request: dict = {
|
993
993
|
'id': id,
|
994
994
|
}
|
995
995
|
response = await self.privateGetOrdersId(self.extend(request, params))
|
@@ -1006,7 +1006,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1006
1006
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1007
1007
|
"""
|
1008
1008
|
await self.load_markets()
|
1009
|
-
request = {
|
1009
|
+
request: dict = {
|
1010
1010
|
'status': 'all',
|
1011
1011
|
}
|
1012
1012
|
market = None
|
@@ -1030,7 +1030,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1030
1030
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1031
1031
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1032
1032
|
"""
|
1033
|
-
request = {'status': 'open'}
|
1033
|
+
request: dict = {'status': 'open'}
|
1034
1034
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
1035
1035
|
|
1036
1036
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
@@ -1057,7 +1057,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1057
1057
|
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1058
1058
|
"""
|
1059
1059
|
await self.load_markets()
|
1060
|
-
request = {}
|
1060
|
+
request: dict = {}
|
1061
1061
|
market = None
|
1062
1062
|
if symbol is not None:
|
1063
1063
|
market = self.market(symbol)
|
@@ -1110,7 +1110,7 @@ class btcmarkets(Exchange, ImplicitAPI):
|
|
1110
1110
|
tag, params = self.handle_withdraw_tag_and_params(tag, params)
|
1111
1111
|
await self.load_markets()
|
1112
1112
|
currency = self.currency(code)
|
1113
|
-
request = {
|
1113
|
+
request: dict = {
|
1114
1114
|
'currency_id': currency['id'],
|
1115
1115
|
'amount': self.currency_to_precision(code, amount),
|
1116
1116
|
}
|
ccxt/async_support/btcturk.py
CHANGED
@@ -281,7 +281,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
281
281
|
|
282
282
|
def parse_balance(self, response) -> Balances:
|
283
283
|
data = self.safe_value(response, 'data', [])
|
284
|
-
result = {
|
284
|
+
result: dict = {
|
285
285
|
'info': response,
|
286
286
|
'timestamp': None,
|
287
287
|
'datetime': None,
|
@@ -335,7 +335,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
335
335
|
"""
|
336
336
|
await self.load_markets()
|
337
337
|
market = self.market(symbol)
|
338
|
-
request = {
|
338
|
+
request: dict = {
|
339
339
|
'pairSymbol': market['id'],
|
340
340
|
}
|
341
341
|
response = await self.publicGetOrderbook(self.extend(request, params))
|
@@ -428,7 +428,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
428
428
|
tickers = await self.fetch_tickers([symbol], params)
|
429
429
|
return self.safe_value(tickers, symbol)
|
430
430
|
|
431
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
431
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
432
432
|
#
|
433
433
|
# fetchTrades
|
434
434
|
# {
|
@@ -502,7 +502,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
502
502
|
await self.load_markets()
|
503
503
|
market = self.market(symbol)
|
504
504
|
# maxCount = 50
|
505
|
-
request = {
|
505
|
+
request: dict = {
|
506
506
|
'pairSymbol': market['id'],
|
507
507
|
}
|
508
508
|
if limit is not None:
|
@@ -562,7 +562,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
562
562
|
"""
|
563
563
|
await self.load_markets()
|
564
564
|
market = self.market(symbol)
|
565
|
-
request = {
|
565
|
+
request: dict = {
|
566
566
|
'symbol': market['id'],
|
567
567
|
'resolution': self.safe_value(self.timeframes, timeframe, timeframe), # allows the user to pass custom timeframes if needed
|
568
568
|
}
|
@@ -630,7 +630,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
630
630
|
close = self.safe_value(ohlcvs, 'c')
|
631
631
|
volume = self.safe_value(ohlcvs, 'v')
|
632
632
|
for i in range(0, len(timestamp)):
|
633
|
-
ohlcv = {
|
633
|
+
ohlcv: dict = {
|
634
634
|
'timestamp': self.safe_value(timestamp, i),
|
635
635
|
'high': self.safe_value(high, i),
|
636
636
|
'open': self.safe_value(open, i),
|
@@ -656,7 +656,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
656
656
|
"""
|
657
657
|
await self.load_markets()
|
658
658
|
market = self.market(symbol)
|
659
|
-
request = {
|
659
|
+
request: dict = {
|
660
660
|
'orderType': side,
|
661
661
|
'orderMethod': type,
|
662
662
|
'pairSymbol': market['id'],
|
@@ -681,7 +681,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
681
681
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
682
682
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
683
683
|
"""
|
684
|
-
request = {
|
684
|
+
request: dict = {
|
685
685
|
'id': id,
|
686
686
|
}
|
687
687
|
return await self.privateDeleteOrder(self.extend(request, params))
|
@@ -697,7 +697,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
697
697
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
698
698
|
"""
|
699
699
|
await self.load_markets()
|
700
|
-
request = {}
|
700
|
+
request: dict = {}
|
701
701
|
market = None
|
702
702
|
if symbol is not None:
|
703
703
|
market = self.market(symbol)
|
@@ -720,7 +720,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
720
720
|
"""
|
721
721
|
await self.load_markets()
|
722
722
|
market = self.market(symbol)
|
723
|
-
request = {
|
723
|
+
request: dict = {
|
724
724
|
'pairSymbol': market['id'],
|
725
725
|
}
|
726
726
|
if limit is not None:
|
@@ -752,8 +752,8 @@ class btcturk(Exchange, ImplicitAPI):
|
|
752
752
|
data = self.safe_list(response, 'data')
|
753
753
|
return self.parse_orders(data, market, since, limit)
|
754
754
|
|
755
|
-
def parse_order_status(self, status):
|
756
|
-
statuses = {
|
755
|
+
def parse_order_status(self, status: Str):
|
756
|
+
statuses: dict = {
|
757
757
|
'Untouched': 'open',
|
758
758
|
'Partial': 'open',
|
759
759
|
'Canceled': 'canceled',
|
@@ -761,7 +761,7 @@ class btcturk(Exchange, ImplicitAPI):
|
|
761
761
|
}
|
762
762
|
return self.safe_string(statuses, status, status)
|
763
763
|
|
764
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
764
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
765
765
|
#
|
766
766
|
# fetchOrders / fetchOpenOrders
|
767
767
|
# {
|