ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__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/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/delta.py
CHANGED
@@ -428,7 +428,7 @@ class delta(Exchange, ImplicitAPI):
|
|
428
428
|
def fetch_currencies(self, params={}):
|
429
429
|
"""
|
430
430
|
fetches all available currencies on an exchange
|
431
|
-
see https://docs.delta.exchange/#get-list-of-all-assets
|
431
|
+
:see: https://docs.delta.exchange/#get-list-of-all-assets
|
432
432
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
433
433
|
:returns dict: an associative dictionary of currencies
|
434
434
|
"""
|
@@ -510,7 +510,7 @@ class delta(Exchange, ImplicitAPI):
|
|
510
510
|
def fetch_markets(self, params={}):
|
511
511
|
"""
|
512
512
|
retrieves data on all markets for delta
|
513
|
-
see https://docs.delta.exchange/#get-list-of-products
|
513
|
+
:see: https://docs.delta.exchange/#get-list-of-products
|
514
514
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
515
515
|
:returns dict[]: an array of objects representing market data
|
516
516
|
"""
|
@@ -954,7 +954,7 @@ class delta(Exchange, ImplicitAPI):
|
|
954
954
|
def fetch_ticker(self, symbol: str, params={}):
|
955
955
|
"""
|
956
956
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
957
|
-
see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
957
|
+
:see: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
958
958
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
959
959
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
960
960
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1095,7 +1095,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1095
1095
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1096
1096
|
"""
|
1097
1097
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1098
|
-
see https://docs.delta.exchange/#get-tickers-for-products
|
1098
|
+
:see: https://docs.delta.exchange/#get-tickers-for-products
|
1099
1099
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1100
1100
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
1101
1101
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1244,7 +1244,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1244
1244
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
1245
1245
|
"""
|
1246
1246
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1247
|
-
see https://docs.delta.exchange/#get-l2-orderbook
|
1247
|
+
:see: https://docs.delta.exchange/#get-l2-orderbook
|
1248
1248
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1249
1249
|
:param int [limit]: the maximum amount of order book entries to return
|
1250
1250
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
@@ -1377,7 +1377,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1377
1377
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1378
1378
|
"""
|
1379
1379
|
get the list of most recent trades for a particular symbol
|
1380
|
-
see https://docs.delta.exchange/#get-public-trades
|
1380
|
+
:see: https://docs.delta.exchange/#get-public-trades
|
1381
1381
|
:param str symbol: unified symbol of the market to fetch trades for
|
1382
1382
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1383
1383
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1431,7 +1431,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1431
1431
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1432
1432
|
"""
|
1433
1433
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1434
|
-
see https://docs.delta.exchange/#get-ohlc-candles
|
1434
|
+
:see: https://docs.delta.exchange/#get-ohlc-candles
|
1435
1435
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1436
1436
|
:param str timeframe: the length of time each candle represents
|
1437
1437
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1494,7 +1494,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1494
1494
|
def fetch_balance(self, params={}):
|
1495
1495
|
"""
|
1496
1496
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1497
|
-
see https://docs.delta.exchange/#get-wallet-balances
|
1497
|
+
:see: https://docs.delta.exchange/#get-wallet-balances
|
1498
1498
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
1499
1499
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1500
1500
|
"""
|
@@ -1526,7 +1526,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1526
1526
|
def fetch_position(self, symbol: str, params={}):
|
1527
1527
|
"""
|
1528
1528
|
fetch data on a single open contract trade position
|
1529
|
-
see https://docs.delta.exchange/#get-position
|
1529
|
+
:see: https://docs.delta.exchange/#get-position
|
1530
1530
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
1531
1531
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
1532
1532
|
:returns dict: a `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -1553,7 +1553,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1553
1553
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
1554
1554
|
"""
|
1555
1555
|
fetch all open positions
|
1556
|
-
see https://docs.delta.exchange/#get-margined-positions
|
1556
|
+
:see: https://docs.delta.exchange/#get-margined-positions
|
1557
1557
|
:param str[]|None symbols: list of unified market symbols
|
1558
1558
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
1559
1559
|
:returns dict[]: a list of `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -1747,7 +1747,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1747
1747
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1748
1748
|
"""
|
1749
1749
|
create a trade order
|
1750
|
-
see https://docs.delta.exchange/#place-order
|
1750
|
+
:see: https://docs.delta.exchange/#place-order
|
1751
1751
|
:param str symbol: unified symbol of the market to create an order in
|
1752
1752
|
:param str type: 'market' or 'limit'
|
1753
1753
|
:param str side: 'buy' or 'sell'
|
@@ -1824,7 +1824,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1824
1824
|
def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
1825
1825
|
"""
|
1826
1826
|
edit a trade order
|
1827
|
-
see https://docs.delta.exchange/#edit-order
|
1827
|
+
:see: https://docs.delta.exchange/#edit-order
|
1828
1828
|
:param str id: order id
|
1829
1829
|
:param str symbol: unified symbol of the market to create an order in
|
1830
1830
|
:param str type: 'market' or 'limit'
|
@@ -1870,7 +1870,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1870
1870
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1871
1871
|
"""
|
1872
1872
|
cancels an open order
|
1873
|
-
see https://docs.delta.exchange/#cancel-order
|
1873
|
+
:see: https://docs.delta.exchange/#cancel-order
|
1874
1874
|
:param str id: order id
|
1875
1875
|
:param str symbol: unified symbol of the market the order was made in
|
1876
1876
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
@@ -1926,7 +1926,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1926
1926
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1927
1927
|
"""
|
1928
1928
|
cancel all open orders in a market
|
1929
|
-
see https://docs.delta.exchange/#cancel-all-open-orders
|
1929
|
+
:see: https://docs.delta.exchange/#cancel-all-open-orders
|
1930
1930
|
:param str symbol: unified market symbol of the market to cancel orders in
|
1931
1931
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
1932
1932
|
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1951,7 +1951,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1951
1951
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1952
1952
|
"""
|
1953
1953
|
fetch all unfilled currently open orders
|
1954
|
-
see https://docs.delta.exchange/#get-active-orders
|
1954
|
+
:see: https://docs.delta.exchange/#get-active-orders
|
1955
1955
|
:param str symbol: unified market symbol
|
1956
1956
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1957
1957
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1963,7 +1963,7 @@ class delta(Exchange, ImplicitAPI):
|
|
1963
1963
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1964
1964
|
"""
|
1965
1965
|
fetches information on multiple closed orders made by the user
|
1966
|
-
see https://docs.delta.exchange/#get-order-history-cancelled-and-closed
|
1966
|
+
:see: https://docs.delta.exchange/#get-order-history-cancelled-and-closed
|
1967
1967
|
:param str symbol: unified market symbol of the market orders were made in
|
1968
1968
|
:param int [since]: the earliest time in ms to fetch orders for
|
1969
1969
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2022,7 +2022,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2022
2022
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2023
2023
|
"""
|
2024
2024
|
fetch all trades made by the user
|
2025
|
-
see https://docs.delta.exchange/#get-user-fills-by-filters
|
2025
|
+
:see: https://docs.delta.exchange/#get-user-fills-by-filters
|
2026
2026
|
:param str symbol: unified market symbol
|
2027
2027
|
:param int [since]: the earliest time in ms to fetch trades for
|
2028
2028
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2099,7 +2099,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2099
2099
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2100
2100
|
"""
|
2101
2101
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
2102
|
-
see https://docs.delta.exchange/#get-wallet-transactions
|
2102
|
+
:see: https://docs.delta.exchange/#get-wallet-transactions
|
2103
2103
|
:param str code: unified currency code, default is None
|
2104
2104
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2105
2105
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -2283,7 +2283,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2283
2283
|
def fetch_funding_rate(self, symbol: str, params={}):
|
2284
2284
|
"""
|
2285
2285
|
fetch the current funding rate
|
2286
|
-
see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
2286
|
+
:see: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
2287
2287
|
:param str symbol: unified market symbol
|
2288
2288
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
2289
2289
|
:returns dict: a `funding rate structure <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -2347,7 +2347,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2347
2347
|
def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
2348
2348
|
"""
|
2349
2349
|
fetch the funding rate for multiple markets
|
2350
|
-
see https://docs.delta.exchange/#get-tickers-for-products
|
2350
|
+
:see: https://docs.delta.exchange/#get-tickers-for-products
|
2351
2351
|
:param str[]|None symbols: list of unified market symbols
|
2352
2352
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
2353
2353
|
:returns dict: a dictionary of `funding rates structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure>`, indexe by market symbols
|
@@ -2479,7 +2479,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2479
2479
|
def add_margin(self, symbol: str, amount, params={}):
|
2480
2480
|
"""
|
2481
2481
|
add margin
|
2482
|
-
see https://docs.delta.exchange/#add-remove-position-margin
|
2482
|
+
:see: https://docs.delta.exchange/#add-remove-position-margin
|
2483
2483
|
:param str symbol: unified market symbol
|
2484
2484
|
:param float amount: amount of margin to add
|
2485
2485
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
@@ -2490,7 +2490,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2490
2490
|
def reduce_margin(self, symbol: str, amount, params={}):
|
2491
2491
|
"""
|
2492
2492
|
remove margin from a position
|
2493
|
-
see https://docs.delta.exchange/#add-remove-position-margin
|
2493
|
+
:see: https://docs.delta.exchange/#add-remove-position-margin
|
2494
2494
|
:param str symbol: unified market symbol
|
2495
2495
|
:param float amount: the amount of margin to remove
|
2496
2496
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
@@ -2571,7 +2571,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2571
2571
|
def fetch_open_interest(self, symbol: str, params={}):
|
2572
2572
|
"""
|
2573
2573
|
retrieves the open interest of a derivative market
|
2574
|
-
see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
2574
|
+
:see: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
2575
2575
|
:param str symbol: unified market symbol
|
2576
2576
|
:param dict [params]: exchange specific parameters
|
2577
2577
|
:returns dict} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure:
|
@@ -2705,7 +2705,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2705
2705
|
def fetch_leverage(self, symbol: str, params={}):
|
2706
2706
|
"""
|
2707
2707
|
fetch the set leverage for a market
|
2708
|
-
see https://docs.delta.exchange/#get-order-leverage
|
2708
|
+
:see: https://docs.delta.exchange/#get-order-leverage
|
2709
2709
|
:param str symbol: unified market symbol
|
2710
2710
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
2711
2711
|
:returns dict: a `leverage structure <https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure>`
|
@@ -2733,7 +2733,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2733
2733
|
def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
2734
2734
|
"""
|
2735
2735
|
set the level of leverage for a market
|
2736
|
-
see https://docs.delta.exchange/#change-order-leverage
|
2736
|
+
:see: https://docs.delta.exchange/#change-order-leverage
|
2737
2737
|
:param float leverage: the rate of leverage
|
2738
2738
|
:param str symbol: unified market symbol
|
2739
2739
|
:param dict [params]: extra parameters specific to the delta api endpoint
|
@@ -2762,7 +2762,7 @@ class delta(Exchange, ImplicitAPI):
|
|
2762
2762
|
def fetch_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2763
2763
|
"""
|
2764
2764
|
fetches historical settlement records
|
2765
|
-
see https://docs.delta.exchange/#get-product-settlement-prices
|
2765
|
+
:see: https://docs.delta.exchange/#get-product-settlement-prices
|
2766
2766
|
:param str symbol: unified market symbol of the settlement history
|
2767
2767
|
:param int [since]: timestamp in ms
|
2768
2768
|
:param int [limit]: number of records
|
ccxt/deribit.py
CHANGED
@@ -436,7 +436,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
436
436
|
def fetch_currencies(self, params={}):
|
437
437
|
"""
|
438
438
|
fetches all available currencies on an exchange
|
439
|
-
see https://docs.deribit.com/#public-get_currencies
|
439
|
+
:see: https://docs.deribit.com/#public-get_currencies
|
440
440
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
441
441
|
:returns dict: an associative dictionary of currencies
|
442
442
|
"""
|
@@ -1272,7 +1272,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
1272
1272
|
|
1273
1273
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1274
1274
|
"""
|
1275
|
-
see https://docs.deribit.com/#private-get_user_trades_by_currency
|
1275
|
+
:see: https://docs.deribit.com/#private-get_user_trades_by_currency
|
1276
1276
|
get the list of most recent trades for a particular symbol.
|
1277
1277
|
:param str symbol: unified symbol of the market to fetch trades for
|
1278
1278
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -1658,7 +1658,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
1658
1658
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1659
1659
|
"""
|
1660
1660
|
create a trade order
|
1661
|
-
see https://docs.deribit.com/#private-buy
|
1661
|
+
:see: https://docs.deribit.com/#private-buy
|
1662
1662
|
:param str symbol: unified symbol of the market to create an order in
|
1663
1663
|
:param str type: 'market' or 'limit'
|
1664
1664
|
:param str side: 'buy' or 'sell'
|
@@ -2374,7 +2374,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2374
2374
|
def fetch_volatility_history(self, code: str, params={}):
|
2375
2375
|
"""
|
2376
2376
|
fetch the historical volatility of an option market based on an underlying asset
|
2377
|
-
see https://docs.deribit.com/#public-get_historical_volatility
|
2377
|
+
:see: https://docs.deribit.com/#public-get_historical_volatility
|
2378
2378
|
:param str code: unified currency code
|
2379
2379
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
2380
2380
|
:returns dict[]: a list of `volatility history objects <https://github.com/ccxt/ccxt/wiki/Manual#volatility-structure>`
|
@@ -2623,7 +2623,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2623
2623
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
2624
2624
|
"""
|
2625
2625
|
fetch deposit and withdraw fees
|
2626
|
-
see https://docs.deribit.com/#public-get_currencies
|
2626
|
+
:see: https://docs.deribit.com/#public-get_currencies
|
2627
2627
|
:param str[]|None codes: list of unified currency codes
|
2628
2628
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
2629
2629
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2658,7 +2658,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2658
2658
|
def fetch_funding_rate(self, symbol: str, params={}):
|
2659
2659
|
"""
|
2660
2660
|
fetch the current funding rate
|
2661
|
-
see https://docs.deribit.com/#public-get_funding_rate_value
|
2661
|
+
:see: https://docs.deribit.com/#public-get_funding_rate_value
|
2662
2662
|
:param str symbol: unified market symbol
|
2663
2663
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
2664
2664
|
:param int [params.start_timestamp]: fetch funding rate starting from self timestamp
|
@@ -2689,7 +2689,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2689
2689
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2690
2690
|
"""
|
2691
2691
|
fetch the current funding rate
|
2692
|
-
see https://docs.deribit.com/#public-get_funding_rate_history
|
2692
|
+
:see: https://docs.deribit.com/#public-get_funding_rate_history
|
2693
2693
|
:param str symbol: unified market symbol
|
2694
2694
|
:param dict [params]: extra parameters specific to the deribit api endpoint
|
2695
2695
|
:param int [params.end_timestamp]: fetch funding rate ending at self timestamp
|
@@ -2780,7 +2780,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2780
2780
|
def fetch_liquidations(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2781
2781
|
"""
|
2782
2782
|
retrieves the public liquidations of a trading pair
|
2783
|
-
see https://docs.deribit.com/#public-get_last_settlements_by_currency
|
2783
|
+
:see: https://docs.deribit.com/#public-get_last_settlements_by_currency
|
2784
2784
|
:param str symbol: unified CCXT market symbol
|
2785
2785
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
2786
2786
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -2850,7 +2850,7 @@ class deribit(Exchange, ImplicitAPI):
|
|
2850
2850
|
def fetch_my_liquidations(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2851
2851
|
"""
|
2852
2852
|
retrieves the users liquidated positions
|
2853
|
-
see https://docs.deribit.com/#private-get_settlement_history_by_instrument
|
2853
|
+
:see: https://docs.deribit.com/#private-get_settlement_history_by_instrument
|
2854
2854
|
:param str symbol: unified CCXT market symbol
|
2855
2855
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
2856
2856
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
ccxt/digifinex.py
CHANGED
@@ -779,9 +779,9 @@ class digifinex(Exchange, ImplicitAPI):
|
|
779
779
|
def fetch_balance(self, params={}):
|
780
780
|
"""
|
781
781
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
782
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
|
783
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
784
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
|
782
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
|
783
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
|
784
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
|
785
785
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
786
786
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
787
787
|
"""
|
@@ -841,8 +841,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
841
841
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
842
842
|
"""
|
843
843
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
844
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
|
845
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
|
844
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
|
845
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
|
846
846
|
:param str symbol: unified symbol of the market to fetch the order book for
|
847
847
|
:param int [limit]: the maximum amount of order book entries to return
|
848
848
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -913,8 +913,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
913
913
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
914
914
|
"""
|
915
915
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
916
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
917
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
|
916
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
917
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
|
918
918
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
919
919
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
920
920
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -995,8 +995,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
995
995
|
def fetch_ticker(self, symbol: str, params={}):
|
996
996
|
"""
|
997
997
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
998
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
999
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
|
998
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
|
999
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
|
1000
1000
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1001
1001
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
1002
1002
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1306,8 +1306,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1306
1306
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1307
1307
|
"""
|
1308
1308
|
get the list of most recent trades for a particular symbol
|
1309
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
|
1310
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
|
1309
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
|
1310
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
|
1311
1311
|
:param str symbol: unified symbol of the market to fetch trades for
|
1312
1312
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1313
1313
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1403,8 +1403,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1403
1403
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1404
1404
|
"""
|
1405
1405
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1406
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
|
1407
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
|
1406
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
|
1407
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
|
1408
1408
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1409
1409
|
:param str timeframe: the length of time each candle represents
|
1410
1410
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1474,8 +1474,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1474
1474
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1475
1475
|
"""
|
1476
1476
|
create a trade order
|
1477
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
|
1478
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
|
1477
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
|
1478
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
|
1479
1479
|
:param str symbol: unified symbol of the market to create an order in
|
1480
1480
|
:param str type: 'market' or 'limit'
|
1481
1481
|
:param str side: 'buy' or 'sell'
|
@@ -1579,8 +1579,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1579
1579
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1580
1580
|
"""
|
1581
1581
|
cancels an open order
|
1582
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
|
1583
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
|
1582
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
|
1583
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
|
1584
1584
|
:param str id: order id
|
1585
1585
|
:param str symbol: not used by digifinex cancelOrder()
|
1586
1586
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -1810,8 +1810,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1810
1810
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1811
1811
|
"""
|
1812
1812
|
fetch all unfilled currently open orders
|
1813
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
|
1814
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
|
1813
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
|
1814
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
|
1815
1815
|
:param str symbol: unified market symbol
|
1816
1816
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1817
1817
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1903,8 +1903,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1903
1903
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1904
1904
|
"""
|
1905
1905
|
fetches information on multiple orders made by the user
|
1906
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
|
1907
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
|
1906
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
|
1907
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
|
1908
1908
|
:param str symbol: unified market symbol of the market orders were made in
|
1909
1909
|
:param int [since]: the earliest time in ms to fetch orders for
|
1910
1910
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -1997,8 +1997,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
1997
1997
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1998
1998
|
"""
|
1999
1999
|
fetches information on an order made by the user
|
2000
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
|
2001
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
|
2000
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
|
2001
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
|
2002
2002
|
:param str id: order id
|
2003
2003
|
:param str symbol: unified symbol of the market the order was made in
|
2004
2004
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -2085,8 +2085,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2085
2085
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2086
2086
|
"""
|
2087
2087
|
fetch all trades made by the user
|
2088
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
|
2089
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
|
2088
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
|
2089
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
|
2090
2090
|
:param str symbol: unified market symbol
|
2091
2091
|
:param int [since]: the earliest time in ms to fetch trades for
|
2092
2092
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2224,8 +2224,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2224
2224
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2225
2225
|
"""
|
2226
2226
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
2227
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
|
2228
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
|
2227
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
|
2228
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
|
2229
2229
|
:param str code: unified currency code, default is None
|
2230
2230
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2231
2231
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -2759,7 +2759,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2759
2759
|
def fetch_funding_rate(self, symbol: str, params={}):
|
2760
2760
|
"""
|
2761
2761
|
fetch the current funding rate
|
2762
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
|
2762
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
|
2763
2763
|
:param str symbol: unified market symbol
|
2764
2764
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
2765
2765
|
:returns dict: a `funding rate structure <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -2878,7 +2878,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2878
2878
|
def fetch_trading_fee(self, symbol: str, params={}):
|
2879
2879
|
"""
|
2880
2880
|
fetch the trading fees for a market
|
2881
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
|
2881
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
|
2882
2882
|
:param str symbol: unified market symbol
|
2883
2883
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
2884
2884
|
:returns dict: a `fee structure <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2924,8 +2924,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
2924
2924
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
2925
2925
|
"""
|
2926
2926
|
fetch all open positions
|
2927
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
2928
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
2927
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
2928
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
2929
2929
|
:param str[]|None symbols: list of unified market symbols
|
2930
2930
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
2931
2931
|
:returns dict[]: a list of `position structures <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -3020,8 +3020,8 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3020
3020
|
|
3021
3021
|
def fetch_position(self, symbol: str, params={}):
|
3022
3022
|
"""
|
3023
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
3024
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
3023
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
|
3024
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
|
3025
3025
|
fetch data on a single open contract trade position
|
3026
3026
|
:param str symbol: unified market symbol of the market the position is held in
|
3027
3027
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -3188,7 +3188,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3188
3188
|
def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
3189
3189
|
"""
|
3190
3190
|
set the level of leverage for a market
|
3191
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
|
3191
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
|
3192
3192
|
:param float leverage: the rate of leverage
|
3193
3193
|
:param str symbol: unified market symbol
|
3194
3194
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -3236,7 +3236,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3236
3236
|
def fetch_transfers(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3237
3237
|
"""
|
3238
3238
|
fetch the transfer history, only transfers between spot and swap accounts are supported
|
3239
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
|
3239
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
|
3240
3240
|
:param str code: unified currency code of the currency transferred
|
3241
3241
|
:param int [since]: the earliest time in ms to fetch transfers for
|
3242
3242
|
:param int [limit]: the maximum number of transfers to retrieve
|
@@ -3274,7 +3274,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3274
3274
|
|
3275
3275
|
def fetch_leverage_tiers(self, symbols: Optional[List[str]] = None, params={}):
|
3276
3276
|
"""
|
3277
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
|
3277
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
|
3278
3278
|
retrieve information on the maximum leverage, for different trade sizes
|
3279
3279
|
:param str[]|None symbols: a list of unified market symbols
|
3280
3280
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -3361,7 +3361,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3361
3361
|
|
3362
3362
|
def fetch_market_leverage_tiers(self, symbol: str, params={}):
|
3363
3363
|
"""
|
3364
|
-
see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
|
3364
|
+
:see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
|
3365
3365
|
retrieve information on the maximum leverage, for different trade sizes for a single market
|
3366
3366
|
:param str symbol: unified market symbol
|
3367
3367
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
@@ -3469,7 +3469,7 @@ class digifinex(Exchange, ImplicitAPI):
|
|
3469
3469
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
3470
3470
|
"""
|
3471
3471
|
fetch deposit and withdraw fees
|
3472
|
-
see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
|
3472
|
+
:see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
|
3473
3473
|
:param str[]|None codes: not used by fetchDepositWithdrawFees()
|
3474
3474
|
:param dict [params]: extra parameters specific to the digifinex api endpoint
|
3475
3475
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|