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/pro/oxfun.py
CHANGED
@@ -78,7 +78,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
78
78
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
79
79
|
"""
|
80
80
|
watches information on multiple trades made in a market
|
81
|
-
|
81
|
+
|
82
|
+
https://docs.ox.fun/?json#trade
|
83
|
+
|
82
84
|
:param str symbol: unified market symbol of the market trades were made in
|
83
85
|
:param int [since]: the earliest time in ms to fetch orders for
|
84
86
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -91,8 +93,10 @@ class oxfun(ccxt.async_support.oxfun):
|
|
91
93
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
92
94
|
"""
|
93
95
|
get the list of most recent trades for a particular symbol
|
94
|
-
|
95
|
-
|
96
|
+
|
97
|
+
https://docs.ox.fun/?json#trade
|
98
|
+
|
99
|
+
:param str[] symbols:
|
96
100
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
97
101
|
:param int [limit]: the maximum amount of trades to fetch
|
98
102
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -181,7 +185,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
181
185
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
182
186
|
"""
|
183
187
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
184
|
-
|
188
|
+
|
189
|
+
https://docs.ox.fun/?json#candles
|
190
|
+
|
185
191
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
186
192
|
:param str timeframe: the length of time each candle represents
|
187
193
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -209,7 +215,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
209
215
|
async def watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={}):
|
210
216
|
"""
|
211
217
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
212
|
-
|
218
|
+
|
219
|
+
https://docs.ox.fun/?json#candles
|
220
|
+
|
213
221
|
:param str[][] symbolsAndTimeframes: array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
214
222
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
215
223
|
:param int [limit]: the maximum amount of candles to fetch
|
@@ -310,8 +318,10 @@ class oxfun(ccxt.async_support.oxfun):
|
|
310
318
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
311
319
|
"""
|
312
320
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
313
|
-
|
314
|
-
|
321
|
+
|
322
|
+
https://docs.ox.fun/?json#fixed-size-order-book
|
323
|
+
https://docs.ox.fun/?json#full-order-book
|
324
|
+
|
315
325
|
:param str symbol: unified symbol of the market to fetch the order book for
|
316
326
|
:param int [limit]: the maximum amount of order book entries to return
|
317
327
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -322,8 +332,10 @@ class oxfun(ccxt.async_support.oxfun):
|
|
322
332
|
async def watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={}) -> OrderBook:
|
323
333
|
"""
|
324
334
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
325
|
-
|
326
|
-
|
335
|
+
|
336
|
+
https://docs.ox.fun/?json#fixed-size-order-book
|
337
|
+
https://docs.ox.fun/?json#full-order-book
|
338
|
+
|
327
339
|
:param str[] symbols: unified array of symbols
|
328
340
|
:param int [limit]: the maximum amount of order book entries to return
|
329
341
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -393,7 +405,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
393
405
|
|
394
406
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
395
407
|
"""
|
396
|
-
|
408
|
+
|
409
|
+
https://docs.ox.fun/?json#ticker
|
410
|
+
|
397
411
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
398
412
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
399
413
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -405,7 +419,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
405
419
|
|
406
420
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
407
421
|
"""
|
408
|
-
|
422
|
+
|
423
|
+
https://docs.ox.fun/?json#ticker
|
424
|
+
|
409
425
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
410
426
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
411
427
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -469,7 +485,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
469
485
|
|
470
486
|
async def watch_bids_asks(self, symbols: Strings = None, params={}) -> Tickers:
|
471
487
|
"""
|
472
|
-
|
488
|
+
|
489
|
+
https://docs.ox.fun/?json#best-bid-ask
|
490
|
+
|
473
491
|
watches best bid & ask for symbols
|
474
492
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
475
493
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -536,7 +554,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
536
554
|
|
537
555
|
async def watch_balance(self, params={}) -> Balances:
|
538
556
|
"""
|
539
|
-
|
557
|
+
|
558
|
+
https://docs.ox.fun/?json#balance-channel
|
559
|
+
|
540
560
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
541
561
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
542
562
|
:param int|str [params.tag]: If given it will be echoed in the reply and the max size of tag is 32
|
@@ -594,9 +614,13 @@ class oxfun(ccxt.async_support.oxfun):
|
|
594
614
|
|
595
615
|
async def watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={}) -> List[Position]:
|
596
616
|
"""
|
597
|
-
|
617
|
+
|
618
|
+
https://docs.ox.fun/?json#position-channel
|
619
|
+
|
598
620
|
watch all open positions
|
599
621
|
:param str[]|None symbols: list of unified market symbols
|
622
|
+
@param since
|
623
|
+
@param limit
|
600
624
|
:param dict params: extra parameters specific to the exchange API endpoint
|
601
625
|
:param int|str [params.tag]: If given it will be echoed in the reply and the max size of tag is 32
|
602
626
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/en/latest/manual.html#position-structure>`
|
@@ -705,7 +729,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
705
729
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
706
730
|
"""
|
707
731
|
watches information on multiple orders made by the user
|
708
|
-
|
732
|
+
|
733
|
+
https://docs.ox.fun/?json#order-channel
|
734
|
+
|
709
735
|
:param str symbol: unified market symbol of the market orders were made in
|
710
736
|
:param int [since]: the earliest time in ms to fetch orders for
|
711
737
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -777,7 +803,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
777
803
|
|
778
804
|
async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
779
805
|
"""
|
780
|
-
|
806
|
+
|
807
|
+
https://docs.ox.fun/?json#order-commands
|
808
|
+
|
781
809
|
create a trade order
|
782
810
|
:param str symbol: unified symbol of the market to create an order in
|
783
811
|
:param str type: 'market', 'limit', 'STOP_LIMIT' or 'STOP_MARKET'
|
@@ -816,16 +844,18 @@ class oxfun(ccxt.async_support.oxfun):
|
|
816
844
|
async def edit_order_ws(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}) -> Order:
|
817
845
|
"""
|
818
846
|
edit a trade order
|
819
|
-
|
847
|
+
|
848
|
+
https://docs.ox.fun/?json#modify-order
|
849
|
+
|
820
850
|
:param str id: order id
|
821
851
|
:param str symbol: unified symbol of the market to create an order in
|
822
852
|
:param str type: 'market' or 'limit'
|
823
853
|
:param str side: 'buy' or 'sell'
|
824
854
|
:param float amount: how much of the currency you want to trade in units of the base currency
|
825
855
|
:param float|None [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
856
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
826
857
|
:param int [params.timestamp]: in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
827
858
|
:param int [params.recvWindow]: in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
828
|
-
:param dict [params]: extra parameters specific to the exchange API endpoint
|
829
859
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
830
860
|
"""
|
831
861
|
await self.load_markets()
|
@@ -889,7 +919,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
889
919
|
|
890
920
|
async def cancel_order_ws(self, id: str, symbol: Str = None, params={}) -> Order:
|
891
921
|
"""
|
892
|
-
|
922
|
+
|
923
|
+
https://docs.ox.fun/?json#cancel-order
|
924
|
+
|
893
925
|
cancels an open order
|
894
926
|
:param str id: order id
|
895
927
|
:param str symbol: unified market symbol, default is None
|
@@ -915,7 +947,9 @@ class oxfun(ccxt.async_support.oxfun):
|
|
915
947
|
|
916
948
|
async def cancel_orders_ws(self, ids: List[str], symbol: Str = None, params={}):
|
917
949
|
"""
|
918
|
-
|
950
|
+
|
951
|
+
https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
|
952
|
+
|
919
953
|
cancel multiple orders
|
920
954
|
:param str[] ids: order ids
|
921
955
|
:param str symbol: unified market symbol, default is None
|
ccxt/pro/p2b.py
CHANGED
@@ -67,7 +67,7 @@ class p2b(ccxt.async_support.p2b):
|
|
67
67
|
|
68
68
|
async def subscribe(self, name: str, messageHash: str, request, params={}):
|
69
69
|
"""
|
70
|
-
|
70
|
+
@ignore
|
71
71
|
Connects to a websocket channel
|
72
72
|
:param str name: name of the channel
|
73
73
|
:param str messageHash: string to look up in handler
|
@@ -87,7 +87,9 @@ class p2b(ccxt.async_support.p2b):
|
|
87
87
|
async def watch_ohlcv(self, symbol: str, timeframe='15m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
88
88
|
"""
|
89
89
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market. Can only subscribe to one timeframe at a time for each symbol
|
90
|
-
|
90
|
+
|
91
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#kline-candlestick
|
92
|
+
|
91
93
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
92
94
|
:param str timeframe: 15m, 30m, 1h or 1d
|
93
95
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -114,8 +116,10 @@ class p2b(ccxt.async_support.p2b):
|
|
114
116
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
115
117
|
"""
|
116
118
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
117
|
-
|
118
|
-
|
119
|
+
|
120
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#last-price
|
121
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#market-status
|
122
|
+
|
119
123
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
120
124
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
121
125
|
:param dict [params.method]: 'state'(default) or 'price'
|
@@ -135,8 +139,10 @@ class p2b(ccxt.async_support.p2b):
|
|
135
139
|
|
136
140
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
137
141
|
"""
|
138
|
-
|
139
|
-
|
142
|
+
|
143
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#last-price
|
144
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#market-status
|
145
|
+
|
140
146
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
141
147
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
142
148
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -166,7 +172,9 @@ class p2b(ccxt.async_support.p2b):
|
|
166
172
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
167
173
|
"""
|
168
174
|
get the list of most recent trades for a particular symbol
|
169
|
-
|
175
|
+
|
176
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#deals
|
177
|
+
|
170
178
|
:param str symbol: unified symbol of the market to fetch trades for
|
171
179
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
172
180
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -178,7 +186,9 @@ class p2b(ccxt.async_support.p2b):
|
|
178
186
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
179
187
|
"""
|
180
188
|
get the list of most recent trades for a list of symbols
|
181
|
-
|
189
|
+
|
190
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#deals
|
191
|
+
|
182
192
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
183
193
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
184
194
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -209,7 +219,9 @@ class p2b(ccxt.async_support.p2b):
|
|
209
219
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
210
220
|
"""
|
211
221
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
212
|
-
|
222
|
+
|
223
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#depth-of-market
|
224
|
+
|
213
225
|
:param str symbol: unified symbol of the market to fetch the order book for
|
214
226
|
:param int [limit]: 1-100, default=100
|
215
227
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -444,8 +456,8 @@ class p2b(ccxt.async_support.p2b):
|
|
444
456
|
|
445
457
|
def ping(self, client: Client):
|
446
458
|
"""
|
447
|
-
|
448
|
-
|
459
|
+
https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#ping
|
460
|
+
@param client
|
449
461
|
"""
|
450
462
|
return {
|
451
463
|
'method': 'server.ping',
|
ccxt/pro/paradex.py
CHANGED
@@ -45,7 +45,9 @@ class paradex(ccxt.async_support.paradex):
|
|
45
45
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
46
46
|
"""
|
47
47
|
get the list of most recent trades for a particular symbol
|
48
|
-
|
48
|
+
|
49
|
+
https://docs.api.testnet.paradex.trade/#sub-trades-market_symbol-operation
|
50
|
+
|
49
51
|
:param str symbol: unified symbol of the market to fetch trades for
|
50
52
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
51
53
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -107,7 +109,9 @@ class paradex(ccxt.async_support.paradex):
|
|
107
109
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
108
110
|
"""
|
109
111
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
110
|
-
|
112
|
+
|
113
|
+
https://docs.api.testnet.paradex.trade/#sub-order_book-market_symbol-snapshot-15-refresh_rate-operation
|
114
|
+
|
111
115
|
:param str symbol: unified symbol of the market to fetch the order book for
|
112
116
|
:param int [limit]: the maximum amount of order book entries to return
|
113
117
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -189,7 +193,9 @@ class paradex(ccxt.async_support.paradex):
|
|
189
193
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
190
194
|
"""
|
191
195
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
192
|
-
|
196
|
+
|
197
|
+
https://docs.api.testnet.paradex.trade/#sub-markets_summary-operation
|
198
|
+
|
193
199
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
194
200
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
195
201
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -211,7 +217,9 @@ class paradex(ccxt.async_support.paradex):
|
|
211
217
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
212
218
|
"""
|
213
219
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
214
|
-
|
220
|
+
|
221
|
+
https://docs.api.testnet.paradex.trade/#sub-markets_summary-operation
|
222
|
+
|
215
223
|
:param str[] symbols: unified symbol of the market to fetch the ticker for
|
216
224
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
217
225
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
ccxt/pro/phemex.py
CHANGED
@@ -294,9 +294,11 @@ class phemex(ccxt.async_support.phemex):
|
|
294
294
|
|
295
295
|
async def watch_balance(self, params={}) -> Balances:
|
296
296
|
"""
|
297
|
-
|
298
|
-
|
299
|
-
|
297
|
+
|
298
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#subscribe-account-order-position-aop
|
299
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-account-order-position-aop
|
300
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-wallet-order-messages
|
301
|
+
|
300
302
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
301
303
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
302
304
|
:param str [params.settle]: set to USDT to use hedged perpetual api
|
@@ -478,9 +480,11 @@ class phemex(ccxt.async_support.phemex):
|
|
478
480
|
|
479
481
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
480
482
|
"""
|
481
|
-
|
482
|
-
|
483
|
-
|
483
|
+
|
484
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#subscribe-24-hours-ticker
|
485
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-24-hours-ticker
|
486
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-24-hours-ticker
|
487
|
+
|
484
488
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
485
489
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
486
490
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -508,9 +512,11 @@ class phemex(ccxt.async_support.phemex):
|
|
508
512
|
|
509
513
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
510
514
|
"""
|
511
|
-
|
512
|
-
|
513
|
-
|
515
|
+
|
516
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#subscribe-24-hours-ticker
|
517
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-24-hours-ticker
|
518
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-24-hours-ticker
|
519
|
+
|
514
520
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
515
521
|
:param str[] [symbols]: unified symbol of the market to fetch the ticker for
|
516
522
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -547,9 +553,11 @@ class phemex(ccxt.async_support.phemex):
|
|
547
553
|
|
548
554
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
549
555
|
"""
|
550
|
-
|
551
|
-
|
552
|
-
|
556
|
+
|
557
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#subscribe-trade
|
558
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-trade
|
559
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-trade
|
560
|
+
|
553
561
|
get the list of most recent trades for a particular symbol
|
554
562
|
:param str symbol: unified symbol of the market to fetch trades for
|
555
563
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -582,10 +590,12 @@ class phemex(ccxt.async_support.phemex):
|
|
582
590
|
|
583
591
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
584
592
|
"""
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
593
|
+
|
594
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-orderbook
|
595
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#subscribe-orderbook-for-new-model
|
596
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-30-levels-orderbook
|
597
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-full-orderbook
|
598
|
+
|
589
599
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
590
600
|
:param str symbol: unified symbol of the market to fetch the order book for
|
591
601
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -615,9 +625,11 @@ class phemex(ccxt.async_support.phemex):
|
|
615
625
|
|
616
626
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
617
627
|
"""
|
618
|
-
|
619
|
-
|
620
|
-
|
628
|
+
|
629
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#subscribe-kline
|
630
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-kline
|
631
|
+
https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-kline
|
632
|
+
|
621
633
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
622
634
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
623
635
|
:param str timeframe: the length of time each candle represents
|
ccxt/pro/poloniex.py
CHANGED
@@ -85,9 +85,11 @@ class poloniex(ccxt.async_support.poloniex):
|
|
85
85
|
|
86
86
|
async def authenticate(self, params={}):
|
87
87
|
"""
|
88
|
-
|
88
|
+
@ignore
|
89
89
|
authenticates the user to access private web socket channels
|
90
|
-
|
90
|
+
|
91
|
+
https://api-docs.poloniex.com/spot/websocket/authentication
|
92
|
+
|
91
93
|
:returns dict: response from exchange
|
92
94
|
"""
|
93
95
|
self.check_required_credentials()
|
@@ -138,11 +140,12 @@ class poloniex(ccxt.async_support.poloniex):
|
|
138
140
|
|
139
141
|
async def subscribe(self, name: str, messageHash: str, isPrivate: bool, symbols: Strings = None, params={}):
|
140
142
|
"""
|
141
|
-
|
143
|
+
@ignore
|
142
144
|
Connects to a websocket channel
|
143
145
|
:param str name: name of the channel
|
146
|
+
:param str messageHash: unique identifier for the message
|
144
147
|
:param boolean isPrivate: True for the authenticated url, False for the public url
|
145
|
-
:param str[]
|
148
|
+
:param str[] [symbols]: CCXT market symbols
|
146
149
|
:param dict [params]: extra parameters specific to the poloniex api
|
147
150
|
:returns dict: data from the websocket stream
|
148
151
|
"""
|
@@ -167,10 +170,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
167
170
|
|
168
171
|
async def trade_request(self, name: str, params={}):
|
169
172
|
"""
|
170
|
-
|
173
|
+
@ignore
|
171
174
|
Connects to a websocket channel
|
172
175
|
:param str name: name of the channel
|
173
|
-
:param str[]|None symbols: CCXT market symbols
|
174
176
|
:param dict [params]: extra parameters specific to the poloniex api
|
175
177
|
:returns dict: data from the websocket stream
|
176
178
|
"""
|
@@ -185,7 +187,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
185
187
|
|
186
188
|
async def create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}) -> Order:
|
187
189
|
"""
|
188
|
-
|
190
|
+
|
191
|
+
https://api-docs.poloniex.com/spot/websocket/trade-request#create-order
|
192
|
+
|
189
193
|
create a trade order
|
190
194
|
:param str symbol: unified symbol of the market to create an order in
|
191
195
|
:param str type: 'market' or 'limit'
|
@@ -196,8 +200,8 @@ class poloniex(ccxt.async_support.poloniex):
|
|
196
200
|
:param str [params.timeInForce]: GTC(default), IOC, FOK
|
197
201
|
:param str [params.clientOrderId]: Maximum 64-character length.*
|
198
202
|
:param float [params.cost]: *spot market buy only* the quote quantity that can be used alternative for the amount
|
199
|
-
|
200
|
-
|
203
|
+
|
204
|
+
EXCHANGE SPECIFIC PARAMETERS
|
201
205
|
:param str [params.amount]: quote units for the order
|
202
206
|
:param boolean [params.allowBorrow]: allow order to be placed by borrowing funds(Default: False)
|
203
207
|
:param str [params.stpMode]: self-trade prevention, defaults to expire_taker, none: enable self-trade; expire_taker: taker order will be canceled when self-trade happens
|
@@ -244,7 +248,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
244
248
|
|
245
249
|
async def cancel_order_ws(self, id: str, symbol: Str = None, params={}):
|
246
250
|
"""
|
247
|
-
|
251
|
+
|
252
|
+
https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
|
253
|
+
|
248
254
|
cancel multiple orders
|
249
255
|
:param str id: order id
|
250
256
|
:param str [symbol]: unified market symbol
|
@@ -260,7 +266,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
260
266
|
|
261
267
|
async def cancel_orders_ws(self, ids: List[str], symbol: Str = None, params={}):
|
262
268
|
"""
|
263
|
-
|
269
|
+
|
270
|
+
https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
|
271
|
+
|
264
272
|
cancel multiple orders
|
265
273
|
:param str[] ids: order ids
|
266
274
|
:param str symbol: unified market symbol, default is None
|
@@ -277,7 +285,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
277
285
|
|
278
286
|
async def cancel_all_orders_ws(self, symbol: Str = None, params={}):
|
279
287
|
"""
|
280
|
-
|
288
|
+
|
289
|
+
https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-all-orders
|
290
|
+
|
281
291
|
cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
282
292
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
283
293
|
:param dict [params]: extra parameters specific to the poloniex api endpoint
|
@@ -311,7 +321,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
311
321
|
async def watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
312
322
|
"""
|
313
323
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
314
|
-
|
324
|
+
|
325
|
+
https://api-docs.poloniex.com/spot/websocket/market-data#candlesticks
|
326
|
+
|
315
327
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
316
328
|
:param str timeframe: the length of time each candle represents
|
317
329
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -332,7 +344,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
332
344
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
333
345
|
"""
|
334
346
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
335
|
-
|
347
|
+
|
348
|
+
https://api-docs.poloniex.com/spot/websocket/market-data#ticker
|
349
|
+
|
336
350
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
337
351
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
338
352
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -345,8 +359,10 @@ class poloniex(ccxt.async_support.poloniex):
|
|
345
359
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
346
360
|
"""
|
347
361
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
348
|
-
|
349
|
-
|
362
|
+
|
363
|
+
https://api-docs.poloniex.com/spot/websocket/market-data#ticker
|
364
|
+
|
365
|
+
:param str[] symbols:
|
350
366
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
351
367
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
352
368
|
"""
|
@@ -361,7 +377,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
361
377
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
362
378
|
"""
|
363
379
|
get the list of most recent trades for a particular symbol
|
364
|
-
|
380
|
+
|
381
|
+
https://api-docs.poloniex.com/spot/websocket/market-data#trades
|
382
|
+
|
365
383
|
:param str symbol: unified symbol of the market to fetch trades for
|
366
384
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
367
385
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -373,7 +391,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
373
391
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
374
392
|
"""
|
375
393
|
get the list of most recent trades for a list of symbols
|
376
|
-
|
394
|
+
|
395
|
+
https://api-docs.poloniex.com/spot/websocket/market-data#trades
|
396
|
+
|
377
397
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
378
398
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
379
399
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -407,7 +427,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
407
427
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
408
428
|
"""
|
409
429
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
410
|
-
|
430
|
+
|
431
|
+
https://api-docs.poloniex.com/spot/websocket/market-data#book-level-2
|
432
|
+
|
411
433
|
:param str symbol: unified symbol of the market to fetch the order book for
|
412
434
|
:param int [limit]: not used by poloniex watchOrderBook
|
413
435
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -423,7 +445,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
423
445
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
424
446
|
"""
|
425
447
|
watches information on multiple orders made by the user
|
426
|
-
|
448
|
+
|
449
|
+
https://api-docs.poloniex.com/spot/websocket/order
|
450
|
+
|
427
451
|
:param str symbol: unified market symbol of the market orders were made in
|
428
452
|
:param int [since]: not used by poloniex watchOrders
|
429
453
|
:param int [limit]: not used by poloniex watchOrders
|
@@ -444,7 +468,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
444
468
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
445
469
|
"""
|
446
470
|
watches information on multiple trades made by the user using orders stream
|
447
|
-
|
471
|
+
|
472
|
+
https://api-docs.poloniex.com/spot/websocket/order
|
473
|
+
|
448
474
|
:param str symbol: unified market symbol of the market orders were made in
|
449
475
|
:param int [since]: not used by poloniex watchMyTrades
|
450
476
|
:param int [limit]: not used by poloniex watchMyTrades
|
@@ -466,7 +492,9 @@ class poloniex(ccxt.async_support.poloniex):
|
|
466
492
|
async def watch_balance(self, params={}) -> Balances:
|
467
493
|
"""
|
468
494
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
469
|
-
|
495
|
+
|
496
|
+
https://api-docs.poloniex.com/spot/websocket/balance
|
497
|
+
|
470
498
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
471
499
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
472
500
|
"""
|