ccxt 4.4.30__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/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/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 -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 +131 -50
- 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 +94 -38
- 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 +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 +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 +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 -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 +131 -50
- 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 +94 -38
- 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 +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 +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 +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 +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/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.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
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
|
"""
|
ccxt/pro/poloniexfutures.py
CHANGED
@@ -137,7 +137,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
137
137
|
|
138
138
|
async def subscribe(self, name: str, isPrivate: bool, symbol: Str = None, subscription=None, params={}):
|
139
139
|
"""
|
140
|
-
|
140
|
+
@ignore
|
141
141
|
Connects to a websocket channel
|
142
142
|
:param str name: name of the channel and suscriptionHash
|
143
143
|
:param bool isPrivate: True for the authenticated url, False for the public url
|
@@ -235,7 +235,9 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
235
235
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
236
236
|
"""
|
237
237
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
238
|
-
|
238
|
+
|
239
|
+
https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
|
240
|
+
|
239
241
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
240
242
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
241
243
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -248,7 +250,9 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
248
250
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
249
251
|
"""
|
250
252
|
get the list of most recent trades for a particular symbol
|
251
|
-
|
253
|
+
|
254
|
+
https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
|
255
|
+
|
252
256
|
:param str symbol: unified symbol of the market to fetch trades for
|
253
257
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
254
258
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -268,7 +272,9 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
268
272
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
269
273
|
"""
|
270
274
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
271
|
-
|
275
|
+
|
276
|
+
https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
|
277
|
+
|
272
278
|
:param str symbol: unified symbol of the market to fetch the order book for
|
273
279
|
:param int [limit]: not used by poloniexfutures watchOrderBook
|
274
280
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -294,7 +300,9 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
294
300
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
295
301
|
"""
|
296
302
|
watches information on multiple orders made by the user
|
297
|
-
|
303
|
+
|
304
|
+
https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
|
305
|
+
|
298
306
|
:param str symbol: filter by unified market symbol of the market orders were made in
|
299
307
|
:param int [since]: the earliest time in ms to fetch orders for
|
300
308
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -317,7 +325,9 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
317
325
|
async def watch_balance(self, params={}) -> Balances:
|
318
326
|
"""
|
319
327
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
320
|
-
|
328
|
+
|
329
|
+
https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
|
330
|
+
|
321
331
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
322
332
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
323
333
|
"""
|
@@ -514,7 +524,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
514
524
|
|
515
525
|
def parse_order_status(self, status: str, type: str):
|
516
526
|
"""
|
517
|
-
|
527
|
+
@ignore
|
518
528
|
:param str status: "match", "open", "done"
|
519
529
|
:param str type: "open", "match", "filled", "canceled", "update"
|
520
530
|
:returns str:
|
ccxt/pro/probit.py
CHANGED
@@ -58,7 +58,9 @@ class probit(ccxt.async_support.probit):
|
|
58
58
|
async def watch_balance(self, params={}) -> Balances:
|
59
59
|
"""
|
60
60
|
watch balance and get the amount of funds available for trading or funds locked in orders
|
61
|
-
|
61
|
+
|
62
|
+
https://docs-en.probit.com/reference/balance-1
|
63
|
+
|
62
64
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
63
65
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
64
66
|
"""
|
@@ -120,7 +122,9 @@ class probit(ccxt.async_support.probit):
|
|
120
122
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
121
123
|
"""
|
122
124
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
123
|
-
|
125
|
+
|
126
|
+
https://docs-en.probit.com/reference/marketdata
|
127
|
+
|
124
128
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
125
129
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
126
130
|
:param int [params.interval]: Unit time to synchronize market information(ms). Available units: 100, 500
|
@@ -161,7 +165,9 @@ class probit(ccxt.async_support.probit):
|
|
161
165
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
162
166
|
"""
|
163
167
|
get the list of most recent trades for a particular symbol
|
164
|
-
|
168
|
+
|
169
|
+
https://docs-en.probit.com/reference/trade_history
|
170
|
+
|
165
171
|
:param str symbol: unified symbol of the market to fetch trades for
|
166
172
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
167
173
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -218,7 +224,9 @@ class probit(ccxt.async_support.probit):
|
|
218
224
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
219
225
|
"""
|
220
226
|
get the list of trades associated with the user
|
221
|
-
|
227
|
+
|
228
|
+
https://docs-en.probit.com/reference/trade_history
|
229
|
+
|
222
230
|
:param str symbol: unified symbol of the market to fetch trades for
|
223
231
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
224
232
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -291,7 +299,9 @@ class probit(ccxt.async_support.probit):
|
|
291
299
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
292
300
|
"""
|
293
301
|
watches information on an order made by the user
|
294
|
-
|
302
|
+
|
303
|
+
https://docs-en.probit.com/reference/open_order
|
304
|
+
|
295
305
|
:param str symbol: unified symbol of the market the order was made in
|
296
306
|
:param int [since]: timestamp in ms of the earliest order to watch
|
297
307
|
:param int [limit]: the maximum amount of orders to watch
|
@@ -370,7 +380,9 @@ class probit(ccxt.async_support.probit):
|
|
370
380
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
371
381
|
"""
|
372
382
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
373
|
-
|
383
|
+
|
384
|
+
https://docs-en.probit.com/reference/marketdata
|
385
|
+
|
374
386
|
:param str symbol: unified symbol of the market to fetch the order book for
|
375
387
|
:param int [limit]: the maximum amount of order book entries to return
|
376
388
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/pro/upbit.py
CHANGED
@@ -89,7 +89,9 @@ class upbit(ccxt.async_support.upbit):
|
|
89
89
|
async def watch_ticker(self, symbol: str, params={}) -> Ticker:
|
90
90
|
"""
|
91
91
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
92
|
-
|
92
|
+
|
93
|
+
https://global-docs.upbit.com/reference/websocket-ticker
|
94
|
+
|
93
95
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
94
96
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
95
97
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -99,8 +101,10 @@ class upbit(ccxt.async_support.upbit):
|
|
99
101
|
async def watch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
100
102
|
"""
|
101
103
|
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
102
|
-
|
103
|
-
|
104
|
+
|
105
|
+
https://global-docs.upbit.com/reference/websocket-ticker
|
106
|
+
|
107
|
+
@param symbols
|
104
108
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
105
109
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
106
110
|
"""
|
@@ -114,7 +118,9 @@ class upbit(ccxt.async_support.upbit):
|
|
114
118
|
async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
115
119
|
"""
|
116
120
|
get the list of most recent trades for a particular symbol
|
117
|
-
|
121
|
+
|
122
|
+
https://global-docs.upbit.com/reference/websocket-trade
|
123
|
+
|
118
124
|
:param str symbol: unified symbol of the market to fetch trades for
|
119
125
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
120
126
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -126,7 +132,9 @@ class upbit(ccxt.async_support.upbit):
|
|
126
132
|
async def watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
127
133
|
"""
|
128
134
|
get the list of most recent trades for a list of symbols
|
129
|
-
|
135
|
+
|
136
|
+
https://global-docs.upbit.com/reference/websocket-trade
|
137
|
+
|
130
138
|
:param str[] symbols: unified symbol of the market to fetch trades for
|
131
139
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
132
140
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -171,7 +179,9 @@ class upbit(ccxt.async_support.upbit):
|
|
171
179
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
172
180
|
"""
|
173
181
|
watches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
174
|
-
|
182
|
+
|
183
|
+
https://global-docs.upbit.com/reference/websocket-orderbook
|
184
|
+
|
175
185
|
:param str symbol: unified symbol of the market to fetch the order book for
|
176
186
|
:param int [limit]: the maximum amount of order book entries to return
|
177
187
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -352,7 +362,9 @@ class upbit(ccxt.async_support.upbit):
|
|
352
362
|
async def watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
353
363
|
"""
|
354
364
|
watches information on multiple orders made by the user
|
355
|
-
|
365
|
+
|
366
|
+
https://global-docs.upbit.com/reference/websocket-myorder
|
367
|
+
|
356
368
|
:param str symbol: unified market symbol of the market orders were made in
|
357
369
|
:param int [since]: the earliest time in ms to fetch orders for
|
358
370
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -370,7 +382,9 @@ class upbit(ccxt.async_support.upbit):
|
|
370
382
|
async def watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
371
383
|
"""
|
372
384
|
watches information on multiple trades made by the user
|
373
|
-
|
385
|
+
|
386
|
+
https://global-docs.upbit.com/reference/websocket-myorder
|
387
|
+
|
374
388
|
:param str symbol: unified market symbol of the market orders were made in
|
375
389
|
:param int [since]: the earliest time in ms to fetch orders for
|
376
390
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -543,7 +557,9 @@ class upbit(ccxt.async_support.upbit):
|
|
543
557
|
|
544
558
|
async def watch_balance(self, params={}) -> Balances:
|
545
559
|
"""
|
546
|
-
|
560
|
+
|
561
|
+
https://global-docs.upbit.com/reference/websocket-myasset
|
562
|
+
|
547
563
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
548
564
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
549
565
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|