ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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 +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/base/ws/aiohttp_client.py +25 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -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 +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- 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 +145 -79
- 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 -22
- 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 +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +313 -157
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +157 -74
- 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 +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +54 -17
- ccxt/async_support/kraken.py +108 -36
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +214 -110
- ccxt/async_support/kucoinfutures.py +209 -64
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- 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 +108 -56
- 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 +32 -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 +119 -50
- 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 +47 -35
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- 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 -22
- 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 +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +313 -157
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +157 -74
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +54 -17
- ccxt/kraken.py +108 -36
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +214 -110
- ccxt/kucoinfutures.py +209 -64
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- 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 +108 -56
- 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 +204 -123
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +76 -37
- 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 +97 -62
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- 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 +71 -27
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +65 -31
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +27 -9
- 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 +36 -19
- 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/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 +32 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +119 -50
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/paradex.py
CHANGED
@@ -281,7 +281,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
281
281
|
def fetch_time(self, params={}):
|
282
282
|
"""
|
283
283
|
fetches the current integer timestamp in milliseconds from the exchange server
|
284
|
-
|
284
|
+
|
285
|
+
https://docs.api.testnet.paradex.trade/#get-system-time-unix-milliseconds
|
286
|
+
|
285
287
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
286
288
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
287
289
|
"""
|
@@ -296,7 +298,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
296
298
|
def fetch_status(self, params={}):
|
297
299
|
"""
|
298
300
|
the latest known information on the availability of the exchange API
|
299
|
-
|
301
|
+
|
302
|
+
https://docs.api.testnet.paradex.trade/#get-system-state
|
303
|
+
|
300
304
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
301
305
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
302
306
|
"""
|
@@ -318,7 +322,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
318
322
|
def fetch_markets(self, params={}) -> List[Market]:
|
319
323
|
"""
|
320
324
|
retrieves data on all markets for bitget
|
321
|
-
|
325
|
+
|
326
|
+
https://docs.api.testnet.paradex.trade/#list-available-markets
|
327
|
+
|
322
328
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
323
329
|
:returns dict[]: an array of objects representing market data
|
324
330
|
"""
|
@@ -455,7 +461,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
455
461
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
456
462
|
"""
|
457
463
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
458
|
-
|
464
|
+
|
465
|
+
https://docs.api.testnet.paradex.trade/#ohlcv-for-a-symbol
|
466
|
+
|
459
467
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
460
468
|
:param str timeframe: the length of time each candle represents
|
461
469
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -527,7 +535,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
527
535
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
528
536
|
"""
|
529
537
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
530
|
-
|
538
|
+
|
539
|
+
https://docs.api.testnet.paradex.trade/#list-available-markets-summary
|
540
|
+
|
531
541
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
532
542
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
533
543
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -570,7 +580,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
570
580
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
571
581
|
"""
|
572
582
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
573
|
-
|
583
|
+
|
584
|
+
https://docs.api.testnet.paradex.trade/#list-available-markets-summary
|
585
|
+
|
574
586
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
575
587
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
576
588
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -659,7 +671,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
659
671
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
660
672
|
"""
|
661
673
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
662
|
-
|
674
|
+
|
675
|
+
https://docs.api.testnet.paradex.trade/#get-market-orderbook
|
676
|
+
|
663
677
|
:param str symbol: unified symbol of the market to fetch the order book for
|
664
678
|
:param int [limit]: the maximum amount of order book entries to return
|
665
679
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -698,7 +712,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
698
712
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
699
713
|
"""
|
700
714
|
get the list of most recent trades for a particular symbol
|
701
|
-
|
715
|
+
|
716
|
+
https://docs.api.testnet.paradex.trade/#trade-tape
|
717
|
+
|
702
718
|
:param str symbol: unified symbol of the market to fetch trades for
|
703
719
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
704
720
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -811,7 +827,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
811
827
|
def fetch_open_interest(self, symbol: str, params={}):
|
812
828
|
"""
|
813
829
|
retrieves the open interest of a contract trading pair
|
814
|
-
|
830
|
+
|
831
|
+
https://docs.api.testnet.paradex.trade/#list-available-markets-summary
|
832
|
+
|
815
833
|
:param str symbol: unified CCXT market symbol
|
816
834
|
:param dict [params]: exchange specific parameters
|
817
835
|
:returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure:
|
@@ -989,16 +1007,19 @@ class paradex(Exchange, ImplicitAPI):
|
|
989
1007
|
|
990
1008
|
def authenticate_rest(self, params={}):
|
991
1009
|
cachedToken = self.safe_string(self.options, 'authToken')
|
1010
|
+
now = self.nonce()
|
992
1011
|
if cachedToken is not None:
|
993
|
-
|
1012
|
+
cachedExpires = self.safe_integer(self.options, 'expires')
|
1013
|
+
if now < cachedExpires:
|
1014
|
+
return cachedToken
|
994
1015
|
account = self.retrieve_account()
|
995
|
-
|
1016
|
+
expires = now + 86400 * 7
|
996
1017
|
req = {
|
997
1018
|
'method': 'POST',
|
998
1019
|
'path': '/v1/auth',
|
999
1020
|
'body': '',
|
1000
1021
|
'timestamp': now,
|
1001
|
-
'expiration':
|
1022
|
+
'expiration': expires,
|
1002
1023
|
}
|
1003
1024
|
domain = self.prepare_paradex_domain()
|
1004
1025
|
messageTypes = {
|
@@ -1024,6 +1045,7 @@ class paradex(Exchange, ImplicitAPI):
|
|
1024
1045
|
#
|
1025
1046
|
token = self.safe_string(response, 'jwt_token')
|
1026
1047
|
self.options['authToken'] = token
|
1048
|
+
self.options['expires'] = expires
|
1027
1049
|
return token
|
1028
1050
|
|
1029
1051
|
def parse_order(self, order: dict, market: Market = None) -> Order:
|
@@ -1140,7 +1162,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1140
1162
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1141
1163
|
"""
|
1142
1164
|
create a trade order
|
1143
|
-
|
1165
|
+
|
1166
|
+
https://docs.api.prod.paradex.trade/#create-order
|
1167
|
+
|
1144
1168
|
:param str symbol: unified symbol of the market to create an order in
|
1145
1169
|
:param str type: 'market' or 'limit'
|
1146
1170
|
:param str side: 'buy' or 'sell'
|
@@ -1252,8 +1276,10 @@ class paradex(Exchange, ImplicitAPI):
|
|
1252
1276
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1253
1277
|
"""
|
1254
1278
|
cancels an open order
|
1255
|
-
|
1256
|
-
|
1279
|
+
|
1280
|
+
https://docs.api.prod.paradex.trade/#cancel-order
|
1281
|
+
https://docs.api.prod.paradex.trade/#cancel-open-order-by-client-order-id
|
1282
|
+
|
1257
1283
|
:param str id: order id
|
1258
1284
|
:param str symbol: unified symbol of the market the order was made in
|
1259
1285
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1279,7 +1305,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1279
1305
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1280
1306
|
"""
|
1281
1307
|
cancel all open orders in a market
|
1282
|
-
|
1308
|
+
|
1309
|
+
https://docs.api.prod.paradex.trade/#cancel-all-open-orders
|
1310
|
+
|
1283
1311
|
:param str symbol: unified market symbol of the market to cancel orders in
|
1284
1312
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1285
1313
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1301,8 +1329,10 @@ class paradex(Exchange, ImplicitAPI):
|
|
1301
1329
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1302
1330
|
"""
|
1303
1331
|
fetches information on an order made by the user
|
1304
|
-
|
1305
|
-
|
1332
|
+
|
1333
|
+
https://docs.api.prod.paradex.trade/#get-order
|
1334
|
+
https://docs.api.prod.paradex.trade/#get-order-by-client-id
|
1335
|
+
|
1306
1336
|
:param str id: the order id
|
1307
1337
|
:param str symbol: unified symbol of the market the order was made in
|
1308
1338
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1352,7 +1382,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1352
1382
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1353
1383
|
"""
|
1354
1384
|
fetches information on multiple orders made by the user
|
1355
|
-
|
1385
|
+
|
1386
|
+
https://docs.api.prod.paradex.trade/#get-orders
|
1387
|
+
|
1356
1388
|
:param str symbol: unified market symbol of the market orders were made in
|
1357
1389
|
:param int [since]: the earliest time in ms to fetch orders for
|
1358
1390
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1425,7 +1457,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1425
1457
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1426
1458
|
"""
|
1427
1459
|
fetches information on multiple orders made by the user
|
1428
|
-
|
1460
|
+
|
1461
|
+
https://docs.api.prod.paradex.trade/#paradex-rest-api-orders
|
1462
|
+
|
1429
1463
|
:param str symbol: unified market symbol of the market orders were made in
|
1430
1464
|
:param int [since]: the earliest time in ms to fetch orders for
|
1431
1465
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1478,7 +1512,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1478
1512
|
def fetch_balance(self, params={}) -> Balances:
|
1479
1513
|
"""
|
1480
1514
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1481
|
-
|
1515
|
+
|
1516
|
+
https://docs.api.prod.paradex.trade/#list-balances
|
1517
|
+
|
1482
1518
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1483
1519
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1484
1520
|
"""
|
@@ -1513,7 +1549,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1513
1549
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1514
1550
|
"""
|
1515
1551
|
fetch all trades made by the user
|
1516
|
-
|
1552
|
+
|
1553
|
+
https://docs.api.prod.paradex.trade/#list-fills
|
1554
|
+
|
1517
1555
|
:param str symbol: unified market symbol
|
1518
1556
|
:param int [since]: the earliest time in ms to fetch trades for
|
1519
1557
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1570,7 +1608,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1570
1608
|
def fetch_position(self, symbol: str, params={}):
|
1571
1609
|
"""
|
1572
1610
|
fetch data on an open position
|
1573
|
-
|
1611
|
+
|
1612
|
+
https://docs.api.prod.paradex.trade/#list-open-positions
|
1613
|
+
|
1574
1614
|
:param str symbol: unified market symbol of the market the position is held in
|
1575
1615
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1576
1616
|
:returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1584,7 +1624,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1584
1624
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
1585
1625
|
"""
|
1586
1626
|
fetch all open positions
|
1587
|
-
|
1627
|
+
|
1628
|
+
https://docs.api.prod.paradex.trade/#list-open-positions
|
1629
|
+
|
1588
1630
|
:param str[] [symbols]: list of unified market symbols
|
1589
1631
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1590
1632
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1680,7 +1722,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1680
1722
|
def fetch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}):
|
1681
1723
|
"""
|
1682
1724
|
retrieves the public liquidations of a trading pair
|
1683
|
-
|
1725
|
+
|
1726
|
+
https://docs.api.prod.paradex.trade/#list-liquidations
|
1727
|
+
|
1684
1728
|
:param str symbol: unified CCXT market symbol
|
1685
1729
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
1686
1730
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -1733,7 +1777,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1733
1777
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1734
1778
|
"""
|
1735
1779
|
fetch all deposits made to an account
|
1736
|
-
|
1780
|
+
|
1781
|
+
https://docs.api.prod.paradex.trade/#paradex-rest-api-transfers
|
1782
|
+
|
1737
1783
|
:param str code: unified currency code
|
1738
1784
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1739
1785
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1787,7 +1833,9 @@ class paradex(Exchange, ImplicitAPI):
|
|
1787
1833
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1788
1834
|
"""
|
1789
1835
|
fetch all withdrawals made from an account
|
1790
|
-
|
1836
|
+
|
1837
|
+
https://docs.api.prod.paradex.trade/#paradex-rest-api-transfers
|
1838
|
+
|
1791
1839
|
:param str code: unified currency code
|
1792
1840
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1793
1841
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
ccxt/paymium.py
CHANGED
@@ -134,7 +134,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
134
134
|
def fetch_balance(self, params={}) -> Balances:
|
135
135
|
"""
|
136
136
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
137
|
-
|
137
|
+
|
138
|
+
https://paymium.github.io/api-documentation/#tag/User/paths/~1user/get
|
139
|
+
|
138
140
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
139
141
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
140
142
|
"""
|
@@ -145,7 +147,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
145
147
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
146
148
|
"""
|
147
149
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
148
|
-
|
150
|
+
|
151
|
+
https://paymium.github.io/api-documentation/#tag/Public-data/paths/~1data~1%7Bcurrency%7D~1depth/get
|
152
|
+
|
149
153
|
:param str symbol: unified symbol of the market to fetch the order book for
|
150
154
|
:param int [limit]: the maximum amount of order book entries to return
|
151
155
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -210,7 +214,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
210
214
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
211
215
|
"""
|
212
216
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
213
|
-
|
217
|
+
|
218
|
+
https://paymium.github.io/api-documentation/#tag/Public-data/paths/~1data~1%7Bcurrency%7D~1ticker/get
|
219
|
+
|
214
220
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
215
221
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
216
222
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -268,7 +274,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
268
274
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
269
275
|
"""
|
270
276
|
get the list of most recent trades for a particular symbol
|
271
|
-
|
277
|
+
|
278
|
+
https://paymium.github.io/api-documentation/#tag/Public-data/paths/~1data~1%7Bcurrency%7D~1trades/get
|
279
|
+
|
272
280
|
:param str symbol: unified symbol of the market to fetch trades for
|
273
281
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
274
282
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -286,7 +294,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
286
294
|
def create_deposit_address(self, code: str, params={}):
|
287
295
|
"""
|
288
296
|
create a currency deposit address
|
289
|
-
|
297
|
+
|
298
|
+
https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/post
|
299
|
+
|
290
300
|
:param str code: unified currency code of the currency for the deposit address
|
291
301
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
292
302
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -306,7 +316,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
306
316
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
307
317
|
"""
|
308
318
|
fetch the deposit address for a currency associated with self account
|
309
|
-
|
319
|
+
|
320
|
+
https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses~1%7Baddress%7D/get
|
321
|
+
|
310
322
|
:param str code: unified currency code
|
311
323
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
312
324
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -329,7 +341,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
329
341
|
def fetch_deposit_addresses(self, codes: Strings = None, params={}) -> List[DepositAddress]:
|
330
342
|
"""
|
331
343
|
fetch deposit addresses for multiple currencies and chain types
|
332
|
-
|
344
|
+
|
345
|
+
https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/get
|
346
|
+
|
333
347
|
:param str[]|None codes: list of unified currency codes, default is None
|
334
348
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
335
349
|
:returns dict: a list of `address structures <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -370,7 +384,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
370
384
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
371
385
|
"""
|
372
386
|
create a trade order
|
373
|
-
|
387
|
+
|
388
|
+
https://paymium.github.io/api-documentation/#tag/Order/paths/~1user~1orders/post
|
389
|
+
|
374
390
|
:param str symbol: unified symbol of the market to create an order in
|
375
391
|
:param str type: 'market' or 'limit'
|
376
392
|
:param str side: 'buy' or 'sell'
|
@@ -398,8 +414,10 @@ class paymium(Exchange, ImplicitAPI):
|
|
398
414
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
399
415
|
"""
|
400
416
|
cancels an open order
|
401
|
-
|
402
|
-
|
417
|
+
|
418
|
+
https://paymium.github.io/api-documentation/#tag/Order/paths/~1user~1orders~1%7Buuid%7D/delete
|
419
|
+
https://paymium.github.io/api-documentation/#tag/Order/paths/~1user~1orders~1%7Buuid%7D~1cancel/delete
|
420
|
+
|
403
421
|
:param str id: order id
|
404
422
|
:param str symbol: not used by paymium cancelOrder()
|
405
423
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -416,7 +434,9 @@ class paymium(Exchange, ImplicitAPI):
|
|
416
434
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
417
435
|
"""
|
418
436
|
transfer currency internally between wallets on the same account
|
419
|
-
|
437
|
+
|
438
|
+
https://paymium.github.io/api-documentation/#tag/Transfer/paths/~1user~1email_transfers/post
|
439
|
+
|
420
440
|
:param str code: unified currency code
|
421
441
|
:param float amount: amount to transfer
|
422
442
|
:param str fromAccount: account to transfer from
|