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/bigone.py
CHANGED
@@ -446,14 +446,14 @@ class bigone(Exchange, ImplicitAPI):
|
|
446
446
|
# }
|
447
447
|
#
|
448
448
|
currenciesData = self.safe_list(data, 'data', [])
|
449
|
-
result = {}
|
449
|
+
result: dict = {}
|
450
450
|
for i in range(0, len(currenciesData)):
|
451
451
|
currency = currenciesData[i]
|
452
452
|
id = self.safe_string(currency, 'symbol')
|
453
453
|
code = self.safe_currency_code(id)
|
454
454
|
name = self.safe_string(currency, 'name')
|
455
455
|
type = 'fiat' if self.safe_bool(currency, 'is_fiat') else 'crypto'
|
456
|
-
networks = {}
|
456
|
+
networks: dict = {}
|
457
457
|
chains = self.safe_list(currency, 'binding_gateways', [])
|
458
458
|
currencyMaxPrecision = self.parse_precision(self.safe_string_2(currency, 'withdrawal_scale', 'scale'))
|
459
459
|
currencyDepositEnabled: Bool = None
|
@@ -791,7 +791,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
791
791
|
type = None
|
792
792
|
type, params = self.handle_market_type_and_params('fetchTicker', market, params)
|
793
793
|
if type == 'spot':
|
794
|
-
request = {
|
794
|
+
request: dict = {
|
795
795
|
'asset_pair_name': market['id'],
|
796
796
|
}
|
797
797
|
response = await self.publicGetAssetPairsAssetPairNameTicker(self.extend(request, params))
|
@@ -833,7 +833,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
833
833
|
type = None
|
834
834
|
type, params = self.handle_market_type_and_params('fetchTickers', market, params)
|
835
835
|
isSpot = type == 'spot'
|
836
|
-
request = {}
|
836
|
+
request: dict = {}
|
837
837
|
symbols = self.market_symbols(symbols)
|
838
838
|
data = None
|
839
839
|
if isSpot:
|
@@ -931,7 +931,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
931
931
|
market = self.market(symbol)
|
932
932
|
response = None
|
933
933
|
if market['contract']:
|
934
|
-
request = {
|
934
|
+
request: dict = {
|
935
935
|
'symbol': market['id'],
|
936
936
|
}
|
937
937
|
response = await self.contractPublicGetDepthSymbolSnapshot(self.extend(request, params))
|
@@ -964,7 +964,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
964
964
|
#
|
965
965
|
return self.parse_contract_order_book(response, market['symbol'], limit)
|
966
966
|
else:
|
967
|
-
request = {
|
967
|
+
request: dict = {
|
968
968
|
'asset_pair_name': market['id'],
|
969
969
|
}
|
970
970
|
if limit is not None:
|
@@ -1010,7 +1010,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1010
1010
|
'nonce': None,
|
1011
1011
|
}
|
1012
1012
|
|
1013
|
-
def parse_trade(self, trade, market: Market = None) -> Trade:
|
1013
|
+
def parse_trade(self, trade: dict, market: Market = None) -> Trade:
|
1014
1014
|
#
|
1015
1015
|
# fetchTrades(public)
|
1016
1016
|
#
|
@@ -1079,7 +1079,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1079
1079
|
elif takerOrderId is not None:
|
1080
1080
|
orderId = takerOrderId
|
1081
1081
|
id = self.safe_string(trade, 'id')
|
1082
|
-
result = {
|
1082
|
+
result: dict = {
|
1083
1083
|
'id': id,
|
1084
1084
|
'timestamp': timestamp,
|
1085
1085
|
'datetime': self.iso8601(timestamp),
|
@@ -1147,7 +1147,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1147
1147
|
market = self.market(symbol)
|
1148
1148
|
if market['contract']:
|
1149
1149
|
raise BadRequest(self.id + ' fetchTrades() can only fetch trades for spot markets')
|
1150
|
-
request = {
|
1150
|
+
request: dict = {
|
1151
1151
|
'asset_pair_name': market['id'],
|
1152
1152
|
}
|
1153
1153
|
response = await self.publicGetAssetPairsAssetPairNameTrades(self.extend(request, params))
|
@@ -1212,7 +1212,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1212
1212
|
raise BadRequest(self.id + ' fetchOHLCV() can only fetch ohlcvs for spot markets')
|
1213
1213
|
if limit is None:
|
1214
1214
|
limit = 100 # default 100, max 500
|
1215
|
-
request = {
|
1215
|
+
request: dict = {
|
1216
1216
|
'asset_pair_name': market['id'],
|
1217
1217
|
'period': self.safe_string(self.timeframes, timeframe, timeframe),
|
1218
1218
|
'limit': limit,
|
@@ -1250,7 +1250,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1250
1250
|
return self.parse_ohlcvs(data, market, timeframe, since, limit)
|
1251
1251
|
|
1252
1252
|
def parse_balance(self, response) -> Balances:
|
1253
|
-
result = {
|
1253
|
+
result: dict = {
|
1254
1254
|
'info': response,
|
1255
1255
|
'timestamp': None,
|
1256
1256
|
'datetime': None,
|
@@ -1295,7 +1295,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1295
1295
|
return self.parse_balance(response)
|
1296
1296
|
|
1297
1297
|
def parse_type(self, type: str):
|
1298
|
-
types = {
|
1298
|
+
types: dict = {
|
1299
1299
|
'STOP_LIMIT': 'limit',
|
1300
1300
|
'STOP_MARKET': 'market',
|
1301
1301
|
'LIMIT': 'limit',
|
@@ -1303,7 +1303,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1303
1303
|
}
|
1304
1304
|
return self.safe_string(types, type, type)
|
1305
1305
|
|
1306
|
-
def parse_order(self, order, market: Market = None) -> Order:
|
1306
|
+
def parse_order(self, order: dict, market: Market = None) -> Order:
|
1307
1307
|
#
|
1308
1308
|
# {
|
1309
1309
|
# "id": "42154072251",
|
@@ -1420,7 +1420,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1420
1420
|
postOnly = None
|
1421
1421
|
postOnly, params = self.handle_post_only((uppercaseType == 'MARKET'), exchangeSpecificParam, params)
|
1422
1422
|
triggerPrice = self.safe_string_n(params, ['triggerPrice', 'stopPrice', 'stop_price'])
|
1423
|
-
request = {
|
1423
|
+
request: dict = {
|
1424
1424
|
'asset_pair_name': market['id'], # asset pair name BTC-USDT, required
|
1425
1425
|
'side': requestSide, # order side one of "ASK"/"BID", required
|
1426
1426
|
'amount': self.amount_to_precision(symbol, amount), # order amount, string, required
|
@@ -1497,7 +1497,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1497
1497
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1498
1498
|
"""
|
1499
1499
|
await self.load_markets()
|
1500
|
-
request = {'id': id}
|
1500
|
+
request: dict = {'id': id}
|
1501
1501
|
response = await self.privatePostOrdersIdCancel(self.extend(request, params))
|
1502
1502
|
# {
|
1503
1503
|
# "id": 10,
|
@@ -1524,7 +1524,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1524
1524
|
"""
|
1525
1525
|
await self.load_markets()
|
1526
1526
|
market = self.market(symbol)
|
1527
|
-
request = {
|
1527
|
+
request: dict = {
|
1528
1528
|
'asset_pair_name': market['id'],
|
1529
1529
|
}
|
1530
1530
|
response = await self.privatePostOrdersCancel(self.extend(request, params))
|
@@ -1551,7 +1551,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1551
1551
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1552
1552
|
"""
|
1553
1553
|
await self.load_markets()
|
1554
|
-
request = {'id': id}
|
1554
|
+
request: dict = {'id': id}
|
1555
1555
|
response = await self.privateGetOrdersId(self.extend(request, params))
|
1556
1556
|
order = self.safe_dict(response, 'data', {})
|
1557
1557
|
return self.parse_order(order)
|
@@ -1570,7 +1570,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1570
1570
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
|
1571
1571
|
await self.load_markets()
|
1572
1572
|
market = self.market(symbol)
|
1573
|
-
request = {
|
1573
|
+
request: dict = {
|
1574
1574
|
'asset_pair_name': market['id'],
|
1575
1575
|
# 'page_token': 'dxzef', # request page after self page token
|
1576
1576
|
# 'side': 'ASK', # 'ASK' or 'BID', optional
|
@@ -1617,7 +1617,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1617
1617
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
1618
1618
|
await self.load_markets()
|
1619
1619
|
market = self.market(symbol)
|
1620
|
-
request = {
|
1620
|
+
request: dict = {
|
1621
1621
|
'asset_pair_name': market['id'],
|
1622
1622
|
# 'page_token': 'dxzef', # request page after self page token
|
1623
1623
|
}
|
@@ -1661,8 +1661,8 @@ class bigone(Exchange, ImplicitAPI):
|
|
1661
1661
|
trades = self.safe_list(response, 'data', [])
|
1662
1662
|
return self.parse_trades(trades, market, since, limit)
|
1663
1663
|
|
1664
|
-
def parse_order_status(self, status):
|
1665
|
-
statuses = {
|
1664
|
+
def parse_order_status(self, status: Str):
|
1665
|
+
statuses: dict = {
|
1666
1666
|
'PENDING': 'open',
|
1667
1667
|
'FILLED': 'closed',
|
1668
1668
|
'CANCELLED': 'canceled',
|
@@ -1679,7 +1679,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1679
1679
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1680
1680
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1681
1681
|
"""
|
1682
|
-
request = {
|
1682
|
+
request: dict = {
|
1683
1683
|
'state': 'PENDING',
|
1684
1684
|
}
|
1685
1685
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
@@ -1694,7 +1694,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1694
1694
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1695
1695
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1696
1696
|
"""
|
1697
|
-
request = {
|
1697
|
+
request: dict = {
|
1698
1698
|
'state': 'FILLED',
|
1699
1699
|
}
|
1700
1700
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
@@ -1714,7 +1714,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1714
1714
|
else:
|
1715
1715
|
self.check_required_credentials()
|
1716
1716
|
nonce = str(self.nonce())
|
1717
|
-
request = {
|
1717
|
+
request: dict = {
|
1718
1718
|
'type': 'OpenAPIV2',
|
1719
1719
|
'sub': self.apiKey,
|
1720
1720
|
'nonce': nonce,
|
@@ -1741,7 +1741,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1741
1741
|
"""
|
1742
1742
|
await self.load_markets()
|
1743
1743
|
currency = self.currency(code)
|
1744
|
-
request = {
|
1744
|
+
request: dict = {
|
1745
1745
|
'asset_symbol': currency['id'],
|
1746
1746
|
}
|
1747
1747
|
networkCode, paramsOmitted = self.handle_network_code_and_params(params)
|
@@ -1782,7 +1782,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1782
1782
|
}
|
1783
1783
|
|
1784
1784
|
def parse_transaction_status(self, status):
|
1785
|
-
statuses = {
|
1785
|
+
statuses: dict = {
|
1786
1786
|
# what are other statuses here?
|
1787
1787
|
'WITHHOLD': 'ok', # deposits
|
1788
1788
|
'UNCONFIRMED': 'pending',
|
@@ -1792,7 +1792,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1792
1792
|
}
|
1793
1793
|
return self.safe_string(statuses, status, status)
|
1794
1794
|
|
1795
|
-
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1795
|
+
def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
|
1796
1796
|
#
|
1797
1797
|
# fetchDeposits
|
1798
1798
|
#
|
@@ -1890,7 +1890,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1890
1890
|
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1891
1891
|
"""
|
1892
1892
|
await self.load_markets()
|
1893
|
-
request = {
|
1893
|
+
request: dict = {
|
1894
1894
|
# 'page_token': 'dxzef', # request page after self page token
|
1895
1895
|
# 'limit': 50, # optional, default 50
|
1896
1896
|
# 'kind': 'string', # optional - air_drop, big_holder_dividend, default, eosc_to_eos, internal, equally_airdrop, referral_mining, one_holder_dividend, single_customer, snapshotted_airdrop, trade_mining
|
@@ -1938,7 +1938,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1938
1938
|
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1939
1939
|
"""
|
1940
1940
|
await self.load_markets()
|
1941
|
-
request = {
|
1941
|
+
request: dict = {
|
1942
1942
|
# 'page_token': 'dxzef', # request page after self page token
|
1943
1943
|
# 'limit': 50, # optional, default 50
|
1944
1944
|
# 'kind': 'string', # optional - air_drop, big_holder_dividend, default, eosc_to_eos, internal, equally_airdrop, referral_mining, one_holder_dividend, single_customer, snapshotted_airdrop, trade_mining
|
@@ -1992,7 +1992,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1992
1992
|
fromId = self.safe_string(accountsByType, fromAccount, fromAccount)
|
1993
1993
|
toId = self.safe_string(accountsByType, toAccount, toAccount)
|
1994
1994
|
guid = self.safe_string(params, 'guid', self.uuid())
|
1995
|
-
request = {
|
1995
|
+
request: dict = {
|
1996
1996
|
'symbol': currency['id'],
|
1997
1997
|
'amount': self.currency_to_precision(code, amount),
|
1998
1998
|
'from': fromId,
|
@@ -2039,7 +2039,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
2039
2039
|
}
|
2040
2040
|
|
2041
2041
|
def parse_transfer_status(self, status: Str) -> Str:
|
2042
|
-
statuses = {
|
2042
|
+
statuses: dict = {
|
2043
2043
|
'0': 'ok',
|
2044
2044
|
}
|
2045
2045
|
return self.safe_string(statuses, status, 'failed')
|
@@ -2058,7 +2058,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
2058
2058
|
tag, params = self.handle_withdraw_tag_and_params(tag, params)
|
2059
2059
|
await self.load_markets()
|
2060
2060
|
currency = self.currency(code)
|
2061
|
-
request = {
|
2061
|
+
request: dict = {
|
2062
2062
|
'symbol': currency['id'],
|
2063
2063
|
'target_address': address,
|
2064
2064
|
'amount': self.currency_to_precision(code, amount),
|