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/async_support/zonda.py
CHANGED
@@ -532,7 +532,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
532
532
|
see https://docs.zonda.exchange/reference/list-of-wallets
|
533
533
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
534
534
|
:param dict [params]: extra parameters specific to the zonda api endpoint
|
535
|
-
:returns dict: a `balance structure <https://
|
535
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
536
536
|
"""
|
537
537
|
await self.load_markets()
|
538
538
|
response = await self.v1_01PrivateGetBalancesBITBAYBalance(params)
|
@@ -1279,7 +1279,7 @@ class zonda(Exchange, ImplicitAPI):
|
|
1279
1279
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1280
1280
|
:param int [limit]: the maximum amount of trades to fetch
|
1281
1281
|
:param dict [params]: extra parameters specific to the zonda api endpoint
|
1282
|
-
:returns Trade[]: a list of `trade structures <https://
|
1282
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1283
1283
|
"""
|
1284
1284
|
await self.load_markets()
|
1285
1285
|
market = self.market(symbol)
|
ccxt/base/exchange.py
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
# -----------------------------------------------------------------------------
|
6
6
|
|
7
|
-
__version__ = '4.0.
|
7
|
+
__version__ = '4.0.77'
|
8
8
|
|
9
9
|
# -----------------------------------------------------------------------------
|
10
10
|
|
@@ -3503,7 +3503,7 @@ class Exchange(object):
|
|
3503
3503
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
3504
3504
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
3505
3505
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
3506
|
-
:returns dict: a list of `transaction structures <https://
|
3506
|
+
:returns dict: a list of `transaction structures <https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure>`
|
3507
3507
|
"""
|
3508
3508
|
raise NotSupported(self.id + ' fetchDepositsWithdrawals() is not supported yet')
|
3509
3509
|
|
@@ -4161,7 +4161,7 @@ class Exchange(object):
|
|
4161
4161
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
4162
4162
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
4163
4163
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
4164
|
-
:returns dict: a list of `transaction structures <https://
|
4164
|
+
:returns dict: a list of `transaction structures <https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure>`
|
4165
4165
|
"""
|
4166
4166
|
if self.has['fetchDepositsWithdrawals']:
|
4167
4167
|
return self.fetchDepositsWithdrawals(code, since, limit, params)
|
ccxt/bigone.py
CHANGED
@@ -896,7 +896,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
896
896
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
897
897
|
:param int [limit]: the maximum amount of trades to fetch
|
898
898
|
:param dict [params]: extra parameters specific to the bigone api endpoint
|
899
|
-
:returns Trade[]: a list of `trade structures <https://
|
899
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
900
900
|
"""
|
901
901
|
self.load_markets()
|
902
902
|
market = self.market(symbol)
|
@@ -1020,7 +1020,7 @@ class bigone(Exchange, ImplicitAPI):
|
|
1020
1020
|
"""
|
1021
1021
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1022
1022
|
:param dict [params]: extra parameters specific to the bigone api endpoint
|
1023
|
-
:returns dict: a `balance structure <https://
|
1023
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1024
1024
|
"""
|
1025
1025
|
self.load_markets()
|
1026
1026
|
type = self.safe_string(params, 'type', '')
|
ccxt/binance.py
CHANGED
@@ -2443,7 +2443,7 @@ class binance(Exchange, ImplicitAPI):
|
|
2443
2443
|
:param str [params.type]: 'future', 'delivery', 'savings', 'funding', or 'spot'
|
2444
2444
|
:param str [params.marginMode]: 'cross' or 'isolated', for margin trading, uses self.options.defaultMarginMode if not passed, defaults to None/None/None
|
2445
2445
|
:param str[]|None [params.symbols]: unified market symbols, only used in isolated margin mode
|
2446
|
-
:returns dict: a `balance structure <https://
|
2446
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
2447
2447
|
"""
|
2448
2448
|
self.load_markets()
|
2449
2449
|
defaultType = self.safe_string_2(self.options, 'fetchBalance', 'defaultType', 'spot')
|
@@ -3470,7 +3470,7 @@ class binance(Exchange, ImplicitAPI):
|
|
3470
3470
|
*
|
3471
3471
|
* EXCHANGE SPECIFIC PARAMETERS
|
3472
3472
|
:param int [params.fromId]: trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
3473
|
-
:returns Trade[]: a list of `trade structures <https://
|
3473
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
3474
3474
|
"""
|
3475
3475
|
self.load_markets()
|
3476
3476
|
market = self.market(symbol)
|
@@ -6065,10 +6065,10 @@ class binance(Exchange, ImplicitAPI):
|
|
6065
6065
|
fetches historical funding rate prices
|
6066
6066
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
6067
6067
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
6068
|
-
:param int [limit]: the maximum amount of `funding rate structures <https://
|
6068
|
+
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
6069
6069
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6070
6070
|
:param int [params.until]: timestamp in ms of the latest funding rate
|
6071
|
-
:returns dict[]: a list of `funding rate structures <https://
|
6071
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
6072
6072
|
"""
|
6073
6073
|
self.load_markets()
|
6074
6074
|
request = {}
|
@@ -6704,7 +6704,7 @@ class binance(Exchange, ImplicitAPI):
|
|
6704
6704
|
fetch data on an open position
|
6705
6705
|
:param str symbol: unified market symbol of the market the position is held in
|
6706
6706
|
:param dict [params]: extra parameters specific to the binance api endpoint
|
6707
|
-
:returns dict: a `position structure <https://
|
6707
|
+
:returns dict: a `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
6708
6708
|
"""
|
6709
6709
|
self.load_markets()
|
6710
6710
|
market = self.market(symbol)
|
ccxt/bingx.py
CHANGED
@@ -115,11 +115,13 @@ class bingx(Exchange, ImplicitAPI):
|
|
115
115
|
'trade/openOrders': 3,
|
116
116
|
'trade/historyOrders': 3,
|
117
117
|
'account/balance': 3,
|
118
|
+
'ticker/24hr': 1,
|
118
119
|
},
|
119
120
|
'post': {
|
120
121
|
'trade/order': 3,
|
121
122
|
'trade/cancel': 3,
|
122
123
|
'trade/batchOrders': 3,
|
124
|
+
'trade/cancelOrders': 3,
|
123
125
|
},
|
124
126
|
},
|
125
127
|
},
|
@@ -675,7 +677,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
675
677
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
676
678
|
:param int [limit]: the maximum amount of trades to fetch
|
677
679
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
678
|
-
:returns [dict]: a list of `trade structures <https://
|
680
|
+
:returns [dict]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
679
681
|
"""
|
680
682
|
self.load_markets()
|
681
683
|
market = self.market(symbol)
|
@@ -956,9 +958,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
956
958
|
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
|
957
959
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
958
960
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
959
|
-
:param int [limit]: the maximum amount of `funding rate structures <https://
|
961
|
+
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
960
962
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
961
|
-
:returns [dict]: a list of `funding rate structures <https://
|
963
|
+
:returns [dict]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
962
964
|
"""
|
963
965
|
self.check_required_symbol('fetchFundingRateHistory', symbol)
|
964
966
|
self.load_markets()
|
@@ -1055,18 +1057,21 @@ class bingx(Exchange, ImplicitAPI):
|
|
1055
1057
|
"""
|
1056
1058
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1057
1059
|
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1060
|
+
see https://bingx-api.github.io/docs/#/spot/market-api.html#24%E5%B0%8F%E6%97%B6%E4%BB%B7%E6%A0%BC%E5%8F%98%E5%8A%A8%E6%83%85%E5%86%B5
|
1058
1061
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1059
1062
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1060
1063
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
1061
1064
|
"""
|
1062
1065
|
self.load_markets()
|
1063
1066
|
market = self.market(symbol)
|
1064
|
-
if not market['swap']:
|
1065
|
-
raise BadRequest(self.id + ' fetchTicker is only supported for swap markets.')
|
1066
1067
|
request = {
|
1067
1068
|
'symbol': market['id'],
|
1068
1069
|
}
|
1069
|
-
response =
|
1070
|
+
response = None
|
1071
|
+
if market['spot']:
|
1072
|
+
response = self.spotV1PrivateGetTicker24hr(self.extend(request, params))
|
1073
|
+
else:
|
1074
|
+
response = self.swapV2PublicGetQuoteTicker(self.extend(request, params))
|
1070
1075
|
#
|
1071
1076
|
# {
|
1072
1077
|
# "code": 0,
|
@@ -1088,7 +1093,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1088
1093
|
# }
|
1089
1094
|
#
|
1090
1095
|
data = self.safe_value(response, 'data')
|
1091
|
-
|
1096
|
+
ticker = self.safe_value(data, 0, data)
|
1097
|
+
return self.parse_ticker(ticker, market)
|
1092
1098
|
|
1093
1099
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1094
1100
|
"""
|
@@ -1132,6 +1138,20 @@ class bingx(Exchange, ImplicitAPI):
|
|
1132
1138
|
return self.parse_tickers(tickers, symbols)
|
1133
1139
|
|
1134
1140
|
def parse_ticker(self, ticker, market=None):
|
1141
|
+
#
|
1142
|
+
# spot
|
1143
|
+
# {
|
1144
|
+
# symbol: 'BTC-USDT',
|
1145
|
+
# openPrice: '26032.08',
|
1146
|
+
# highPrice: '26178.86',
|
1147
|
+
# lowPrice: '25968.18',
|
1148
|
+
# lastPrice: '26113.60',
|
1149
|
+
# volume: '1161.79',
|
1150
|
+
# quoteVolume: '30288466.44',
|
1151
|
+
# openTime: '1693081020762',
|
1152
|
+
# closeTime: '1693167420762'
|
1153
|
+
# }
|
1154
|
+
# swap
|
1135
1155
|
#
|
1136
1156
|
# {
|
1137
1157
|
# "symbol": "BTC-USDT",
|
@@ -1149,20 +1169,22 @@ class bingx(Exchange, ImplicitAPI):
|
|
1149
1169
|
# }
|
1150
1170
|
#
|
1151
1171
|
marketId = self.safe_string(ticker, 'symbol')
|
1152
|
-
|
1153
|
-
|
1172
|
+
change = self.safe_string(ticker, 'priceChange')
|
1173
|
+
type = 'spot' if (change is None) else 'swap'
|
1174
|
+
symbol = self.safe_symbol(marketId, market, None, type)
|
1154
1175
|
open = self.safe_string(ticker, 'openPrice')
|
1155
1176
|
high = self.safe_string(ticker, 'highPrice')
|
1156
1177
|
low = self.safe_string(ticker, 'lowPrice')
|
1157
1178
|
close = self.safe_string(ticker, 'lastPrice')
|
1158
1179
|
quoteVolume = self.safe_string(ticker, 'quoteVolume')
|
1159
1180
|
baseVolume = self.safe_string(ticker, 'volume')
|
1160
|
-
change = self.safe_string(ticker, 'chapriceChangenge')
|
1161
1181
|
percentage = self.safe_string(ticker, 'priceChangePercent')
|
1182
|
+
ts = self.safe_integer(ticker, 'closeTime')
|
1183
|
+
datetime = self.iso8601(ts)
|
1162
1184
|
return self.safe_ticker({
|
1163
1185
|
'symbol': symbol,
|
1164
|
-
'timestamp':
|
1165
|
-
'datetime':
|
1186
|
+
'timestamp': ts,
|
1187
|
+
'datetime': datetime,
|
1166
1188
|
'high': high,
|
1167
1189
|
'low': low,
|
1168
1190
|
'bid': None,
|
@@ -1190,7 +1212,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1190
1212
|
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1191
1213
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
1192
1214
|
:param boolean [params.standard]: whether to fetch standard contract balances
|
1193
|
-
:returns dict: a `balance structure <https://
|
1215
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1194
1216
|
"""
|
1195
1217
|
self.load_markets()
|
1196
1218
|
response = None
|
@@ -1795,6 +1817,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1795
1817
|
"""
|
1796
1818
|
cancel multiple orders
|
1797
1819
|
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1820
|
+
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1798
1821
|
:param [str] ids: order ids
|
1799
1822
|
:param str symbol: unified market symbol, default is None
|
1800
1823
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -1803,13 +1826,21 @@ class bingx(Exchange, ImplicitAPI):
|
|
1803
1826
|
self.check_required_symbol('cancelOrders', symbol)
|
1804
1827
|
self.load_markets()
|
1805
1828
|
market = self.market(symbol)
|
1806
|
-
if market['type'] != 'swap':
|
1807
|
-
raise BadRequest(self.id + ' cancelOrders is only supported for swap markets.')
|
1808
1829
|
request = {
|
1809
1830
|
'symbol': market['id'],
|
1810
|
-
'ids': ids,
|
1811
1831
|
}
|
1812
|
-
|
1832
|
+
parsedIds = []
|
1833
|
+
for i in range(0, len(ids)):
|
1834
|
+
id = ids[i]
|
1835
|
+
stringId = str(id)
|
1836
|
+
parsedIds.append(stringId)
|
1837
|
+
response = None
|
1838
|
+
if market['spot']:
|
1839
|
+
request['orderIds'] = ','.join(parsedIds)
|
1840
|
+
response = self.spotV1PrivatePostTradeCancelOrders(self.extend(request, params))
|
1841
|
+
else:
|
1842
|
+
request['orderIdList'] = parsedIds
|
1843
|
+
response = self.swapV2PrivateDeleteTradeBatchOrders(self.extend(request, params))
|
1813
1844
|
#
|
1814
1845
|
# {
|
1815
1846
|
# "code": 0,
|
@@ -2606,7 +2637,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2606
2637
|
see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
2607
2638
|
:param [str]|None codes: list of unified currency codes
|
2608
2639
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2609
|
-
:returns dict: a list of `fee structures <https://
|
2640
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
2610
2641
|
"""
|
2611
2642
|
self.load_markets()
|
2612
2643
|
response = self.walletsV1PrivateGetCapitalConfigGetall(params)
|
@@ -2653,6 +2684,27 @@ class bingx(Exchange, ImplicitAPI):
|
|
2653
2684
|
# }
|
2654
2685
|
self.parse_transaction(data)
|
2655
2686
|
|
2687
|
+
def parse_params(self, params):
|
2688
|
+
result = ''
|
2689
|
+
sortedParams = self.keysort(params)
|
2690
|
+
keys = list(sortedParams.keys())
|
2691
|
+
for i in range(0, len(keys)):
|
2692
|
+
key = keys[i]
|
2693
|
+
if i > 0:
|
2694
|
+
result += '&'
|
2695
|
+
value = sortedParams[key]
|
2696
|
+
if isinstance(value, list):
|
2697
|
+
result += key + '=['
|
2698
|
+
for j in range(0, len(value)):
|
2699
|
+
arrayElement = value[j]
|
2700
|
+
if j > 0:
|
2701
|
+
result += ','
|
2702
|
+
result += str(arrayElement)
|
2703
|
+
result += ']'
|
2704
|
+
else:
|
2705
|
+
result += key + '=' + str(value)
|
2706
|
+
return result
|
2707
|
+
|
2656
2708
|
def sign(self, path, section='public', method='GET', params={}, headers=None, body=None):
|
2657
2709
|
type = section[0]
|
2658
2710
|
version = section[1]
|
@@ -2673,9 +2725,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
2673
2725
|
elif access == 'private':
|
2674
2726
|
self.check_required_credentials()
|
2675
2727
|
params['timestamp'] = self.nonce()
|
2676
|
-
query = self.
|
2677
|
-
|
2678
|
-
signature = self.hmac(self.encode(rawQuery), self.encode(self.secret), hashlib.sha256)
|
2728
|
+
query = self.parse_params(params)
|
2729
|
+
signature = self.hmac(self.encode(query), self.encode(self.secret), hashlib.sha256)
|
2679
2730
|
if params:
|
2680
2731
|
query = '?' + query + '&'
|
2681
2732
|
else:
|
ccxt/bit2c.py
CHANGED
@@ -210,7 +210,7 @@ class bit2c(Exchange, ImplicitAPI):
|
|
210
210
|
"""
|
211
211
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
212
212
|
:param dict [params]: extra parameters specific to the bit2c api endpoint
|
213
|
-
:returns dict: a `balance structure <https://
|
213
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
214
214
|
"""
|
215
215
|
self.load_markets()
|
216
216
|
response = self.privateGetAccountBalanceV2(params)
|
@@ -325,7 +325,7 @@ class bit2c(Exchange, ImplicitAPI):
|
|
325
325
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
326
326
|
:param int [limit]: the maximum amount of trades to fetch
|
327
327
|
:param dict [params]: extra parameters specific to the bit2c api endpoint
|
328
|
-
:returns Trade[]: a list of `trade structures <https://
|
328
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
329
329
|
"""
|
330
330
|
self.load_markets()
|
331
331
|
market = self.market(symbol)
|
ccxt/bitbank.py
CHANGED
@@ -357,7 +357,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
357
357
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
358
358
|
:param int [limit]: the maximum amount of trades to fetch
|
359
359
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
360
|
-
:returns Trade[]: a list of `trade structures <https://
|
360
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
361
361
|
"""
|
362
362
|
self.load_markets()
|
363
363
|
market = self.market(symbol)
|
@@ -513,7 +513,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
513
513
|
"""
|
514
514
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
515
515
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
516
|
-
:returns dict: a `balance structure <https://
|
516
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
517
517
|
"""
|
518
518
|
self.load_markets()
|
519
519
|
response = self.privateGetUserAssets(params)
|
ccxt/bitbns.py
CHANGED
@@ -450,7 +450,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
450
450
|
"""
|
451
451
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
452
452
|
:param dict [params]: extra parameters specific to the bitbns api endpoint
|
453
|
-
:returns dict: a `balance structure <https://
|
453
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
454
454
|
"""
|
455
455
|
self.load_markets()
|
456
456
|
response = self.v1PostCurrentCoinBalanceEVERYTHING(params)
|
@@ -874,7 +874,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
874
874
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
875
875
|
:param int [limit]: the maximum amount of trades to fetch
|
876
876
|
:param dict [params]: extra parameters specific to the bitbns api endpoint
|
877
|
-
:returns Trade[]: a list of `trade structures <https://
|
877
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
878
878
|
"""
|
879
879
|
if symbol is None:
|
880
880
|
raise ArgumentsRequired(self.id + ' fetchTrades() requires a symbol argument')
|
ccxt/bitfinex.py
CHANGED
@@ -678,7 +678,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
678
678
|
"""
|
679
679
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
680
680
|
:param dict [params]: extra parameters specific to the bitfinex api endpoint
|
681
|
-
:returns dict: a `balance structure <https://
|
681
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
682
682
|
"""
|
683
683
|
self.load_markets()
|
684
684
|
accountsByType = self.safe_value(self.options, 'accountsByType', {})
|
@@ -970,7 +970,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
970
970
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
971
971
|
:param int [limit]: the maximum amount of trades to fetch
|
972
972
|
:param dict [params]: extra parameters specific to the bitfinex api endpoint
|
973
|
-
:returns Trade[]: a list of `trade structures <https://
|
973
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
974
974
|
"""
|
975
975
|
self.load_markets()
|
976
976
|
market = self.market(symbol)
|
ccxt/bitfinex2.py
CHANGED
@@ -791,7 +791,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
791
791
|
"""
|
792
792
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
793
793
|
:param dict [params]: extra parameters specific to the bitfinex2 api endpoint
|
794
|
-
:returns dict: a `balance structure <https://
|
794
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
795
795
|
"""
|
796
796
|
# self api call does not return the 'used' amount - use the v1 version instead(which also returns zero balances)
|
797
797
|
# there is a difference between self and the v1 api, namely trading wallet is called margin in v2
|
@@ -1050,9 +1050,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1050
1050
|
'high': self.safe_string(ticker, length - 2),
|
1051
1051
|
'low': self.safe_string(ticker, length - 1),
|
1052
1052
|
'bid': self.safe_string(ticker, length - 10),
|
1053
|
-
'bidVolume':
|
1053
|
+
'bidVolume': self.safe_string(ticker, length - 9),
|
1054
1054
|
'ask': self.safe_string(ticker, length - 8),
|
1055
|
-
'askVolume':
|
1055
|
+
'askVolume': self.safe_string(ticker, length - 7),
|
1056
1056
|
'vwap': None,
|
1057
1057
|
'open': None,
|
1058
1058
|
'close': last,
|
@@ -1232,7 +1232,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1232
1232
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1233
1233
|
:param int [limit]: the maximum amount of trades to fetch
|
1234
1234
|
:param dict [params]: extra parameters specific to the bitfinex2 api endpoint
|
1235
|
-
:returns Trade[]: a list of `trade structures <https://
|
1235
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1236
1236
|
"""
|
1237
1237
|
self.load_markets()
|
1238
1238
|
market = self.market(symbol)
|
ccxt/bitflyer.py
CHANGED
@@ -308,7 +308,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
308
308
|
"""
|
309
309
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
310
310
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
311
|
-
:returns dict: a `balance structure <https://
|
311
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
312
312
|
"""
|
313
313
|
self.load_markets()
|
314
314
|
response = self.privateGetGetbalance(params)
|
@@ -455,7 +455,7 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
455
455
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
456
456
|
:param int [limit]: the maximum amount of trades to fetch
|
457
457
|
:param dict [params]: extra parameters specific to the bitflyer api endpoint
|
458
|
-
:returns Trade[]: a list of `trade structures <https://
|
458
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
459
459
|
"""
|
460
460
|
self.load_markets()
|
461
461
|
market = self.market(symbol)
|
ccxt/bitforex.py
CHANGED
@@ -326,7 +326,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
326
326
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
327
327
|
:param int [limit]: the maximum amount of trades to fetch
|
328
328
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|
329
|
-
:returns Trade[]: a list of `trade structures <https://
|
329
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
330
330
|
"""
|
331
331
|
self.load_markets()
|
332
332
|
request = {
|
@@ -426,7 +426,7 @@ class bitforex(Exchange, ImplicitAPI):
|
|
426
426
|
"""
|
427
427
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
428
428
|
:param dict [params]: extra parameters specific to the bitforex api endpoint
|
429
|
-
:returns dict: a `balance structure <https://
|
429
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
430
430
|
"""
|
431
431
|
self.load_markets()
|
432
432
|
response = self.privatePostApiV1FundAllAccount(params)
|
ccxt/bitget.py
CHANGED
@@ -2189,7 +2189,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
2189
2189
|
:param int [limit]: the maximum amount of trades to fetch
|
2190
2190
|
:param dict [params]: extra parameters specific to the bitget api endpoint
|
2191
2191
|
:param int [params.until]: the latest time in ms to fetch deposits for
|
2192
|
-
:returns Trade[]: a list of `trade structures <https://
|
2192
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
2193
2193
|
"""
|
2194
2194
|
self.load_markets()
|
2195
2195
|
market = self.market(symbol)
|
@@ -2479,7 +2479,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
2479
2479
|
"""
|
2480
2480
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2481
2481
|
:param dict [params]: extra parameters specific to the bitget api endpoint
|
2482
|
-
:returns dict: a `balance structure <https://
|
2482
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
2483
2483
|
"""
|
2484
2484
|
sandboxMode = self.safe_value(self.options, 'sandboxMode', False)
|
2485
2485
|
self.load_markets()
|
@@ -4016,9 +4016,9 @@ class bitget(Exchange, ImplicitAPI):
|
|
4016
4016
|
fetches historical funding rate prices
|
4017
4017
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
4018
4018
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
4019
|
-
:param int [limit]: the maximum amount of `funding rate structures <https://
|
4019
|
+
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
4020
4020
|
:param dict [params]: extra parameters specific to the bitget api endpoint
|
4021
|
-
:returns dict[]: a list of `funding rate structures <https://
|
4021
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
4022
4022
|
"""
|
4023
4023
|
self.check_required_symbol('fetchFundingRateHistory', symbol)
|
4024
4024
|
self.load_markets()
|
@@ -4644,7 +4644,7 @@ class bitget(Exchange, ImplicitAPI):
|
|
4644
4644
|
see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
4645
4645
|
:param str[]|None codes: list of unified currency codes
|
4646
4646
|
:param dict [params]: extra parameters specific to the bitget api endpoint
|
4647
|
-
:returns dict: a list of `fee structures <https://
|
4647
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
4648
4648
|
"""
|
4649
4649
|
self.load_markets()
|
4650
4650
|
response = self.publicSpotGetPublicCurrencies(params)
|
ccxt/bithumb.py
CHANGED
@@ -288,7 +288,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
288
288
|
"""
|
289
289
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
290
290
|
:param dict [params]: extra parameters specific to the bithumb api endpoint
|
291
|
-
:returns dict: a `balance structure <https://
|
291
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
292
292
|
"""
|
293
293
|
self.load_markets()
|
294
294
|
request = {
|
@@ -612,7 +612,7 @@ class bithumb(Exchange, ImplicitAPI):
|
|
612
612
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
613
613
|
:param int [limit]: the maximum amount of trades to fetch
|
614
614
|
:param dict [params]: extra parameters specific to the bithumb api endpoint
|
615
|
-
:returns Trade[]: a list of `trade structures <https://
|
615
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
616
616
|
"""
|
617
617
|
self.load_markets()
|
618
618
|
market = self.market(symbol)
|
ccxt/bitmart.py
CHANGED
@@ -1308,7 +1308,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
1308
1308
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1309
1309
|
:param int [limit]: the maximum amount of trades to fetch
|
1310
1310
|
:param dict [params]: extra parameters specific to the bitmart api endpoint
|
1311
|
-
:returns Trade[]: a list of `trade structures <https://
|
1311
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1312
1312
|
"""
|
1313
1313
|
self.load_markets()
|
1314
1314
|
market = self.market(symbol)
|
@@ -1647,7 +1647,7 @@ class bitmart(Exchange, ImplicitAPI):
|
|
1647
1647
|
see https://developer-pro.bitmart.com/en/spot/#get-account-balance
|
1648
1648
|
see https://developer-pro.bitmart.com/en/spot/#get-margin-account-details-isolated
|
1649
1649
|
:param dict [params]: extra parameters specific to the bitmart api endpoint
|
1650
|
-
:returns dict: a `balance structure <https://
|
1650
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1651
1651
|
"""
|
1652
1652
|
self.load_markets()
|
1653
1653
|
marketType = None
|
ccxt/bitmex.py
CHANGED
@@ -723,7 +723,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
723
723
|
"""
|
724
724
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
725
725
|
:param dict [params]: extra parameters specific to the bitmex api endpoint
|
726
|
-
:returns dict: a `balance structure <https://
|
726
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
727
727
|
"""
|
728
728
|
self.load_markets()
|
729
729
|
request = {
|
@@ -1633,7 +1633,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
1633
1633
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1634
1634
|
:param int [limit]: the maximum amount of trades to fetch
|
1635
1635
|
:param dict [params]: extra parameters specific to the bitmex api endpoint
|
1636
|
-
:returns Trade[]: a list of `trade structures <https://
|
1636
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
1637
1637
|
"""
|
1638
1638
|
self.load_markets()
|
1639
1639
|
market = self.market(symbol)
|
@@ -2191,14 +2191,14 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2191
2191
|
Fetches the history of funding rates
|
2192
2192
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2193
2193
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2194
|
-
:param int [limit]: the maximum amount of `funding rate structures <https://
|
2194
|
+
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
2195
2195
|
:param dict [params]: extra parameters specific to the bitmex api endpoint
|
2196
2196
|
:param int [params.until]: timestamp in ms for ending date filter
|
2197
2197
|
:param bool [params.reverse]: if True, will sort results newest first
|
2198
2198
|
:param int [params.start]: starting point for results
|
2199
2199
|
:param str [params.columns]: array of column names to fetch in info, if omitted, will return all columns
|
2200
2200
|
:param str [params.filter]: generic table filter, send json key/value pairs, such as {"key": "value"}, you can key on individual fields, and do more advanced querying on timestamps, see the `timestamp docs <https://www.bitmex.com/app/restAPI#Timestamp-Filters>` for more details
|
2201
|
-
:returns dict[]: a list of `funding rate structures <https://
|
2201
|
+
:returns dict[]: a list of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>`
|
2202
2202
|
"""
|
2203
2203
|
self.load_markets()
|
2204
2204
|
request = {}
|
@@ -2406,7 +2406,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
2406
2406
|
see https://www.bitmex.com/api/explorer/#not /Wallet/Wallet_getAssetsConfig
|
2407
2407
|
:param str[]|None codes: list of unified currency codes
|
2408
2408
|
:param dict [params]: extra parameters specific to the bitmex api endpoint
|
2409
|
-
:returns dict: a list of `fee structures <https://
|
2409
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
2410
2410
|
"""
|
2411
2411
|
self.load_markets()
|
2412
2412
|
assets = self.publicGetWalletAssets(params)
|
ccxt/bitopro.py
CHANGED
@@ -586,7 +586,7 @@ class bitopro(Exchange, ImplicitAPI):
|
|
586
586
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
587
587
|
:param int [limit]: the maximum amount of trades to fetch
|
588
588
|
:param dict [params]: extra parameters specific to the bitopro api endpoint
|
589
|
-
:returns Trade[]: a list of `trade structures <https://
|
589
|
+
:returns Trade[]: a list of `trade structures <https://github.com/ccxt/ccxt/wiki/Manual#public-trades>`
|
590
590
|
"""
|
591
591
|
self.load_markets()
|
592
592
|
market = self.market(symbol)
|
@@ -819,7 +819,7 @@ class bitopro(Exchange, ImplicitAPI):
|
|
819
819
|
"""
|
820
820
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
821
821
|
:param dict [params]: extra parameters specific to the bitopro api endpoint
|
822
|
-
:returns dict: a `balance structure <https://
|
822
|
+
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
823
823
|
"""
|
824
824
|
self.load_markets()
|
825
825
|
response = self.privateGetAccountsBalance(params)
|
@@ -1530,7 +1530,7 @@ class bitopro(Exchange, ImplicitAPI):
|
|
1530
1530
|
see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/v3-1/rest-1/open/currencies.md
|
1531
1531
|
:param str[]|None codes: list of unified currency codes
|
1532
1532
|
:param dict [params]: extra parameters specific to the bitopro api endpoint
|
1533
|
-
:returns dict: a list of `fee structures <https://
|
1533
|
+
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
1534
1534
|
"""
|
1535
1535
|
self.load_markets()
|
1536
1536
|
response = self.publicGetProvisioningCurrencies(params)
|