ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__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/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/async_support/onetrading.py
CHANGED
@@ -1450,7 +1450,9 @@ class onetrading(Exchange, ImplicitAPI):
|
|
1450
1450
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1451
1451
|
"""
|
1452
1452
|
create a trade order
|
1453
|
-
|
1453
|
+
|
1454
|
+
https://docs.onetrading.com/#create-order
|
1455
|
+
|
1454
1456
|
:param str symbol: unified symbol of the market to create an order in
|
1455
1457
|
:param str type: 'market' or 'limit'
|
1456
1458
|
:param str side: 'buy' or 'sell'
|
ccxt/async_support/oxfun.py
CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
|
|
7
7
|
from ccxt.abstract.oxfun import ImplicitAPI
|
8
8
|
import asyncio
|
9
9
|
import hashlib
|
10
|
-
from ccxt.base.types import Account, Balances, Bool, Currencies, Currency, DepositAddress, Int, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, Transaction, TransferEntry
|
10
|
+
from ccxt.base.types import Account, Balances, Bool, Currencies, Currency, DepositAddress, Int, LeverageTier, LeverageTiers, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade, Transaction, TransferEntry
|
11
11
|
from typing import List
|
12
12
|
from ccxt.base.errors import ExchangeError
|
13
13
|
from ccxt.base.errors import AuthenticationError
|
@@ -94,7 +94,7 @@ class oxfun(Exchange, ImplicitAPI):
|
|
94
94
|
'fetchLedger': False,
|
95
95
|
'fetchLeverage': False,
|
96
96
|
'fetchLeverageTiers': True,
|
97
|
-
'fetchMarketLeverageTiers':
|
97
|
+
'fetchMarketLeverageTiers': 'emulated',
|
98
98
|
'fetchMarkets': True,
|
99
99
|
'fetchMarkOHLCV': False,
|
100
100
|
'fetchMyTrades': True,
|
@@ -332,7 +332,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
332
332
|
async def fetch_markets(self, params={}) -> List[Market]:
|
333
333
|
"""
|
334
334
|
retrieves data on all markets for bitmex
|
335
|
-
|
335
|
+
|
336
|
+
https://docs.ox.fun/?json#get-v3-markets
|
337
|
+
|
336
338
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
337
339
|
:returns dict[]: an array of objects representing market data
|
338
340
|
"""
|
@@ -505,7 +507,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
505
507
|
async def fetch_currencies(self, params={}) -> Currencies:
|
506
508
|
"""
|
507
509
|
fetches all available currencies on an exchange
|
508
|
-
|
510
|
+
|
511
|
+
https://docs.ox.fun/?json#get-v3-assets
|
512
|
+
|
509
513
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
510
514
|
:returns dict: an associative dictionary of currencies
|
511
515
|
"""
|
@@ -722,7 +726,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
722
726
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
723
727
|
"""
|
724
728
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
725
|
-
|
729
|
+
|
730
|
+
https://docs.ox.fun/?json#get-v3-tickers
|
731
|
+
|
726
732
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
727
733
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
728
734
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -783,7 +789,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
783
789
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
784
790
|
"""
|
785
791
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
786
|
-
|
792
|
+
|
793
|
+
https://docs.ox.fun/?json#get-v3-tickers
|
794
|
+
|
787
795
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
788
796
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
789
797
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -866,7 +874,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
866
874
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
867
875
|
"""
|
868
876
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
869
|
-
|
877
|
+
|
878
|
+
https://docs.ox.fun/?json#get-v3-candles
|
879
|
+
|
870
880
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
871
881
|
:param str timeframe: the length of time each candle represents
|
872
882
|
:param int [since]: timestamp in ms of the earliest candle to fetch(default 24 hours ago)
|
@@ -947,7 +957,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
947
957
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
948
958
|
"""
|
949
959
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
950
|
-
|
960
|
+
|
961
|
+
https://docs.ox.fun/?json#get-v3-depth
|
962
|
+
|
951
963
|
:param str symbol: unified symbol of the market to fetch the order book for
|
952
964
|
:param int [limit]: the maximum amount of order book entries to return(default 5, max 100)
|
953
965
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -992,7 +1004,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
992
1004
|
async def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
993
1005
|
"""
|
994
1006
|
fetch the current funding rates for multiple markets
|
995
|
-
|
1007
|
+
|
1008
|
+
https://docs.ox.fun/?json#get-v3-funding-estimates
|
1009
|
+
|
996
1010
|
:param str[] symbols: unified market symbols
|
997
1011
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
998
1012
|
:returns Order[]: an array of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1057,7 +1071,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1057
1071
|
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1058
1072
|
"""
|
1059
1073
|
Fetches the history of funding rates
|
1060
|
-
|
1074
|
+
|
1075
|
+
https://docs.ox.fun/?json#get-v3-funding-rates
|
1076
|
+
|
1061
1077
|
:param str symbol: unified symbol of the market to fetch trades for
|
1062
1078
|
:param int [since]: timestamp in ms of the earliest trade to fetch(default 24 hours ago)
|
1063
1079
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1132,7 +1148,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1132
1148
|
async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1133
1149
|
"""
|
1134
1150
|
fetches the history of funding payments
|
1135
|
-
|
1151
|
+
|
1152
|
+
https://docs.ox.fun/?json#get-v3-funding
|
1153
|
+
|
1136
1154
|
:param str symbol: unified symbol of the market to fetch trades for
|
1137
1155
|
:param int [since]: timestamp in ms of the earliest trade to fetch(default 24 hours ago)
|
1138
1156
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1213,10 +1231,12 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1213
1231
|
'rate': rate,
|
1214
1232
|
}
|
1215
1233
|
|
1216
|
-
async def fetch_leverage_tiers(self, symbols: Strings = None, params={}):
|
1234
|
+
async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
|
1217
1235
|
"""
|
1218
1236
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes, if a market has a leverage tier of 0, then the leverage tiers cannot be obtained for self market
|
1219
|
-
|
1237
|
+
|
1238
|
+
https://docs.ox.fun/?json#get-v3-leverage-tiers
|
1239
|
+
|
1220
1240
|
:param str[] [symbols]: list of unified market symbols
|
1221
1241
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1222
1242
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
@@ -1267,7 +1287,7 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1267
1287
|
data = self.safe_list(response, 'data', [])
|
1268
1288
|
return self.parse_leverage_tiers(data, symbols, 'marketCode')
|
1269
1289
|
|
1270
|
-
def parse_market_leverage_tiers(self, info, market: Market = None):
|
1290
|
+
def parse_market_leverage_tiers(self, info, market: Market = None) -> List[LeverageTier]:
|
1271
1291
|
#
|
1272
1292
|
# {
|
1273
1293
|
# marketCode: 'SOL-USD-SWAP-LIN',
|
@@ -1292,6 +1312,7 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1292
1312
|
tier = listOfTiers[j]
|
1293
1313
|
tiers.append({
|
1294
1314
|
'tier': self.safe_number(tier, 'tier'),
|
1315
|
+
'symbol': self.safe_symbol(marketId, market),
|
1295
1316
|
'currency': market['settle'],
|
1296
1317
|
'minNotional': self.safe_number(tier, 'positionFloor'),
|
1297
1318
|
'maxNotional': self.safe_number(tier, 'positionCap'),
|
@@ -1304,7 +1325,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1304
1325
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1305
1326
|
"""
|
1306
1327
|
get the list of most recent trades for a particular symbol
|
1307
|
-
|
1328
|
+
|
1329
|
+
https://docs.ox.fun/?json#get-v3-exchange-trades
|
1330
|
+
|
1308
1331
|
:param str symbol: unified symbol of the market to fetch trades for
|
1309
1332
|
:param int [since]: timestamp in ms of the earliest trade to fetch(default 24 hours ago)
|
1310
1333
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1350,7 +1373,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1350
1373
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1351
1374
|
"""
|
1352
1375
|
fetch all trades made by the user
|
1353
|
-
|
1376
|
+
|
1377
|
+
https://docs.ox.fun/?json#get-v3-trades
|
1378
|
+
|
1354
1379
|
:param str symbol: unified market symbol
|
1355
1380
|
:param int [since]: the earliest time in ms to fetch trades for
|
1356
1381
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1459,7 +1484,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1459
1484
|
async def fetch_balance(self, params={}) -> Balances:
|
1460
1485
|
"""
|
1461
1486
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1462
|
-
|
1487
|
+
|
1488
|
+
https://docs.ox.fun/?json#get-v3-balances
|
1489
|
+
|
1463
1490
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1464
1491
|
:param str [params.asset]: currency id, if empty the exchange returns info about all currencies
|
1465
1492
|
:param str [params.subAcc]: Name of sub account. If no subAcc is given, then the response contains only the account linked to the API-Key.
|
@@ -1550,7 +1577,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1550
1577
|
async def fetch_accounts(self, params={}) -> List[Account]:
|
1551
1578
|
"""
|
1552
1579
|
fetch subaccounts associated with a profile
|
1553
|
-
|
1580
|
+
|
1581
|
+
https://docs.ox.fun/?json#get-v3-account-names
|
1582
|
+
|
1554
1583
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1555
1584
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
1556
1585
|
"""
|
@@ -1589,7 +1618,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1589
1618
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1590
1619
|
"""
|
1591
1620
|
transfer currency internally between wallets on the same account
|
1592
|
-
|
1621
|
+
|
1622
|
+
https://docs.ox.fun/?json#post-v3-transfer
|
1623
|
+
|
1593
1624
|
:param str code: unified currency code
|
1594
1625
|
:param float amount: amount to transfer
|
1595
1626
|
:param str fromAccount: account id to transfer from
|
@@ -1630,7 +1661,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1630
1661
|
async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1631
1662
|
"""
|
1632
1663
|
fetch a history of internal transfers made on an account
|
1633
|
-
|
1664
|
+
|
1665
|
+
https://docs.ox.fun/?json#get-v3-transfer
|
1666
|
+
|
1634
1667
|
:param str code: unified currency code of the currency transferred
|
1635
1668
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1636
1669
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1713,7 +1746,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1713
1746
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1714
1747
|
"""
|
1715
1748
|
fetch the deposit address for a currency associated with self account
|
1716
|
-
|
1749
|
+
|
1750
|
+
https://docs.ox.fun/?json#get-v3-deposit-addresses
|
1751
|
+
|
1717
1752
|
:param str code: unified currency code
|
1718
1753
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1719
1754
|
:param str [params.network]: network for fetch deposit address
|
@@ -1754,7 +1789,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1754
1789
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1755
1790
|
"""
|
1756
1791
|
fetch all deposits made to an account
|
1757
|
-
|
1792
|
+
|
1793
|
+
https://docs.ox.fun/?json#get-v3-deposit
|
1794
|
+
|
1758
1795
|
:param str code: unified currency code of the currency transferred
|
1759
1796
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1760
1797
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1802,7 +1839,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1802
1839
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1803
1840
|
"""
|
1804
1841
|
fetch all withdrawals made from an account
|
1805
|
-
|
1842
|
+
|
1843
|
+
https://docs.ox.fun/?json#get-v3-withdrawal
|
1844
|
+
|
1806
1845
|
:param str code: unified currency code of the currency transferred
|
1807
1846
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1808
1847
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1970,16 +2009,18 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1970
2009
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1971
2010
|
"""
|
1972
2011
|
make a withdrawal
|
1973
|
-
|
2012
|
+
|
2013
|
+
https://docs.ox.fun/?json#post-v3-withdrawal
|
2014
|
+
|
1974
2015
|
:param str code: unified currency code
|
1975
2016
|
:param float amount: the amount to withdraw
|
1976
2017
|
:param str address: the address to withdraw to
|
1977
2018
|
:param str tag:
|
2019
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1978
2020
|
:param str [params.network]: network for withdraw
|
1979
2021
|
:param bool [params.externalFee]: if False, then the fee is taken from the quantity, also with the burn fee for asset SOLO
|
1980
|
-
|
1981
|
-
|
1982
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
2022
|
+
|
2023
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1983
2024
|
:param str [params.tfaType]: GOOGLE, or AUTHY_SECRET, or YUBIKEY, for 2FA
|
1984
2025
|
:param str [params.code]: 2FA code
|
1985
2026
|
:returns dict: a `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
|
@@ -2024,7 +2065,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2024
2065
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
2025
2066
|
"""
|
2026
2067
|
fetch all open positions
|
2027
|
-
|
2068
|
+
|
2069
|
+
https://docs.ox.fun/?json#get-v3-positions
|
2070
|
+
|
2028
2071
|
:param str[]|None symbols: list of unified market symbols
|
2029
2072
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2030
2073
|
:param boolean [params.subAcc]:
|
@@ -2137,7 +2180,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2137
2180
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2138
2181
|
"""
|
2139
2182
|
create a trade order
|
2140
|
-
|
2183
|
+
|
2184
|
+
https://docs.ox.fun/?json#post-v3-orders-place
|
2185
|
+
|
2141
2186
|
:param str symbol: unified symbol of the market to create an order in
|
2142
2187
|
:param str type: 'market', 'limit', 'STOP_LIMIT' or 'STOP_MARKET'
|
2143
2188
|
:param str side: 'buy' or 'sell'
|
@@ -2293,7 +2338,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2293
2338
|
async def create_orders(self, orders: List[OrderRequest], params={}) -> List[Order]:
|
2294
2339
|
"""
|
2295
2340
|
create a list of trade orders
|
2296
|
-
|
2341
|
+
|
2342
|
+
https://docs.ox.fun/?json#post-v3-orders-place
|
2343
|
+
|
2297
2344
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
2298
2345
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2299
2346
|
:param int [params.timestamp]: *for all orders* in milliseconds. If orders reach the matching engine and the current timestamp exceeds timestamp + recvWindow, then all orders will be rejected.
|
@@ -2376,7 +2423,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2376
2423
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
2377
2424
|
"""
|
2378
2425
|
create a market buy order by providing the symbol and cost
|
2379
|
-
|
2426
|
+
|
2427
|
+
https://open.big.one/docs/spot_orders.html#create-order
|
2428
|
+
|
2380
2429
|
:param str symbol: unified symbol of the market to create an order in
|
2381
2430
|
:param float cost: how much you want to trade in units of the quote currency
|
2382
2431
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2393,7 +2442,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2393
2442
|
|
2394
2443
|
async def fetch_order(self, id: str, symbol: Str = None, params={}) -> Order:
|
2395
2444
|
"""
|
2396
|
-
|
2445
|
+
|
2446
|
+
https://docs.ox.fun/?json#get-v3-orders-status
|
2447
|
+
|
2397
2448
|
fetches information on an order made by the user
|
2398
2449
|
:param str id: a unique id for the order
|
2399
2450
|
:param str [symbol]: not used by oxfun fetchOrder
|
@@ -2435,7 +2486,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2435
2486
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2436
2487
|
"""
|
2437
2488
|
fetch all unfilled currently open orders
|
2438
|
-
|
2489
|
+
|
2490
|
+
https://docs.ox.fun/?json#get-v3-orders-working
|
2491
|
+
|
2439
2492
|
:param str symbol: unified market symbol
|
2440
2493
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2441
2494
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2456,7 +2509,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2456
2509
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2457
2510
|
"""
|
2458
2511
|
cancels an open order
|
2459
|
-
|
2512
|
+
|
2513
|
+
https://docs.ox.fun/?json#delete-v3-orders-cancel
|
2514
|
+
|
2460
2515
|
:param str id: order id
|
2461
2516
|
:param str symbol: unified symbol of the market the order was made in
|
2462
2517
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2490,7 +2545,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2490
2545
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
2491
2546
|
"""
|
2492
2547
|
cancel all open orders
|
2493
|
-
|
2548
|
+
|
2549
|
+
https://docs.ox.fun/?json#delete-v3-orders-cancel-all
|
2550
|
+
|
2494
2551
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
2495
2552
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2496
2553
|
:returns dict: response from exchange
|
@@ -2515,7 +2572,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2515
2572
|
async def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
|
2516
2573
|
"""
|
2517
2574
|
cancel multiple orders
|
2518
|
-
|
2575
|
+
|
2576
|
+
https://docs.ox.fun/?json#delete-v3-orders-cancel
|
2577
|
+
|
2519
2578
|
:param str[] ids: order ids
|
2520
2579
|
:param str [symbol]: unified market symbol
|
2521
2580
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/p2b.py
CHANGED
@@ -241,7 +241,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
241
241
|
async def fetch_markets(self, params={}) -> List[Market]:
|
242
242
|
"""
|
243
243
|
retrieves data on all markets for bigone
|
244
|
-
|
244
|
+
|
245
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#markets
|
246
|
+
|
245
247
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
246
248
|
:returns dict[]: an array of objects representing market data
|
247
249
|
"""
|
@@ -340,7 +342,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
340
342
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
341
343
|
"""
|
342
344
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
343
|
-
|
345
|
+
|
346
|
+
https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
347
|
+
|
344
348
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
345
349
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
346
350
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -378,7 +382,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
378
382
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
379
383
|
"""
|
380
384
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
381
|
-
|
385
|
+
|
386
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#ticker
|
387
|
+
|
382
388
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
383
389
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
384
390
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -478,12 +484,14 @@ class p2b(Exchange, ImplicitAPI):
|
|
478
484
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}):
|
479
485
|
"""
|
480
486
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
481
|
-
|
487
|
+
|
488
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#depth-result
|
489
|
+
|
482
490
|
:param str symbol: unified symbol of the market to fetch the order book for
|
483
491
|
:param int [limit]: the maximum amount of order book entries to return
|
484
492
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
485
|
-
|
486
|
-
|
493
|
+
|
494
|
+
EXCHANGE SPECIFIC PARAMETERS
|
487
495
|
:param str [params.interval]: 0(default), 0.00000001, 0.0000001, 0.000001, 0.00001, 0.0001, 0.001, 0.01, 0.1, 1
|
488
496
|
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
|
489
497
|
"""
|
@@ -527,7 +535,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
527
535
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}):
|
528
536
|
"""
|
529
537
|
get the list of most recent trades for a particular symbol
|
530
|
-
|
538
|
+
|
539
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#history
|
540
|
+
|
531
541
|
:param str symbol: unified symbol of the market to fetch trades for
|
532
542
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
533
543
|
:param int [limit]: 1-100, default=50
|
@@ -638,7 +648,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
638
648
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}):
|
639
649
|
"""
|
640
650
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
641
|
-
|
651
|
+
|
652
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#kline
|
653
|
+
|
642
654
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
643
655
|
:param str timeframe: 1m, 1h, or 1d
|
644
656
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -706,7 +718,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
706
718
|
async def fetch_balance(self, params={}):
|
707
719
|
"""
|
708
720
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
709
|
-
|
721
|
+
|
722
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#all-balances
|
723
|
+
|
710
724
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
711
725
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
712
726
|
"""
|
@@ -765,7 +779,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
765
779
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
766
780
|
"""
|
767
781
|
create a trade order
|
768
|
-
|
782
|
+
|
783
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#create-order
|
784
|
+
|
769
785
|
:param str symbol: unified symbol of the market to create an order in
|
770
786
|
:param str type: must be 'limit'
|
771
787
|
:param str side: 'buy' or 'sell'
|
@@ -813,7 +829,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
813
829
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
814
830
|
"""
|
815
831
|
cancels an open order
|
816
|
-
|
832
|
+
|
833
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#cancel-order
|
834
|
+
|
817
835
|
:param str id: order id
|
818
836
|
:param str symbol: unified symbol of the market the order was made in
|
819
837
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -856,13 +874,15 @@ class p2b(Exchange, ImplicitAPI):
|
|
856
874
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
857
875
|
"""
|
858
876
|
fetch all unfilled currently open orders
|
859
|
-
|
877
|
+
|
878
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#open-orders
|
879
|
+
|
860
880
|
:param str symbol: unified market symbol of the market orders were made in
|
861
881
|
:param int [since]: the earliest time in ms to fetch orders for
|
862
882
|
:param int [limit]: the maximum number of order structures to retrieve
|
863
883
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
864
|
-
|
865
|
-
|
884
|
+
|
885
|
+
EXCHANGE SPECIFIC PARAMETERS
|
866
886
|
:param int [params.offset]: 0-10000, default=0
|
867
887
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
868
888
|
"""
|
@@ -907,14 +927,16 @@ class p2b(Exchange, ImplicitAPI):
|
|
907
927
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
908
928
|
"""
|
909
929
|
fetch all the trades made from a single order
|
910
|
-
|
930
|
+
|
931
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#deals-by-order-id
|
932
|
+
|
911
933
|
:param str id: order id
|
912
934
|
:param str symbol: unified market symbol
|
913
935
|
:param int [since]: the earliest time in ms to fetch trades for
|
914
936
|
:param int [limit]: 1-100, default=50
|
915
937
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
916
|
-
|
917
|
-
|
938
|
+
|
939
|
+
EXCHANGE SPECIFIC PARAMETERS
|
918
940
|
:param int [params.offset]: 0-10000, default=0
|
919
941
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
920
942
|
"""
|
@@ -956,14 +978,16 @@ class p2b(Exchange, ImplicitAPI):
|
|
956
978
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
957
979
|
"""
|
958
980
|
fetch all trades made by the user, only the transaction records in the past 3 month can be queried, the time between since and params["until"] cannot be longer than 24 hours
|
959
|
-
|
981
|
+
|
982
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#deals-history-by-market
|
983
|
+
|
960
984
|
:param str symbol: unified market symbol of the market orders were made in
|
961
985
|
:param int [since]: the earliest time in ms to fetch orders for, default = params["until"] - 86400000
|
962
986
|
:param int [limit]: 1-100, default=50
|
963
987
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
964
988
|
:param int [params.until]: the latest time in ms to fetch orders for, default = current timestamp or since + 86400000
|
965
|
-
|
966
|
-
|
989
|
+
|
990
|
+
EXCHANGE SPECIFIC PARAMETERS
|
967
991
|
:param int [params.offset]: 0-10000, default=0
|
968
992
|
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
|
969
993
|
"""
|
@@ -1023,14 +1047,16 @@ class p2b(Exchange, ImplicitAPI):
|
|
1023
1047
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1024
1048
|
"""
|
1025
1049
|
fetches information on multiple closed orders made by the user, the time between since and params["untnil"] cannot be longer than 24 hours
|
1026
|
-
|
1050
|
+
|
1051
|
+
https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#orders-history-by-market
|
1052
|
+
|
1027
1053
|
:param str symbol: unified market symbol of the market orders were made in
|
1028
1054
|
:param int [since]: the earliest time in ms to fetch orders for, default = params["until"] - 86400000
|
1029
1055
|
:param int [limit]: 1-100, default=50
|
1030
1056
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1031
1057
|
:param int [params.until]: the latest time in ms to fetch orders for, default = current timestamp or since + 86400000
|
1032
|
-
|
1033
|
-
|
1058
|
+
|
1059
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1034
1060
|
:param int [params.offset]: 0-10000, default=0
|
1035
1061
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1036
1062
|
"""
|