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/bitso.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.bitso 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, Trade, Transaction
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import ArgumentsRequired
|
@@ -186,7 +186,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
186
186
|
},
|
187
187
|
})
|
188
188
|
|
189
|
-
def fetch_ledger(self, code:
|
189
|
+
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
190
190
|
"""
|
191
191
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
192
192
|
:param str code: unified currency code, default is None
|
@@ -235,7 +235,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
235
235
|
}
|
236
236
|
return self.safe_string(types, type, type)
|
237
237
|
|
238
|
-
def parse_ledger_entry(self, item, currency=None):
|
238
|
+
def parse_ledger_entry(self, item, currency: Currency = None):
|
239
239
|
#
|
240
240
|
# {
|
241
241
|
# "eid": "2510b3e2bc1c87f584500a18084f35ed",
|
@@ -541,7 +541,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
541
541
|
timestamp = self.parse8601(self.safe_string(orderbook, 'updated_at'))
|
542
542
|
return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 'price', 'amount')
|
543
543
|
|
544
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
544
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
545
545
|
#
|
546
546
|
# {
|
547
547
|
# "high":"37446.85",
|
@@ -666,7 +666,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
666
666
|
payload = self.safe_value(response, 'payload', [])
|
667
667
|
return self.parse_ohlcvs(payload, market, timeframe, since, limit)
|
668
668
|
|
669
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
669
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
670
670
|
#
|
671
671
|
# {
|
672
672
|
# "bucket_start_time":1648219140000,
|
@@ -690,7 +690,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
690
690
|
self.safe_number(ohlcv, 'volume'),
|
691
691
|
]
|
692
692
|
|
693
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
693
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
694
694
|
#
|
695
695
|
# fetchTrades(public)
|
696
696
|
#
|
@@ -874,7 +874,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
874
874
|
}
|
875
875
|
return result
|
876
876
|
|
877
|
-
def fetch_my_trades(self, symbol:
|
877
|
+
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit=25, params={}):
|
878
878
|
"""
|
879
879
|
fetch all trades made by the user
|
880
880
|
:param str symbol: unified market symbol
|
@@ -935,7 +935,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
935
935
|
'id': id,
|
936
936
|
}, market)
|
937
937
|
|
938
|
-
def cancel_order(self, id: str, symbol:
|
938
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
939
939
|
"""
|
940
940
|
cancels an open order
|
941
941
|
:param str id: order id
|
@@ -949,7 +949,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
949
949
|
}
|
950
950
|
return self.privateDeleteOrdersOid(self.extend(request, params))
|
951
951
|
|
952
|
-
def cancel_orders(self, ids, symbol:
|
952
|
+
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
953
953
|
"""
|
954
954
|
cancel multiple orders
|
955
955
|
:param str[] ids: order ids
|
@@ -980,7 +980,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
980
980
|
orders.append(self.parse_order(id, market))
|
981
981
|
return orders
|
982
982
|
|
983
|
-
def cancel_all_orders(self, symbol:
|
983
|
+
def cancel_all_orders(self, symbol: Str = None, params={}):
|
984
984
|
"""
|
985
985
|
cancel all open orders
|
986
986
|
:param None symbol: bitso does not support canceling orders for only a specific market
|
@@ -1012,7 +1012,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1012
1012
|
}
|
1013
1013
|
return self.safe_string(statuses, status, status)
|
1014
1014
|
|
1015
|
-
def parse_order(self, order, market=None) -> Order:
|
1015
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1016
1016
|
#
|
1017
1017
|
#
|
1018
1018
|
# canceledOrder
|
@@ -1058,7 +1058,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1058
1058
|
'trades': None,
|
1059
1059
|
}, market)
|
1060
1060
|
|
1061
|
-
def fetch_open_orders(self, symbol:
|
1061
|
+
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit=25, params={}) -> List[Order]:
|
1062
1062
|
"""
|
1063
1063
|
fetch all unfilled currently open orders
|
1064
1064
|
:param str symbol: unified market symbol
|
@@ -1092,7 +1092,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1092
1092
|
orders = self.parse_orders(response['payload'], market, since, limit)
|
1093
1093
|
return orders
|
1094
1094
|
|
1095
|
-
def fetch_order(self, id: str, symbol:
|
1095
|
+
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1096
1096
|
"""
|
1097
1097
|
fetches information on an order made by the user
|
1098
1098
|
:param str symbol: not used by bitso fetchOrder
|
@@ -1110,7 +1110,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1110
1110
|
return self.parse_order(payload[0])
|
1111
1111
|
raise OrderNotFound(self.id + ': The order ' + id + ' not found.')
|
1112
1112
|
|
1113
|
-
def fetch_order_trades(self, id: str, symbol:
|
1113
|
+
def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1114
1114
|
"""
|
1115
1115
|
fetch all the trades made from a single order
|
1116
1116
|
:param str id: order id
|
@@ -1128,7 +1128,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1128
1128
|
response = self.privateGetOrderTradesOid(self.extend(request, params))
|
1129
1129
|
return self.parse_trades(response['payload'], market)
|
1130
1130
|
|
1131
|
-
def fetch_deposit(self, id: str, code:
|
1131
|
+
def fetch_deposit(self, id: str, code: Str = None, params={}):
|
1132
1132
|
"""
|
1133
1133
|
fetch information on a deposit
|
1134
1134
|
:param str id: deposit id
|
@@ -1168,7 +1168,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1168
1168
|
first = self.safe_value(transactions, 0, {})
|
1169
1169
|
return self.parse_transaction(first)
|
1170
1170
|
|
1171
|
-
def fetch_deposits(self, code:
|
1171
|
+
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1172
1172
|
"""
|
1173
1173
|
fetch all deposits made to an account
|
1174
1174
|
:param str code: unified currency code
|
@@ -1520,7 +1520,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1520
1520
|
}
|
1521
1521
|
return self.safe_string(networksById, networkId, networkId)
|
1522
1522
|
|
1523
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1523
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1524
1524
|
#
|
1525
1525
|
# deposit
|
1526
1526
|
# {
|
ccxt/bitstamp.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.bitstamp 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
|
@@ -665,7 +665,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
665
665
|
orderbook['nonce'] = microtimestamp
|
666
666
|
return orderbook
|
667
667
|
|
668
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
668
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
669
669
|
#
|
670
670
|
# {
|
671
671
|
# "timestamp": "1686068944",
|
@@ -827,7 +827,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
827
827
|
return self.safe_market(marketId)
|
828
828
|
return None
|
829
829
|
|
830
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
830
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
831
831
|
#
|
832
832
|
# fetchTrades(public)
|
833
833
|
#
|
@@ -981,7 +981,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
981
981
|
#
|
982
982
|
return self.parse_trades(response, market, since, limit)
|
983
983
|
|
984
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
984
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
985
985
|
#
|
986
986
|
# {
|
987
987
|
# "high": "9064.77",
|
@@ -1111,7 +1111,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1111
1111
|
response = self.privatePostBalancePair(self.extend(request, params))
|
1112
1112
|
return self.parse_trading_fee(response, market)
|
1113
1113
|
|
1114
|
-
def parse_trading_fee(self, fee, market=None):
|
1114
|
+
def parse_trading_fee(self, fee, market: Market = None):
|
1115
1115
|
market = self.safe_market(None, market)
|
1116
1116
|
feeString = self.safe_string(fee, market['id'] + '_fee')
|
1117
1117
|
dividedFeeString = Precise.string_div(feeString, '100')
|
@@ -1297,7 +1297,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1297
1297
|
order['type'] = type
|
1298
1298
|
return order
|
1299
1299
|
|
1300
|
-
def cancel_order(self, id: str, symbol:
|
1300
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1301
1301
|
"""
|
1302
1302
|
cancels an open order
|
1303
1303
|
:param str id: order id
|
@@ -1311,7 +1311,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1311
1311
|
}
|
1312
1312
|
return self.privatePostCancelOrder(self.extend(request, params))
|
1313
1313
|
|
1314
|
-
def cancel_all_orders(self, symbol:
|
1314
|
+
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1315
1315
|
"""
|
1316
1316
|
cancel all open orders
|
1317
1317
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
@@ -1337,7 +1337,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1337
1337
|
}
|
1338
1338
|
return self.safe_string(statuses, status, status)
|
1339
1339
|
|
1340
|
-
def fetch_order_status(self, id: str, symbol:
|
1340
|
+
def fetch_order_status(self, id: str, symbol: Str = None, params={}):
|
1341
1341
|
self.load_markets()
|
1342
1342
|
clientOrderId = self.safe_value_2(params, 'client_order_id', 'clientOrderId')
|
1343
1343
|
request = {}
|
@@ -1349,7 +1349,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1349
1349
|
response = self.privatePostOrderStatus(self.extend(request, params))
|
1350
1350
|
return self.parse_order_status(self.safe_string(response, 'status'))
|
1351
1351
|
|
1352
|
-
def fetch_order(self, id: str, symbol:
|
1352
|
+
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1353
1353
|
"""
|
1354
1354
|
fetches information on an order made by the user
|
1355
1355
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1388,7 +1388,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1388
1388
|
#
|
1389
1389
|
return self.parse_order(response, market)
|
1390
1390
|
|
1391
|
-
def fetch_my_trades(self, symbol:
|
1391
|
+
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1392
1392
|
"""
|
1393
1393
|
fetch all trades made by the user
|
1394
1394
|
:param str symbol: unified market symbol
|
@@ -1411,7 +1411,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1411
1411
|
result = self.filter_by(response, 'type', '2')
|
1412
1412
|
return self.parse_trades(result, market, since, limit)
|
1413
1413
|
|
1414
|
-
def fetch_deposits_withdrawals(self, code:
|
1414
|
+
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1415
1415
|
"""
|
1416
1416
|
fetch history of deposits and withdrawals
|
1417
1417
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
@@ -1457,7 +1457,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1457
1457
|
transactions = self.filter_by_array(response, 'type', ['0', '1'], False)
|
1458
1458
|
return self.parse_transactions(transactions, currency, since, limit)
|
1459
1459
|
|
1460
|
-
def fetch_withdrawals(self, code:
|
1460
|
+
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1461
1461
|
"""
|
1462
1462
|
fetch all withdrawals made from an account
|
1463
1463
|
:param str code: unified currency code
|
@@ -1499,7 +1499,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1499
1499
|
#
|
1500
1500
|
return self.parse_transactions(response, None, since, limit)
|
1501
1501
|
|
1502
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1502
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1503
1503
|
#
|
1504
1504
|
# fetchDepositsWithdrawals
|
1505
1505
|
#
|
@@ -1627,7 +1627,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1627
1627
|
}
|
1628
1628
|
return self.safe_string(statuses, status, status)
|
1629
1629
|
|
1630
|
-
def parse_order(self, order, market=None) -> Order:
|
1630
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1631
1631
|
#
|
1632
1632
|
# from fetch order:
|
1633
1633
|
# {status: "Finished",
|
@@ -1714,7 +1714,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1714
1714
|
}
|
1715
1715
|
return self.safe_string(types, type, type)
|
1716
1716
|
|
1717
|
-
def parse_ledger_entry(self, item, currency=None):
|
1717
|
+
def parse_ledger_entry(self, item, currency: Currency = None):
|
1718
1718
|
#
|
1719
1719
|
# [
|
1720
1720
|
# {
|
@@ -1801,7 +1801,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1801
1801
|
'fee': parsedTransaction['fee'],
|
1802
1802
|
}
|
1803
1803
|
|
1804
|
-
def fetch_ledger(self, code:
|
1804
|
+
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1805
1805
|
"""
|
1806
1806
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
1807
1807
|
:param str code: unified currency code, default is None
|
@@ -1820,7 +1820,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1820
1820
|
currency = self.currency(code)
|
1821
1821
|
return self.parse_ledger(response, currency, since, limit)
|
1822
1822
|
|
1823
|
-
def fetch_open_orders(self, symbol:
|
1823
|
+
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1824
1824
|
"""
|
1825
1825
|
fetch all unfilled currently open orders
|
1826
1826
|
:param str symbol: unified market symbol
|
ccxt/bittrex.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.bittrex 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
|
@@ -512,7 +512,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
512
512
|
}
|
513
513
|
return result
|
514
514
|
|
515
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
515
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
516
516
|
#
|
517
517
|
# ticker
|
518
518
|
#
|
@@ -673,7 +673,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
673
673
|
#
|
674
674
|
return self.parse_tickers(response, symbols)
|
675
675
|
|
676
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
676
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
677
677
|
#
|
678
678
|
# public fetchTrades
|
679
679
|
#
|
@@ -833,7 +833,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
833
833
|
#
|
834
834
|
return self.parse_trading_fees(response)
|
835
835
|
|
836
|
-
def parse_trading_fee(self, fee, market=None):
|
836
|
+
def parse_trading_fee(self, fee, market: Market = None):
|
837
837
|
marketId = self.safe_string(fee, 'marketSymbol')
|
838
838
|
maker = self.safe_number(fee, 'makerRate')
|
839
839
|
taker = self.safe_number(fee, 'takerRate')
|
@@ -854,7 +854,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
854
854
|
result[symbol] = fee
|
855
855
|
return result
|
856
856
|
|
857
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
857
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
858
858
|
#
|
859
859
|
# {
|
860
860
|
# "startsAt":"2020-06-12T02:35:00Z",
|
@@ -935,7 +935,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
935
935
|
#
|
936
936
|
return self.parse_ohlcvs(response, market, timeframe, since, limit)
|
937
937
|
|
938
|
-
def fetch_open_orders(self, symbol:
|
938
|
+
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
939
939
|
"""
|
940
940
|
fetch all unfilled currently open orders
|
941
941
|
:param str symbol: unified market symbol
|
@@ -1001,7 +1001,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1001
1001
|
#
|
1002
1002
|
return self.parse_orders(response, market, since, limit)
|
1003
1003
|
|
1004
|
-
def fetch_order_trades(self, id: str, symbol:
|
1004
|
+
def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1005
1005
|
"""
|
1006
1006
|
fetch all the trades made from a single order
|
1007
1007
|
:param str id: order id
|
@@ -1186,7 +1186,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1186
1186
|
#
|
1187
1187
|
return self.parse_order(response, market)
|
1188
1188
|
|
1189
|
-
def cancel_order(self, id: str, symbol:
|
1189
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1190
1190
|
"""
|
1191
1191
|
cancels an open order
|
1192
1192
|
:param str id: order id
|
@@ -1263,7 +1263,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1263
1263
|
'status': 'canceled',
|
1264
1264
|
})
|
1265
1265
|
|
1266
|
-
def cancel_all_orders(self, symbol:
|
1266
|
+
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1267
1267
|
"""
|
1268
1268
|
cancel all open orders
|
1269
1269
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
@@ -1307,7 +1307,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1307
1307
|
orders.append(result)
|
1308
1308
|
return self.parse_orders(orders, market)
|
1309
1309
|
|
1310
|
-
def fetch_deposit(self, id: str, code:
|
1310
|
+
def fetch_deposit(self, id: str, code: Str = None, params={}):
|
1311
1311
|
"""
|
1312
1312
|
fetch data on a currency deposit via the deposit id
|
1313
1313
|
:param str id: deposit id
|
@@ -1326,7 +1326,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1326
1326
|
transactions = self.parse_transactions(response, currency, None, None)
|
1327
1327
|
return self.safe_value(transactions, 0)
|
1328
1328
|
|
1329
|
-
def fetch_deposits(self, code:
|
1329
|
+
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1330
1330
|
"""
|
1331
1331
|
fetch all deposits made to an account
|
1332
1332
|
:param str code: unified currency code
|
@@ -1365,7 +1365,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1365
1365
|
# return self.parse_transactions(response, currency, since, limit)
|
1366
1366
|
return self.parse_transactions(response, currency, None, limit)
|
1367
1367
|
|
1368
|
-
def fetch_pending_deposits(self, code:
|
1368
|
+
def fetch_pending_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1369
1369
|
"""
|
1370
1370
|
fetch all pending deposits made from an account
|
1371
1371
|
:param str code: unified currency code
|
@@ -1380,7 +1380,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1380
1380
|
self.load_markets()
|
1381
1381
|
return self.fetch_deposits(code, since, limit, self.extend(params, {'status': 'pending'}))
|
1382
1382
|
|
1383
|
-
def fetch_withdrawal(self, id: str, code:
|
1383
|
+
def fetch_withdrawal(self, id: str, code: Str = None, params={}):
|
1384
1384
|
"""
|
1385
1385
|
fetch data on a currency withdrawal via the withdrawal id
|
1386
1386
|
:param str id: withdrawal id
|
@@ -1399,7 +1399,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1399
1399
|
transactions = self.parse_transactions(response, currency, None, None)
|
1400
1400
|
return self.safe_value(transactions, 0)
|
1401
1401
|
|
1402
|
-
def fetch_withdrawals(self, code:
|
1402
|
+
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1403
1403
|
"""
|
1404
1404
|
fetch all withdrawals made from an account
|
1405
1405
|
:param str code: unified currency code
|
@@ -1435,7 +1435,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1435
1435
|
response = getattr(self, method)(self.extend(request, params))
|
1436
1436
|
return self.parse_transactions(response, currency, since, limit)
|
1437
1437
|
|
1438
|
-
def fetch_pending_withdrawals(self, code:
|
1438
|
+
def fetch_pending_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1439
1439
|
"""
|
1440
1440
|
fetch all pending withdrawals made from an account
|
1441
1441
|
:param str code: unified currency code
|
@@ -1450,7 +1450,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1450
1450
|
self.load_markets()
|
1451
1451
|
return self.fetch_withdrawals(code, since, limit, self.extend(params, {'status': 'pending'}))
|
1452
1452
|
|
1453
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1453
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1454
1454
|
#
|
1455
1455
|
# fetchDeposits
|
1456
1456
|
#
|
@@ -1576,7 +1576,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1576
1576
|
}
|
1577
1577
|
return self.safe_string(timeInForces, timeInForce, timeInForce)
|
1578
1578
|
|
1579
|
-
def parse_order(self, order, market=None) -> Order:
|
1579
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1580
1580
|
#
|
1581
1581
|
# Spot createOrder, fetchOpenOrders, fetchClosedOrders, fetchOrder, cancelOrder
|
1582
1582
|
#
|
@@ -1711,7 +1711,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1711
1711
|
}
|
1712
1712
|
return self.safe_string(statuses, status, status)
|
1713
1713
|
|
1714
|
-
def fetch_order(self, id: str, symbol:
|
1714
|
+
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1715
1715
|
"""
|
1716
1716
|
fetches information on an order made by the user
|
1717
1717
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1743,7 +1743,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1743
1743
|
raise e
|
1744
1744
|
return self.parse_order(response, market)
|
1745
1745
|
|
1746
|
-
def fetch_my_trades(self, symbol:
|
1746
|
+
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1747
1747
|
"""
|
1748
1748
|
fetch all trades made by the user
|
1749
1749
|
:param str symbol: unified market symbol
|
@@ -1761,13 +1761,11 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1761
1761
|
market = None
|
1762
1762
|
if symbol is not None:
|
1763
1763
|
market = self.market(symbol)
|
1764
|
-
symbol = market['symbol']
|
1765
1764
|
request['marketSymbol'] = market['id']
|
1766
1765
|
response = self.privateGetExecutions(self.extend(request, params))
|
1767
|
-
|
1768
|
-
return trades
|
1766
|
+
return self.parse_trades(response, market, since, limit)
|
1769
1767
|
|
1770
|
-
def fetch_closed_orders(self, symbol:
|
1768
|
+
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1771
1769
|
"""
|
1772
1770
|
fetches information on multiple closed orders made by the user
|
1773
1771
|
:param str symbol: unified market symbol of the market orders were made in
|
@@ -1912,7 +1910,7 @@ class bittrex(Exchange, ImplicitAPI):
|
|
1912
1910
|
'info': response,
|
1913
1911
|
}
|
1914
1912
|
|
1915
|
-
def parse_deposit_withdraw_fee(self, fee, currency=None):
|
1913
|
+
def parse_deposit_withdraw_fee(self, fee, currency: Currency = None):
|
1916
1914
|
#
|
1917
1915
|
# {
|
1918
1916
|
# "symbol": "APXP",
|
ccxt/bitvavo.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.bitvavo 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
|
@@ -544,7 +544,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
544
544
|
#
|
545
545
|
return self.parse_ticker(response, market)
|
546
546
|
|
547
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
547
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
548
548
|
#
|
549
549
|
# fetchTicker
|
550
550
|
#
|
@@ -667,7 +667,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
667
667
|
#
|
668
668
|
return self.parse_trades(response, market, since, limit)
|
669
669
|
|
670
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
670
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
671
671
|
#
|
672
672
|
# fetchTrades(public)
|
673
673
|
#
|
@@ -831,7 +831,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
831
831
|
orderbook['nonce'] = self.safe_integer(response, 'nonce')
|
832
832
|
return orderbook
|
833
833
|
|
834
|
-
def parse_ohlcv(self, ohlcv, market=None) -> list:
|
834
|
+
def parse_ohlcv(self, ohlcv, market: Market = None) -> list:
|
835
835
|
#
|
836
836
|
# [
|
837
837
|
# 1590383700000,
|
@@ -1100,7 +1100,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1100
1100
|
else:
|
1101
1101
|
raise ArgumentsRequired(self.id + ' editOrder() requires an amount argument, or a price argument, or non-empty params')
|
1102
1102
|
|
1103
|
-
def cancel_order(self, id: str, symbol:
|
1103
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1104
1104
|
"""
|
1105
1105
|
cancels an open order
|
1106
1106
|
:param str id: order id
|
@@ -1123,7 +1123,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1123
1123
|
#
|
1124
1124
|
return self.parse_order(response, market)
|
1125
1125
|
|
1126
|
-
def cancel_all_orders(self, symbol:
|
1126
|
+
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1127
1127
|
"""
|
1128
1128
|
cancel all open orders
|
1129
1129
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
@@ -1146,7 +1146,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1146
1146
|
#
|
1147
1147
|
return self.parse_orders(response, market)
|
1148
1148
|
|
1149
|
-
def fetch_order(self, id: str, symbol:
|
1149
|
+
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1150
1150
|
"""
|
1151
1151
|
fetches information on an order made by the user
|
1152
1152
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1197,7 +1197,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1197
1197
|
#
|
1198
1198
|
return self.parse_order(response, market)
|
1199
1199
|
|
1200
|
-
def fetch_orders(self, symbol:
|
1200
|
+
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1201
1201
|
"""
|
1202
1202
|
:see: https://docs.bitvavo.com/#tag/Orders/paths/~1orders/get
|
1203
1203
|
fetches information on multiple orders made by the user
|
@@ -1268,7 +1268,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1268
1268
|
#
|
1269
1269
|
return self.parse_orders(response, market, since, limit)
|
1270
1270
|
|
1271
|
-
def fetch_open_orders(self, symbol:
|
1271
|
+
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1272
1272
|
"""
|
1273
1273
|
fetch all unfilled currently open orders
|
1274
1274
|
:param str symbol: unified market symbol
|
@@ -1342,7 +1342,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1342
1342
|
}
|
1343
1343
|
return self.safe_string(statuses, status, status)
|
1344
1344
|
|
1345
|
-
def parse_order(self, order, market=None) -> Order:
|
1345
|
+
def parse_order(self, order, market: Market = None) -> Order:
|
1346
1346
|
#
|
1347
1347
|
# cancelOrder, cancelAllOrders
|
1348
1348
|
#
|
@@ -1444,7 +1444,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1444
1444
|
'trades': rawTrades,
|
1445
1445
|
}, market)
|
1446
1446
|
|
1447
|
-
def fetch_my_trades(self, symbol:
|
1447
|
+
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1448
1448
|
"""
|
1449
1449
|
:see: https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
|
1450
1450
|
fetch all trades made by the user
|
@@ -1529,7 +1529,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1529
1529
|
#
|
1530
1530
|
return self.parse_transaction(response, currency)
|
1531
1531
|
|
1532
|
-
def fetch_withdrawals(self, code:
|
1532
|
+
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1533
1533
|
"""
|
1534
1534
|
fetch all withdrawals made from an account
|
1535
1535
|
:param str code: unified currency code
|
@@ -1570,7 +1570,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1570
1570
|
#
|
1571
1571
|
return self.parse_transactions(response, currency, since, limit, {'type': 'withdrawal'})
|
1572
1572
|
|
1573
|
-
def fetch_deposits(self, code:
|
1573
|
+
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1574
1574
|
"""
|
1575
1575
|
fetch all deposits made to an account
|
1576
1576
|
:param str code: unified currency code
|
@@ -1623,7 +1623,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1623
1623
|
}
|
1624
1624
|
return self.safe_string(statuses, status, status)
|
1625
1625
|
|
1626
|
-
def parse_transaction(self, transaction, currency=None) -> Transaction:
|
1626
|
+
def parse_transaction(self, transaction, currency: Currency = None) -> Transaction:
|
1627
1627
|
#
|
1628
1628
|
# withdraw
|
1629
1629
|
#
|
@@ -1701,7 +1701,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1701
1701
|
'internal': None,
|
1702
1702
|
}
|
1703
1703
|
|
1704
|
-
def parse_deposit_withdraw_fee(self, fee, currency=None):
|
1704
|
+
def parse_deposit_withdraw_fee(self, fee, currency: Currency = None):
|
1705
1705
|
#
|
1706
1706
|
# {
|
1707
1707
|
# "symbol": "1INCH",
|
ccxt/bl3p.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.bl3p import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
from ccxt.base.types import Balances, Int, OrderBook, OrderSide, OrderType,
|
9
|
+
from ccxt.base.types import Balances, Int, Market, OrderBook, OrderSide, OrderType, Str, Ticker, Trade
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.decimal_to_precision import TICK_SIZE
|
12
12
|
from ccxt.base.precise import Precise
|
@@ -166,7 +166,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
166
166
|
orderbook = self.safe_value(response, 'data')
|
167
167
|
return self.parse_order_book(orderbook, market['symbol'], None, 'bids', 'asks', 'price_int', 'amount_int')
|
168
168
|
|
169
|
-
def parse_ticker(self, ticker, market=None) -> Ticker:
|
169
|
+
def parse_ticker(self, ticker, market: Market = None) -> Ticker:
|
170
170
|
#
|
171
171
|
# {
|
172
172
|
# "currency":"BTC",
|
@@ -238,7 +238,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
238
238
|
#
|
239
239
|
return self.parse_ticker(ticker, market)
|
240
240
|
|
241
|
-
def parse_trade(self, trade, market=None) -> Trade:
|
241
|
+
def parse_trade(self, trade, market: Market = None) -> Trade:
|
242
242
|
#
|
243
243
|
# fetchTrades
|
244
244
|
#
|
@@ -386,7 +386,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
386
386
|
'id': orderId,
|
387
387
|
}, market)
|
388
388
|
|
389
|
-
def cancel_order(self, id: str, symbol:
|
389
|
+
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
390
390
|
"""
|
391
391
|
cancels an open order
|
392
392
|
:param str id: order id
|