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
ccxt/async_support/ndax.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.ndax import ImplicitAPI
|
8
8
|
import hashlib
|
9
9
|
import json
|
10
|
-
from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType,
|
10
|
+
from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import BadSymbol
|
@@ -584,7 +584,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
584
584
|
#
|
585
585
|
return self.parse_order_book(response, symbol)
|
586
586
|
|
587
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
587
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
588
588
|
#
|
589
589
|
# fetchTicker
|
590
590
|
#
|
@@ -697,7 +697,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
697
697
|
#
|
698
698
|
return self.parse_ticker(response, market)
|
699
699
|
|
700
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
700
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
701
701
|
#
|
702
702
|
# [
|
703
703
|
# 1501603632000, # 0 DateTime
|
@@ -760,7 +760,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
760
760
|
#
|
761
761
|
return self.parse_ohlcvs(response, market, timeframe, since, limit)
|
762
762
|
|
763
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
763
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
764
764
|
#
|
765
765
|
# fetchTrades(public)
|
766
766
|
#
|
@@ -1068,7 +1068,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1068
1068
|
}
|
1069
1069
|
return self.safe_string(types, type, type)
|
1070
1070
|
|
1071
|
-
def parse_ledger_entry(self, item, currency=None):
|
1071
|
+
def parse_ledger_entry(self, item, currency: Currency = None):
|
1072
1072
|
#
|
1073
1073
|
# {
|
1074
1074
|
# "TransactionId": 2663709493,
|
@@ -1121,7 +1121,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1121
1121
|
'fee': None,
|
1122
1122
|
}
|
1123
1123
|
|
1124
|
-
async def fetch_ledger(self, code:
|
1124
|
+
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1125
1125
|
"""
|
1126
1126
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
1127
1127
|
:param str code: unified currency code, default is None
|
@@ -1177,7 +1177,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1177
1177
|
}
|
1178
1178
|
return self.safe_string(statuses, status, status)
|
1179
1179
|
|
1180
|
-
def parse_order(self, order, market=None) -> Order:
|
1180
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1181
1181
|
#
|
1182
1182
|
# createOrder
|
1183
1183
|
#
|
@@ -1379,7 +1379,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1379
1379
|
#
|
1380
1380
|
return self.parse_order(response, market)
|
1381
1381
|
|
1382
|
-
async def fetch_my_trades(self, symbol:
|
1382
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1383
1383
|
"""
|
1384
1384
|
fetch all trades made by the user
|
1385
1385
|
:param str symbol: unified market symbol
|
@@ -1461,7 +1461,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1461
1461
|
#
|
1462
1462
|
return self.parse_trades(response, market, since, limit)
|
1463
1463
|
|
1464
|
-
async def cancel_all_orders(self, symbol:
|
1464
|
+
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1465
1465
|
"""
|
1466
1466
|
cancel all open orders
|
1467
1467
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
@@ -1492,7 +1492,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1492
1492
|
#
|
1493
1493
|
return response
|
1494
1494
|
|
1495
|
-
async def cancel_order(self, id: str, symbol:
|
1495
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1496
1496
|
"""
|
1497
1497
|
cancels an open order
|
1498
1498
|
:param str id: order id
|
@@ -1526,7 +1526,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1526
1526
|
'clientOrderId': clientOrderId,
|
1527
1527
|
})
|
1528
1528
|
|
1529
|
-
async def fetch_open_orders(self, symbol:
|
1529
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1530
1530
|
"""
|
1531
1531
|
fetch all unfilled currently open orders
|
1532
1532
|
:param str symbol: unified market symbol
|
@@ -1601,7 +1601,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1601
1601
|
#
|
1602
1602
|
return self.parse_orders(response, market, since, limit)
|
1603
1603
|
|
1604
|
-
async def fetch_orders(self, symbol:
|
1604
|
+
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1605
1605
|
"""
|
1606
1606
|
fetches information on multiple orders made by the user
|
1607
1607
|
:param str symbol: unified market symbol of the market orders were made in
|
@@ -1690,7 +1690,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1690
1690
|
#
|
1691
1691
|
return self.parse_orders(response, market, since, limit)
|
1692
1692
|
|
1693
|
-
async def fetch_order(self, id: str, symbol:
|
1693
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1694
1694
|
"""
|
1695
1695
|
fetches information on an order made by the user
|
1696
1696
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1762,7 +1762,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1762
1762
|
#
|
1763
1763
|
return self.parse_order(response, market)
|
1764
1764
|
|
1765
|
-
async def fetch_order_trades(self, id: str, symbol:
|
1765
|
+
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1766
1766
|
"""
|
1767
1767
|
fetch all the trades made from a single order
|
1768
1768
|
:param str id: order id
|
@@ -1876,7 +1876,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1876
1876
|
#
|
1877
1877
|
return self.parse_deposit_address(response, currency)
|
1878
1878
|
|
1879
|
-
def parse_deposit_address(self, depositAddress, currency=None):
|
1879
|
+
def parse_deposit_address(self, depositAddress, currency: Currency = None):
|
1880
1880
|
#
|
1881
1881
|
# fetchDepositAddress, createDepositAddress
|
1882
1882
|
#
|
@@ -1922,7 +1922,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1922
1922
|
}
|
1923
1923
|
return await self.fetch_deposit_address(code, self.extend(request, params))
|
1924
1924
|
|
1925
|
-
async def fetch_deposits(self, code:
|
1925
|
+
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1926
1926
|
"""
|
1927
1927
|
fetch all deposits made to an account
|
1928
1928
|
:see: https://apidoc.ndax.io/#getdeposits
|
@@ -1978,7 +1978,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
1978
1978
|
return self.parse_transactions(json.loads(response), currency, since, limit)
|
1979
1979
|
return self.parse_transactions(response, currency, since, limit)
|
1980
1980
|
|
1981
|
-
async def fetch_withdrawals(self, code:
|
1981
|
+
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1982
1982
|
"""
|
1983
1983
|
fetch all withdrawals made from an account
|
1984
1984
|
:param str code: unified currency code
|
@@ -2075,7 +2075,7 @@ class ndax(Exchange, ImplicitAPI):
|
|
2075
2075
|
statuses = self.safe_value(statusesByType, type, {})
|
2076
2076
|
return self.safe_string(statuses, status, status)
|
2077
2077
|
|
2078
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
2078
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
2079
2079
|
#
|
2080
2080
|
# fetchDeposits
|
2081
2081
|
#
|
ccxt/async_support/novadax.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.novadax import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Int, Market, 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
|
@@ -315,7 +315,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
315
315
|
'info': market,
|
316
316
|
}
|
317
317
|
|
318
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
318
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
319
319
|
#
|
320
320
|
# fetchTicker, fetchTickers
|
321
321
|
#
|
@@ -476,7 +476,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
476
476
|
timestamp = self.safe_integer(data, 'timestamp')
|
477
477
|
return self.parse_order_book(data, market['symbol'], timestamp, 'bids', 'asks')
|
478
478
|
|
479
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
479
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
480
480
|
#
|
481
481
|
# public fetchTrades
|
482
482
|
#
|
@@ -636,7 +636,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
636
636
|
data = self.safe_value(response, 'data', [])
|
637
637
|
return self.parse_ohlcvs(data, market, timeframe, since, limit)
|
638
638
|
|
639
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
639
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
640
640
|
#
|
641
641
|
# {
|
642
642
|
# "amount": 8.25709100,
|
@@ -788,7 +788,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
788
788
|
data = self.safe_value(response, 'data', {})
|
789
789
|
return self.parse_order(data, market)
|
790
790
|
|
791
|
-
async def cancel_order(self, id: str, symbol:
|
791
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
792
792
|
"""
|
793
793
|
cancels an open order
|
794
794
|
:see: https://doc.novadax.com/en-US/#cancel-an-order
|
@@ -814,7 +814,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
814
814
|
data = self.safe_value(response, 'data', {})
|
815
815
|
return self.parse_order(data)
|
816
816
|
|
817
|
-
async def fetch_order(self, id: str, symbol:
|
817
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
818
818
|
"""
|
819
819
|
fetches information on an order made by the user
|
820
820
|
:see: https://doc.novadax.com/en-US/#get-order-details
|
@@ -851,7 +851,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
851
851
|
data = self.safe_value(response, 'data', {})
|
852
852
|
return self.parse_order(data)
|
853
853
|
|
854
|
-
async def fetch_orders(self, symbol:
|
854
|
+
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
855
855
|
"""
|
856
856
|
fetches information on multiple orders made by the user
|
857
857
|
:see: https://doc.novadax.com/en-US/#get-order-history
|
@@ -906,7 +906,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
906
906
|
data = self.safe_value(response, 'data', [])
|
907
907
|
return self.parse_orders(data, market, since, limit)
|
908
908
|
|
909
|
-
async def fetch_open_orders(self, symbol:
|
909
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
910
910
|
"""
|
911
911
|
fetch all unfilled currently open orders
|
912
912
|
:see: https://doc.novadax.com/en-US/#get-order-history
|
@@ -921,7 +921,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
921
921
|
}
|
922
922
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
923
923
|
|
924
|
-
async def fetch_closed_orders(self, symbol:
|
924
|
+
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
925
925
|
"""
|
926
926
|
fetches information on multiple closed orders made by the user
|
927
927
|
:see: https://doc.novadax.com/en-US/#get-order-history
|
@@ -936,7 +936,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
936
936
|
}
|
937
937
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
938
938
|
|
939
|
-
async def fetch_order_trades(self, id: str, symbol:
|
939
|
+
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
940
940
|
"""
|
941
941
|
fetch all the trades made from a single order
|
942
942
|
:see: https://doc.novadax.com/en-US/#get-order-match-details
|
@@ -991,7 +991,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
991
991
|
}
|
992
992
|
return self.safe_string(statuses, status, status)
|
993
993
|
|
994
|
-
def parse_order(self, order, market=None) -> Order:
|
994
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
995
995
|
#
|
996
996
|
# createOrder, fetchOrders, fetchOrder
|
997
997
|
#
|
@@ -1105,7 +1105,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1105
1105
|
transfer['amount'] = amount
|
1106
1106
|
return transfer
|
1107
1107
|
|
1108
|
-
def parse_transfer(self, transfer, currency=None):
|
1108
|
+
def parse_transfer(self, transfer, currency: Currency = None):
|
1109
1109
|
#
|
1110
1110
|
# {
|
1111
1111
|
# "code":"A10000",
|
@@ -1202,7 +1202,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1202
1202
|
})
|
1203
1203
|
return result
|
1204
1204
|
|
1205
|
-
async def fetch_deposits(self, code:
|
1205
|
+
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1206
1206
|
"""
|
1207
1207
|
fetch all deposits made to an account
|
1208
1208
|
:see: https://doc.novadax.com/en-US/#wallet-records-of-deposits-and-withdraws
|
@@ -1217,7 +1217,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1217
1217
|
}
|
1218
1218
|
return await self.fetch_deposits_withdrawals(code, since, limit, self.extend(request, params))
|
1219
1219
|
|
1220
|
-
async def fetch_withdrawals(self, code:
|
1220
|
+
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1221
1221
|
"""
|
1222
1222
|
fetch all withdrawals made from an account
|
1223
1223
|
:see: https://doc.novadax.com/en-US/#wallet-records-of-deposits-and-withdraws
|
@@ -1232,7 +1232,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1232
1232
|
}
|
1233
1233
|
return await self.fetch_deposits_withdrawals(code, since, limit, self.extend(request, params))
|
1234
1234
|
|
1235
|
-
async def fetch_deposits_withdrawals(self, code:
|
1235
|
+
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1236
1236
|
"""
|
1237
1237
|
fetch history of deposits and withdrawals
|
1238
1238
|
:see: https://doc.novadax.com/en-US/#wallet-records-of-deposits-and-withdraws
|
@@ -1296,7 +1296,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1296
1296
|
}
|
1297
1297
|
return self.safe_string(statuses, status, status)
|
1298
1298
|
|
1299
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1299
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1300
1300
|
#
|
1301
1301
|
# withdraw
|
1302
1302
|
#
|
@@ -1365,7 +1365,7 @@ class novadax(Exchange, ImplicitAPI):
|
|
1365
1365
|
},
|
1366
1366
|
}
|
1367
1367
|
|
1368
|
-
async def fetch_my_trades(self, symbol:
|
1368
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1369
1369
|
"""
|
1370
1370
|
fetch all trades made by the user
|
1371
1371
|
:see: https://doc.novadax.com/en-US/#get-order-history
|
ccxt/async_support/oceanex.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.oceanex import ImplicitAPI
|
8
|
-
from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType,
|
8
|
+
from ccxt.base.types import Balances, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade
|
9
9
|
from typing import List
|
10
10
|
from ccxt.base.errors import ExchangeError
|
11
11
|
from ccxt.base.errors import PermissionDenied
|
@@ -312,7 +312,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
312
312
|
result[symbol] = self.parse_ticker(ticker, market)
|
313
313
|
return self.filter_by_array_tickers(result, 'symbol', symbols)
|
314
314
|
|
315
|
-
def parse_ticker(self, data, market=None):
|
315
|
+
def parse_ticker(self, data, market: Market = None):
|
316
316
|
#
|
317
317
|
# {
|
318
318
|
# "at":1559431729,
|
@@ -483,7 +483,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
483
483
|
data = self.safe_value(response, 'data')
|
484
484
|
return self.parse_trades(data, market, since, limit)
|
485
485
|
|
486
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
486
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
487
487
|
#
|
488
488
|
# fetchTrades(public)
|
489
489
|
#
|
@@ -619,7 +619,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
619
619
|
data = self.safe_value(response, 'data')
|
620
620
|
return self.parse_order(data, market)
|
621
621
|
|
622
|
-
async def fetch_order(self, id: str, symbol:
|
622
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
623
623
|
"""
|
624
624
|
fetches information on an order made by the user
|
625
625
|
:see: https://api.oceanex.pro/doc/v1/#order-status-get
|
@@ -645,7 +645,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
645
645
|
raise OrderNotFound(self.id + ' could not found matching order')
|
646
646
|
return self.parse_order(data[0], market)
|
647
647
|
|
648
|
-
async def fetch_open_orders(self, symbol:
|
648
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
649
649
|
"""
|
650
650
|
fetch all unfilled currently open orders
|
651
651
|
:see: https://api.oceanex.pro/doc/v1/#order-status-get
|
@@ -660,7 +660,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
660
660
|
}
|
661
661
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
662
662
|
|
663
|
-
async def fetch_closed_orders(self, symbol:
|
663
|
+
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
664
664
|
"""
|
665
665
|
fetches information on multiple closed orders made by the user
|
666
666
|
:see: https://api.oceanex.pro/doc/v1/#order-status-get
|
@@ -675,7 +675,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
675
675
|
}
|
676
676
|
return await self.fetch_orders(symbol, since, limit, self.extend(request, params))
|
677
677
|
|
678
|
-
async def fetch_orders(self, symbol:
|
678
|
+
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
679
679
|
"""
|
680
680
|
fetches information on multiple orders made by the user
|
681
681
|
:see: https://api.oceanex.pro/doc/v1/#order-status-with-filters-post
|
@@ -707,7 +707,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
707
707
|
result = self.array_concat(result, parsedOrders)
|
708
708
|
return result
|
709
709
|
|
710
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
710
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
711
711
|
# [
|
712
712
|
# 1559232000,
|
713
713
|
# 8889.22,
|
@@ -750,7 +750,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
750
750
|
ohlcvs = self.safe_value(response, 'data', [])
|
751
751
|
return self.parse_ohlcvs(ohlcvs, market, timeframe, since, limit)
|
752
752
|
|
753
|
-
def parse_order(self, order, market=None) -> Order:
|
753
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
754
754
|
#
|
755
755
|
# {
|
756
756
|
# "created_at": "2019-01-18T00:38:18Z",
|
@@ -812,7 +812,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
812
812
|
}
|
813
813
|
return self.safe_string(statuses, status, status)
|
814
814
|
|
815
|
-
async def cancel_order(self, id: str, symbol:
|
815
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
816
816
|
"""
|
817
817
|
cancels an open order
|
818
818
|
:see: https://api.oceanex.pro/doc/v1/#cancel-order-post
|
@@ -826,7 +826,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
826
826
|
data = self.safe_value(response, 'data')
|
827
827
|
return self.parse_order(data)
|
828
828
|
|
829
|
-
async def cancel_orders(self, ids, symbol:
|
829
|
+
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
830
830
|
"""
|
831
831
|
cancel multiple orders
|
832
832
|
:see: https://api.oceanex.pro/doc/v1/#cancel-multiple-orders-post
|
@@ -840,7 +840,7 @@ class oceanex(Exchange, ImplicitAPI):
|
|
840
840
|
data = self.safe_value(response, 'data')
|
841
841
|
return self.parse_orders(data)
|
842
842
|
|
843
|
-
async def cancel_all_orders(self, symbol:
|
843
|
+
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
844
844
|
"""
|
845
845
|
cancel all open orders
|
846
846
|
:see: https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
ccxt/async_support/okcoin.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.async_support.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.okcoin import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Int, Market, 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
|
@@ -816,7 +816,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
816
816
|
timestamp = self.safe_integer(first, 'ts')
|
817
817
|
return self.parse_order_book(first, symbol, timestamp)
|
818
818
|
|
819
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
819
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
820
820
|
#
|
821
821
|
# {
|
822
822
|
# "instType": "SPOT",
|
@@ -931,7 +931,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
931
931
|
data = self.safe_value(response, 'data', [])
|
932
932
|
return self.parse_tickers(data, symbols, params)
|
933
933
|
|
934
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
934
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
935
935
|
#
|
936
936
|
# public fetchTrades
|
937
937
|
#
|
@@ -1032,7 +1032,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1032
1032
|
data = self.safe_value(response, 'data', [])
|
1033
1033
|
return self.parse_trades(data, market, since, limit)
|
1034
1034
|
|
1035
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
1035
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
1036
1036
|
#
|
1037
1037
|
# [
|
1038
1038
|
# "1678928760000", # timestamp
|
@@ -1460,7 +1460,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1460
1460
|
params = self.omit(params, ['clOrdId', 'clientOrderId'])
|
1461
1461
|
return self.extend(request, params)
|
1462
1462
|
|
1463
|
-
async def cancel_order(self, id: str, symbol:
|
1463
|
+
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1464
1464
|
"""
|
1465
1465
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-order
|
1466
1466
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-algo-order
|
@@ -1509,7 +1509,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1509
1509
|
else:
|
1510
1510
|
return ids
|
1511
1511
|
|
1512
|
-
async def cancel_orders(self, ids, symbol:
|
1512
|
+
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1513
1513
|
"""
|
1514
1514
|
cancel multiple orders
|
1515
1515
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-multiple-orders
|
@@ -1590,7 +1590,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1590
1590
|
}
|
1591
1591
|
return self.safe_string(statuses, status, status)
|
1592
1592
|
|
1593
|
-
def parse_order(self, order, market=None) -> Order:
|
1593
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1594
1594
|
#
|
1595
1595
|
# createOrder
|
1596
1596
|
#
|
@@ -1781,7 +1781,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1781
1781
|
'reduceOnly': reduceOnly,
|
1782
1782
|
}, market)
|
1783
1783
|
|
1784
|
-
async def fetch_order(self, id: str, symbol:
|
1784
|
+
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1785
1785
|
"""
|
1786
1786
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-order-details
|
1787
1787
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-list
|
@@ -1820,7 +1820,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1820
1820
|
order = self.safe_value(data, 0)
|
1821
1821
|
return self.parse_order(order)
|
1822
1822
|
|
1823
|
-
async def fetch_open_orders(self, symbol:
|
1823
|
+
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1824
1824
|
"""
|
1825
1825
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-order-list
|
1826
1826
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-list
|
@@ -1861,7 +1861,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1861
1861
|
data = self.safe_value(response, 'data', [])
|
1862
1862
|
return self.parse_orders(data, market, since, limit)
|
1863
1863
|
|
1864
|
-
async def fetch_closed_orders(self, symbol:
|
1864
|
+
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1865
1865
|
"""
|
1866
1866
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-history
|
1867
1867
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-order-history-last-3-months
|
@@ -1942,7 +1942,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
1942
1942
|
data = self.safe_value(response, 'data', [])
|
1943
1943
|
return self.parse_orders(data, market, since, limit)
|
1944
1944
|
|
1945
|
-
def parse_deposit_address(self, depositAddress, currency=None):
|
1945
|
+
def parse_deposit_address(self, depositAddress, currency: Currency = None):
|
1946
1946
|
#
|
1947
1947
|
# {
|
1948
1948
|
# "addr": "okbtothemoon",
|
@@ -2148,7 +2148,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2148
2148
|
rawTransfer = self.safe_value(data, 0, {})
|
2149
2149
|
return self.parse_transfer(rawTransfer, currency)
|
2150
2150
|
|
2151
|
-
def parse_transfer(self, transfer, currency=None):
|
2151
|
+
def parse_transfer(self, transfer, currency: Currency = None):
|
2152
2152
|
#
|
2153
2153
|
# transfer
|
2154
2154
|
#
|
@@ -2284,7 +2284,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2284
2284
|
transaction = self.safe_value(data, 0)
|
2285
2285
|
return self.parse_transaction(transaction, currency)
|
2286
2286
|
|
2287
|
-
async def fetch_deposits(self, code:
|
2287
|
+
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2288
2288
|
"""
|
2289
2289
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-get-deposit-history
|
2290
2290
|
fetch all deposits made to an account
|
@@ -2353,7 +2353,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2353
2353
|
data = self.safe_value(response, 'data', [])
|
2354
2354
|
return self.parse_transactions(data, currency, since, limit, params)
|
2355
2355
|
|
2356
|
-
async def fetch_withdrawals(self, code:
|
2356
|
+
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2357
2357
|
"""
|
2358
2358
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-get-withdrawal-history
|
2359
2359
|
fetch all withdrawals made from an account
|
@@ -2451,7 +2451,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2451
2451
|
}
|
2452
2452
|
return self.safe_string(statuses, status, status)
|
2453
2453
|
|
2454
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
2454
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
2455
2455
|
#
|
2456
2456
|
# withdraw
|
2457
2457
|
#
|
@@ -2544,7 +2544,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2544
2544
|
},
|
2545
2545
|
}
|
2546
2546
|
|
2547
|
-
async def fetch_my_trades(self, symbol:
|
2547
|
+
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2548
2548
|
"""
|
2549
2549
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-transaction-details-last-3-days
|
2550
2550
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-transaction-details-last-3-months
|
@@ -2575,7 +2575,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2575
2575
|
data = self.safe_value(response, 'data', [])
|
2576
2576
|
return self.parse_trades(data, market, since, limit)
|
2577
2577
|
|
2578
|
-
async def fetch_order_trades(self, id: str, symbol:
|
2578
|
+
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2579
2579
|
"""
|
2580
2580
|
fetch all the trades made from a single order
|
2581
2581
|
:param str id: order id
|
@@ -2594,7 +2594,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2594
2594
|
}
|
2595
2595
|
return await self.fetch_my_trades(symbol, since, limit, self.extend(request, params))
|
2596
2596
|
|
2597
|
-
async def fetch_ledger(self, code:
|
2597
|
+
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
2598
2598
|
"""
|
2599
2599
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-funding-asset-bills-details
|
2600
2600
|
:see: https://www.okcoin.com/docs-v5/en/#rest-api-account-get-bills-details-last-7-days
|
@@ -2696,7 +2696,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
2696
2696
|
}
|
2697
2697
|
return self.safe_string(types, type, type)
|
2698
2698
|
|
2699
|
-
def parse_ledger_entry(self, item, currency=None):
|
2699
|
+
def parse_ledger_entry(self, item, currency: Currency = None):
|
2700
2700
|
#
|
2701
2701
|
# privateGetAccountBills, privateGetAccountBillsArchive
|
2702
2702
|
#
|