ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/vertex.py
CHANGED
@@ -348,7 +348,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
348
348
|
def fetch_currencies(self, params={}) -> Currencies:
|
349
349
|
"""
|
350
350
|
fetches all available currencies on an exchange
|
351
|
-
|
351
|
+
|
352
|
+
https://docs.vertexprotocol.com/developer-resources/api/v2/assets
|
353
|
+
|
352
354
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
353
355
|
:returns dict: an associative dictionary of currencies
|
354
356
|
"""
|
@@ -507,7 +509,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
507
509
|
def fetch_markets(self, params={}) -> List[Market]:
|
508
510
|
"""
|
509
511
|
retrieves data on all markets for vertex
|
510
|
-
|
512
|
+
|
513
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/symbols
|
514
|
+
|
511
515
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
512
516
|
:returns dict[]: an array of objects representing market data
|
513
517
|
"""
|
@@ -562,7 +566,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
562
566
|
def fetch_status(self, params={}):
|
563
567
|
"""
|
564
568
|
the latest known information on the availability of the exchange API
|
565
|
-
|
569
|
+
|
570
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/status
|
571
|
+
|
566
572
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
567
573
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
568
574
|
"""
|
@@ -713,7 +719,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
713
719
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
714
720
|
"""
|
715
721
|
get the list of most recent trades for a particular symbol
|
716
|
-
|
722
|
+
|
723
|
+
https://docs.vertexprotocol.com/developer-resources/api/v2/trades
|
724
|
+
|
717
725
|
:param str symbol: unified symbol of the market to fetch trades for
|
718
726
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
719
727
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -756,7 +764,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
756
764
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
757
765
|
"""
|
758
766
|
fetch all trades made by the user
|
759
|
-
|
767
|
+
|
768
|
+
https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/matches
|
769
|
+
|
760
770
|
:param str symbol: unified market symbol
|
761
771
|
:param int [since]: the earliest time in ms to fetch trades for
|
762
772
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -961,7 +971,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
961
971
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
962
972
|
"""
|
963
973
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
964
|
-
|
974
|
+
|
975
|
+
https://docs.vertexprotocol.com/developer-resources/api/v2/orderbook
|
976
|
+
|
965
977
|
:param str symbol: unified symbol of the market to fetch the order book for
|
966
978
|
:param int [limit]: the maximum amount of order book entries to return
|
967
979
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1021,7 +1033,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1021
1033
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
1022
1034
|
"""
|
1023
1035
|
fetch the trading fees for multiple markets
|
1024
|
-
|
1036
|
+
|
1037
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/fee-rates
|
1038
|
+
|
1025
1039
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1026
1040
|
:param str [params.user]: user address, will default to self.walletAddress if not provided
|
1027
1041
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
@@ -1098,7 +1112,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1098
1112
|
|
1099
1113
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1100
1114
|
"""
|
1101
|
-
|
1115
|
+
|
1116
|
+
https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/candlesticks
|
1117
|
+
|
1102
1118
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1103
1119
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1104
1120
|
:param str timeframe: the length of time each candle represents
|
@@ -1214,7 +1230,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1214
1230
|
def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1215
1231
|
"""
|
1216
1232
|
fetch the current funding rate
|
1217
|
-
|
1233
|
+
|
1234
|
+
https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/funding-rate
|
1235
|
+
|
1218
1236
|
:param str symbol: unified market symbol
|
1219
1237
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1220
1238
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1239,7 +1257,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1239
1257
|
def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
1240
1258
|
"""
|
1241
1259
|
fetches funding rates for multiple markets
|
1242
|
-
|
1260
|
+
|
1261
|
+
https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
1262
|
+
|
1243
1263
|
:param str[] symbols: unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
1244
1264
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1245
1265
|
:returns dict[]: an array of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1320,7 +1340,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1320
1340
|
def fetch_open_interest(self, symbol: str, params={}):
|
1321
1341
|
"""
|
1322
1342
|
Retrieves the open interest of a derivative trading pair
|
1323
|
-
|
1343
|
+
|
1344
|
+
https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
1345
|
+
|
1324
1346
|
:param str symbol: Unified CCXT market symbol
|
1325
1347
|
:param dict [params]: exchange specific parameters
|
1326
1348
|
:returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure:
|
@@ -1402,7 +1424,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1402
1424
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1403
1425
|
"""
|
1404
1426
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1405
|
-
|
1427
|
+
|
1428
|
+
https://docs.vertexprotocol.com/developer-resources/api/v2/tickers
|
1429
|
+
|
1406
1430
|
:param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1407
1431
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1408
1432
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1571,8 +1595,10 @@ class vertex(Exchange, ImplicitAPI):
|
|
1571
1595
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1572
1596
|
"""
|
1573
1597
|
create a trade order
|
1574
|
-
|
1575
|
-
|
1598
|
+
|
1599
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/place-order
|
1600
|
+
https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/place-order
|
1601
|
+
|
1576
1602
|
:param str symbol: unified symbol of the market to create an order in
|
1577
1603
|
:param str type: 'market' or 'limit'
|
1578
1604
|
:param str side: 'buy' or 'sell'
|
@@ -1666,7 +1692,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1666
1692
|
def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
1667
1693
|
"""
|
1668
1694
|
edit a trade order
|
1669
|
-
|
1695
|
+
|
1696
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-and-place
|
1697
|
+
|
1670
1698
|
:param str id: cancel order id
|
1671
1699
|
:param str symbol: unified symbol of the market to create an order in
|
1672
1700
|
:param str type: 'market' or 'limit'
|
@@ -1886,7 +1914,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
1886
1914
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1887
1915
|
"""
|
1888
1916
|
fetches information on an order made by the user
|
1889
|
-
|
1917
|
+
|
1918
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/order
|
1919
|
+
|
1890
1920
|
:param str id: the order id
|
1891
1921
|
:param str symbol: unified symbol of the market the order was made in
|
1892
1922
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1924,8 +1954,10 @@ class vertex(Exchange, ImplicitAPI):
|
|
1924
1954
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1925
1955
|
"""
|
1926
1956
|
fetch all unfilled currently open orders
|
1927
|
-
|
1928
|
-
|
1957
|
+
|
1958
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/orders
|
1959
|
+
https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
1960
|
+
|
1929
1961
|
:param str symbol: unified market symbol
|
1930
1962
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1931
1963
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2035,7 +2067,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
2035
2067
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2036
2068
|
"""
|
2037
2069
|
fetches information on multiple orders made by the user
|
2038
|
-
|
2070
|
+
|
2071
|
+
https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
2072
|
+
|
2039
2073
|
:param str symbol: unified market symbol
|
2040
2074
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2041
2075
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -2115,8 +2149,10 @@ class vertex(Exchange, ImplicitAPI):
|
|
2115
2149
|
|
2116
2150
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
2117
2151
|
"""
|
2118
|
-
|
2119
|
-
|
2152
|
+
|
2153
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-product-orders
|
2154
|
+
https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-product-orders
|
2155
|
+
|
2120
2156
|
cancel all open orders in a market
|
2121
2157
|
:param str symbol: unified market symbol
|
2122
2158
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2194,8 +2230,10 @@ class vertex(Exchange, ImplicitAPI):
|
|
2194
2230
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2195
2231
|
"""
|
2196
2232
|
cancels an open order
|
2197
|
-
|
2198
|
-
|
2233
|
+
|
2234
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
2235
|
+
https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
2236
|
+
|
2199
2237
|
:param str id: order id
|
2200
2238
|
:param str symbol: unified symbol of the market the order was made in
|
2201
2239
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2206,8 +2244,10 @@ class vertex(Exchange, ImplicitAPI):
|
|
2206
2244
|
def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
|
2207
2245
|
"""
|
2208
2246
|
cancel multiple orders
|
2209
|
-
|
2210
|
-
|
2247
|
+
|
2248
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
2249
|
+
https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
2250
|
+
|
2211
2251
|
:param str[] ids: order ids
|
2212
2252
|
:param str [symbol]: unified market symbol
|
2213
2253
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2287,7 +2327,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
2287
2327
|
def fetch_balance(self, params={}) -> Balances:
|
2288
2328
|
"""
|
2289
2329
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2290
|
-
|
2330
|
+
|
2331
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
2332
|
+
|
2291
2333
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2292
2334
|
:param str [params.user]: user address, will default to self.walletAddress if not provided
|
2293
2335
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -2692,7 +2734,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
2692
2734
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
2693
2735
|
"""
|
2694
2736
|
fetch all open positions
|
2695
|
-
|
2737
|
+
|
2738
|
+
https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
2739
|
+
|
2696
2740
|
:param str[] [symbols]: list of unified market symbols
|
2697
2741
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2698
2742
|
:param str [params.user]: user address, will default to self.walletAddress if not provided
|
@@ -2738,7 +2782,9 @@ class vertex(Exchange, ImplicitAPI):
|
|
2738
2782
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2739
2783
|
"""
|
2740
2784
|
make a withdrawal
|
2741
|
-
|
2785
|
+
|
2786
|
+
https://docs.vertexprotocol.com/developer-resources/api/withdrawing-on-chain
|
2787
|
+
|
2742
2788
|
:param str code: unified currency code
|
2743
2789
|
:param float amount: the amount to withdraw
|
2744
2790
|
:param str address: the address to withdraw to
|
ccxt/wavesexchange.py
CHANGED
@@ -607,7 +607,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
607
607
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
608
608
|
"""
|
609
609
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
610
|
-
|
610
|
+
|
611
|
+
https://matcher.waves.exchange/api-docs/index.html#/markets/getOrderBook
|
612
|
+
|
611
613
|
:param str symbol: unified symbol of the market to fetch the order book for
|
612
614
|
:param int [limit]: the maximum amount of order book entries to return
|
613
615
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -728,7 +730,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
728
730
|
def sign_in(self, params={}):
|
729
731
|
"""
|
730
732
|
sign in, must be called prior to using other authenticated methods
|
731
|
-
|
733
|
+
|
734
|
+
https://docs.wx.network/en/api/auth/oauth2-token
|
735
|
+
|
732
736
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
733
737
|
:returns: response from exchange
|
734
738
|
"""
|
@@ -839,7 +843,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
839
843
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
840
844
|
"""
|
841
845
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
842
|
-
|
846
|
+
|
847
|
+
https://api.wavesplatform.com/v0/docs/#/pairs/getPairsListAll
|
848
|
+
|
843
849
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
844
850
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
845
851
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -920,7 +926,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
920
926
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
921
927
|
"""
|
922
928
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
923
|
-
|
929
|
+
|
930
|
+
https://api.wavesplatform.com/v0/docs/#/candles/getCandles
|
931
|
+
|
924
932
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
925
933
|
:param str timeframe: the length of time each candle represents
|
926
934
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1226,7 +1234,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1226
1234
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1227
1235
|
"""
|
1228
1236
|
create a trade order
|
1229
|
-
|
1237
|
+
|
1238
|
+
https://matcher.waves.exchange/api-docs/index.html#/serialize/serializeOrder
|
1239
|
+
|
1230
1240
|
:param str symbol: unified symbol of the market to create an order in
|
1231
1241
|
:param str type: 'market' or 'limit'
|
1232
1242
|
:param str side: 'buy' or 'sell'
|
@@ -1396,6 +1406,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1396
1406
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1397
1407
|
"""
|
1398
1408
|
cancels an open order
|
1409
|
+
|
1410
|
+
https://matcher.waves.exchange/api-docs/index.html#/cancel/cancelOrdersByIdsWithKeyOrSignature
|
1411
|
+
|
1399
1412
|
:param str id: order id
|
1400
1413
|
:param str symbol: unified symbol of the market the order was made in
|
1401
1414
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1442,7 +1455,10 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1442
1455
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1443
1456
|
"""
|
1444
1457
|
fetches information on an order made by the user
|
1445
|
-
|
1458
|
+
|
1459
|
+
https://matcher.waves.exchange/api-docs/index.html#/status/getOrderStatusByPKAndIdWithSig
|
1460
|
+
|
1461
|
+
:param str id: order id
|
1446
1462
|
:param str symbol: unified symbol of the market the order was made in
|
1447
1463
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1448
1464
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1962,6 +1978,9 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1962
1978
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1963
1979
|
"""
|
1964
1980
|
get the list of most recent trades for a particular symbol
|
1981
|
+
|
1982
|
+
https://api.wavesplatform.com/v0/docs/#/transactions/searchTxsExchange
|
1983
|
+
|
1965
1984
|
:param str symbol: unified symbol of the market to fetch trades for
|
1966
1985
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1967
1986
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -2203,8 +2222,10 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
2203
2222
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2204
2223
|
"""
|
2205
2224
|
fetch deposit and withdraw fees
|
2206
|
-
|
2207
|
-
|
2225
|
+
|
2226
|
+
https://docs.wx.network/en/api/gateways/deposit/currencies
|
2227
|
+
https://docs.wx.network/en/api/gateways/withdraw/currencies
|
2228
|
+
|
2208
2229
|
:param str[]|None codes: list of unified currency codes
|
2209
2230
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2210
2231
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
ccxt/wazirx.py
CHANGED
@@ -221,7 +221,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
221
221
|
|
222
222
|
def fetch_markets(self, params={}) -> List[Market]:
|
223
223
|
"""
|
224
|
-
|
224
|
+
|
225
|
+
https://docs.wazirx.com/#exchange-info
|
226
|
+
|
225
227
|
retrieves data on all markets for wazirx
|
226
228
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
227
229
|
:returns dict[]: an array of objects representing market data
|
@@ -330,7 +332,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
330
332
|
|
331
333
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
332
334
|
"""
|
333
|
-
|
335
|
+
|
336
|
+
https://docs.wazirx.com/#kline-candlestick-data
|
337
|
+
|
334
338
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
335
339
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
336
340
|
:param str timeframe: the length of time each candle represents. Available values [1m,5m,15m,30m,1h,2h,4h,6h,12h,1d,1w]
|
@@ -378,7 +382,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
378
382
|
|
379
383
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
380
384
|
"""
|
381
|
-
|
385
|
+
|
386
|
+
https://docs.wazirx.com/#order-book
|
387
|
+
|
382
388
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
383
389
|
:param str symbol: unified symbol of the market to fetch the order book for
|
384
390
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -411,7 +417,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
411
417
|
|
412
418
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
413
419
|
"""
|
414
|
-
|
420
|
+
|
421
|
+
https://docs.wazirx.com/#24hr-ticker-price-change-statistics
|
422
|
+
|
415
423
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
416
424
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
417
425
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -442,7 +450,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
442
450
|
|
443
451
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
444
452
|
"""
|
445
|
-
|
453
|
+
|
454
|
+
https://docs.wazirx.com/#24hr-tickers-price-change-statistics
|
455
|
+
|
446
456
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
447
457
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
448
458
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -477,7 +487,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
477
487
|
|
478
488
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
479
489
|
"""
|
480
|
-
|
490
|
+
|
491
|
+
https://docs.wazirx.com/#recent-trades-list
|
492
|
+
|
481
493
|
get the list of most recent trades for a particular symbol
|
482
494
|
:param str symbol: unified symbol of the market to fetch trades for
|
483
495
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -548,7 +560,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
548
560
|
|
549
561
|
def fetch_status(self, params={}):
|
550
562
|
"""
|
551
|
-
|
563
|
+
|
564
|
+
https://docs.wazirx.com/#system-status
|
565
|
+
|
552
566
|
the latest known information on the availability of the exchange API
|
553
567
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
554
568
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
@@ -571,7 +585,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
571
585
|
|
572
586
|
def fetch_time(self, params={}):
|
573
587
|
"""
|
574
|
-
|
588
|
+
|
589
|
+
https://docs.wazirx.com/#check-server-time
|
590
|
+
|
575
591
|
fetches the current integer timestamp in milliseconds from the exchange server
|
576
592
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
577
593
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
@@ -648,7 +664,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
648
664
|
|
649
665
|
def fetch_balance(self, params={}) -> Balances:
|
650
666
|
"""
|
651
|
-
|
667
|
+
|
668
|
+
https://docs.wazirx.com/#fund-details-user_data
|
669
|
+
|
652
670
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
653
671
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
654
672
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -668,7 +686,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
668
686
|
|
669
687
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
670
688
|
"""
|
671
|
-
|
689
|
+
|
690
|
+
https://docs.wazirx.com/#all-orders-user_data
|
691
|
+
|
672
692
|
fetches information on multiple orders made by the user
|
673
693
|
:param str symbol: unified market symbol of the market orders were made in
|
674
694
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -723,7 +743,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
723
743
|
|
724
744
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
725
745
|
"""
|
726
|
-
|
746
|
+
|
747
|
+
https://docs.wazirx.com/#current-open-orders-user_data
|
748
|
+
|
727
749
|
fetch all unfilled currently open orders
|
728
750
|
:param str symbol: unified market symbol
|
729
751
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -770,7 +792,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
770
792
|
|
771
793
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
772
794
|
"""
|
773
|
-
|
795
|
+
|
796
|
+
https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
|
797
|
+
|
774
798
|
cancel all open orders in a market
|
775
799
|
:param str symbol: unified market symbol of the market to cancel orders in
|
776
800
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -806,7 +830,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
806
830
|
|
807
831
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
808
832
|
"""
|
809
|
-
|
833
|
+
|
834
|
+
https://docs.wazirx.com/#cancel-order-trade
|
835
|
+
|
810
836
|
cancels an open order
|
811
837
|
:param str id: order id
|
812
838
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -826,7 +852,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
826
852
|
|
827
853
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
828
854
|
"""
|
829
|
-
|
855
|
+
|
856
|
+
https://docs.wazirx.com/#new-order-trade
|
857
|
+
|
830
858
|
create a trade order
|
831
859
|
:param str symbol: unified symbol of the market to create an order in
|
832
860
|
:param str type: 'market' or 'limit'
|
@@ -931,7 +959,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
931
959
|
def fetch_currencies(self, params={}) -> Currencies:
|
932
960
|
"""
|
933
961
|
fetches all available currencies on an exchange
|
934
|
-
|
962
|
+
|
963
|
+
https://docs.wazirx.com/#all-coins-39-information-user_data
|
964
|
+
|
935
965
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
936
966
|
:returns dict: an associative dictionary of currencies
|
937
967
|
"""
|
@@ -1072,7 +1102,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
1072
1102
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1073
1103
|
"""
|
1074
1104
|
fetch the deposit address for a currency associated with self account
|
1075
|
-
|
1105
|
+
|
1106
|
+
https://docs.wazirx.com/#deposit-address-supporting-network-user_data
|
1107
|
+
|
1076
1108
|
:param str code: unified currency code of the currency for the deposit address
|
1077
1109
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1078
1110
|
:param str [params.network]: unified network code, you can get network from fetchCurrencies
|
@@ -1107,7 +1139,9 @@ class wazirx(Exchange, ImplicitAPI):
|
|
1107
1139
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1108
1140
|
"""
|
1109
1141
|
fetch all withdrawals made from an account
|
1110
|
-
|
1142
|
+
|
1143
|
+
https://docs.wazirx.com/#withdraw-history-supporting-network-user_data
|
1144
|
+
|
1111
1145
|
:param str code: unified currency code
|
1112
1146
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1113
1147
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|