ccxt 4.0.75__py2.py3-none-any.whl → 4.0.77__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 +1 -1
- ccxt/abstract/bingx.py +2 -0
- ccxt/abstract/coinsph.py +5 -0
- ccxt/abstract/gate.py +24 -0
- ccxt/abstract/gateio.py +24 -0
- ccxt/ace.py +2 -2
- ccxt/alpaca.py +1 -1
- ccxt/ascendex.py +3 -3
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +2 -2
- ccxt/async_support/alpaca.py +1 -1
- ccxt/async_support/ascendex.py +3 -3
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +5 -5
- ccxt/async_support/bingx.py +72 -21
- ccxt/async_support/bit2c.py +2 -2
- ccxt/async_support/bitbank.py +2 -2
- ccxt/async_support/bitbns.py +2 -2
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +4 -4
- ccxt/async_support/bitflyer.py +2 -2
- ccxt/async_support/bitforex.py +2 -2
- ccxt/async_support/bitget.py +5 -5
- ccxt/async_support/bithumb.py +2 -2
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +5 -5
- ccxt/async_support/bitopro.py +3 -3
- ccxt/async_support/bitpanda.py +2 -2
- ccxt/async_support/bitrue.py +3 -3
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +2 -2
- ccxt/async_support/bitstamp1.py +2 -2
- ccxt/async_support/bittrex.py +3 -3
- ccxt/async_support/bitvavo.py +3 -3
- ccxt/async_support/bkex.py +4 -4
- ccxt/async_support/bl3p.py +2 -2
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/btcalpha.py +2 -2
- ccxt/async_support/btcbox.py +2 -2
- ccxt/async_support/btcmarkets.py +2 -2
- ccxt/async_support/btctradeua.py +2 -2
- ccxt/async_support/btcturk.py +2 -2
- ccxt/async_support/bybit.py +6 -6
- ccxt/async_support/cex.py +2 -2
- ccxt/async_support/coinbase.py +3 -3
- ccxt/async_support/coinbasepro.py +2 -2
- ccxt/async_support/coincheck.py +2 -2
- ccxt/async_support/coinex.py +6 -6
- ccxt/async_support/coinfalcon.py +2 -2
- ccxt/async_support/coinmate.py +2 -2
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +7 -2
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +5 -5
- ccxt/async_support/currencycom.py +2 -2
- ccxt/async_support/delta.py +2 -2
- ccxt/async_support/deribit.py +3 -3
- ccxt/async_support/digifinex.py +4 -4
- ccxt/async_support/exmo.py +2 -2
- ccxt/async_support/gate.py +46 -4
- ccxt/async_support/gemini.py +3 -3
- ccxt/async_support/hitbtc.py +4 -4
- ccxt/async_support/hollaex.py +3 -3
- ccxt/async_support/huobi.py +5 -5
- ccxt/async_support/huobijp.py +2 -2
- ccxt/async_support/idex.py +2 -2
- ccxt/async_support/independentreserve.py +2 -2
- ccxt/async_support/indodax.py +2 -2
- ccxt/async_support/kraken.py +2 -2
- ccxt/async_support/kucoin.py +4 -4
- ccxt/async_support/kucoinfutures.py +5 -5
- ccxt/async_support/kuna.py +2 -2
- ccxt/async_support/latoken.py +2 -2
- ccxt/async_support/lbank.py +2 -2
- ccxt/async_support/lbank2.py +2 -2
- ccxt/async_support/luno.py +2 -2
- ccxt/async_support/lykke.py +2 -2
- ccxt/async_support/mercado.py +2 -2
- ccxt/async_support/mexc.py +6 -3
- ccxt/async_support/ndax.py +2 -2
- ccxt/async_support/novadax.py +2 -2
- ccxt/async_support/oceanex.py +2 -2
- ccxt/async_support/okcoin.py +2 -2
- ccxt/async_support/okx.py +4 -4
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +2 -2
- ccxt/async_support/poloniex.py +149 -68
- ccxt/async_support/poloniexfutures.py +2 -2
- ccxt/async_support/probit.py +2 -2
- ccxt/async_support/tidex.py +2 -2
- ccxt/async_support/timex.py +2 -2
- ccxt/async_support/tokocrypto.py +2 -2
- ccxt/async_support/upbit.py +2 -2
- ccxt/async_support/wavesexchange.py +3 -3
- ccxt/async_support/wazirx.py +2 -2
- ccxt/async_support/whitebit.py +4 -3
- ccxt/async_support/woo.py +2 -2
- ccxt/async_support/yobit.py +2 -2
- ccxt/async_support/zaif.py +2 -2
- ccxt/async_support/zonda.py +2 -2
- ccxt/base/exchange.py +3 -3
- ccxt/bigone.py +2 -2
- ccxt/binance.py +5 -5
- ccxt/bingx.py +72 -21
- ccxt/bit2c.py +2 -2
- ccxt/bitbank.py +2 -2
- ccxt/bitbns.py +2 -2
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +4 -4
- ccxt/bitflyer.py +2 -2
- ccxt/bitforex.py +2 -2
- ccxt/bitget.py +5 -5
- ccxt/bithumb.py +2 -2
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +5 -5
- ccxt/bitopro.py +3 -3
- ccxt/bitpanda.py +2 -2
- ccxt/bitrue.py +3 -3
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +2 -2
- ccxt/bitstamp1.py +2 -2
- ccxt/bittrex.py +3 -3
- ccxt/bitvavo.py +3 -3
- ccxt/bkex.py +4 -4
- ccxt/bl3p.py +2 -2
- ccxt/blockchaincom.py +1 -1
- ccxt/btcalpha.py +2 -2
- ccxt/btcbox.py +2 -2
- ccxt/btcmarkets.py +2 -2
- ccxt/btctradeua.py +2 -2
- ccxt/btcturk.py +2 -2
- ccxt/bybit.py +6 -6
- ccxt/cex.py +2 -2
- ccxt/coinbase.py +3 -3
- ccxt/coinbasepro.py +2 -2
- ccxt/coincheck.py +2 -2
- ccxt/coinex.py +6 -6
- ccxt/coinfalcon.py +2 -2
- ccxt/coinmate.py +2 -2
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +7 -2
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +5 -5
- ccxt/currencycom.py +2 -2
- ccxt/delta.py +2 -2
- ccxt/deribit.py +3 -3
- ccxt/digifinex.py +4 -4
- ccxt/exmo.py +2 -2
- ccxt/gate.py +46 -4
- ccxt/gemini.py +3 -3
- ccxt/hitbtc.py +4 -4
- ccxt/hollaex.py +3 -3
- ccxt/huobi.py +5 -5
- ccxt/huobijp.py +2 -2
- ccxt/idex.py +2 -2
- ccxt/independentreserve.py +2 -2
- ccxt/indodax.py +2 -2
- ccxt/kraken.py +2 -2
- ccxt/kucoin.py +4 -4
- ccxt/kucoinfutures.py +5 -5
- ccxt/kuna.py +2 -2
- ccxt/latoken.py +2 -2
- ccxt/lbank.py +2 -2
- ccxt/lbank2.py +2 -2
- ccxt/luno.py +2 -2
- ccxt/lykke.py +2 -2
- ccxt/mercado.py +2 -2
- ccxt/mexc.py +6 -3
- ccxt/ndax.py +2 -2
- ccxt/novadax.py +2 -2
- ccxt/oceanex.py +2 -2
- ccxt/okcoin.py +2 -2
- ccxt/okx.py +4 -4
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +2 -2
- ccxt/poloniex.py +149 -68
- ccxt/poloniexfutures.py +2 -2
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +2 -2
- ccxt/pro/binance.py +6 -6
- ccxt/pro/bitfinex.py +1 -1
- ccxt/pro/bitfinex2.py +2 -2
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitmart.py +1 -1
- ccxt/pro/bitmex.py +2 -2
- ccxt/pro/bitopro.py +2 -2
- ccxt/pro/bitpanda.py +6 -6
- ccxt/pro/bitrue.py +1 -1
- ccxt/pro/bitstamp.py +1 -1
- ccxt/pro/bittrex.py +2 -2
- ccxt/pro/bitvavo.py +1 -1
- ccxt/pro/blockchaincom.py +5 -5
- ccxt/pro/bybit.py +1 -1
- ccxt/pro/cex.py +4 -4
- ccxt/pro/coinbase.py +5 -5
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +2 -2
- ccxt/pro/cryptocom.py +3 -3
- ccxt/pro/currencycom.py +2 -2
- ccxt/pro/deribit.py +3 -3
- ccxt/pro/exmo.py +3 -3
- ccxt/pro/gate.py +2 -2
- ccxt/pro/gemini.py +1 -1
- ccxt/pro/hitbtc.py +1 -1
- ccxt/pro/hollaex.py +2 -2
- ccxt/pro/huobi.py +2 -2
- ccxt/pro/huobijp.py +1 -1
- ccxt/pro/idex.py +1 -1
- ccxt/pro/independentreserve.py +1 -1
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +5 -5
- ccxt/pro/kucoin.py +2 -2
- ccxt/pro/kucoinfutures.py +3 -2
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +6 -6
- ccxt/pro/ndax.py +1 -1
- ccxt/pro/okcoin.py +2 -2
- ccxt/pro/okx.py +10 -7
- ccxt/pro/phemex.py +2 -2
- ccxt/pro/poloniex.py +6 -6
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +6 -6
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +3 -3
- ccxt/pro/whitebit.py +2 -2
- ccxt/probit.py +2 -2
- ccxt/tidex.py +2 -2
- ccxt/timex.py +2 -2
- ccxt/tokocrypto.py +2 -2
- ccxt/upbit.py +2 -2
- ccxt/wavesexchange.py +3 -3
- ccxt/wazirx.py +2 -2
- ccxt/whitebit.py +4 -3
- ccxt/woo.py +2 -2
- ccxt/yobit.py +2 -2
- ccxt/zaif.py +2 -2
- ccxt/zonda.py +2 -2
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/METADATA +4 -4
- ccxt-4.0.77.dist-info/RECORD +456 -0
- ccxt-4.0.75.dist-info/RECORD +0 -456
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/WHEEL +0 -0
- {ccxt-4.0.75.dist-info → ccxt-4.0.77.dist-info}/top_level.txt +0 -0
ccxt/pro/mexc.py
CHANGED
@@ -69,7 +69,7 @@ class mexc(ccxt.async_support.mexc):
|
|
69
69
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
70
70
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
71
71
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
72
|
-
:returns dict: a `ticker structure <https://
|
72
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
73
73
|
"""
|
74
74
|
await self.load_markets()
|
75
75
|
market = self.market(symbol)
|
@@ -338,7 +338,7 @@ class mexc(ccxt.async_support.mexc):
|
|
338
338
|
:param str symbol: unified symbol of the market to fetch the order book for
|
339
339
|
:param int [limit]: the maximum amount of order book entries to return
|
340
340
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
341
|
-
:returns dict: A dictionary of `order book structures <https://
|
341
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
342
342
|
"""
|
343
343
|
await self.load_markets()
|
344
344
|
market = self.market(symbol)
|
@@ -490,7 +490,7 @@ class mexc(ccxt.async_support.mexc):
|
|
490
490
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
491
491
|
:param int [limit]: the maximum amount of trades to fetch
|
492
492
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
493
|
-
:returns dict[]: a list of `trade structures <https://
|
493
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
494
494
|
"""
|
495
495
|
await self.load_markets()
|
496
496
|
market = self.market(symbol)
|
@@ -570,7 +570,7 @@ class mexc(ccxt.async_support.mexc):
|
|
570
570
|
:param int [since]: the earliest time in ms to fetch trades for
|
571
571
|
:param int [limit]: the maximum number of trade structures to retrieve
|
572
572
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
573
|
-
:returns dict[]: a list of [trade structures]{@link https://
|
573
|
+
:returns dict[]: a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
574
574
|
"""
|
575
575
|
await self.load_markets()
|
576
576
|
messageHash = 'myTrades'
|
@@ -689,7 +689,7 @@ class mexc(ccxt.async_support.mexc):
|
|
689
689
|
:param int [limit]: the maximum number of orde structures to retrieve
|
690
690
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
691
691
|
:params string|None params.type: the type of orders to retrieve, can be 'spot' or 'margin'
|
692
|
-
:returns dict[]: a list of `order structures <https://
|
692
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
693
693
|
"""
|
694
694
|
await self.load_markets()
|
695
695
|
params = self.omit(params, 'type')
|
@@ -926,7 +926,7 @@ class mexc(ccxt.async_support.mexc):
|
|
926
926
|
see https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
|
927
927
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
928
928
|
:param dict [params]: extra parameters specific to the mexc3 api endpoint
|
929
|
-
:returns dict: a `balance structure <https://
|
929
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
930
930
|
"""
|
931
931
|
await self.load_markets()
|
932
932
|
type = None
|
ccxt/pro/ndax.py
CHANGED
@@ -111,7 +111,7 @@ class ndax(ccxt.async_support.ndax):
|
|
111
111
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
112
112
|
:param int [limit]: the maximum amount of trades to fetch
|
113
113
|
:param dict [params]: extra parameters specific to the ndax api endpoint
|
114
|
-
:returns dict[]: a list of `trade structures <https://
|
114
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
115
115
|
"""
|
116
116
|
omsId = self.safe_integer(self.options, 'omsId', 1)
|
117
117
|
await self.load_markets()
|
ccxt/pro/okcoin.py
CHANGED
@@ -75,7 +75,7 @@ class okcoin(ccxt.async_support.okcoin):
|
|
75
75
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
76
76
|
:param int [limit]: the maximum amount of trades to fetch
|
77
77
|
:param dict [params]: extra parameters specific to the okcoin api endpoint
|
78
|
-
:returns dict[]: a list of `trade structures <https://
|
78
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
79
79
|
"""
|
80
80
|
await self.load_markets()
|
81
81
|
symbol = self.symbol(symbol)
|
@@ -457,7 +457,7 @@ class okcoin(ccxt.async_support.okcoin):
|
|
457
457
|
"""
|
458
458
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
459
459
|
:param dict [params]: extra parameters specific to the okcoin api endpoint
|
460
|
-
:returns dict: a `balance structure <https://
|
460
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
461
461
|
"""
|
462
462
|
defaultType = self.safe_string_2(self.options, 'watchBalance', 'defaultType')
|
463
463
|
type = self.safe_string(params, 'type', defaultType)
|
ccxt/pro/okx.py
CHANGED
@@ -11,6 +11,7 @@ from ccxt.base.types import OrderType
|
|
11
11
|
from ccxt.async_support.base.ws.client import Client
|
12
12
|
from typing import Optional
|
13
13
|
from typing import List
|
14
|
+
from ccxt.base.errors import ArgumentsRequired
|
14
15
|
from ccxt.base.errors import BadRequest
|
15
16
|
from ccxt.base.errors import InvalidNonce
|
16
17
|
from ccxt.base.errors import AuthenticationError
|
@@ -160,7 +161,7 @@ class okx(ccxt.async_support.okx):
|
|
160
161
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
161
162
|
:param int [limit]: the maximum amount of trades to fetch
|
162
163
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
163
|
-
:returns dict[]: a list of `trade structures <https://
|
164
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
164
165
|
"""
|
165
166
|
await self.load_markets()
|
166
167
|
symbol = self.symbol(symbol)
|
@@ -226,6 +227,8 @@ class okx(ccxt.async_support.okx):
|
|
226
227
|
:param str [params.channel]: the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
227
228
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
228
229
|
"""
|
230
|
+
if self.is_empty(symbols):
|
231
|
+
raise ArgumentsRequired(self.id + ' watchTickers requires a list of symbols')
|
229
232
|
channel = None
|
230
233
|
channel, params = self.handle_option_and_params(params, 'watchTickers', 'channel', 'tickers')
|
231
234
|
newTickers = await self.subscribe_multiple('public', channel, symbols, params)
|
@@ -604,7 +607,7 @@ class okx(ccxt.async_support.okx):
|
|
604
607
|
"""
|
605
608
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
606
609
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
607
|
-
:returns dict: a `balance structure <https://
|
610
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
608
611
|
"""
|
609
612
|
await self.load_markets()
|
610
613
|
await self.authenticate()
|
@@ -935,7 +938,7 @@ class okx(ccxt.async_support.okx):
|
|
935
938
|
:param float|None [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
936
939
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
937
940
|
:param boolean params['test']: test order, default False
|
938
|
-
:returns dict: an `order structure <https://
|
941
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
939
942
|
"""
|
940
943
|
await self.load_markets()
|
941
944
|
await self.authenticate()
|
@@ -999,7 +1002,7 @@ class okx(ccxt.async_support.okx):
|
|
999
1002
|
:param float amount: how much of the currency you want to trade in units of the base currency
|
1000
1003
|
:param float|None [price]: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
1001
1004
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
1002
|
-
:returns dict: an `order structure <https://
|
1005
|
+
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
1003
1006
|
"""
|
1004
1007
|
await self.load_markets()
|
1005
1008
|
await self.authenticate()
|
@@ -1023,7 +1026,7 @@ class okx(ccxt.async_support.okx):
|
|
1023
1026
|
:param str symbol: unified market symbol, default is None
|
1024
1027
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
1025
1028
|
:param str [params.clOrdId]: client order id
|
1026
|
-
:returns dict: an list of `order structures <https://
|
1029
|
+
:returns dict: an list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
1027
1030
|
"""
|
1028
1031
|
if symbol is None:
|
1029
1032
|
raise BadRequest(self.id + ' cancelOrderWs() requires a symbol argument')
|
@@ -1054,7 +1057,7 @@ class okx(ccxt.async_support.okx):
|
|
1054
1057
|
:param str[] ids: order ids
|
1055
1058
|
:param str symbol: unified market symbol, default is None
|
1056
1059
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
1057
|
-
:returns dict: an list of `order structures <https://
|
1060
|
+
:returns dict: an list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
1058
1061
|
"""
|
1059
1062
|
idsLength = len(ids)
|
1060
1063
|
if idsLength > 20:
|
@@ -1085,7 +1088,7 @@ class okx(ccxt.async_support.okx):
|
|
1085
1088
|
cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
1086
1089
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1087
1090
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
1088
|
-
:returns dict[]: a list of `order structures <https://
|
1091
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
1089
1092
|
"""
|
1090
1093
|
if symbol is None:
|
1091
1094
|
raise BadRequest(self.id + ' cancelAllOrdersWs() requires a symbol argument')
|
ccxt/pro/phemex.py
CHANGED
@@ -292,7 +292,7 @@ class phemex(ccxt.async_support.phemex):
|
|
292
292
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
293
293
|
:param dict [params]: extra parameters specific to the phemex api endpoint
|
294
294
|
:param str [params.settle]: set to USDT to use hedged perpetual api
|
295
|
-
:returns dict: a `balance structure <https://
|
295
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
296
296
|
"""
|
297
297
|
await self.load_markets()
|
298
298
|
type = None
|
@@ -508,7 +508,7 @@ class phemex(ccxt.async_support.phemex):
|
|
508
508
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
509
509
|
:param int [limit]: the maximum amount of trades to fetch
|
510
510
|
:param dict [params]: extra parameters specific to the phemex api endpoint
|
511
|
-
:returns dict[]: a list of `trade structures <https://
|
511
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
512
512
|
"""
|
513
513
|
await self.load_markets()
|
514
514
|
market = self.market(symbol)
|
ccxt/pro/poloniex.py
CHANGED
@@ -180,7 +180,7 @@ class poloniex(ccxt.async_support.poloniex):
|
|
180
180
|
see https://docs.poloniex.com/#public-channels-market-data-ticker
|
181
181
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
182
182
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
183
|
-
:returns dict: a `ticker structure <https://
|
183
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
184
184
|
"""
|
185
185
|
await self.load_markets()
|
186
186
|
symbol = self.symbol(symbol)
|
@@ -193,7 +193,7 @@ class poloniex(ccxt.async_support.poloniex):
|
|
193
193
|
see https://docs.poloniex.com/#public-channels-market-data-ticker
|
194
194
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
195
195
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
196
|
-
:returns dict: a `ticker structure <https://
|
196
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
197
197
|
"""
|
198
198
|
await self.load_markets()
|
199
199
|
name = 'ticker'
|
@@ -211,7 +211,7 @@ class poloniex(ccxt.async_support.poloniex):
|
|
211
211
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
212
212
|
:param int [limit]: the maximum amount of trades to fetch
|
213
213
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
214
|
-
:returns dict[]: a list of `trade structures <https://
|
214
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
215
215
|
"""
|
216
216
|
await self.load_markets()
|
217
217
|
symbol = self.symbol(symbol)
|
@@ -228,7 +228,7 @@ class poloniex(ccxt.async_support.poloniex):
|
|
228
228
|
:param str symbol: unified symbol of the market to fetch the order book for
|
229
229
|
:param int [limit]: not used by poloniex watchOrderBook
|
230
230
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
231
|
-
:returns dict: A dictionary of `order book structures <https://
|
231
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
232
232
|
"""
|
233
233
|
await self.load_markets()
|
234
234
|
watchOrderBookOptions = self.safe_value(self.options, 'watchOrderBook')
|
@@ -245,7 +245,7 @@ class poloniex(ccxt.async_support.poloniex):
|
|
245
245
|
:param int [since]: not used by poloniex watchOrders
|
246
246
|
:param int [limit]: not used by poloniex watchOrders
|
247
247
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
248
|
-
:returns dict[]: a list of `order structures <https://
|
248
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
249
249
|
"""
|
250
250
|
await self.load_markets()
|
251
251
|
name = 'orders'
|
@@ -285,7 +285,7 @@ class poloniex(ccxt.async_support.poloniex):
|
|
285
285
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
286
286
|
see https://docs.poloniex.com/#authenticated-channels-market-data-balances
|
287
287
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
288
|
-
:returns dict: a `balance structure <https://
|
288
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
289
289
|
"""
|
290
290
|
await self.load_markets()
|
291
291
|
name = 'balances'
|
ccxt/pro/poloniexfutures.py
CHANGED
@@ -217,7 +217,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
217
217
|
see https://futures-docs.poloniex.com/#get-real-time-symbol-ticker
|
218
218
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
219
219
|
:param dict [params]: extra parameters specific to the poloniexfutures api endpoint
|
220
|
-
:returns dict: a `ticker structure <https://
|
220
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
221
221
|
"""
|
222
222
|
await self.load_markets()
|
223
223
|
symbol = self.symbol(symbol)
|
@@ -232,7 +232,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
232
232
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
233
233
|
:param int [limit]: the maximum amount of trades to fetch
|
234
234
|
:param dict [params]: extra parameters specific to the poloniexfutures api endpoint
|
235
|
-
:returns dict[]: a list of `trade structures <https://
|
235
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
236
236
|
"""
|
237
237
|
await self.load_markets()
|
238
238
|
options = self.safe_value(self.options, 'watchTrades')
|
@@ -252,7 +252,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
252
252
|
:param int [limit]: not used by poloniexfutures watchOrderBook
|
253
253
|
:param dict [params]: extra parameters specific to the poloniexfutures api endpoint
|
254
254
|
:param str [params.method]: the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
255
|
-
:returns dict: A dictionary of `order book structures <https://
|
255
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
256
256
|
"""
|
257
257
|
await self.load_markets()
|
258
258
|
options = self.safe_value(self.options, 'watchOrderBook')
|
@@ -279,7 +279,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
279
279
|
:param int [limit]: the maximum number of orde structures to retrieve
|
280
280
|
:param dict [params]: extra parameters specific to the poloniexfutures api endpoint
|
281
281
|
:param str [params.method]: the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
282
|
-
:returns dict[]: a list of `order structures <https://
|
282
|
+
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
283
283
|
"""
|
284
284
|
await self.load_markets()
|
285
285
|
options = self.safe_value(self.options, 'watchOrders')
|
@@ -297,7 +297,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
297
297
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
298
298
|
see https://futures-docs.poloniex.com/#account-balance-events
|
299
299
|
:param dict [params]: extra parameters specific to the poloniexfutures api endpoint
|
300
|
-
:returns dict: a `balance structure <https://
|
300
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
301
301
|
"""
|
302
302
|
await self.load_markets()
|
303
303
|
name = '/contractAccount/wallet'
|
ccxt/pro/probit.py
CHANGED
@@ -60,7 +60,7 @@ class probit(ccxt.async_support.probit):
|
|
60
60
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
61
61
|
see https://docs-en.probit.com/reference/balance-1
|
62
62
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
63
|
-
:returns dict: a `balance structure <https://
|
63
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
64
64
|
"""
|
65
65
|
await self.authenticate(params)
|
66
66
|
messageHash = 'balance'
|
@@ -124,7 +124,7 @@ class probit(ccxt.async_support.probit):
|
|
124
124
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
125
125
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
126
126
|
:param int [params.interval]: Unit time to synchronize market information(ms). Available units: 100, 500
|
127
|
-
:returns dict: a `ticker structure <https://
|
127
|
+
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
128
128
|
"""
|
129
129
|
filter = None
|
130
130
|
filter, params = self.handle_option_and_params(params, 'watchTicker', 'filter', 'ticker')
|
@@ -167,7 +167,7 @@ class probit(ccxt.async_support.probit):
|
|
167
167
|
:param int [limit]: the maximum amount of trades to fetch
|
168
168
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
169
169
|
:param int [params.interval]: Unit time to synchronize market information(ms). Available units: 100, 500
|
170
|
-
:returns dict[]: a list of `trade structures <https://
|
170
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
171
171
|
"""
|
172
172
|
filter = None
|
173
173
|
filter, params = self.handle_option_and_params(params, 'watchTrades', 'filter', 'recent_trades')
|
@@ -222,7 +222,7 @@ class probit(ccxt.async_support.probit):
|
|
222
222
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
223
223
|
:param int [limit]: the maximum amount of trades to fetch
|
224
224
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
225
|
-
:returns dict[]: a list of `trade structures <https://
|
225
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
226
226
|
"""
|
227
227
|
await self.load_markets()
|
228
228
|
await self.authenticate(params)
|
@@ -295,7 +295,7 @@ class probit(ccxt.async_support.probit):
|
|
295
295
|
:param int [limit]: the maximum amount of orders to watch
|
296
296
|
:param dict [params]: extra parameters specific to the aax api endpoint
|
297
297
|
:param str [params.channel]: choose what channel to use. Can open_order or order_history.
|
298
|
-
:returns dict: An `order structure <https://
|
298
|
+
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
299
299
|
"""
|
300
300
|
await self.authenticate(params)
|
301
301
|
url = self.urls['api']['ws']
|
@@ -371,7 +371,7 @@ class probit(ccxt.async_support.probit):
|
|
371
371
|
:param str symbol: unified symbol of the market to fetch the order book for
|
372
372
|
:param int [limit]: the maximum amount of order book entries to return
|
373
373
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
374
|
-
:returns dict: A dictionary of `order book structures <https://
|
374
|
+
:returns dict: A dictionary of `order book structures <https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure>` indexed by market symbols
|
375
375
|
"""
|
376
376
|
filter = None
|
377
377
|
filter, params = self.handle_option_and_params(params, 'watchOrderBook', 'filter', 'order_books')
|
ccxt/pro/upbit.py
CHANGED
@@ -69,7 +69,7 @@ class upbit(ccxt.async_support.upbit):
|
|
69
69
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
70
70
|
:param int [limit]: the maximum amount of trades to fetch
|
71
71
|
:param dict [params]: extra parameters specific to the upbit api endpoint
|
72
|
-
:returns dict[]: a list of `trade structures <https://
|
72
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
73
73
|
"""
|
74
74
|
await self.load_markets()
|
75
75
|
symbol = self.symbol(symbol)
|
ccxt/pro/wazirx.py
CHANGED
@@ -52,7 +52,7 @@ class wazirx(ccxt.async_support.wazirx):
|
|
52
52
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
53
53
|
see https://docs.wazirx.com/#account-update
|
54
54
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
55
|
-
:returns dict: a `balance structure <https://
|
55
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
56
56
|
"""
|
57
57
|
await self.load_markets()
|
58
58
|
token = await self.authenticate(params)
|
@@ -287,7 +287,7 @@ class wazirx(ccxt.async_support.wazirx):
|
|
287
287
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
288
288
|
:param int [limit]: the maximum amount of trades to fetch
|
289
289
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
290
|
-
:returns dict[]: a list of `trade structures <https://
|
290
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
291
291
|
"""
|
292
292
|
await self.load_markets()
|
293
293
|
market = self.market(symbol)
|
@@ -348,7 +348,7 @@ class wazirx(ccxt.async_support.wazirx):
|
|
348
348
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
349
349
|
:param int [limit]: the maximum amount of trades to fetch
|
350
350
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
351
|
-
:returns dict[]: a list of `trade structures <https://
|
351
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
352
352
|
"""
|
353
353
|
await self.load_markets()
|
354
354
|
token = await self.authenticate(params)
|
ccxt/pro/whitebit.py
CHANGED
@@ -293,7 +293,7 @@ class whitebit(ccxt.async_support.whitebit):
|
|
293
293
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
294
294
|
:param int [limit]: the maximum amount of trades to fetch
|
295
295
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
296
|
-
:returns dict[]: a list of `trade structures <https://
|
296
|
+
:returns dict[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
297
297
|
"""
|
298
298
|
await self.load_markets()
|
299
299
|
market = self.market(symbol)
|
@@ -608,7 +608,7 @@ class whitebit(ccxt.async_support.whitebit):
|
|
608
608
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
609
609
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
610
610
|
:param str [params.type]: spot or contract if not provided self.options['defaultType'] is used
|
611
|
-
:returns dict: a `balance structure <https://
|
611
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
612
612
|
"""
|
613
613
|
await self.load_markets()
|
614
614
|
type = None
|
ccxt/probit.py
CHANGED
@@ -533,7 +533,7 @@ class probit(Exchange, ImplicitAPI):
|
|
533
533
|
see https://docs-en.probit.com/reference/balance
|
534
534
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
535
535
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
536
|
-
:returns dict: a `balance structure <https://
|
536
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
537
537
|
"""
|
538
538
|
self.load_markets()
|
539
539
|
response = self.privateGetBalance(params)
|
@@ -747,7 +747,7 @@ class probit(Exchange, ImplicitAPI):
|
|
747
747
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
748
748
|
:param int [limit]: the maximum amount of trades to fetch
|
749
749
|
:param dict [params]: extra parameters specific to the probit api endpoint
|
750
|
-
:returns Trade[]: a list of `trade structures <https://
|
750
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
751
751
|
"""
|
752
752
|
self.load_markets()
|
753
753
|
market = self.market(symbol)
|
ccxt/tidex.py
CHANGED
@@ -370,7 +370,7 @@ class tidex(Exchange, ImplicitAPI):
|
|
370
370
|
"""
|
371
371
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
372
372
|
:param dict [params]: extra parameters specific to the tidex api endpoint
|
373
|
-
:returns dict: a `balance structure <https://
|
373
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
374
374
|
"""
|
375
375
|
self.load_markets()
|
376
376
|
response = self.privatePostGetInfoExt(params)
|
@@ -597,7 +597,7 @@ class tidex(Exchange, ImplicitAPI):
|
|
597
597
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
598
598
|
:param int [limit]: the maximum amount of trades to fetch
|
599
599
|
:param dict [params]: extra parameters specific to the tidex api endpoint
|
600
|
-
:returns Trade[]: a list of `trade structures <https://
|
600
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
601
601
|
"""
|
602
602
|
self.load_markets()
|
603
603
|
market = self.market(symbol)
|
ccxt/timex.py
CHANGED
@@ -574,7 +574,7 @@ class timex(Exchange, ImplicitAPI):
|
|
574
574
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
575
575
|
:param int [limit]: the maximum amount of trades to fetch
|
576
576
|
:param dict [params]: extra parameters specific to the timex api endpoint
|
577
|
-
:returns Trade[]: a list of `trade structures <https://
|
577
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
578
578
|
"""
|
579
579
|
self.load_markets()
|
580
580
|
market = self.market(symbol)
|
@@ -673,7 +673,7 @@ class timex(Exchange, ImplicitAPI):
|
|
673
673
|
"""
|
674
674
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
675
675
|
:param dict [params]: extra parameters specific to the timex api endpoint
|
676
|
-
:returns dict: a `balance structure <https://
|
676
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
677
677
|
"""
|
678
678
|
self.load_markets()
|
679
679
|
response = self.tradingGetBalances(params)
|
ccxt/tokocrypto.py
CHANGED
@@ -994,7 +994,7 @@ class tokocrypto(Exchange, ImplicitAPI):
|
|
994
994
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
995
995
|
:param int [limit]: the maximum amount of trades to fetch
|
996
996
|
:param dict [params]: extra parameters specific to the tokocrypto api endpoint
|
997
|
-
:returns Trade[]: a list of `trade structures <https://
|
997
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
998
998
|
"""
|
999
999
|
self.load_markets()
|
1000
1000
|
market = self.market(symbol)
|
@@ -1297,7 +1297,7 @@ class tokocrypto(Exchange, ImplicitAPI):
|
|
1297
1297
|
:param str [params.type]: 'future', 'delivery', 'savings', 'funding', or 'spot'
|
1298
1298
|
:param str [params.marginMode]: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
|
1299
1299
|
:param str[]|None [params.symbols]: unified market symbols, only used in isolated margin mode
|
1300
|
-
:returns dict: a `balance structure <https://
|
1300
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1301
1301
|
"""
|
1302
1302
|
self.load_markets()
|
1303
1303
|
defaultType = self.safe_string_2(self.options, 'fetchBalance', 'defaultType', 'spot')
|
ccxt/upbit.py
CHANGED
@@ -495,7 +495,7 @@ class upbit(Exchange, ImplicitAPI):
|
|
495
495
|
see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
496
496
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
497
497
|
:param dict [params]: extra parameters specific to the upbit api endpoint
|
498
|
-
:returns dict: a `balance structure <https://
|
498
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
499
499
|
"""
|
500
500
|
self.load_markets()
|
501
501
|
response = self.privateGetAccounts(params)
|
@@ -795,7 +795,7 @@ class upbit(Exchange, ImplicitAPI):
|
|
795
795
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
796
796
|
:param int [limit]: the maximum amount of trades to fetch
|
797
797
|
:param dict [params]: extra parameters specific to the upbit api endpoint
|
798
|
-
:returns Trade[]: a list of `trade structures <https://
|
798
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
799
799
|
"""
|
800
800
|
self.load_markets()
|
801
801
|
market = self.market(symbol)
|
ccxt/wavesexchange.py
CHANGED
@@ -1730,7 +1730,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1730
1730
|
"""
|
1731
1731
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1732
1732
|
:param dict [params]: extra parameters specific to the wavesexchange api endpoint
|
1733
|
-
:returns dict: a `balance structure <https://
|
1733
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1734
1734
|
"""
|
1735
1735
|
# makes a lot of different requests to get all the data
|
1736
1736
|
# in particular:
|
@@ -1960,7 +1960,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1960
1960
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1961
1961
|
:param int [limit]: the maximum amount of trades to fetch
|
1962
1962
|
:param dict [params]: extra parameters specific to the wavesexchange api endpoint
|
1963
|
-
:returns Trade[]: a list of `trade structures <https://
|
1963
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1964
1964
|
"""
|
1965
1965
|
self.load_markets()
|
1966
1966
|
market = self.market(symbol)
|
@@ -2200,7 +2200,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
2200
2200
|
see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
2201
2201
|
:param str[]|None codes: list of unified currency codes
|
2202
2202
|
:param dict [params]: extra parameters specific to the wavesexchange api endpoint
|
2203
|
-
:returns dict: a list of `fee structures <https://
|
2203
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
2204
2204
|
"""
|
2205
2205
|
self.load_markets()
|
2206
2206
|
data = []
|
ccxt/wazirx.py
CHANGED
@@ -429,7 +429,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
429
429
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
430
430
|
:param int [limit]: the maximum amount of trades to fetch
|
431
431
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
432
|
-
:returns Trade[]: a list of `trade structures <https://
|
432
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
433
433
|
"""
|
434
434
|
self.load_markets()
|
435
435
|
market = self.market(symbol)
|
@@ -593,7 +593,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
593
593
|
see https://docs.wazirx.com/#fund-details-user_data
|
594
594
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
595
595
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
596
|
-
:returns dict: a `balance structure <https://
|
596
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
597
597
|
"""
|
598
598
|
self.load_markets()
|
599
599
|
response = self.privateGetFunds(params)
|
ccxt/whitebit.py
CHANGED
@@ -268,6 +268,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
268
268
|
'422': OrderNotFound, # {"response":null,"status":422,"errors":{"orderId":["Finished order id 1295772653 not found on your account"]},"notification":null,"warning":"Finished order id 1295772653 not found on your account","_token":null}
|
269
269
|
},
|
270
270
|
'broad': {
|
271
|
+
'This action is unauthorized': PermissionDenied, # {"code":2,"message":"This action is unauthorized. Enable your key in API settings"}
|
271
272
|
'Given amount is less than min amount': InvalidOrder, # {"code":0,"message":"Validation failed","errors":{"amount":["Given amount is less than min amount 200000"],"total":["Total is less than 5.05"]}}
|
272
273
|
'Total is less than': InvalidOrder, # {"code":0,"message":"Validation failed","errors":{"amount":["Given amount is less than min amount 200000"],"total":["Total is less than 5.05"]}}
|
273
274
|
'fee must be no less than': InvalidOrder, # {"code":0,"message":"Validation failed","errors":{"amount":["Total amount + fee must be no less than 5.05505"]}}
|
@@ -847,7 +848,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
847
848
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
848
849
|
:param int [limit]: the maximum amount of trades to fetch
|
849
850
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
850
|
-
:returns Trade[]: a list of `trade structures <https://
|
851
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
851
852
|
"""
|
852
853
|
self.load_markets()
|
853
854
|
market = self.market(symbol)
|
@@ -876,7 +877,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
876
877
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
877
878
|
:param int [limit]: the maximum amount of trades to fetch
|
878
879
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
879
|
-
:returns Trade[]: a list of `trade structures <https://
|
880
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
880
881
|
"""
|
881
882
|
self.load_markets()
|
882
883
|
market = None
|
@@ -1220,7 +1221,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1220
1221
|
"""
|
1221
1222
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1222
1223
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
1223
|
-
:returns dict: a `balance structure <https://
|
1224
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1224
1225
|
"""
|
1225
1226
|
self.load_markets()
|
1226
1227
|
marketType, query = self.handle_market_type_and_params('fetchBalance', None, params)
|
ccxt/woo.py
CHANGED
@@ -417,7 +417,7 @@ class woo(Exchange, ImplicitAPI):
|
|
417
417
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
418
418
|
:param int [limit]: the maximum amount of trades to fetch
|
419
419
|
:param dict [params]: extra parameters specific to the woo api endpoint
|
420
|
-
:returns Trade[]: a list of `trade structures <https://
|
420
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
421
421
|
"""
|
422
422
|
if symbol is None:
|
423
423
|
raise ArgumentsRequired(self.id + ' fetchTrades() requires a symbol argument')
|
@@ -1510,7 +1510,7 @@ class woo(Exchange, ImplicitAPI):
|
|
1510
1510
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1511
1511
|
see https://docs.woo.org/#get-current-holding-get-balance-new
|
1512
1512
|
:param dict [params]: extra parameters specific to the woo api endpoint
|
1513
|
-
:returns dict: a `balance structure <https://
|
1513
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1514
1514
|
"""
|
1515
1515
|
self.load_markets()
|
1516
1516
|
response = self.v3PrivateGetBalances(params)
|