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/async_support/digifinex.py
CHANGED
@@ -810,9 +810,11 @@ class digifinex(Exchange, ImplicitAPI):
|
|
810
810
|
async def fetch_balance(self, params={}) -> Balances:
|
811
811
|
"""
|
812
812
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
813
|
-
|
814
|
-
|
815
|
-
|
813
|
+
|
814
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
|
815
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
816
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
|
817
|
+
|
816
818
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
817
819
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
818
820
|
"""
|
@@ -873,8 +875,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
873
875
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
874
876
|
"""
|
875
877
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
876
|
-
|
877
|
-
|
878
|
+
|
879
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
|
880
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
|
881
|
+
|
878
882
|
:param str symbol: unified symbol of the market to fetch the order book for
|
879
883
|
:param int [limit]: the maximum amount of order book entries to return
|
880
884
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -944,8 +948,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
944
948
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
945
949
|
"""
|
946
950
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
947
|
-
|
948
|
-
|
951
|
+
|
952
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
953
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
|
954
|
+
|
949
955
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
950
956
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
951
957
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1027,8 +1033,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1027
1033
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1028
1034
|
"""
|
1029
1035
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1030
|
-
|
1031
|
-
|
1036
|
+
|
1037
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
1038
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
|
1039
|
+
|
1032
1040
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1033
1041
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1034
1042
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1342,8 +1350,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1342
1350
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1343
1351
|
"""
|
1344
1352
|
get the list of most recent trades for a particular symbol
|
1345
|
-
|
1346
|
-
|
1353
|
+
|
1354
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
|
1355
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
|
1356
|
+
|
1347
1357
|
:param str symbol: unified symbol of the market to fetch trades for
|
1348
1358
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1349
1359
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1439,8 +1449,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1439
1449
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1440
1450
|
"""
|
1441
1451
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1442
|
-
|
1443
|
-
|
1452
|
+
|
1453
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
|
1454
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
|
1455
|
+
|
1444
1456
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1445
1457
|
:param str timeframe: the length of time each candle represents
|
1446
1458
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1511,8 +1523,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1511
1523
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1512
1524
|
"""
|
1513
1525
|
create a trade order
|
1514
|
-
|
1515
|
-
|
1526
|
+
|
1527
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
|
1528
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
|
1529
|
+
|
1516
1530
|
:param str symbol: unified symbol of the market to create an order in
|
1517
1531
|
:param str type: 'market' or 'limit'
|
1518
1532
|
:param str side: 'buy' or 'sell'
|
@@ -1565,8 +1579,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1565
1579
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
1566
1580
|
"""
|
1567
1581
|
create a list of trade orders(all orders should be of the same symbol)
|
1568
|
-
|
1569
|
-
|
1582
|
+
|
1583
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
|
1584
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
|
1585
|
+
|
1570
1586
|
: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
|
1571
1587
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1572
1588
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1647,7 +1663,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1647
1663
|
|
1648
1664
|
def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1649
1665
|
"""
|
1650
|
-
|
1666
|
+
@ignore
|
1651
1667
|
helper function to build request
|
1652
1668
|
:param str symbol: unified symbol of the market to create an order in
|
1653
1669
|
:param str type: 'market' or 'limit'
|
@@ -1739,7 +1755,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1739
1755
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
1740
1756
|
"""
|
1741
1757
|
create a market buy order by providing the symbol and cost
|
1742
|
-
|
1758
|
+
|
1759
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
|
1760
|
+
|
1743
1761
|
:param str symbol: unified symbol of the market to create an order in
|
1744
1762
|
:param float cost: how much you want to trade in units of the quote currency
|
1745
1763
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1755,8 +1773,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1755
1773
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1756
1774
|
"""
|
1757
1775
|
cancels an open order
|
1758
|
-
|
1759
|
-
|
1776
|
+
|
1777
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
|
1778
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
|
1779
|
+
|
1760
1780
|
:param str id: order id
|
1761
1781
|
:param str symbol: not used by digifinex cancelOrder()
|
1762
1782
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2021,8 +2041,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2021
2041
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2022
2042
|
"""
|
2023
2043
|
fetch all unfilled currently open orders
|
2024
|
-
|
2025
|
-
|
2044
|
+
|
2045
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
|
2046
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
|
2047
|
+
|
2026
2048
|
:param str symbol: unified market symbol
|
2027
2049
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2028
2050
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2115,8 +2137,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2115
2137
|
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2116
2138
|
"""
|
2117
2139
|
fetches information on multiple orders made by the user
|
2118
|
-
|
2119
|
-
|
2140
|
+
|
2141
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
|
2142
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
|
2143
|
+
|
2120
2144
|
:param str symbol: unified market symbol of the market orders were made in
|
2121
2145
|
:param int [since]: the earliest time in ms to fetch orders for
|
2122
2146
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2210,8 +2234,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2210
2234
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
2211
2235
|
"""
|
2212
2236
|
fetches information on an order made by the user
|
2213
|
-
|
2214
|
-
|
2237
|
+
|
2238
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
|
2239
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
|
2240
|
+
|
2215
2241
|
:param str id: order id
|
2216
2242
|
:param str symbol: unified symbol of the market the order was made in
|
2217
2243
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2299,8 +2325,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2299
2325
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2300
2326
|
"""
|
2301
2327
|
fetch all trades made by the user
|
2302
|
-
|
2303
|
-
|
2328
|
+
|
2329
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
|
2330
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
|
2331
|
+
|
2304
2332
|
:param str symbol: unified market symbol
|
2305
2333
|
:param int [since]: the earliest time in ms to fetch trades for
|
2306
2334
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2441,8 +2469,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2441
2469
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2442
2470
|
"""
|
2443
2471
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
2444
|
-
|
2445
|
-
|
2472
|
+
|
2473
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
|
2474
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
|
2475
|
+
|
2446
2476
|
:param str [code]: unified currency code, default is None
|
2447
2477
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2448
2478
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -2886,7 +2916,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2886
2916
|
async def fetch_cross_borrow_rate(self, code: str, params={}) -> CrossBorrowRate:
|
2887
2917
|
"""
|
2888
2918
|
fetch the rate of interest to borrow a currency for margin trading
|
2889
|
-
|
2919
|
+
|
2920
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
2921
|
+
|
2890
2922
|
:param str code: unified currency code
|
2891
2923
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2892
2924
|
:returns dict: a `borrow rate structure <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>`
|
@@ -2923,7 +2955,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2923
2955
|
async def fetch_cross_borrow_rates(self, params={}) -> CrossBorrowRates:
|
2924
2956
|
"""
|
2925
2957
|
fetch the borrow interest rates of all currencies
|
2926
|
-
|
2958
|
+
|
2959
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
2960
|
+
|
2927
2961
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2928
2962
|
:returns dict: a list of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
|
2929
2963
|
"""
|
@@ -2990,7 +3024,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2990
3024
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
2991
3025
|
"""
|
2992
3026
|
fetch the current funding rate
|
2993
|
-
|
3027
|
+
|
3028
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
|
3029
|
+
|
2994
3030
|
:param str symbol: unified market symbol
|
2995
3031
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2996
3032
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -3021,7 +3057,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3021
3057
|
async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
|
3022
3058
|
"""
|
3023
3059
|
fetch the current funding rate interval
|
3024
|
-
|
3060
|
+
|
3061
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
|
3062
|
+
|
3025
3063
|
:param str symbol: unified market symbol
|
3026
3064
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3027
3065
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -3134,7 +3172,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3134
3172
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
3135
3173
|
"""
|
3136
3174
|
fetch the trading fees for a market
|
3137
|
-
|
3175
|
+
|
3176
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
|
3177
|
+
|
3138
3178
|
:param str symbol: unified market symbol
|
3139
3179
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3140
3180
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -3182,8 +3222,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3182
3222
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
3183
3223
|
"""
|
3184
3224
|
fetch all open positions
|
3185
|
-
|
3186
|
-
|
3225
|
+
|
3226
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
3227
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
3228
|
+
|
3187
3229
|
:param str[]|None symbols: list of unified market symbols
|
3188
3230
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3189
3231
|
:returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -3279,8 +3321,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3279
3321
|
|
3280
3322
|
async def fetch_position(self, symbol: str, params={}):
|
3281
3323
|
"""
|
3282
|
-
|
3283
|
-
|
3324
|
+
|
3325
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
3326
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
3327
|
+
|
3284
3328
|
fetch data on a single open contract trade position
|
3285
3329
|
:param str symbol: unified market symbol of the market the position is held in
|
3286
3330
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3448,7 +3492,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3448
3492
|
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
3449
3493
|
"""
|
3450
3494
|
set the level of leverage for a market
|
3451
|
-
|
3495
|
+
|
3496
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
|
3497
|
+
|
3452
3498
|
:param float leverage: the rate of leverage
|
3453
3499
|
:param str symbol: unified market symbol
|
3454
3500
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3497,7 +3543,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3497
3543
|
async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
|
3498
3544
|
"""
|
3499
3545
|
fetch the transfer history, only transfers between spot and swap accounts are supported
|
3500
|
-
|
3546
|
+
|
3547
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
|
3548
|
+
|
3501
3549
|
:param str code: unified currency code of the currency transferred
|
3502
3550
|
:param int [since]: the earliest time in ms to fetch transfers for
|
3503
3551
|
:param int [limit]: the maximum number of transfers to retrieve
|
@@ -3535,7 +3583,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3535
3583
|
|
3536
3584
|
async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
|
3537
3585
|
"""
|
3538
|
-
|
3586
|
+
|
3587
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
|
3588
|
+
|
3539
3589
|
retrieve information on the maximum leverage, for different trade sizes
|
3540
3590
|
:param str[]|None symbols: a list of unified market symbols
|
3541
3591
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3578,8 +3628,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3578
3628
|
|
3579
3629
|
async def fetch_market_leverage_tiers(self, symbol: str, params={}) -> List[LeverageTier]:
|
3580
3630
|
"""
|
3581
|
-
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
|
3582
3631
|
retrieve information on the maximum leverage, for different trade sizes for a single market
|
3632
|
+
|
3633
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
|
3634
|
+
|
3583
3635
|
:param str symbol: unified market symbol
|
3584
3636
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3585
3637
|
:returns dict: a `leverage tiers structure <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`
|
@@ -3652,9 +3704,10 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3652
3704
|
for i in range(0, len(brackets)):
|
3653
3705
|
tier = brackets[i]
|
3654
3706
|
marketId = self.safe_string(info, 'instrument_id')
|
3655
|
-
market = self.safe_market(marketId)
|
3707
|
+
market = self.safe_market(marketId, market)
|
3656
3708
|
tiers.append({
|
3657
3709
|
'tier': self.sum(i, 1),
|
3710
|
+
'symbol': self.safe_symbol(marketId, market, None, 'swap'),
|
3658
3711
|
'currency': market['settle'],
|
3659
3712
|
'minNotional': None,
|
3660
3713
|
'maxNotional': self.safe_number(tier, 'max_limit'),
|
@@ -3666,7 +3719,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3666
3719
|
|
3667
3720
|
def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
|
3668
3721
|
"""
|
3669
|
-
|
3722
|
+
@ignore
|
3670
3723
|
marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
|
3671
3724
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3672
3725
|
:returns Array: the marginMode in lowercase
|
@@ -3686,7 +3739,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3686
3739
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
3687
3740
|
"""
|
3688
3741
|
fetch deposit and withdraw fees
|
3689
|
-
|
3742
|
+
|
3743
|
+
https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
|
3744
|
+
|
3690
3745
|
:param str[]|None codes: not used by fetchDepositWithdrawFees()
|
3691
3746
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3692
3747
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -3793,7 +3848,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3793
3848
|
async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
3794
3849
|
"""
|
3795
3850
|
add margin to a position
|
3796
|
-
|
3851
|
+
|
3852
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
|
3853
|
+
|
3797
3854
|
:param str symbol: unified market symbol
|
3798
3855
|
:param float amount: amount of margin to add
|
3799
3856
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3807,7 +3864,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3807
3864
|
async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
3808
3865
|
"""
|
3809
3866
|
remove margin from a position
|
3810
|
-
|
3867
|
+
|
3868
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
|
3869
|
+
|
3811
3870
|
:param str symbol: unified market symbol
|
3812
3871
|
:param float amount: the amount of margin to remove
|
3813
3872
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3874,7 +3933,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3874
3933
|
async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3875
3934
|
"""
|
3876
3935
|
fetch the history of funding payments paid and received on self account
|
3877
|
-
|
3936
|
+
|
3937
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#funding-fee
|
3938
|
+
|
3878
3939
|
:param str [symbol]: unified market symbol
|
3879
3940
|
:param int [since]: the earliest time in ms to fetch funding history for
|
3880
3941
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -3935,7 +3996,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3935
3996
|
async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
|
3936
3997
|
"""
|
3937
3998
|
set margin mode to 'cross' or 'isolated'
|
3938
|
-
|
3999
|
+
|
4000
|
+
https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
|
4001
|
+
|
3939
4002
|
:param str marginMode: 'cross' or 'isolated'
|
3940
4003
|
:param str symbol: unified market symbol
|
3941
4004
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|