ccxt 4.1.54__py2.py3-none-any.whl → 4.1.56__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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +2 -2
- ccxt/abstract/binance.py +1 -0
- ccxt/abstract/binancecoinm.py +1 -0
- ccxt/abstract/binanceus.py +1 -0
- ccxt/abstract/binanceusdm.py +1 -0
- ccxt/abstract/bitbank.py +1 -0
- ccxt/abstract/coinbase.py +2 -0
- ccxt/abstract/htx.py +3 -0
- ccxt/abstract/huobi.py +3 -0
- ccxt/abstract/huobipro.py +3 -0
- ccxt/abstract/okex.py +3 -1
- ccxt/abstract/okex5.py +3 -1
- ccxt/abstract/okx.py +3 -1
- ccxt/ace.py +23 -23
- ccxt/alpaca.py +8 -8
- ccxt/ascendex.py +26 -26
- ccxt/async_support/__init__.py +2 -2
- ccxt/async_support/ace.py +23 -23
- ccxt/async_support/alpaca.py +8 -8
- ccxt/async_support/ascendex.py +26 -26
- ccxt/async_support/base/exchange.py +4 -2216
- ccxt/async_support/bigone.py +21 -24
- ccxt/async_support/binance.py +61 -54
- ccxt/async_support/bingx.py +28 -28
- ccxt/async_support/bit2c.py +9 -9
- ccxt/async_support/bitbank.py +11 -10
- ccxt/async_support/bitbns.py +11 -11
- ccxt/async_support/bitfinex.py +15 -15
- ccxt/async_support/bitfinex2.py +22 -22
- ccxt/async_support/bitflyer.py +13 -13
- ccxt/async_support/bitforex.py +10 -10
- ccxt/async_support/bitget.py +44 -44
- ccxt/async_support/bithumb.py +9 -9
- ccxt/async_support/bitmart.py +85 -104
- ccxt/async_support/bitmex.py +27 -27
- ccxt/async_support/bitopro.py +18 -18
- ccxt/async_support/bitpanda.py +18 -18
- ccxt/async_support/bitrue.py +14 -14
- ccxt/async_support/bitso.py +17 -17
- ccxt/async_support/bitstamp.py +17 -17
- ccxt/async_support/bittrex.py +22 -24
- ccxt/async_support/bitvavo.py +15 -15
- ccxt/async_support/bl3p.py +4 -4
- ccxt/async_support/blockchaincom.py +17 -17
- ccxt/async_support/btcalpha.py +14 -14
- ccxt/async_support/btcbox.py +9 -9
- ccxt/async_support/btcmarkets.py +17 -17
- ccxt/async_support/btcturk.py +9 -9
- ccxt/async_support/bybit.py +46 -46
- ccxt/async_support/cex.py +10 -10
- ccxt/async_support/coinbase.py +69 -25
- ccxt/async_support/coinbasepro.py +19 -19
- ccxt/async_support/coincheck.py +10 -10
- ccxt/async_support/coinex.py +57 -66
- ccxt/async_support/coinlist.py +22 -22
- ccxt/async_support/coinmate.py +10 -10
- ccxt/async_support/coinone.py +10 -10
- ccxt/async_support/coinsph.py +17 -17
- ccxt/async_support/coinspot.py +5 -5
- ccxt/async_support/cryptocom.py +27 -27
- ccxt/async_support/currencycom.py +18 -18
- ccxt/async_support/delta.py +21 -21
- ccxt/async_support/deribit.py +24 -24
- ccxt/async_support/digifinex.py +35 -35
- ccxt/async_support/exmo.py +19 -19
- ccxt/async_support/gate.py +38 -38
- ccxt/async_support/gemini.py +11 -11
- ccxt/async_support/hitbtc.py +27 -27
- ccxt/async_support/hollaex.py +19 -19
- ccxt/async_support/htx.py +47 -44
- ccxt/async_support/huobijp.py +22 -22
- ccxt/async_support/idex.py +20 -20
- ccxt/async_support/independentreserve.py +9 -9
- ccxt/async_support/indodax.py +10 -10
- ccxt/async_support/kraken.py +25 -25
- ccxt/async_support/krakenfutures.py +17 -17
- ccxt/async_support/kucoin.py +27 -27
- ccxt/async_support/kucoinfutures.py +20 -20
- ccxt/async_support/kuna.py +19 -19
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank.py +18 -18
- ccxt/async_support/luno.py +14 -14
- ccxt/async_support/lykke.py +12 -12
- ccxt/async_support/mercado.py +11 -11
- ccxt/async_support/mexc.py +36 -36
- ccxt/async_support/ndax.py +18 -18
- ccxt/async_support/novadax.py +17 -17
- ccxt/async_support/oceanex.py +12 -12
- ccxt/async_support/okcoin.py +19 -19
- ccxt/async_support/okx.py +48 -45
- ccxt/async_support/p2b.py +6 -6
- ccxt/async_support/paymium.py +6 -6
- ccxt/async_support/phemex.py +57 -57
- ccxt/async_support/poloniex.py +31 -30
- ccxt/async_support/poloniexfutures.py +16 -16
- ccxt/async_support/probit.py +22 -22
- ccxt/async_support/tidex.py +15 -15
- ccxt/async_support/timex.py +20 -20
- ccxt/async_support/tokocrypto.py +16 -16
- ccxt/async_support/upbit.py +15 -15
- ccxt/async_support/wavesexchange.py +12 -12
- ccxt/async_support/wazirx.py +13 -13
- ccxt/async_support/whitebit.py +26 -26
- ccxt/async_support/woo.py +47 -47
- ccxt/async_support/yobit.py +8 -8
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +16 -16
- ccxt/base/errors.py +17 -16
- ccxt/base/exchange.py +57 -97
- ccxt/base/types.py +138 -139
- ccxt/bigone.py +21 -24
- ccxt/binance.py +61 -54
- ccxt/bingx.py +28 -28
- ccxt/bit2c.py +9 -9
- ccxt/bitbank.py +11 -10
- ccxt/bitbns.py +11 -11
- ccxt/bitfinex.py +15 -15
- ccxt/bitfinex2.py +22 -22
- ccxt/bitflyer.py +13 -13
- ccxt/bitforex.py +10 -10
- ccxt/bitget.py +44 -44
- ccxt/bithumb.py +9 -9
- ccxt/bitmart.py +85 -104
- ccxt/bitmex.py +27 -27
- ccxt/bitopro.py +18 -18
- ccxt/bitpanda.py +18 -18
- ccxt/bitrue.py +14 -14
- ccxt/bitso.py +17 -17
- ccxt/bitstamp.py +17 -17
- ccxt/bittrex.py +22 -24
- ccxt/bitvavo.py +15 -15
- ccxt/bl3p.py +4 -4
- ccxt/blockchaincom.py +17 -17
- ccxt/btcalpha.py +14 -14
- ccxt/btcbox.py +9 -9
- ccxt/btcmarkets.py +17 -17
- ccxt/btcturk.py +9 -9
- ccxt/bybit.py +46 -46
- ccxt/cex.py +10 -10
- ccxt/coinbase.py +69 -25
- ccxt/coinbasepro.py +19 -19
- ccxt/coincheck.py +10 -10
- ccxt/coinex.py +57 -66
- ccxt/coinlist.py +22 -22
- ccxt/coinmate.py +10 -10
- ccxt/coinone.py +10 -10
- ccxt/coinsph.py +17 -17
- ccxt/coinspot.py +5 -5
- ccxt/cryptocom.py +27 -27
- ccxt/currencycom.py +18 -18
- ccxt/delta.py +21 -21
- ccxt/deribit.py +24 -24
- ccxt/digifinex.py +35 -35
- ccxt/exmo.py +19 -19
- ccxt/gate.py +38 -38
- ccxt/gemini.py +11 -11
- ccxt/hitbtc.py +27 -27
- ccxt/hollaex.py +19 -19
- ccxt/htx.py +47 -44
- ccxt/huobijp.py +22 -22
- ccxt/idex.py +20 -20
- ccxt/independentreserve.py +9 -9
- ccxt/indodax.py +10 -10
- ccxt/kraken.py +25 -25
- ccxt/krakenfutures.py +17 -17
- ccxt/kucoin.py +27 -27
- ccxt/kucoinfutures.py +20 -20
- ccxt/kuna.py +19 -19
- ccxt/latoken.py +14 -14
- ccxt/lbank.py +18 -18
- ccxt/luno.py +14 -14
- ccxt/lykke.py +12 -12
- ccxt/mercado.py +11 -11
- ccxt/mexc.py +36 -36
- ccxt/ndax.py +18 -18
- ccxt/novadax.py +17 -17
- ccxt/oceanex.py +12 -12
- ccxt/okcoin.py +19 -19
- ccxt/okx.py +48 -45
- ccxt/p2b.py +6 -6
- ccxt/paymium.py +6 -6
- ccxt/phemex.py +57 -57
- ccxt/poloniex.py +31 -30
- ccxt/poloniexfutures.py +16 -16
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +3 -3
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +3 -3
- ccxt/pro/bitfinex.py +3 -3
- ccxt/pro/bitfinex2.py +3 -3
- ccxt/pro/bitget.py +3 -3
- ccxt/pro/bitmart.py +2 -2
- ccxt/pro/bitmex.py +3 -3
- ccxt/pro/bitpanda.py +3 -3
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/bitstamp.py +2 -2
- ccxt/pro/bittrex.py +3 -3
- ccxt/pro/bitvavo.py +3 -3
- ccxt/pro/blockchaincom.py +2 -2
- ccxt/pro/bybit.py +4 -4
- ccxt/pro/cex.py +3 -3
- ccxt/pro/coinbasepro.py +3 -3
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/cryptocom.py +5 -5
- ccxt/pro/deribit.py +3 -3
- ccxt/pro/exmo.py +2 -2
- ccxt/pro/gate.py +3 -3
- ccxt/pro/gemini.py +2 -2
- ccxt/pro/hitbtc.py +4 -4
- ccxt/pro/hollaex.py +3 -3
- ccxt/pro/htx.py +3 -3
- ccxt/pro/idex.py +3 -3
- ccxt/pro/kraken.py +7 -7
- ccxt/pro/krakenfutures.py +4 -4
- ccxt/pro/kucoin.py +3 -3
- ccxt/pro/kucoinfutures.py +3 -3
- ccxt/pro/mexc.py +3 -3
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +6 -6
- ccxt/pro/phemex.py +3 -3
- ccxt/pro/poloniex.py +3 -3
- ccxt/pro/poloniexfutures.py +3 -3
- ccxt/pro/probit.py +3 -3
- ccxt/pro/wazirx.py +3 -3
- ccxt/pro/whitebit.py +3 -3
- ccxt/pro/woo.py +2 -2
- ccxt/probit.py +22 -22
- ccxt/test/base/test_shared_methods.py +3 -3
- ccxt/test/test_async.py +543 -535
- ccxt/test/test_sync.py +542 -534
- ccxt/tidex.py +15 -15
- ccxt/timex.py +20 -20
- ccxt/tokocrypto.py +16 -16
- ccxt/upbit.py +15 -15
- ccxt/wavesexchange.py +12 -12
- ccxt/wazirx.py +13 -13
- ccxt/whitebit.py +26 -26
- ccxt/woo.py +47 -47
- ccxt/yobit.py +8 -8
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +16 -16
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/METADATA +10 -8
- ccxt-4.1.56.dist-info/RECORD +449 -0
- ccxt/async_support/bitstamp1.py +0 -402
- ccxt/async_support/lbank2.py +0 -2620
- ccxt/bitstamp1.py +0 -402
- ccxt/lbank2.py +0 -2619
- ccxt-4.1.54.dist-info/RECORD +0 -453
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/WHEEL +0 -0
- {ccxt-4.1.54.dist-info → ccxt-4.1.56.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.kucoin import kucoin
|
7
7
|
from ccxt.abstract.kucoinfutures import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType,
|
8
|
+
from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Trade, Transaction
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import PermissionDenied
|
11
11
|
from ccxt.base.errors import AccountSuspended
|
@@ -586,7 +586,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
586
586
|
data = self.safe_value(response, 'data', [])
|
587
587
|
return self.parse_ohlcvs(data, market, timeframe, since, limit)
|
588
588
|
|
589
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
589
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
590
590
|
#
|
591
591
|
# [
|
592
592
|
# "1545904980000", # Start time of the candle cycle
|
@@ -727,7 +727,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
727
727
|
#
|
728
728
|
return self.parse_ticker(response['data'], market)
|
729
729
|
|
730
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
730
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
731
731
|
#
|
732
732
|
# {
|
733
733
|
# "code": "200000",
|
@@ -773,7 +773,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
773
773
|
'info': ticker,
|
774
774
|
}, market)
|
775
775
|
|
776
|
-
async def fetch_funding_history(self, symbol:
|
776
|
+
async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
777
777
|
"""
|
778
778
|
fetch the history of funding payments paid and received on self account
|
779
779
|
:param str symbol: unified market symbol
|
@@ -957,7 +957,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
957
957
|
data = self.safe_value(response, 'data')
|
958
958
|
return self.parse_positions(data, symbols)
|
959
959
|
|
960
|
-
def parse_position(self, position, market=None):
|
960
|
+
def parse_position(self, position, market: Market = None):
|
961
961
|
#
|
962
962
|
# {
|
963
963
|
# "code": "200000",
|
@@ -1179,7 +1179,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1179
1179
|
'info': response,
|
1180
1180
|
}, market)
|
1181
1181
|
|
1182
|
-
async def cancel_order(self, id: str, symbol:
|
1182
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1183
1183
|
"""
|
1184
1184
|
cancels an open order
|
1185
1185
|
:param str id: order id
|
@@ -1204,7 +1204,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1204
1204
|
#
|
1205
1205
|
return self.safe_value(response, 'data')
|
1206
1206
|
|
1207
|
-
async def cancel_all_orders(self, symbol:
|
1207
|
+
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1208
1208
|
"""
|
1209
1209
|
cancel all open orders
|
1210
1210
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
@@ -1303,7 +1303,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1303
1303
|
'direction': 'in',
|
1304
1304
|
})
|
1305
1305
|
|
1306
|
-
def parse_margin_modification(self, info, market=None):
|
1306
|
+
def parse_margin_modification(self, info, market: Market = None):
|
1307
1307
|
#
|
1308
1308
|
# {
|
1309
1309
|
# "id": "62311d26064e8f00013f2c6d",
|
@@ -1365,7 +1365,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1365
1365
|
'status': None,
|
1366
1366
|
}
|
1367
1367
|
|
1368
|
-
async def fetch_orders_by_status(self, status, symbol:
|
1368
|
+
async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1369
1369
|
"""
|
1370
1370
|
fetches a list of orders placed on the exchange
|
1371
1371
|
:see: https://docs.kucoin.com/futures/#get-order-list
|
@@ -1464,7 +1464,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1464
1464
|
orders = self.safe_value(responseData, 'items', [])
|
1465
1465
|
return self.parse_orders(orders, market, since, limit)
|
1466
1466
|
|
1467
|
-
async def fetch_closed_orders(self, symbol:
|
1467
|
+
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1468
1468
|
"""
|
1469
1469
|
fetches information on multiple closed orders made by the user
|
1470
1470
|
:see: https://docs.kucoin.com/futures/#get-order-list
|
@@ -1485,7 +1485,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1485
1485
|
return await self.fetch_paginated_call_dynamic('fetchClosedOrders', symbol, since, limit, params)
|
1486
1486
|
return await self.fetch_orders_by_status('done', symbol, since, limit, params)
|
1487
1487
|
|
1488
|
-
async def fetch_order(self, id=None, symbol:
|
1488
|
+
async def fetch_order(self, id=None, symbol: Str = None, params={}):
|
1489
1489
|
"""
|
1490
1490
|
fetches information on an order made by the user
|
1491
1491
|
:see: https://docs.kucoin.com/futures/#get-details-of-a-single-order
|
@@ -1553,7 +1553,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1553
1553
|
responseData = self.safe_value(response, 'data')
|
1554
1554
|
return self.parse_order(responseData, market)
|
1555
1555
|
|
1556
|
-
def parse_order(self, order, market=None) -> Order:
|
1556
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1557
1557
|
#
|
1558
1558
|
# fetchOrder, fetchOrdersByStatus
|
1559
1559
|
#
|
@@ -1795,7 +1795,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1795
1795
|
'toAccount': 'spot',
|
1796
1796
|
})
|
1797
1797
|
|
1798
|
-
def parse_transfer(self, transfer, currency=None):
|
1798
|
+
def parse_transfer(self, transfer, currency: Currency = None):
|
1799
1799
|
#
|
1800
1800
|
# transfer
|
1801
1801
|
#
|
@@ -1822,7 +1822,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1822
1822
|
}
|
1823
1823
|
return self.safe_string(statuses, status, status)
|
1824
1824
|
|
1825
|
-
async def fetch_my_trades(self, symbol:
|
1825
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1826
1826
|
"""
|
1827
1827
|
:see: https://docs.kucoin.com/futures/#get-fills
|
1828
1828
|
fetch all trades made by the user
|
@@ -1927,7 +1927,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
1927
1927
|
trades = self.safe_value(response, 'data', [])
|
1928
1928
|
return self.parse_trades(trades, market, since, limit)
|
1929
1929
|
|
1930
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
1930
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
1931
1931
|
#
|
1932
1932
|
# fetchTrades(public)
|
1933
1933
|
#
|
@@ -2055,7 +2055,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2055
2055
|
'fee': fee,
|
2056
2056
|
}, market)
|
2057
2057
|
|
2058
|
-
async def fetch_deposits(self, code:
|
2058
|
+
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2059
2059
|
"""
|
2060
2060
|
fetch all deposits made to an account
|
2061
2061
|
:param str code: unified currency code
|
@@ -2105,7 +2105,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2105
2105
|
responseData = response['data']['items']
|
2106
2106
|
return self.parse_transactions(responseData, currency, since, limit, {'type': 'deposit'})
|
2107
2107
|
|
2108
|
-
async def fetch_withdrawals(self, code:
|
2108
|
+
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2109
2109
|
"""
|
2110
2110
|
fetch all withdrawals made from an account
|
2111
2111
|
:param str code: unified currency code
|
@@ -2190,7 +2190,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2190
2190
|
data = self.safe_value(response, 'data')
|
2191
2191
|
return self.parse_market_leverage_tiers(data, market)
|
2192
2192
|
|
2193
|
-
def parse_market_leverage_tiers(self, info, market=None):
|
2193
|
+
def parse_market_leverage_tiers(self, info, market: Market = None):
|
2194
2194
|
"""
|
2195
2195
|
* @ignore
|
2196
2196
|
:param dict info: Exchange market response for 1 market
|
@@ -2221,7 +2221,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2221
2221
|
})
|
2222
2222
|
return tiers
|
2223
2223
|
|
2224
|
-
async def fetch_funding_rate_history(self, symbol:
|
2224
|
+
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2225
2225
|
"""
|
2226
2226
|
fetches historical funding rate prices
|
2227
2227
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
@@ -2268,7 +2268,7 @@ class kucoinfutures(kucoin, ImplicitAPI):
|
|
2268
2268
|
dataList = self.safe_value(data, 'dataList')
|
2269
2269
|
return self.parse_funding_rate_histories(dataList, market, since, limit)
|
2270
2270
|
|
2271
|
-
def parse_funding_rate_history(self, info, market=None):
|
2271
|
+
def parse_funding_rate_history(self, info, market: Market = None):
|
2272
2272
|
timestamp = self.safe_integer(info, 'timePoint')
|
2273
2273
|
marketId = self.safe_string(info, 'symbol')
|
2274
2274
|
return {
|
ccxt/async_support/kuna.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.kuna import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
10
|
-
from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType,
|
10
|
+
from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -650,7 +650,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
650
650
|
data = self.safe_value(response, 'data', {})
|
651
651
|
return self.parse_order_book(data, market['symbol'], None, 'bids', 'asks', 0, 1)
|
652
652
|
|
653
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
653
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
654
654
|
#
|
655
655
|
# {
|
656
656
|
# "pair": "BTC_USDT", # Traded pair
|
@@ -811,7 +811,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
811
811
|
data = self.safe_value(response, 'data', {})
|
812
812
|
return self.parse_trades(data, market, since, limit)
|
813
813
|
|
814
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
814
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
815
815
|
#
|
816
816
|
# fetchTrades(public)
|
817
817
|
#
|
@@ -965,7 +965,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
965
965
|
data = self.safe_value(response, 'data', {})
|
966
966
|
return self.parse_order(data, market)
|
967
967
|
|
968
|
-
async def cancel_order(self, id: str, symbol:
|
968
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
969
969
|
"""
|
970
970
|
cancels an open order
|
971
971
|
:param str id: order id
|
@@ -993,7 +993,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
993
993
|
order['id'] = id
|
994
994
|
return order
|
995
995
|
|
996
|
-
async def cancel_orders(self, ids: List[str], symbol:
|
996
|
+
async def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
|
997
997
|
"""
|
998
998
|
cancels an open order
|
999
999
|
:param str ids: order ids
|
@@ -1032,7 +1032,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1032
1032
|
}
|
1033
1033
|
return self.safe_string(statuses, status, status)
|
1034
1034
|
|
1035
|
-
def parse_order(self, order, market=None) -> Order:
|
1035
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1036
1036
|
#
|
1037
1037
|
# createOrder, fetchOrder, fetchOpenOrders, fetchOrdersByStatus
|
1038
1038
|
#
|
@@ -1108,7 +1108,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1108
1108
|
'fee': None,
|
1109
1109
|
}, market)
|
1110
1110
|
|
1111
|
-
async def fetch_order(self, id: str, symbol:
|
1111
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1112
1112
|
"""
|
1113
1113
|
fetches information on an order made by the user
|
1114
1114
|
:see: https://docs.kuna.io/docs/get-order-details-by-id
|
@@ -1162,7 +1162,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1162
1162
|
data = self.safe_value(response, 'data', {})
|
1163
1163
|
return self.parse_order(data)
|
1164
1164
|
|
1165
|
-
async def fetch_open_orders(self, symbol:
|
1165
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1166
1166
|
"""
|
1167
1167
|
fetch all unfilled currently open orders
|
1168
1168
|
:see: https://docs.kuna.io/docs/get-active-client-orders-private
|
@@ -1216,7 +1216,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1216
1216
|
data = self.safe_value(response, 'data', [])
|
1217
1217
|
return self.parse_orders(data, market, since, limit)
|
1218
1218
|
|
1219
|
-
async def fetch_closed_orders(self, symbol:
|
1219
|
+
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1220
1220
|
"""
|
1221
1221
|
fetches information on multiple closed orders made by the user
|
1222
1222
|
:see: https://docs.kuna.io/docs/get-private-orders-history
|
@@ -1232,7 +1232,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1232
1232
|
"""
|
1233
1233
|
return await self.fetch_orders_by_status('closed', symbol, since, limit, params)
|
1234
1234
|
|
1235
|
-
async def fetch_orders_by_status(self, status, symbol:
|
1235
|
+
async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1236
1236
|
"""
|
1237
1237
|
fetch a list of orders
|
1238
1238
|
:see: https://docs.kuna.io/docs/get-private-orders-history
|
@@ -1291,7 +1291,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1291
1291
|
data = self.safe_value(response, 'data', [])
|
1292
1292
|
return self.parse_orders(data, market, since, limit)
|
1293
1293
|
|
1294
|
-
async def fetch_my_trades(self, symbol:
|
1294
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1295
1295
|
"""
|
1296
1296
|
fetch all trades made by the user
|
1297
1297
|
:see: https://docs.kuna.io/docs/get-private-trades-history
|
@@ -1381,7 +1381,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1381
1381
|
data = self.safe_value(response, 'data', {})
|
1382
1382
|
return self.parse_transaction(data, currency)
|
1383
1383
|
|
1384
|
-
async def fetch_withdrawals(self, code:
|
1384
|
+
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1385
1385
|
"""
|
1386
1386
|
fetch all withdrawals made to an account
|
1387
1387
|
:see: https://docs.kuna.io/docs/get-withdraw-history
|
@@ -1403,7 +1403,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1403
1403
|
until = self.safe_integer(params, 'until')
|
1404
1404
|
params = self.omit(params, 'until')
|
1405
1405
|
currency = None
|
1406
|
-
if
|
1406
|
+
if code is not None:
|
1407
1407
|
currency = self.currency(code)
|
1408
1408
|
request = {}
|
1409
1409
|
if code is not None:
|
@@ -1442,7 +1442,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1442
1442
|
data = self.safe_value(response, 'data', [])
|
1443
1443
|
return self.parse_transactions(data, currency)
|
1444
1444
|
|
1445
|
-
async def fetch_withdrawal(self, id: str, code:
|
1445
|
+
async def fetch_withdrawal(self, id: str, code: Str = None, params={}):
|
1446
1446
|
"""
|
1447
1447
|
fetch data on a currency withdrawal via the withdrawal id
|
1448
1448
|
:see: https://docs.kuna.io/docs/get-withdraw-details-by-id
|
@@ -1532,7 +1532,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1532
1532
|
data = self.safe_value(response, 'data', {})
|
1533
1533
|
return self.parse_deposit_address(data, currency)
|
1534
1534
|
|
1535
|
-
def parse_deposit_address(self, depositAddress, currency=None):
|
1535
|
+
def parse_deposit_address(self, depositAddress, currency: Currency = None):
|
1536
1536
|
#
|
1537
1537
|
# {
|
1538
1538
|
# "id": "c52b6646-fb91-4760-b147-a4f952e8652c", # ID of the address.
|
@@ -1562,7 +1562,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1562
1562
|
}
|
1563
1563
|
return self.safe_string(statuses, status, status)
|
1564
1564
|
|
1565
|
-
async def fetch_deposits(self, code:
|
1565
|
+
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1566
1566
|
"""
|
1567
1567
|
fetch all deposits made to an account
|
1568
1568
|
:see: https://docs.kuna.io/docs/get-deposit-history
|
@@ -1584,7 +1584,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1584
1584
|
until = self.safe_integer(params, 'until')
|
1585
1585
|
params = self.omit(params, 'until')
|
1586
1586
|
currency = None
|
1587
|
-
if
|
1587
|
+
if code is not None:
|
1588
1588
|
currency = self.currency(code)
|
1589
1589
|
request = {}
|
1590
1590
|
if code is not None:
|
@@ -1623,7 +1623,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1623
1623
|
data = self.safe_value(response, 'data', [])
|
1624
1624
|
return self.parse_transactions(data, currency)
|
1625
1625
|
|
1626
|
-
async def fetch_deposit(self, id: str, code:
|
1626
|
+
async def fetch_deposit(self, id: str, code: Str = None, params={}):
|
1627
1627
|
"""
|
1628
1628
|
fetch data on a currency deposit via the deposit id
|
1629
1629
|
:see: https://docs.kuna.io/docs/get-deposit-details-by-id
|
@@ -1664,7 +1664,7 @@ class kuna(Exchange, ImplicitAPI):
|
|
1664
1664
|
data = self.safe_value(response, 'data', {})
|
1665
1665
|
return self.parse_transaction(data, currency)
|
1666
1666
|
|
1667
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1667
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1668
1668
|
#
|
1669
1669
|
# {
|
1670
1670
|
# "id": "a201cb3c-5830-57ac-ad2c-f6a588dd55eb", # Unique ID of deposit
|
ccxt/async_support/latoken.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.latoken import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType,
|
9
|
+
from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import PermissionDenied
|
@@ -567,7 +567,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
567
567
|
#
|
568
568
|
return self.parse_order_book(response, symbol, None, 'bid', 'ask', 'price', 'quantity')
|
569
569
|
|
570
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
570
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
571
571
|
#
|
572
572
|
# {
|
573
573
|
# "symbol": "92151d82-df98-4d88-9a4d-284fa9eca49f/0c3a106d-bde3-4c13-a26e-3fd2394529e5",
|
@@ -683,7 +683,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
683
683
|
#
|
684
684
|
return self.parse_tickers(response, symbols)
|
685
685
|
|
686
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
686
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
687
687
|
#
|
688
688
|
# fetchTrades(public)
|
689
689
|
#
|
@@ -853,7 +853,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
853
853
|
'taker': self.safe_number(response, 'takerFee'),
|
854
854
|
}
|
855
855
|
|
856
|
-
async def fetch_my_trades(self, symbol:
|
856
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
857
857
|
"""
|
858
858
|
fetch all trades made by the user
|
859
859
|
:param str symbol: unified market symbol
|
@@ -922,7 +922,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
922
922
|
}
|
923
923
|
return self.safe_string(timeInForces, timeInForce, timeInForce)
|
924
924
|
|
925
|
-
def parse_order(self, order, market=None) -> Order:
|
925
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
926
926
|
#
|
927
927
|
# createOrder
|
928
928
|
#
|
@@ -1023,7 +1023,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1023
1023
|
'trades': None,
|
1024
1024
|
}, market)
|
1025
1025
|
|
1026
|
-
async def fetch_open_orders(self, symbol:
|
1026
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1027
1027
|
"""
|
1028
1028
|
fetch all unfilled currently open orders
|
1029
1029
|
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getMyActiveOrdersByPair
|
@@ -1075,7 +1075,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1075
1075
|
#
|
1076
1076
|
return self.parse_orders(response, market, since, limit)
|
1077
1077
|
|
1078
|
-
async def fetch_orders(self, symbol:
|
1078
|
+
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1079
1079
|
"""
|
1080
1080
|
fetches information on multiple orders made by the user
|
1081
1081
|
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getMyOrders
|
@@ -1139,7 +1139,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1139
1139
|
#
|
1140
1140
|
return self.parse_orders(response, market, since, limit)
|
1141
1141
|
|
1142
|
-
async def fetch_order(self, id: str, symbol:
|
1142
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1143
1143
|
"""
|
1144
1144
|
fetches information on an order made by the user
|
1145
1145
|
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/getOrderById
|
@@ -1239,7 +1239,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1239
1239
|
#
|
1240
1240
|
return self.parse_order(response, market)
|
1241
1241
|
|
1242
|
-
async def cancel_order(self, id: str, symbol:
|
1242
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1243
1243
|
"""
|
1244
1244
|
cancels an open order
|
1245
1245
|
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/cancelOrder
|
@@ -1272,7 +1272,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1272
1272
|
#
|
1273
1273
|
return self.parse_order(response)
|
1274
1274
|
|
1275
|
-
async def cancel_all_orders(self, symbol:
|
1275
|
+
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1276
1276
|
"""
|
1277
1277
|
cancel all open orders in a market
|
1278
1278
|
:see: https://api.latoken.com/doc/v2/#tag/Order/operation/cancelAllOrders
|
@@ -1312,7 +1312,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1312
1312
|
#
|
1313
1313
|
return response
|
1314
1314
|
|
1315
|
-
async def fetch_transactions(self, code:
|
1315
|
+
async def fetch_transactions(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1316
1316
|
"""
|
1317
1317
|
* @deprecated
|
1318
1318
|
use fetchDepositsWithdrawals instead
|
@@ -1360,7 +1360,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1360
1360
|
content = self.safe_value(response, 'content', [])
|
1361
1361
|
return self.parse_transactions(content, currency, since, limit)
|
1362
1362
|
|
1363
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1363
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1364
1364
|
#
|
1365
1365
|
# {
|
1366
1366
|
# "id":"fbf7d0d1-2629-4ad8-9def-7a1dba423362",
|
@@ -1437,7 +1437,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1437
1437
|
}
|
1438
1438
|
return self.safe_string(types, type, type)
|
1439
1439
|
|
1440
|
-
async def fetch_transfers(self, code:
|
1440
|
+
async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1441
1441
|
"""
|
1442
1442
|
fetch a history of internal transfers made on an account
|
1443
1443
|
:param str code: unified currency code of the currency transferred
|
@@ -1532,7 +1532,7 @@ class latoken(Exchange, ImplicitAPI):
|
|
1532
1532
|
#
|
1533
1533
|
return self.parse_transfer(response)
|
1534
1534
|
|
1535
|
-
def parse_transfer(self, transfer, currency=None):
|
1535
|
+
def parse_transfer(self, transfer, currency: Currency = None):
|
1536
1536
|
#
|
1537
1537
|
# {
|
1538
1538
|
# "id": "e6fc4ace-7750-44e4-b7e9-6af038ac7107",
|
ccxt/async_support/lbank.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.lbank import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Balances, Int, Order, OrderBook, OrderSide, OrderType,
|
10
|
+
from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import PermissionDenied
|
@@ -527,7 +527,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
527
527
|
})
|
528
528
|
return result
|
529
529
|
|
530
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
530
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
531
531
|
#
|
532
532
|
# spot: fetchTicker, fetchTickers
|
533
533
|
#
|
@@ -783,7 +783,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
783
783
|
return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 'price', 'volume')
|
784
784
|
return self.parse_order_book(orderbook, market['symbol'], timestamp)
|
785
785
|
|
786
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
786
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
787
787
|
#
|
788
788
|
# fetchTrades(old) spotPublicGetTrades
|
789
789
|
#
|
@@ -923,7 +923,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
923
923
|
trades = self.safe_value(response, 'data', [])
|
924
924
|
return self.parse_trades(trades, market, since, limit)
|
925
925
|
|
926
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
926
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
927
927
|
#
|
928
928
|
# [
|
929
929
|
# 1482311500, # timestamp
|
@@ -1165,7 +1165,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1165
1165
|
#
|
1166
1166
|
return self.parse_balance(response)
|
1167
1167
|
|
1168
|
-
def parse_trading_fee(self, fee, market=None):
|
1168
|
+
def parse_trading_fee(self, fee, market: Market = None):
|
1169
1169
|
#
|
1170
1170
|
# {
|
1171
1171
|
# "symbol":"skt_usdt",
|
@@ -1303,7 +1303,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1303
1303
|
}
|
1304
1304
|
return self.safe_string(statuses, status, status)
|
1305
1305
|
|
1306
|
-
def parse_order(self, order, market=None) -> Order:
|
1306
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1307
1307
|
#
|
1308
1308
|
# fetchOrderSupplement(private)
|
1309
1309
|
#
|
@@ -1423,7 +1423,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1423
1423
|
'average': None,
|
1424
1424
|
}, market)
|
1425
1425
|
|
1426
|
-
async def fetch_order(self, id: str, symbol:
|
1426
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1427
1427
|
"""
|
1428
1428
|
fetches information on an order made by the user
|
1429
1429
|
:see: https://www.lbank.info/en-US/docs/index.html#query-order
|
@@ -1441,7 +1441,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1441
1441
|
return await self.fetch_order_supplement(id, symbol, params)
|
1442
1442
|
return await self.fetch_order_default(id, symbol, params)
|
1443
1443
|
|
1444
|
-
async def fetch_order_supplement(self, id: str, symbol:
|
1444
|
+
async def fetch_order_supplement(self, id: str, symbol: Str = None, params={}):
|
1445
1445
|
self.check_required_symbol('fetchOrder', symbol)
|
1446
1446
|
await self.load_markets()
|
1447
1447
|
market = self.market(symbol)
|
@@ -1474,7 +1474,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1474
1474
|
result = self.safe_value(response, 'data', {})
|
1475
1475
|
return self.parse_order(result)
|
1476
1476
|
|
1477
|
-
async def fetch_order_default(self, id: str, symbol:
|
1477
|
+
async def fetch_order_default(self, id: str, symbol: Str = None, params={}):
|
1478
1478
|
# Id can be a list of ids delimited by a comma
|
1479
1479
|
self.check_required_symbol('fetchOrder', symbol)
|
1480
1480
|
await self.load_markets()
|
@@ -1517,7 +1517,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1517
1517
|
# return parsedOrders
|
1518
1518
|
raise BadRequest(self.id + ' fetchOrder() can only fetch one order at a time')
|
1519
1519
|
|
1520
|
-
async def fetch_my_trades(self, symbol:
|
1520
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1521
1521
|
"""
|
1522
1522
|
fetch all trades made by the user
|
1523
1523
|
:see: https://www.lbank.info/en-US/docs/index.html#past-transaction-details
|
@@ -1570,7 +1570,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1570
1570
|
trades = self.safe_value(response, 'data', [])
|
1571
1571
|
return self.parse_trades(trades, market, since, limit)
|
1572
1572
|
|
1573
|
-
async def fetch_orders(self, symbol:
|
1573
|
+
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1574
1574
|
"""
|
1575
1575
|
fetches information on multiple orders made by the user
|
1576
1576
|
:see: https://www.lbank.info/en-US/docs/index.html#query-all-orders
|
@@ -1625,7 +1625,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1625
1625
|
orders = self.safe_value(result, 'orders', [])
|
1626
1626
|
return self.parse_orders(orders, market, since, limit)
|
1627
1627
|
|
1628
|
-
async def fetch_open_orders(self, symbol:
|
1628
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1629
1629
|
"""
|
1630
1630
|
fetch all unfilled currently open orders
|
1631
1631
|
:see: https://www.lbank.info/en-US/docs/index.html#current-pending-order
|
@@ -1677,7 +1677,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1677
1677
|
orders = self.safe_value(result, 'orders', [])
|
1678
1678
|
return self.parse_orders(orders, market, since, limit)
|
1679
1679
|
|
1680
|
-
async def cancel_order(self, id: str, symbol:
|
1680
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1681
1681
|
"""
|
1682
1682
|
cancels an open order
|
1683
1683
|
:see: https://www.lbank.info/en-US/docs/index.html#cancel-order-new
|
@@ -1714,7 +1714,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1714
1714
|
result = self.safe_value(response, 'data', {})
|
1715
1715
|
return result
|
1716
1716
|
|
1717
|
-
async def cancel_all_orders(self, symbol:
|
1717
|
+
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1718
1718
|
"""
|
1719
1719
|
cancel all open orders in a market
|
1720
1720
|
:see: https://www.lbank.info/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
|
@@ -1926,7 +1926,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1926
1926
|
}
|
1927
1927
|
return self.safe_string(self.safe_value(statuses, type, {}), status, status)
|
1928
1928
|
|
1929
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1929
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1930
1930
|
#
|
1931
1931
|
# fetchDeposits(private)
|
1932
1932
|
#
|
@@ -2008,7 +2008,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
2008
2008
|
'fee': fee,
|
2009
2009
|
}
|
2010
2010
|
|
2011
|
-
async def fetch_deposits(self, code:
|
2011
|
+
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2012
2012
|
"""
|
2013
2013
|
fetch all deposits made to an account
|
2014
2014
|
:see: https://www.lbank.info/en-US/docs/index.html#get-recharge-history
|
@@ -2057,7 +2057,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
2057
2057
|
deposits = self.safe_value(data, 'depositOrders', [])
|
2058
2058
|
return self.parse_transactions(deposits, currency, since, limit)
|
2059
2059
|
|
2060
|
-
async def fetch_withdrawals(self, code:
|
2060
|
+
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2061
2061
|
"""
|
2062
2062
|
fetch all withdrawals made from an account
|
2063
2063
|
:see: https://www.lbank.info/en-US/docs/index.html#get-withdrawal-history
|
@@ -2385,7 +2385,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
2385
2385
|
}
|
2386
2386
|
return result
|
2387
2387
|
|
2388
|
-
def parse_deposit_withdraw_fee(self, fee, currency=None):
|
2388
|
+
def parse_deposit_withdraw_fee(self, fee, currency: Currency = None):
|
2389
2389
|
#
|
2390
2390
|
# * only used for fetchPrivateDepositWithdrawFees
|
2391
2391
|
#
|