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/onetrading.py
CHANGED
@@ -1450,7 +1450,9 @@ class onetrading(Exchange, ImplicitAPI):
|
|
1450
1450
|
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/oxfun.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
from ccxt.base.exchange import Exchange
|
7
7
|
from ccxt.abstract.oxfun import ImplicitAPI
|
8
8
|
import hashlib
|
9
|
-
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
|
9
|
+
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
|
10
10
|
from typing import List
|
11
11
|
from ccxt.base.errors import ExchangeError
|
12
12
|
from ccxt.base.errors import AuthenticationError
|
@@ -93,7 +93,7 @@ class oxfun(Exchange, ImplicitAPI):
|
|
93
93
|
'fetchLedger': False,
|
94
94
|
'fetchLeverage': False,
|
95
95
|
'fetchLeverageTiers': True,
|
96
|
-
'fetchMarketLeverageTiers':
|
96
|
+
'fetchMarketLeverageTiers': 'emulated',
|
97
97
|
'fetchMarkets': True,
|
98
98
|
'fetchMarkOHLCV': False,
|
99
99
|
'fetchMyTrades': True,
|
@@ -331,7 +331,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
331
331
|
def fetch_markets(self, params={}) -> List[Market]:
|
332
332
|
"""
|
333
333
|
retrieves data on all markets for bitmex
|
334
|
-
|
334
|
+
|
335
|
+
https://docs.ox.fun/?json#get-v3-markets
|
336
|
+
|
335
337
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
336
338
|
:returns dict[]: an array of objects representing market data
|
337
339
|
"""
|
@@ -504,7 +506,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
504
506
|
def fetch_currencies(self, params={}) -> Currencies:
|
505
507
|
"""
|
506
508
|
fetches all available currencies on an exchange
|
507
|
-
|
509
|
+
|
510
|
+
https://docs.ox.fun/?json#get-v3-assets
|
511
|
+
|
508
512
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
509
513
|
:returns dict: an associative dictionary of currencies
|
510
514
|
"""
|
@@ -721,7 +725,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
721
725
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
722
726
|
"""
|
723
727
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
724
|
-
|
728
|
+
|
729
|
+
https://docs.ox.fun/?json#get-v3-tickers
|
730
|
+
|
725
731
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
726
732
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
727
733
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -782,7 +788,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
782
788
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
783
789
|
"""
|
784
790
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
785
|
-
|
791
|
+
|
792
|
+
https://docs.ox.fun/?json#get-v3-tickers
|
793
|
+
|
786
794
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
787
795
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
788
796
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -865,7 +873,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
865
873
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
866
874
|
"""
|
867
875
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
868
|
-
|
876
|
+
|
877
|
+
https://docs.ox.fun/?json#get-v3-candles
|
878
|
+
|
869
879
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
870
880
|
:param str timeframe: the length of time each candle represents
|
871
881
|
:param int [since]: timestamp in ms of the earliest candle to fetch(default 24 hours ago)
|
@@ -946,7 +956,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
946
956
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
947
957
|
"""
|
948
958
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
949
|
-
|
959
|
+
|
960
|
+
https://docs.ox.fun/?json#get-v3-depth
|
961
|
+
|
950
962
|
:param str symbol: unified symbol of the market to fetch the order book for
|
951
963
|
:param int [limit]: the maximum amount of order book entries to return(default 5, max 100)
|
952
964
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -991,7 +1003,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
991
1003
|
def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
992
1004
|
"""
|
993
1005
|
fetch the current funding rates for multiple markets
|
994
|
-
|
1006
|
+
|
1007
|
+
https://docs.ox.fun/?json#get-v3-funding-estimates
|
1008
|
+
|
995
1009
|
:param str[] symbols: unified market symbols
|
996
1010
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
997
1011
|
:returns Order[]: an array of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1056,7 +1070,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1056
1070
|
def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1057
1071
|
"""
|
1058
1072
|
Fetches the history of funding rates
|
1059
|
-
|
1073
|
+
|
1074
|
+
https://docs.ox.fun/?json#get-v3-funding-rates
|
1075
|
+
|
1060
1076
|
:param str symbol: unified symbol of the market to fetch trades for
|
1061
1077
|
:param int [since]: timestamp in ms of the earliest trade to fetch(default 24 hours ago)
|
1062
1078
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1131,7 +1147,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1131
1147
|
def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1132
1148
|
"""
|
1133
1149
|
fetches the history of funding payments
|
1134
|
-
|
1150
|
+
|
1151
|
+
https://docs.ox.fun/?json#get-v3-funding
|
1152
|
+
|
1135
1153
|
:param str symbol: unified symbol of the market to fetch trades for
|
1136
1154
|
:param int [since]: timestamp in ms of the earliest trade to fetch(default 24 hours ago)
|
1137
1155
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1212,10 +1230,12 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1212
1230
|
'rate': rate,
|
1213
1231
|
}
|
1214
1232
|
|
1215
|
-
def fetch_leverage_tiers(self, symbols: Strings = None, params={}):
|
1233
|
+
def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
|
1216
1234
|
"""
|
1217
1235
|
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
|
1218
|
-
|
1236
|
+
|
1237
|
+
https://docs.ox.fun/?json#get-v3-leverage-tiers
|
1238
|
+
|
1219
1239
|
:param str[] [symbols]: list of unified market symbols
|
1220
1240
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1221
1241
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
@@ -1266,7 +1286,7 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1266
1286
|
data = self.safe_list(response, 'data', [])
|
1267
1287
|
return self.parse_leverage_tiers(data, symbols, 'marketCode')
|
1268
1288
|
|
1269
|
-
def parse_market_leverage_tiers(self, info, market: Market = None):
|
1289
|
+
def parse_market_leverage_tiers(self, info, market: Market = None) -> List[LeverageTier]:
|
1270
1290
|
#
|
1271
1291
|
# {
|
1272
1292
|
# marketCode: 'SOL-USD-SWAP-LIN',
|
@@ -1291,6 +1311,7 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1291
1311
|
tier = listOfTiers[j]
|
1292
1312
|
tiers.append({
|
1293
1313
|
'tier': self.safe_number(tier, 'tier'),
|
1314
|
+
'symbol': self.safe_symbol(marketId, market),
|
1294
1315
|
'currency': market['settle'],
|
1295
1316
|
'minNotional': self.safe_number(tier, 'positionFloor'),
|
1296
1317
|
'maxNotional': self.safe_number(tier, 'positionCap'),
|
@@ -1303,7 +1324,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1303
1324
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1304
1325
|
"""
|
1305
1326
|
get the list of most recent trades for a particular symbol
|
1306
|
-
|
1327
|
+
|
1328
|
+
https://docs.ox.fun/?json#get-v3-exchange-trades
|
1329
|
+
|
1307
1330
|
:param str symbol: unified symbol of the market to fetch trades for
|
1308
1331
|
:param int [since]: timestamp in ms of the earliest trade to fetch(default 24 hours ago)
|
1309
1332
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1349,7 +1372,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1349
1372
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1350
1373
|
"""
|
1351
1374
|
fetch all trades made by the user
|
1352
|
-
|
1375
|
+
|
1376
|
+
https://docs.ox.fun/?json#get-v3-trades
|
1377
|
+
|
1353
1378
|
:param str symbol: unified market symbol
|
1354
1379
|
:param int [since]: the earliest time in ms to fetch trades for
|
1355
1380
|
:param int [limit]: the maximum amount of trades to fetch(default 200, max 500)
|
@@ -1458,7 +1483,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1458
1483
|
def fetch_balance(self, params={}) -> Balances:
|
1459
1484
|
"""
|
1460
1485
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1461
|
-
|
1486
|
+
|
1487
|
+
https://docs.ox.fun/?json#get-v3-balances
|
1488
|
+
|
1462
1489
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1463
1490
|
:param str [params.asset]: currency id, if empty the exchange returns info about all currencies
|
1464
1491
|
: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.
|
@@ -1549,7 +1576,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1549
1576
|
def fetch_accounts(self, params={}) -> List[Account]:
|
1550
1577
|
"""
|
1551
1578
|
fetch subaccounts associated with a profile
|
1552
|
-
|
1579
|
+
|
1580
|
+
https://docs.ox.fun/?json#get-v3-account-names
|
1581
|
+
|
1553
1582
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1554
1583
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
1555
1584
|
"""
|
@@ -1588,7 +1617,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1588
1617
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1589
1618
|
"""
|
1590
1619
|
transfer currency internally between wallets on the same account
|
1591
|
-
|
1620
|
+
|
1621
|
+
https://docs.ox.fun/?json#post-v3-transfer
|
1622
|
+
|
1592
1623
|
:param str code: unified currency code
|
1593
1624
|
:param float amount: amount to transfer
|
1594
1625
|
:param str fromAccount: account id to transfer from
|
@@ -1629,7 +1660,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1629
1660
|
def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1630
1661
|
"""
|
1631
1662
|
fetch a history of internal transfers made on an account
|
1632
|
-
|
1663
|
+
|
1664
|
+
https://docs.ox.fun/?json#get-v3-transfer
|
1665
|
+
|
1633
1666
|
:param str code: unified currency code of the currency transferred
|
1634
1667
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1635
1668
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1712,7 +1745,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1712
1745
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1713
1746
|
"""
|
1714
1747
|
fetch the deposit address for a currency associated with self account
|
1715
|
-
|
1748
|
+
|
1749
|
+
https://docs.ox.fun/?json#get-v3-deposit-addresses
|
1750
|
+
|
1716
1751
|
:param str code: unified currency code
|
1717
1752
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1718
1753
|
:param str [params.network]: network for fetch deposit address
|
@@ -1753,7 +1788,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1753
1788
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1754
1789
|
"""
|
1755
1790
|
fetch all deposits made to an account
|
1756
|
-
|
1791
|
+
|
1792
|
+
https://docs.ox.fun/?json#get-v3-deposit
|
1793
|
+
|
1757
1794
|
:param str code: unified currency code of the currency transferred
|
1758
1795
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1759
1796
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1801,7 +1838,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1801
1838
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1802
1839
|
"""
|
1803
1840
|
fetch all withdrawals made from an account
|
1804
|
-
|
1841
|
+
|
1842
|
+
https://docs.ox.fun/?json#get-v3-withdrawal
|
1843
|
+
|
1805
1844
|
:param str code: unified currency code of the currency transferred
|
1806
1845
|
:param int [since]: the earliest time in ms to fetch transfers for(default 24 hours ago)
|
1807
1846
|
:param int [limit]: the maximum number of transfer structures to retrieve(default 50, max 200)
|
@@ -1969,16 +2008,18 @@ class oxfun(Exchange, ImplicitAPI):
|
|
1969
2008
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1970
2009
|
"""
|
1971
2010
|
make a withdrawal
|
1972
|
-
|
2011
|
+
|
2012
|
+
https://docs.ox.fun/?json#post-v3-withdrawal
|
2013
|
+
|
1973
2014
|
:param str code: unified currency code
|
1974
2015
|
:param float amount: the amount to withdraw
|
1975
2016
|
:param str address: the address to withdraw to
|
1976
2017
|
:param str tag:
|
2018
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1977
2019
|
:param str [params.network]: network for withdraw
|
1978
2020
|
:param bool [params.externalFee]: if False, then the fee is taken from the quantity, also with the burn fee for asset SOLO
|
1979
|
-
|
1980
|
-
|
1981
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
2021
|
+
|
2022
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1982
2023
|
:param str [params.tfaType]: GOOGLE, or AUTHY_SECRET, or YUBIKEY, for 2FA
|
1983
2024
|
:param str [params.code]: 2FA code
|
1984
2025
|
:returns dict: a `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
|
@@ -2023,7 +2064,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2023
2064
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
2024
2065
|
"""
|
2025
2066
|
fetch all open positions
|
2026
|
-
|
2067
|
+
|
2068
|
+
https://docs.ox.fun/?json#get-v3-positions
|
2069
|
+
|
2027
2070
|
:param str[]|None symbols: list of unified market symbols
|
2028
2071
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2029
2072
|
:param boolean [params.subAcc]:
|
@@ -2136,7 +2179,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2136
2179
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
2137
2180
|
"""
|
2138
2181
|
create a trade order
|
2139
|
-
|
2182
|
+
|
2183
|
+
https://docs.ox.fun/?json#post-v3-orders-place
|
2184
|
+
|
2140
2185
|
:param str symbol: unified symbol of the market to create an order in
|
2141
2186
|
:param str type: 'market', 'limit', 'STOP_LIMIT' or 'STOP_MARKET'
|
2142
2187
|
:param str side: 'buy' or 'sell'
|
@@ -2292,7 +2337,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2292
2337
|
def create_orders(self, orders: List[OrderRequest], params={}) -> List[Order]:
|
2293
2338
|
"""
|
2294
2339
|
create a list of trade orders
|
2295
|
-
|
2340
|
+
|
2341
|
+
https://docs.ox.fun/?json#post-v3-orders-place
|
2342
|
+
|
2296
2343
|
: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
|
2297
2344
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2298
2345
|
: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.
|
@@ -2375,7 +2422,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2375
2422
|
def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
2376
2423
|
"""
|
2377
2424
|
create a market buy order by providing the symbol and cost
|
2378
|
-
|
2425
|
+
|
2426
|
+
https://open.big.one/docs/spot_orders.html#create-order
|
2427
|
+
|
2379
2428
|
:param str symbol: unified symbol of the market to create an order in
|
2380
2429
|
:param float cost: how much you want to trade in units of the quote currency
|
2381
2430
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2392,7 +2441,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2392
2441
|
|
2393
2442
|
def fetch_order(self, id: str, symbol: Str = None, params={}) -> Order:
|
2394
2443
|
"""
|
2395
|
-
|
2444
|
+
|
2445
|
+
https://docs.ox.fun/?json#get-v3-orders-status
|
2446
|
+
|
2396
2447
|
fetches information on an order made by the user
|
2397
2448
|
:param str id: a unique id for the order
|
2398
2449
|
:param str [symbol]: not used by oxfun fetchOrder
|
@@ -2434,7 +2485,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2434
2485
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2435
2486
|
"""
|
2436
2487
|
fetch all unfilled currently open orders
|
2437
|
-
|
2488
|
+
|
2489
|
+
https://docs.ox.fun/?json#get-v3-orders-working
|
2490
|
+
|
2438
2491
|
:param str symbol: unified market symbol
|
2439
2492
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2440
2493
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2455,7 +2508,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2455
2508
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2456
2509
|
"""
|
2457
2510
|
cancels an open order
|
2458
|
-
|
2511
|
+
|
2512
|
+
https://docs.ox.fun/?json#delete-v3-orders-cancel
|
2513
|
+
|
2459
2514
|
:param str id: order id
|
2460
2515
|
:param str symbol: unified symbol of the market the order was made in
|
2461
2516
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2489,7 +2544,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2489
2544
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
2490
2545
|
"""
|
2491
2546
|
cancel all open orders
|
2492
|
-
|
2547
|
+
|
2548
|
+
https://docs.ox.fun/?json#delete-v3-orders-cancel-all
|
2549
|
+
|
2493
2550
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
2494
2551
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2495
2552
|
:returns dict: response from exchange
|
@@ -2514,7 +2571,9 @@ class oxfun(Exchange, ImplicitAPI):
|
|
2514
2571
|
def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
|
2515
2572
|
"""
|
2516
2573
|
cancel multiple orders
|
2517
|
-
|
2574
|
+
|
2575
|
+
https://docs.ox.fun/?json#delete-v3-orders-cancel
|
2576
|
+
|
2518
2577
|
:param str[] ids: order ids
|
2519
2578
|
:param str [symbol]: unified market symbol
|
2520
2579
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/p2b.py
CHANGED
@@ -241,7 +241,9 @@ class p2b(Exchange, ImplicitAPI):
|
|
241
241
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
"""
|