ccxt 3.1.59__py2.py3-none-any.whl → 4.0.3__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.
- ccxt/__init__.py +1 -1
- ccxt/ace.py +6 -6
- ccxt/alpaca.py +4 -4
- ccxt/ascendex.py +14 -14
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +6 -6
- ccxt/async_support/alpaca.py +4 -4
- ccxt/async_support/ascendex.py +14 -14
- ccxt/async_support/base/exchange.py +13 -13
- ccxt/async_support/bigone.py +11 -11
- ccxt/async_support/binance.py +34 -34
- ccxt/async_support/bit2c.py +3 -3
- ccxt/async_support/bitbank.py +5 -5
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +13 -13
- ccxt/async_support/bitfinex2.py +11 -11
- ccxt/async_support/bitflyer.py +10 -10
- ccxt/async_support/bitforex.py +6 -6
- ccxt/async_support/bitget.py +18 -18
- ccxt/async_support/bithumb.py +5 -5
- ccxt/async_support/bitmart.py +13 -13
- ccxt/async_support/bitmex.py +15 -15
- ccxt/async_support/bitopro.py +12 -12
- ccxt/async_support/bitpanda.py +12 -12
- ccxt/async_support/bitrue.py +11 -11
- ccxt/async_support/bitso.py +13 -13
- ccxt/async_support/bitstamp.py +12 -12
- ccxt/async_support/bitstamp1.py +2 -2
- ccxt/async_support/bittrex.py +15 -15
- ccxt/async_support/bitvavo.py +11 -11
- ccxt/async_support/bkex.py +12 -12
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/blockchaincom.py +7 -7
- ccxt/async_support/btcalpha.py +10 -10
- ccxt/async_support/btcbox.py +3 -3
- ccxt/async_support/btcmarkets.py +10 -10
- ccxt/async_support/btctradeua.py +2 -2
- ccxt/async_support/btcturk.py +7 -7
- ccxt/async_support/bybit.py +19 -19
- ccxt/async_support/cex.py +7 -7
- ccxt/async_support/coinbase.py +11 -11
- ccxt/async_support/coinbasepro.py +12 -12
- ccxt/async_support/coincheck.py +5 -5
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinfalcon.py +7 -7
- ccxt/async_support/coinmate.py +5 -5
- ccxt/async_support/coinone.py +6 -6
- ccxt/async_support/coinsph.py +11 -11
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +19 -18
- ccxt/async_support/currencycom.py +10 -10
- ccxt/async_support/delta.py +10 -10
- ccxt/async_support/deribit.py +14 -14
- ccxt/async_support/digifinex.py +17 -17
- ccxt/async_support/exmo.py +12 -12
- ccxt/async_support/gate.py +19 -19
- ccxt/async_support/gemini.py +6 -6
- ccxt/async_support/hitbtc.py +8 -8
- ccxt/async_support/hitbtc3.py +18 -18
- ccxt/async_support/hollaex.py +13 -13
- ccxt/async_support/huobi.py +21 -21
- ccxt/async_support/huobijp.py +13 -13
- ccxt/async_support/idex.py +10 -10
- ccxt/async_support/independentreserve.py +5 -5
- ccxt/async_support/indodax.py +5 -5
- ccxt/async_support/kraken.py +14 -14
- ccxt/async_support/krakenfutures.py +3 -3
- ccxt/async_support/kucoin.py +13 -13
- ccxt/async_support/kucoinfutures.py +10 -10
- ccxt/async_support/kuna.py +6 -6
- ccxt/async_support/latoken.py +8 -8
- ccxt/async_support/lbank.py +6 -6
- ccxt/async_support/lbank2.py +12 -12
- ccxt/async_support/luno.py +7 -7
- ccxt/async_support/lykke.py +7 -7
- ccxt/async_support/mercado.py +6 -6
- ccxt/async_support/mexc.py +26 -61
- ccxt/async_support/ndax.py +10 -10
- ccxt/async_support/novadax.py +11 -11
- ccxt/async_support/oceanex.py +10 -10
- ccxt/async_support/okcoin.py +12 -12
- ccxt/async_support/okx.py +23 -23
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +16 -16
- ccxt/async_support/poloniex.py +12 -12
- ccxt/async_support/poloniexfutures.py +10 -10
- ccxt/async_support/probit.py +14 -14
- ccxt/async_support/tidex.py +6 -6
- ccxt/async_support/timex.py +10 -10
- ccxt/async_support/tokocrypto.py +12 -12
- ccxt/async_support/upbit.py +10 -10
- ccxt/async_support/wavesexchange.py +9 -9
- ccxt/async_support/wazirx.py +7 -7
- ccxt/async_support/whitebit.py +12 -12
- ccxt/async_support/woo.py +9 -9
- ccxt/async_support/yobit.py +6 -6
- ccxt/async_support/zaif.py +4 -4
- ccxt/async_support/zonda.py +7 -7
- ccxt/base/exchange.py +13 -13
- ccxt/bigone.py +11 -11
- ccxt/binance.py +34 -34
- ccxt/bit2c.py +3 -3
- ccxt/bitbank.py +5 -5
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +13 -13
- ccxt/bitfinex2.py +11 -11
- ccxt/bitflyer.py +10 -10
- ccxt/bitforex.py +6 -6
- ccxt/bitget.py +18 -18
- ccxt/bithumb.py +5 -5
- ccxt/bitmart.py +13 -13
- ccxt/bitmex.py +15 -15
- ccxt/bitopro.py +12 -12
- ccxt/bitpanda.py +12 -12
- ccxt/bitrue.py +11 -11
- ccxt/bitso.py +13 -13
- ccxt/bitstamp.py +12 -12
- ccxt/bitstamp1.py +2 -2
- ccxt/bittrex.py +15 -15
- ccxt/bitvavo.py +11 -11
- ccxt/bkex.py +12 -12
- ccxt/bl3p.py +1 -1
- ccxt/blockchaincom.py +7 -7
- ccxt/btcalpha.py +10 -10
- ccxt/btcbox.py +3 -3
- ccxt/btcmarkets.py +10 -10
- ccxt/btctradeua.py +2 -2
- ccxt/btcturk.py +7 -7
- ccxt/bybit.py +19 -19
- ccxt/cex.py +7 -7
- ccxt/coinbase.py +11 -11
- ccxt/coinbasepro.py +12 -12
- ccxt/coincheck.py +5 -5
- ccxt/coinex.py +19 -19
- ccxt/coinfalcon.py +7 -7
- ccxt/coinmate.py +5 -5
- ccxt/coinone.py +6 -6
- ccxt/coinsph.py +11 -11
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +19 -18
- ccxt/currencycom.py +10 -10
- ccxt/delta.py +10 -10
- ccxt/deribit.py +14 -14
- ccxt/digifinex.py +17 -17
- ccxt/exmo.py +12 -12
- ccxt/gate.py +19 -19
- ccxt/gemini.py +6 -6
- ccxt/hitbtc.py +8 -8
- ccxt/hitbtc3.py +18 -18
- ccxt/hollaex.py +13 -13
- ccxt/huobi.py +21 -21
- ccxt/huobijp.py +13 -13
- ccxt/idex.py +10 -10
- ccxt/independentreserve.py +5 -5
- ccxt/indodax.py +5 -5
- ccxt/kraken.py +14 -14
- ccxt/krakenfutures.py +3 -3
- ccxt/kucoin.py +13 -13
- ccxt/kucoinfutures.py +10 -10
- ccxt/kuna.py +6 -6
- ccxt/latoken.py +8 -8
- ccxt/lbank.py +6 -6
- ccxt/lbank2.py +12 -12
- ccxt/luno.py +7 -7
- ccxt/lykke.py +7 -7
- ccxt/mercado.py +6 -6
- ccxt/mexc.py +26 -61
- ccxt/ndax.py +10 -10
- ccxt/novadax.py +11 -11
- ccxt/oceanex.py +10 -10
- ccxt/okcoin.py +12 -12
- ccxt/okx.py +23 -23
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +16 -16
- ccxt/poloniex.py +12 -12
- ccxt/poloniexfutures.py +10 -10
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +4 -4
- ccxt/pro/ascendex.py +3 -3
- ccxt/pro/binance.py +5 -5
- ccxt/pro/bitfinex.py +2 -2
- ccxt/pro/bitfinex2.py +4 -4
- ccxt/pro/bitget.py +4 -4
- ccxt/pro/bitmart.py +3 -3
- ccxt/pro/bitmex.py +4 -4
- ccxt/pro/bitopro.py +1 -1
- ccxt/pro/bitpanda.py +3 -3
- ccxt/pro/bitrue.py +1 -1
- ccxt/pro/bitstamp.py +2 -2
- ccxt/pro/bittrex.py +4 -4
- ccxt/pro/bitvavo.py +4 -4
- ccxt/pro/blockchaincom.py +3 -3
- ccxt/pro/bybit.py +4 -4
- ccxt/pro/cex.py +5 -5
- ccxt/pro/coinbasepro.py +3 -3
- ccxt/pro/coinex.py +3 -3
- ccxt/pro/cryptocom.py +4 -4
- ccxt/pro/currencycom.py +2 -2
- ccxt/pro/deribit.py +4 -4
- ccxt/pro/exmo.py +2 -2
- ccxt/pro/gate.py +5 -5
- ccxt/pro/gemini.py +3 -3
- ccxt/pro/hitbtc.py +2 -2
- ccxt/pro/hollaex.py +3 -3
- ccxt/pro/huobi.py +4 -4
- ccxt/pro/huobijp.py +2 -2
- ccxt/pro/idex.py +3 -3
- ccxt/pro/independentreserve.py +1 -1
- ccxt/pro/kraken.py +4 -4
- ccxt/pro/krakenfutures.py +6 -6
- ccxt/pro/kucoin.py +4 -4
- ccxt/pro/kucoinfutures.py +2 -2
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +4 -4
- ccxt/pro/ndax.py +2 -2
- ccxt/pro/okcoin.py +3 -3
- ccxt/pro/okx.py +3 -3
- ccxt/pro/phemex.py +4 -4
- ccxt/pro/poloniexfutures.py +3 -3
- ccxt/pro/probit.py +2 -2
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/wazirx.py +4 -4
- ccxt/pro/whitebit.py +4 -4
- ccxt/probit.py +14 -14
- ccxt/tidex.py +6 -6
- ccxt/timex.py +10 -10
- ccxt/tokocrypto.py +12 -12
- ccxt/upbit.py +10 -10
- ccxt/wavesexchange.py +9 -9
- ccxt/wazirx.py +7 -7
- ccxt/whitebit.py +12 -12
- ccxt/woo.py +9 -9
- ccxt/yobit.py +6 -6
- ccxt/zaif.py +4 -4
- ccxt/zonda.py +7 -7
- {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/METADATA +4 -4
- ccxt-4.0.3.dist-info/RECORD +452 -0
- ccxt/async_support/btcex.py +0 -2519
- ccxt/async_support/buda.py +0 -1063
- ccxt/async_support/itbit.py +0 -771
- ccxt/async_support/ripio.py +0 -1102
- ccxt/async_support/stex.py +0 -2508
- ccxt/async_support/xt.py +0 -4420
- ccxt/async_support/zb.py +0 -4127
- ccxt/btcex.py +0 -2519
- ccxt/buda.py +0 -1063
- ccxt/itbit.py +0 -771
- ccxt/ripio.py +0 -1102
- ccxt/stex.py +0 -2508
- ccxt/xt.py +0 -4419
- ccxt/zb.py +0 -4126
- ccxt-3.1.59.dist-info/RECORD +0 -466
- {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/WHEEL +0 -0
- {ccxt-3.1.59.dist-info → ccxt-4.0.3.dist-info}/top_level.txt +0 -0
ccxt/async_support/okcoin.py
CHANGED
|
@@ -821,7 +821,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
821
821
|
"""
|
|
822
822
|
retrieves data on all markets for okcoin
|
|
823
823
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
824
|
-
:returns [
|
|
824
|
+
:returns dict[]: an array of objects representing market data
|
|
825
825
|
"""
|
|
826
826
|
types = self.safe_value(self.options, 'fetchMarkets')
|
|
827
827
|
result = []
|
|
@@ -1300,7 +1300,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
1300
1300
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
1301
1301
|
"""
|
|
1302
1302
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1303
|
-
:param [
|
|
1303
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1304
1304
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
1305
1305
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
1306
1306
|
"""
|
|
@@ -1422,7 +1422,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
1422
1422
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
1423
1423
|
:param int|None limit: the maximum amount of trades to fetch
|
|
1424
1424
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
1425
|
-
:returns [
|
|
1425
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
1426
1426
|
"""
|
|
1427
1427
|
await self.load_markets()
|
|
1428
1428
|
market = self.market(symbol)
|
|
@@ -1524,7 +1524,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
1524
1524
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
1525
1525
|
:param int|None limit: the maximum amount of candles to fetch
|
|
1526
1526
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
1527
|
-
:returns [[
|
|
1527
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
1528
1528
|
"""
|
|
1529
1529
|
await self.load_markets()
|
|
1530
1530
|
market = self.market(symbol)
|
|
@@ -2386,7 +2386,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
2386
2386
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
2387
2387
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
2388
2388
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
2389
|
-
:returns [
|
|
2389
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2390
2390
|
"""
|
|
2391
2391
|
# '-2': failed,
|
|
2392
2392
|
# '-1': cancelled,
|
|
@@ -2406,7 +2406,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
2406
2406
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
2407
2407
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
2408
2408
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
2409
|
-
:returns [
|
|
2409
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2410
2410
|
"""
|
|
2411
2411
|
# '-2': failed,
|
|
2412
2412
|
# '-1': cancelled,
|
|
@@ -2598,7 +2598,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
2598
2598
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
2599
2599
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
2600
2600
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
2601
|
-
:returns [
|
|
2601
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
2602
2602
|
"""
|
|
2603
2603
|
await self.load_markets()
|
|
2604
2604
|
request = {}
|
|
@@ -2618,7 +2618,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
2618
2618
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
2619
2619
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
2620
2620
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
2621
|
-
:returns [
|
|
2621
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
2622
2622
|
"""
|
|
2623
2623
|
await self.load_markets()
|
|
2624
2624
|
request = {}
|
|
@@ -2910,7 +2910,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
2910
2910
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
2911
2911
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
2912
2912
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
2913
|
-
:returns [
|
|
2913
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
2914
2914
|
"""
|
|
2915
2915
|
# okex actually returns ledger entries instead of fills here, so each fill in the order
|
|
2916
2916
|
# is represented by two trades with opposite buy/sell sides, not one :\
|
|
@@ -3014,7 +3014,7 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
3014
3014
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
3015
3015
|
:param int|None limit: the maximum number of trades to retrieve
|
|
3016
3016
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
3017
|
-
:returns [
|
|
3017
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
3018
3018
|
"""
|
|
3019
3019
|
request = {
|
|
3020
3020
|
# 'instrument_id': market['id'],
|
|
@@ -3233,9 +3233,9 @@ class okcoin(Exchange, ImplicitAPI):
|
|
|
3233
3233
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
|
3234
3234
|
"""
|
|
3235
3235
|
fetch all open positions
|
|
3236
|
-
:param [
|
|
3236
|
+
:param str[]|None symbols: not used by okcoin fetchPositions
|
|
3237
3237
|
:param dict params: extra parameters specific to the okcoin api endpoint
|
|
3238
|
-
:returns [
|
|
3238
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
3239
3239
|
"""
|
|
3240
3240
|
await self.load_markets()
|
|
3241
3241
|
method = None
|
ccxt/async_support/okx.py
CHANGED
|
@@ -1083,7 +1083,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
1083
1083
|
"""
|
|
1084
1084
|
retrieves data on all markets for okx
|
|
1085
1085
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
1086
|
-
:returns [
|
|
1086
|
+
:returns dict[]: an array of objects representing market data
|
|
1087
1087
|
"""
|
|
1088
1088
|
types = self.safe_value(self.options, 'fetchMarkets')
|
|
1089
1089
|
promises = []
|
|
@@ -1619,7 +1619,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
1619
1619
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
|
1620
1620
|
"""
|
|
1621
1621
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1622
|
-
:param [
|
|
1622
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1623
1623
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
1624
1624
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
1625
1625
|
"""
|
|
@@ -1731,7 +1731,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
1731
1731
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
1732
1732
|
:param int|None limit: the maximum amount of trades to fetch
|
|
1733
1733
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
1734
|
-
:returns [
|
|
1734
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
1735
1735
|
"""
|
|
1736
1736
|
await self.load_markets()
|
|
1737
1737
|
market = self.market(symbol)
|
|
@@ -1824,7 +1824,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
1824
1824
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
1825
1825
|
:param str|None params['price']: "mark" or "index" for mark price and index price candles
|
|
1826
1826
|
:param int|None params['until']: timestamp in ms of the latest candle to fetch
|
|
1827
|
-
:returns [[
|
|
1827
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
1828
1828
|
"""
|
|
1829
1829
|
await self.load_markets()
|
|
1830
1830
|
market = self.market(symbol)
|
|
@@ -1891,7 +1891,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
1891
1891
|
:param int|None since: timestamp in ms of the earliest funding rate to fetch
|
|
1892
1892
|
:param int|None limit: the maximum amount of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>` to fetch
|
|
1893
1893
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
1894
|
-
:returns [
|
|
1894
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure>`
|
|
1895
1895
|
"""
|
|
1896
1896
|
if symbol is None:
|
|
1897
1897
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
|
@@ -2503,8 +2503,8 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2503
2503
|
def parse_ids(self, ids):
|
|
2504
2504
|
"""
|
|
2505
2505
|
* @ignore
|
|
2506
|
-
:param [
|
|
2507
|
-
:returns [
|
|
2506
|
+
:param string[]|str ids: order ids
|
|
2507
|
+
:returns str[]: list of order ids
|
|
2508
2508
|
"""
|
|
2509
2509
|
if isinstance(ids, str):
|
|
2510
2510
|
return ids.split(',')
|
|
@@ -2514,7 +2514,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2514
2514
|
async def cancel_orders(self, ids, symbol: Optional[str] = None, params={}):
|
|
2515
2515
|
"""
|
|
2516
2516
|
cancel multiple orders
|
|
2517
|
-
:param [
|
|
2517
|
+
:param str[] ids: order ids
|
|
2518
2518
|
:param str symbol: unified market symbol
|
|
2519
2519
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
2520
2520
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
@@ -2941,7 +2941,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2941
2941
|
:param bool params['stop']: True if fetching trigger or conditional orders
|
|
2942
2942
|
:param str params['ordType']: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
2943
2943
|
:param str|None params['algoId']: Algo ID "'433845797218942976'"
|
|
2944
|
-
:returns [
|
|
2944
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2945
2945
|
"""
|
|
2946
2946
|
await self.load_markets()
|
|
2947
2947
|
request = {
|
|
@@ -3245,7 +3245,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3245
3245
|
:param str params['ordType']: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
3246
3246
|
:param str|None params['algoId']: Algo ID "'433845797218942976'"
|
|
3247
3247
|
:param int|None params['until']: timestamp in ms to fetch orders for
|
|
3248
|
-
:returns [
|
|
3248
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3249
3249
|
"""
|
|
3250
3250
|
await self.load_markets()
|
|
3251
3251
|
request = {
|
|
@@ -3396,7 +3396,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3396
3396
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
3397
3397
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
3398
3398
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
3399
|
-
:returns [
|
|
3399
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
3400
3400
|
"""
|
|
3401
3401
|
await self.load_markets()
|
|
3402
3402
|
request = {
|
|
@@ -3453,7 +3453,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3453
3453
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
3454
3454
|
:param int|None limit: the maximum number of trades to retrieve
|
|
3455
3455
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
3456
|
-
:returns [
|
|
3456
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
3457
3457
|
"""
|
|
3458
3458
|
request = {
|
|
3459
3459
|
# 'instrument_id': market['id'],
|
|
@@ -3893,7 +3893,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3893
3893
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
3894
3894
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
3895
3895
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
3896
|
-
:returns [
|
|
3896
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
3897
3897
|
"""
|
|
3898
3898
|
await self.load_markets()
|
|
3899
3899
|
request = {
|
|
@@ -3983,7 +3983,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3983
3983
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
3984
3984
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
3985
3985
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
3986
|
-
:returns [
|
|
3986
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
3987
3987
|
"""
|
|
3988
3988
|
await self.load_markets()
|
|
3989
3989
|
request = {
|
|
@@ -4320,10 +4320,10 @@ class okx(Exchange, ImplicitAPI):
|
|
|
4320
4320
|
"""
|
|
4321
4321
|
see https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
|
|
4322
4322
|
fetch all open positions
|
|
4323
|
-
:param [
|
|
4323
|
+
:param str[]|None symbols: list of unified market symbols
|
|
4324
4324
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
4325
4325
|
:param str|None params['instType']: MARGIN, SWAP, FUTURES, OPTION
|
|
4326
|
-
:returns [
|
|
4326
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
4327
4327
|
"""
|
|
4328
4328
|
await self.load_markets()
|
|
4329
4329
|
request = {
|
|
@@ -4702,7 +4702,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
4702
4702
|
:param int|None since: the earliest time in ms to fetch transfers for
|
|
4703
4703
|
:param int|None limit: the maximum number of transfers structures to retrieve
|
|
4704
4704
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
4705
|
-
:returns [
|
|
4705
|
+
:returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
|
|
4706
4706
|
"""
|
|
4707
4707
|
await self.load_markets()
|
|
4708
4708
|
currency = None
|
|
@@ -5278,7 +5278,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
5278
5278
|
async def fetch_borrow_rate_histories(self, codes=None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
|
5279
5279
|
"""
|
|
5280
5280
|
retrieves a history of a multiple currencies borrow interest rate at specific time slots, returns all currencies if no symbols passed, default is None
|
|
5281
|
-
:param [
|
|
5281
|
+
:param str[]|None codes: list of unified currency codes, default is None
|
|
5282
5282
|
:param int|None since: timestamp in ms of the earliest borrowRate, default is None
|
|
5283
5283
|
:param int|None limit: max number of borrow rate prices to return, default is None
|
|
5284
5284
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
@@ -5320,7 +5320,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
5320
5320
|
:param int|None since: timestamp for the earliest borrow rate
|
|
5321
5321
|
:param int|None limit: the maximum number of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>` to retrieve
|
|
5322
5322
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
5323
|
-
:returns [
|
|
5323
|
+
:returns dict[]: an array of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
|
|
5324
5324
|
"""
|
|
5325
5325
|
await self.load_markets()
|
|
5326
5326
|
currency = self.currency(code)
|
|
@@ -5521,7 +5521,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
5521
5521
|
:param dict params: exchange specific parameters
|
|
5522
5522
|
:param int|None params['type']: Loan type 1 - VIP loans 2 - Market loans *Default is Market loans*
|
|
5523
5523
|
:param str params['marginMode']: 'cross' or 'isolated'
|
|
5524
|
-
:returns [
|
|
5524
|
+
:returns dict[]: An list of `borrow interest structures <https://docs.ccxt.com/#/?id=borrow-interest-structure>`
|
|
5525
5525
|
"""
|
|
5526
5526
|
await self.load_markets()
|
|
5527
5527
|
marginMode = None
|
|
@@ -5853,9 +5853,9 @@ class okx(Exchange, ImplicitAPI):
|
|
|
5853
5853
|
"""
|
|
5854
5854
|
fetch deposit and withdraw fees
|
|
5855
5855
|
see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
|
|
5856
|
-
:param [
|
|
5856
|
+
:param str[]|None codes: list of unified currency codes
|
|
5857
5857
|
:param dict params: extra parameters specific to the okx api endpoint
|
|
5858
|
-
:returns [
|
|
5858
|
+
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
|
5859
5859
|
"""
|
|
5860
5860
|
await self.load_markets()
|
|
5861
5861
|
response = await self.privateGetAssetCurrencies(params)
|
|
@@ -5970,7 +5970,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
5970
5970
|
:param int since: timestamp in ms
|
|
5971
5971
|
:param int limit: number of records
|
|
5972
5972
|
:param dict params: exchange specific params
|
|
5973
|
-
:returns [
|
|
5973
|
+
:returns dict[]: a list of [settlement history objects]
|
|
5974
5974
|
"""
|
|
5975
5975
|
self.check_required_symbol('fetchSettlementHistory', symbol)
|
|
5976
5976
|
await self.load_markets()
|
ccxt/async_support/paymium.py
CHANGED
|
@@ -272,7 +272,7 @@ class paymium(Exchange, ImplicitAPI):
|
|
|
272
272
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
273
273
|
:param int|None limit: the maximum amount of trades to fetch
|
|
274
274
|
:param dict params: extra parameters specific to the paymium api endpoint
|
|
275
|
-
:returns [
|
|
275
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
276
276
|
"""
|
|
277
277
|
await self.load_markets()
|
|
278
278
|
market = self.market(symbol)
|
|
@@ -329,7 +329,7 @@ class paymium(Exchange, ImplicitAPI):
|
|
|
329
329
|
"""
|
|
330
330
|
fetch deposit addresses for multiple currencies and chain types
|
|
331
331
|
see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/get
|
|
332
|
-
:param [
|
|
332
|
+
:param str[]|None codes: list of unified currency codes, default is None
|
|
333
333
|
:param dict params: extra parameters specific to the paymium api endpoint
|
|
334
334
|
:returns dict: a list of `address structures <https://docs.ccxt.com/#/?id=address-structure>`
|
|
335
335
|
"""
|
ccxt/async_support/phemex.py
CHANGED
|
@@ -707,7 +707,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
707
707
|
"""
|
|
708
708
|
retrieves data on all markets for phemex
|
|
709
709
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
710
|
-
:returns [
|
|
710
|
+
:returns dict[]: an array of objects representing market data
|
|
711
711
|
"""
|
|
712
712
|
v2Products = await self.publicGetCfgV2Products(params)
|
|
713
713
|
#
|
|
@@ -1084,7 +1084,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
1084
1084
|
:param int|None since: *emulated not supported by the exchange* timestamp in ms of the earliest candle to fetch
|
|
1085
1085
|
:param int|None limit: the maximum amount of candles to fetch
|
|
1086
1086
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
1087
|
-
:returns [[
|
|
1087
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
1088
1088
|
"""
|
|
1089
1089
|
await self.load_markets()
|
|
1090
1090
|
market = self.market(symbol)
|
|
@@ -1192,7 +1192,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
1192
1192
|
symbol = market['symbol']
|
|
1193
1193
|
timestamp = self.safe_integer_product(ticker, 'timestamp', 0.000001)
|
|
1194
1194
|
last = self.from_ep(self.safe_string_2(ticker, 'lastEp', 'closeRp'), market)
|
|
1195
|
-
quoteVolume = self.
|
|
1195
|
+
quoteVolume = self.from_er(self.safe_string_2(ticker, 'turnoverEv', 'turnoverRv'), market)
|
|
1196
1196
|
baseVolume = self.safe_string(ticker, 'volume')
|
|
1197
1197
|
if baseVolume is None:
|
|
1198
1198
|
baseVolume = self.from_ev(self.safe_string_2(ticker, 'volumeEv', 'volumeRq'), market)
|
|
@@ -1294,7 +1294,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
1294
1294
|
see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols-2 # spot
|
|
1295
1295
|
see https://phemex-docs.github.io/#query-24-ticker-for-all-symbols # linear
|
|
1296
1296
|
see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols # inverse
|
|
1297
|
-
:param [
|
|
1297
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1298
1298
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
1299
1299
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
1300
1300
|
"""
|
|
@@ -1328,7 +1328,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
1328
1328
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
1329
1329
|
:param int|None limit: the maximum amount of trades to fetch
|
|
1330
1330
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
1331
|
-
:returns [
|
|
1331
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
1332
1332
|
"""
|
|
1333
1333
|
await self.load_markets()
|
|
1334
1334
|
market = self.market(symbol)
|
|
@@ -2542,7 +2542,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2542
2542
|
see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
|
|
2543
2543
|
:param str symbol: unified market symbol of the market to cancel orders in
|
|
2544
2544
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2545
|
-
:returns [
|
|
2545
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2546
2546
|
"""
|
|
2547
2547
|
if symbol is None:
|
|
2548
2548
|
raise ArgumentsRequired(self.id + ' cancelAllOrders() requires a symbol argument')
|
|
@@ -2605,7 +2605,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2605
2605
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
2606
2606
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
2607
2607
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2608
|
-
:returns [
|
|
2608
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2609
2609
|
"""
|
|
2610
2610
|
if symbol is None:
|
|
2611
2611
|
raise ArgumentsRequired(self.id + ' fetchOrders() requires a symbol argument')
|
|
@@ -2638,7 +2638,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2638
2638
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
2639
2639
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
2640
2640
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2641
|
-
:returns [
|
|
2641
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2642
2642
|
"""
|
|
2643
2643
|
if symbol is None:
|
|
2644
2644
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires a symbol argument')
|
|
@@ -2674,7 +2674,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2674
2674
|
:param int|None since: the earliest time in ms to fetch orders for
|
|
2675
2675
|
:param int|None limit: the maximum number of orde structures to retrieve
|
|
2676
2676
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2677
|
-
:returns [
|
|
2677
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2678
2678
|
"""
|
|
2679
2679
|
if symbol is None:
|
|
2680
2680
|
raise ArgumentsRequired(self.id + ' fetchClosedOrders() requires a symbol argument')
|
|
@@ -2746,7 +2746,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2746
2746
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
2747
2747
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
2748
2748
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2749
|
-
:returns [
|
|
2749
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
2750
2750
|
"""
|
|
2751
2751
|
if symbol is None:
|
|
2752
2752
|
raise ArgumentsRequired(self.id + ' fetchMyTrades() requires a symbol argument')
|
|
@@ -2934,7 +2934,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2934
2934
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
2935
2935
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
2936
2936
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2937
|
-
:returns [
|
|
2937
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
2938
2938
|
"""
|
|
2939
2939
|
await self.load_markets()
|
|
2940
2940
|
currency = None
|
|
@@ -2971,7 +2971,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
2971
2971
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
2972
2972
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
2973
2973
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
2974
|
-
:returns [
|
|
2974
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
2975
2975
|
"""
|
|
2976
2976
|
await self.load_markets()
|
|
2977
2977
|
currency = None
|
|
@@ -3089,9 +3089,9 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
3089
3089
|
fetch all open positions
|
|
3090
3090
|
see https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#query-trading-account-and-positions
|
|
3091
3091
|
see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
|
|
3092
|
-
:param [
|
|
3092
|
+
:param str[]|None symbols: list of unified market symbols
|
|
3093
3093
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
3094
|
-
:returns [
|
|
3094
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
3095
3095
|
"""
|
|
3096
3096
|
await self.load_markets()
|
|
3097
3097
|
symbols = self.market_symbols(symbols)
|
|
@@ -3618,7 +3618,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
3618
3618
|
async def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
|
|
3619
3619
|
"""
|
|
3620
3620
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3621
|
-
:param [
|
|
3621
|
+
:param str[]|None symbols: list of unified market symbols
|
|
3622
3622
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
3623
3623
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
|
3624
3624
|
"""
|
|
@@ -3894,7 +3894,7 @@ class phemex(Exchange, ImplicitAPI):
|
|
|
3894
3894
|
:param int|None since: the earliest time in ms to fetch transfers for
|
|
3895
3895
|
:param int|None limit: the maximum number of transfers structures to retrieve
|
|
3896
3896
|
:param dict params: extra parameters specific to the phemex api endpoint
|
|
3897
|
-
:returns [
|
|
3897
|
+
:returns dict[]: a list of `transfer structures <https://docs.ccxt.com/#/?id=transfer-structure>`
|
|
3898
3898
|
"""
|
|
3899
3899
|
await self.load_markets()
|
|
3900
3900
|
if code is None:
|
ccxt/async_support/poloniex.py
CHANGED
|
@@ -421,7 +421,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
421
421
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
422
422
|
:param int|None limit: the maximum amount of candles to fetch
|
|
423
423
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
424
|
-
:returns [[
|
|
424
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
425
425
|
"""
|
|
426
426
|
await self.load_markets()
|
|
427
427
|
market = self.market(symbol)
|
|
@@ -469,7 +469,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
469
469
|
retrieves data on all markets for poloniex
|
|
470
470
|
see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
|
|
471
471
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
472
|
-
:returns [
|
|
472
|
+
:returns dict[]: an array of objects representing market data
|
|
473
473
|
"""
|
|
474
474
|
markets = await self.publicGetMarkets(params)
|
|
475
475
|
#
|
|
@@ -615,7 +615,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
615
615
|
"""
|
|
616
616
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
617
617
|
see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
618
|
-
:param [
|
|
618
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
619
619
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
620
620
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
621
621
|
"""
|
|
@@ -901,7 +901,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
901
901
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
902
902
|
:param int|None limit: the maximum amount of trades to fetch
|
|
903
903
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
904
|
-
:returns [
|
|
904
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
905
905
|
"""
|
|
906
906
|
await self.load_markets()
|
|
907
907
|
market = self.market(symbol)
|
|
@@ -934,7 +934,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
934
934
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
935
935
|
:param int|None limit: the maximum number of trades structures to retrieve
|
|
936
936
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
937
|
-
:returns [
|
|
937
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
938
938
|
"""
|
|
939
939
|
await self.load_markets()
|
|
940
940
|
market = None
|
|
@@ -1125,7 +1125,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
1125
1125
|
:param int|None since: the earliest time in ms to fetch open orders for
|
|
1126
1126
|
:param int|None limit: the maximum number of open orders structures to retrieve
|
|
1127
1127
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
1128
|
-
:returns [
|
|
1128
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1129
1129
|
"""
|
|
1130
1130
|
await self.load_markets()
|
|
1131
1131
|
market = None
|
|
@@ -1282,7 +1282,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
1282
1282
|
see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
|
|
1283
1283
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
|
1284
1284
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
1285
|
-
:returns [
|
|
1285
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1286
1286
|
"""
|
|
1287
1287
|
await self.load_markets()
|
|
1288
1288
|
request = {
|
|
@@ -1368,7 +1368,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
1368
1368
|
:param int|None since: the earliest time in ms to fetch trades for
|
|
1369
1369
|
:param int|None limit: the maximum number of trades to retrieve
|
|
1370
1370
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
1371
|
-
:returns [
|
|
1371
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1372
1372
|
"""
|
|
1373
1373
|
await self.load_markets()
|
|
1374
1374
|
request = {
|
|
@@ -1815,7 +1815,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
1815
1815
|
:param int|None since: the earliest time in ms to fetch withdrawals for
|
|
1816
1816
|
:param int|None limit: the maximum number of withdrawals structures to retrieve
|
|
1817
1817
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
1818
|
-
:returns [
|
|
1818
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1819
1819
|
"""
|
|
1820
1820
|
response = await self.fetch_transactions_helper(code, since, limit, params)
|
|
1821
1821
|
currency = None
|
|
@@ -1829,9 +1829,9 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
1829
1829
|
"""
|
|
1830
1830
|
fetch deposit and withdraw fees
|
|
1831
1831
|
see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
1832
|
-
:param [
|
|
1832
|
+
:param str[]|None codes: list of unified currency codes
|
|
1833
1833
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
1834
|
-
:returns [
|
|
1834
|
+
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
|
1835
1835
|
"""
|
|
1836
1836
|
await self.load_markets()
|
|
1837
1837
|
response = await self.publicGetCurrencies(self.extend(params, {'includeMultiChainCurrencies': True}))
|
|
@@ -1950,7 +1950,7 @@ class poloniex(Exchange, ImplicitAPI):
|
|
|
1950
1950
|
:param int|None since: the earliest time in ms to fetch deposits for
|
|
1951
1951
|
:param int|None limit: the maximum number of deposits structures to retrieve
|
|
1952
1952
|
:param dict params: extra parameters specific to the poloniex api endpoint
|
|
1953
|
-
:returns [
|
|
1953
|
+
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
|
1954
1954
|
"""
|
|
1955
1955
|
response = await self.fetch_transactions_helper(code, since, limit, params)
|
|
1956
1956
|
currency = None
|
|
@@ -213,7 +213,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
213
213
|
retrieves data on all markets for poloniexfutures
|
|
214
214
|
see https://futures-docs.poloniex.com/#symbol-2
|
|
215
215
|
:param dict params: extra parameters specific to the exchange api endpoint
|
|
216
|
-
:returns [
|
|
216
|
+
:returns dict[]: an array of objects representing market data
|
|
217
217
|
"""
|
|
218
218
|
response = await self.publicGetContractsActive(params)
|
|
219
219
|
#
|
|
@@ -440,7 +440,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
440
440
|
"""
|
|
441
441
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
442
442
|
see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
|
443
|
-
:param [
|
|
443
|
+
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
444
444
|
:param dict params: extra parameters specific to the poloniexfutures api endpoint
|
|
445
445
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
|
446
446
|
"""
|
|
@@ -635,7 +635,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
635
635
|
:param int|None since: timestamp in ms of the earliest trade to fetch
|
|
636
636
|
:param int|None limit: the maximum amount of trades to fetch
|
|
637
637
|
:param dict params: extra parameters specific to the poloniexfutures api endpoint
|
|
638
|
-
:returns [
|
|
638
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/en/latest/manual.html?#public-trades>`
|
|
639
639
|
"""
|
|
640
640
|
await self.load_markets()
|
|
641
641
|
market = self.market(symbol)
|
|
@@ -688,7 +688,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
688
688
|
:param int|None since: timestamp in ms of the earliest candle to fetch
|
|
689
689
|
:param int|None limit: the maximum amount of candles to fetch
|
|
690
690
|
:param dict params: extra parameters specific to the poloniexfutures api endpoint
|
|
691
|
-
:returns [[
|
|
691
|
+
:returns int[][]: A list of candles ordered, open, high, low, close, volume
|
|
692
692
|
"""
|
|
693
693
|
await self.load_markets()
|
|
694
694
|
market = self.market(symbol)
|
|
@@ -912,9 +912,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
912
912
|
"""
|
|
913
913
|
fetch all open positions
|
|
914
914
|
see https://futures-docs.poloniex.com/#get-position-list
|
|
915
|
-
:param [
|
|
915
|
+
:param str[]|None symbols: list of unified market symbols
|
|
916
916
|
:param dict params: extra parameters specific to the poloniexfutures api endpoint
|
|
917
|
-
:returns [
|
|
917
|
+
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
|
918
918
|
"""
|
|
919
919
|
await self.load_markets()
|
|
920
920
|
response = await self.privateGetPositions(params)
|
|
@@ -1129,7 +1129,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
1129
1129
|
:param str|None symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
|
1130
1130
|
:param dict params: extra parameters specific to the poloniexfutures api endpoint
|
|
1131
1131
|
:param dict params['stop']: When True, all the trigger orders will be cancelled
|
|
1132
|
-
:returns [
|
|
1132
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1133
1133
|
"""
|
|
1134
1134
|
await self.load_markets()
|
|
1135
1135
|
request = {}
|
|
@@ -1286,7 +1286,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
1286
1286
|
:param int|None params['till']: end time in ms
|
|
1287
1287
|
:param str|None params['side']: buy or sell
|
|
1288
1288
|
:param str|None params['type']: limit, or market
|
|
1289
|
-
:returns [
|
|
1289
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1290
1290
|
"""
|
|
1291
1291
|
return await self.fetch_orders_by_status('open', symbol, since, limit, params)
|
|
1292
1292
|
|
|
@@ -1302,7 +1302,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
1302
1302
|
:param int|None params['till']: end time in ms
|
|
1303
1303
|
:param str|None params['side']: buy or sell
|
|
1304
1304
|
:param str|None params['type']: limit, or market
|
|
1305
|
-
:returns [
|
|
1305
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
1306
1306
|
"""
|
|
1307
1307
|
return await self.fetch_orders_by_status('closed', symbol, since, limit, params)
|
|
1308
1308
|
|
|
@@ -1555,7 +1555,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
|
1555
1555
|
:param str|None side: buy or sell
|
|
1556
1556
|
:param str|None type: limit, market, limit_stop or market_stop
|
|
1557
1557
|
:param int|None endAt: end time(milisecond)
|
|
1558
|
-
:returns [
|
|
1558
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
|
1559
1559
|
"""
|
|
1560
1560
|
await self.load_markets()
|
|
1561
1561
|
request = {
|