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/delta.py
CHANGED
@@ -414,7 +414,9 @@ class delta(Exchange, ImplicitAPI):
|
|
414
414
|
def fetch_currencies(self, params={}) -> Currencies:
|
415
415
|
"""
|
416
416
|
fetches all available currencies on an exchange
|
417
|
-
|
417
|
+
|
418
|
+
https://docs.delta.exchange/#get-list-of-all-assets
|
419
|
+
|
418
420
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
419
421
|
:returns dict: an associative dictionary of currencies
|
420
422
|
"""
|
@@ -510,7 +512,9 @@ class delta(Exchange, ImplicitAPI):
|
|
510
512
|
def fetch_markets(self, params={}) -> List[Market]:
|
511
513
|
"""
|
512
514
|
retrieves data on all markets for delta
|
513
|
-
|
515
|
+
|
516
|
+
https://docs.delta.exchange/#get-list-of-products
|
517
|
+
|
514
518
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
515
519
|
:returns dict[]: an array of objects representing market data
|
516
520
|
"""
|
@@ -956,7 +960,9 @@ class delta(Exchange, ImplicitAPI):
|
|
956
960
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
957
961
|
"""
|
958
962
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
959
|
-
|
963
|
+
|
964
|
+
https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
965
|
+
|
960
966
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
961
967
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
962
968
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1097,7 +1103,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1097
1103
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1098
1104
|
"""
|
1099
1105
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1100
|
-
|
1106
|
+
|
1107
|
+
https://docs.delta.exchange/#get-tickers-for-products
|
1108
|
+
|
1101
1109
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1102
1110
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1103
1111
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1246,7 +1254,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1246
1254
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1247
1255
|
"""
|
1248
1256
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1249
|
-
|
1257
|
+
|
1258
|
+
https://docs.delta.exchange/#get-l2-orderbook
|
1259
|
+
|
1250
1260
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1251
1261
|
:param int [limit]: the maximum amount of order book entries to return
|
1252
1262
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1379,7 +1389,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1379
1389
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1380
1390
|
"""
|
1381
1391
|
get the list of most recent trades for a particular symbol
|
1382
|
-
|
1392
|
+
|
1393
|
+
https://docs.delta.exchange/#get-public-trades
|
1394
|
+
|
1383
1395
|
:param str symbol: unified symbol of the market to fetch trades for
|
1384
1396
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1385
1397
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1433,7 +1445,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1433
1445
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1434
1446
|
"""
|
1435
1447
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1436
|
-
|
1448
|
+
|
1449
|
+
https://docs.delta.exchange/#get-ohlc-candles
|
1450
|
+
|
1437
1451
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1438
1452
|
:param str timeframe: the length of time each candle represents
|
1439
1453
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1496,7 +1510,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1496
1510
|
def fetch_balance(self, params={}) -> Balances:
|
1497
1511
|
"""
|
1498
1512
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1499
|
-
|
1513
|
+
|
1514
|
+
https://docs.delta.exchange/#get-wallet-balances
|
1515
|
+
|
1500
1516
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1501
1517
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1502
1518
|
"""
|
@@ -1528,7 +1544,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1528
1544
|
def fetch_position(self, symbol: str, params={}):
|
1529
1545
|
"""
|
1530
1546
|
fetch data on a single open contract trade position
|
1531
|
-
|
1547
|
+
|
1548
|
+
https://docs.delta.exchange/#get-position
|
1549
|
+
|
1532
1550
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
1533
1551
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1534
1552
|
:returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1555,7 +1573,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1555
1573
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
1556
1574
|
"""
|
1557
1575
|
fetch all open positions
|
1558
|
-
|
1576
|
+
|
1577
|
+
https://docs.delta.exchange/#get-margined-positions
|
1578
|
+
|
1559
1579
|
:param str[]|None symbols: list of unified market symbols
|
1560
1580
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1561
1581
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1749,7 +1769,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1749
1769
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1750
1770
|
"""
|
1751
1771
|
create a trade order
|
1752
|
-
|
1772
|
+
|
1773
|
+
https://docs.delta.exchange/#place-order
|
1774
|
+
|
1753
1775
|
:param str symbol: unified symbol of the market to create an order in
|
1754
1776
|
:param str type: 'market' or 'limit'
|
1755
1777
|
:param str side: 'buy' or 'sell'
|
@@ -1826,7 +1848,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1826
1848
|
def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
1827
1849
|
"""
|
1828
1850
|
edit a trade order
|
1829
|
-
|
1851
|
+
|
1852
|
+
https://docs.delta.exchange/#edit-order
|
1853
|
+
|
1830
1854
|
:param str id: order id
|
1831
1855
|
:param str symbol: unified symbol of the market to create an order in
|
1832
1856
|
:param str type: 'market' or 'limit'
|
@@ -1872,7 +1896,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1872
1896
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1873
1897
|
"""
|
1874
1898
|
cancels an open order
|
1875
|
-
|
1899
|
+
|
1900
|
+
https://docs.delta.exchange/#cancel-order
|
1901
|
+
|
1876
1902
|
:param str id: order id
|
1877
1903
|
:param str symbol: unified symbol of the market the order was made in
|
1878
1904
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1929,7 +1955,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1929
1955
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1930
1956
|
"""
|
1931
1957
|
cancel all open orders in a market
|
1932
|
-
|
1958
|
+
|
1959
|
+
https://docs.delta.exchange/#cancel-all-open-orders
|
1960
|
+
|
1933
1961
|
:param str symbol: unified market symbol of the market to cancel orders in
|
1934
1962
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1935
1963
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1959,7 +1987,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1959
1987
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1960
1988
|
"""
|
1961
1989
|
fetch all unfilled currently open orders
|
1962
|
-
|
1990
|
+
|
1991
|
+
https://docs.delta.exchange/#get-active-orders
|
1992
|
+
|
1963
1993
|
:param str symbol: unified market symbol
|
1964
1994
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1965
1995
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1971,7 +2001,9 @@ class delta(Exchange, ImplicitAPI):
|
|
1971
2001
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1972
2002
|
"""
|
1973
2003
|
fetches information on multiple closed orders made by the user
|
1974
|
-
|
2004
|
+
|
2005
|
+
https://docs.delta.exchange/#get-order-history-cancelled-and-closed
|
2006
|
+
|
1975
2007
|
:param str symbol: unified market symbol of the market orders were made in
|
1976
2008
|
:param int [since]: the earliest time in ms to fetch orders for
|
1977
2009
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2034,7 +2066,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2034
2066
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2035
2067
|
"""
|
2036
2068
|
fetch all trades made by the user
|
2037
|
-
|
2069
|
+
|
2070
|
+
https://docs.delta.exchange/#get-user-fills-by-filters
|
2071
|
+
|
2038
2072
|
:param str symbol: unified market symbol
|
2039
2073
|
:param int [since]: the earliest time in ms to fetch trades for
|
2040
2074
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2111,7 +2145,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2111
2145
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2112
2146
|
"""
|
2113
2147
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
2114
|
-
|
2148
|
+
|
2149
|
+
https://docs.delta.exchange/#get-wallet-transactions
|
2150
|
+
|
2115
2151
|
:param str [code]: unified currency code, default is None
|
2116
2152
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2117
2153
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -2295,7 +2331,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2295
2331
|
def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
2296
2332
|
"""
|
2297
2333
|
fetch the current funding rate
|
2298
|
-
|
2334
|
+
|
2335
|
+
https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
2336
|
+
|
2299
2337
|
:param str symbol: unified market symbol
|
2300
2338
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2301
2339
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2359,7 +2397,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2359
2397
|
def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
2360
2398
|
"""
|
2361
2399
|
fetch the funding rate for multiple markets
|
2362
|
-
|
2400
|
+
|
2401
|
+
https://docs.delta.exchange/#get-tickers-for-products
|
2402
|
+
|
2363
2403
|
:param str[]|None symbols: list of unified market symbols
|
2364
2404
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2365
2405
|
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexed by market symbols
|
@@ -2492,7 +2532,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2492
2532
|
def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
2493
2533
|
"""
|
2494
2534
|
add margin
|
2495
|
-
|
2535
|
+
|
2536
|
+
https://docs.delta.exchange/#add-remove-position-margin
|
2537
|
+
|
2496
2538
|
:param str symbol: unified market symbol
|
2497
2539
|
:param float amount: amount of margin to add
|
2498
2540
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2503,7 +2545,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2503
2545
|
def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
2504
2546
|
"""
|
2505
2547
|
remove margin from a position
|
2506
|
-
|
2548
|
+
|
2549
|
+
https://docs.delta.exchange/#add-remove-position-margin
|
2550
|
+
|
2507
2551
|
:param str symbol: unified market symbol
|
2508
2552
|
:param float amount: the amount of margin to remove
|
2509
2553
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2587,7 +2631,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2587
2631
|
def fetch_open_interest(self, symbol: str, params={}):
|
2588
2632
|
"""
|
2589
2633
|
retrieves the open interest of a derivative market
|
2590
|
-
|
2634
|
+
|
2635
|
+
https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
2636
|
+
|
2591
2637
|
:param str symbol: unified market symbol
|
2592
2638
|
:param dict [params]: exchange specific parameters
|
2593
2639
|
:returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure:
|
@@ -2721,7 +2767,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2721
2767
|
def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
2722
2768
|
"""
|
2723
2769
|
fetch the set leverage for a market
|
2724
|
-
|
2770
|
+
|
2771
|
+
https://docs.delta.exchange/#get-order-leverage
|
2772
|
+
|
2725
2773
|
:param str symbol: unified market symbol
|
2726
2774
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2727
2775
|
:returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
|
@@ -2762,7 +2810,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2762
2810
|
def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2763
2811
|
"""
|
2764
2812
|
set the level of leverage for a market
|
2765
|
-
|
2813
|
+
|
2814
|
+
https://docs.delta.exchange/#change-order-leverage
|
2815
|
+
|
2766
2816
|
:param float leverage: the rate of leverage
|
2767
2817
|
:param str symbol: unified market symbol
|
2768
2818
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2792,7 +2842,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2792
2842
|
def fetch_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2793
2843
|
"""
|
2794
2844
|
fetches historical settlement records
|
2795
|
-
|
2845
|
+
|
2846
|
+
https://docs.delta.exchange/#get-product-settlement-prices
|
2847
|
+
|
2796
2848
|
:param str symbol: unified market symbol of the settlement history
|
2797
2849
|
:param int [since]: timestamp in ms
|
2798
2850
|
:param int [limit]: number of records
|
@@ -2945,7 +2997,9 @@ class delta(Exchange, ImplicitAPI):
|
|
2945
2997
|
def fetch_greeks(self, symbol: str, params={}) -> Greeks:
|
2946
2998
|
"""
|
2947
2999
|
fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
2948
|
-
|
3000
|
+
|
3001
|
+
https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
3002
|
+
|
2949
3003
|
:param str symbol: unified symbol of the market to fetch greeks for
|
2950
3004
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2951
3005
|
:returns dict: a `greeks structure <https://docs.ccxt.com/#/?id=greeks-structure>`
|
@@ -3091,7 +3145,9 @@ class delta(Exchange, ImplicitAPI):
|
|
3091
3145
|
def close_all_positions(self, params={}) -> List[Position]:
|
3092
3146
|
"""
|
3093
3147
|
closes all open positions for a market type
|
3094
|
-
|
3148
|
+
|
3149
|
+
https://docs.delta.exchange/#close-all-positions
|
3150
|
+
|
3095
3151
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3096
3152
|
:param int [params.user_id]: the users id
|
3097
3153
|
:returns dict[]: A list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -3112,7 +3168,9 @@ class delta(Exchange, ImplicitAPI):
|
|
3112
3168
|
def fetch_margin_mode(self, symbol: str, params={}) -> MarginMode:
|
3113
3169
|
"""
|
3114
3170
|
fetches the margin mode of a trading pair
|
3115
|
-
|
3171
|
+
|
3172
|
+
https://docs.delta.exchange/#get-user
|
3173
|
+
|
3116
3174
|
:param str symbol: unified symbol of the market to fetch the margin mode for
|
3117
3175
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3118
3176
|
:returns dict: a `margin mode structure <https://docs.ccxt.com/#/?id=margin-mode-structure>`
|
@@ -3201,7 +3259,9 @@ class delta(Exchange, ImplicitAPI):
|
|
3201
3259
|
def fetch_option(self, symbol: str, params={}) -> Option:
|
3202
3260
|
"""
|
3203
3261
|
fetches option data that is commonly found in an option chain
|
3204
|
-
|
3262
|
+
|
3263
|
+
https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
3264
|
+
|
3205
3265
|
:param str symbol: unified market symbol
|
3206
3266
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3207
3267
|
:returns dict: an `option chain structure <https://docs.ccxt.com/#/?id=option-chain-structure>`
|