ccxt 4.5.51 → 4.5.52
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.
- package/README.md +10 -9
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/aster.js +1532 -1072
- package/dist/cjs/src/base/Exchange.js +29 -24
- package/dist/cjs/src/bequant.js +3 -0
- package/dist/cjs/src/binance.js +36 -37
- package/dist/cjs/src/binanceusdm.js +1 -0
- package/dist/cjs/src/grvt.js +15 -8
- package/dist/cjs/src/kraken.js +6 -1
- package/dist/cjs/src/pro/aster.js +130 -138
- package/dist/cjs/src/pro/bequant.js +4 -3
- package/dist/cjs/src/pro/binance.js +3 -0
- package/dist/cjs/src/pro/binanceusdm.js +6 -1
- package/dist/cjs/src/pro/grvt.js +3 -3
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/aster.d.ts +43 -9
- package/js/src/aster.d.ts +136 -71
- package/js/src/aster.js +1532 -1072
- package/js/src/base/Exchange.d.ts +3 -4
- package/js/src/base/Exchange.js +29 -24
- package/js/src/bequant.js +3 -0
- package/js/src/binance.js +35 -32
- package/js/src/binanceusdm.js +1 -0
- package/js/src/grvt.js +15 -8
- package/js/src/kraken.js +6 -1
- package/js/src/pro/aster.d.ts +81 -45
- package/js/src/pro/aster.js +130 -138
- package/js/src/pro/bequant.js +4 -3
- package/js/src/pro/binance.js +3 -0
- package/js/src/pro/binanceusdm.js +6 -1
- package/js/src/pro/grvt.js +3 -3
- package/package.json +2 -1
package/js/src/pro/aster.d.ts
CHANGED
|
@@ -8,8 +8,14 @@ export default class aster extends asterRest {
|
|
|
8
8
|
* @method
|
|
9
9
|
* @name aster#watchTicker
|
|
10
10
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
11
|
-
* @see https://github.
|
|
12
|
-
* @see https://github.
|
|
11
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#simplified-ticker-by-symbol
|
|
12
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#compact-tickers-for-all-symbols-in-the-entire-market
|
|
13
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#full-ticker-per-symbol
|
|
14
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#complete-ticker-for-all-trading-pairs-on-the-entire-market
|
|
15
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#individual-symbol-mini-ticker-stream
|
|
16
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-mini-tickers-stream
|
|
17
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#individual-symbol-ticker-streams
|
|
18
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-tickers-streams
|
|
13
19
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
14
20
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
21
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -19,8 +25,14 @@ export default class aster extends asterRest {
|
|
|
19
25
|
* @method
|
|
20
26
|
* @name aster#unWatchTicker
|
|
21
27
|
* @description unWatches a price ticker
|
|
22
|
-
* @see https://github.
|
|
23
|
-
* @see https://github.
|
|
28
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#simplified-ticker-by-symbol
|
|
29
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#compact-tickers-for-all-symbols-in-the-entire-market
|
|
30
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#full-ticker-per-symbol
|
|
31
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#complete-ticker-for-all-trading-pairs-on-the-entire-market
|
|
32
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#individual-symbol-mini-ticker-stream
|
|
33
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-mini-tickers-stream
|
|
34
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#individual-symbol-ticker-streams
|
|
35
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-tickers-streams
|
|
24
36
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
25
37
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
26
38
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -30,8 +42,10 @@ export default class aster extends asterRest {
|
|
|
30
42
|
* @method
|
|
31
43
|
* @name aster#watchTickers
|
|
32
44
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
33
|
-
* @see https://github.
|
|
34
|
-
* @see https://github.
|
|
45
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#compact-tickers-for-all-symbols-in-the-entire-market
|
|
46
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#complete-ticker-for-all-trading-pairs-on-the-entire-market
|
|
47
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-mini-tickers-stream
|
|
48
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-tickers-streams
|
|
35
49
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
36
50
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
37
51
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -41,8 +55,10 @@ export default class aster extends asterRest {
|
|
|
41
55
|
* @method
|
|
42
56
|
* @name aster#unWatchTickers
|
|
43
57
|
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
44
|
-
* @see https://github.
|
|
45
|
-
* @see https://github.
|
|
58
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#compact-tickers-for-all-symbols-in-the-entire-market
|
|
59
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#complete-ticker-for-all-trading-pairs-on-the-entire-market
|
|
60
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-mini-tickers-stream
|
|
61
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-market-tickers-streams
|
|
46
62
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
47
63
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
48
64
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -52,7 +68,8 @@ export default class aster extends asterRest {
|
|
|
52
68
|
* @method
|
|
53
69
|
* @name aster#watchMarkPrice
|
|
54
70
|
* @description watches a mark price for a specific market
|
|
55
|
-
* @see https://github.
|
|
71
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream
|
|
72
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream-for-all-market
|
|
56
73
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
57
74
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
75
|
* @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
|
|
@@ -63,7 +80,8 @@ export default class aster extends asterRest {
|
|
|
63
80
|
* @method
|
|
64
81
|
* @name aster#unWatchMarkPrice
|
|
65
82
|
* @description unWatches a mark price for a specific market
|
|
66
|
-
* @see https://github.
|
|
83
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream
|
|
84
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream-for-all-market
|
|
67
85
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
68
86
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
69
87
|
* @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
|
|
@@ -74,7 +92,8 @@ export default class aster extends asterRest {
|
|
|
74
92
|
* @method
|
|
75
93
|
* @name aster#watchMarkPrices
|
|
76
94
|
* @description watches the mark price for all markets
|
|
77
|
-
* @see https://github.
|
|
95
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream
|
|
96
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream-for-all-market
|
|
78
97
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
79
98
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
80
99
|
* @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
|
|
@@ -85,7 +104,8 @@ export default class aster extends asterRest {
|
|
|
85
104
|
* @method
|
|
86
105
|
* @name aster#unWatchMarkPrices
|
|
87
106
|
* @description watches the mark price for all markets
|
|
88
|
-
* @see https://github.
|
|
107
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream
|
|
108
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#mark-price-stream-for-all-market
|
|
89
109
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
90
110
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
91
111
|
* @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
|
|
@@ -98,8 +118,10 @@ export default class aster extends asterRest {
|
|
|
98
118
|
* @method
|
|
99
119
|
* @name aster#watchBidsAsks
|
|
100
120
|
* @description watches best bid & ask for symbols
|
|
101
|
-
* @see https://github.
|
|
102
|
-
* @see https://github.
|
|
121
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#best-order-book-information-by-symbol
|
|
122
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#best-order-book-information-across-the-entire-market
|
|
123
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#individual-symbol-book-ticker-streams
|
|
124
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-book-tickers-stream
|
|
103
125
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
104
126
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
105
127
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -109,8 +131,10 @@ export default class aster extends asterRest {
|
|
|
109
131
|
* @method
|
|
110
132
|
* @name aster#unWatchBidsAsks
|
|
111
133
|
* @description unWatches best bid & ask for symbols
|
|
112
|
-
* @see https://github.
|
|
113
|
-
* @see https://github.
|
|
134
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#best-order-book-information-by-symbol
|
|
135
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#best-order-book-information-across-the-entire-market
|
|
136
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#individual-symbol-book-ticker-streams
|
|
137
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#all-book-tickers-stream
|
|
114
138
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
115
139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116
140
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -122,8 +146,9 @@ export default class aster extends asterRest {
|
|
|
122
146
|
* @method
|
|
123
147
|
* @name aster#watchTrades
|
|
124
148
|
* @description watches information on multiple trades made in a market
|
|
125
|
-
* @see https://github.
|
|
126
|
-
* @see https://github.
|
|
149
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#collection-transaction-flow
|
|
150
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#tick-by-tick-trades
|
|
151
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#aggregate-trade-streams
|
|
127
152
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
128
153
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
129
154
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
@@ -135,8 +160,9 @@ export default class aster extends asterRest {
|
|
|
135
160
|
* @method
|
|
136
161
|
* @name aster#unWatchTrades
|
|
137
162
|
* @description unsubscribe from the trades channel
|
|
138
|
-
* @see https://github.
|
|
139
|
-
* @see https://github.
|
|
163
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#collection-transaction-flow
|
|
164
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#tick-by-tick-trades
|
|
165
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#aggregate-trade-streams
|
|
140
166
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
141
167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
142
168
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -146,8 +172,9 @@ export default class aster extends asterRest {
|
|
|
146
172
|
* @method
|
|
147
173
|
* @name aster#watchTradesForSymbols
|
|
148
174
|
* @description get the list of most recent trades for a list of symbols
|
|
149
|
-
* @see https://github.
|
|
150
|
-
* @see https://github.
|
|
175
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#collection-transaction-flow
|
|
176
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#tick-by-tick-trades
|
|
177
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#aggregate-trade-streams
|
|
151
178
|
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
152
179
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
153
180
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -172,8 +199,10 @@ export default class aster extends asterRest {
|
|
|
172
199
|
* @method
|
|
173
200
|
* @name aster#watchOrderBook
|
|
174
201
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
175
|
-
* @see https://github.
|
|
176
|
-
* @see https://github.
|
|
202
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#limited-depth-information
|
|
203
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#incremental-depth-information
|
|
204
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#partial-book-depth-streams
|
|
205
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#diff-book-depth-streams
|
|
177
206
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
178
207
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
179
208
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -184,8 +213,10 @@ export default class aster extends asterRest {
|
|
|
184
213
|
* @method
|
|
185
214
|
* @name aster#unWatchOrderBook
|
|
186
215
|
* @description unsubscribe from the orderbook channel
|
|
187
|
-
* @see https://github.
|
|
188
|
-
* @see https://github.
|
|
216
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#limited-depth-information
|
|
217
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#incremental-depth-information
|
|
218
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#partial-book-depth-streams
|
|
219
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#diff-book-depth-streams
|
|
189
220
|
* @param {string} symbol symbol of the market to unwatch the trades for
|
|
190
221
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
191
222
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
@@ -196,8 +227,10 @@ export default class aster extends asterRest {
|
|
|
196
227
|
* @method
|
|
197
228
|
* @name aster#watchOrderBookForSymbols
|
|
198
229
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
199
|
-
* @see https://github.
|
|
200
|
-
* @see https://github.
|
|
230
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#limited-depth-information
|
|
231
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#incremental-depth-information
|
|
232
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#partial-book-depth-streams
|
|
233
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#diff-book-depth-streams
|
|
201
234
|
* @param {string[]} symbols unified array of symbols
|
|
202
235
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
203
236
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -208,8 +241,10 @@ export default class aster extends asterRest {
|
|
|
208
241
|
* @method
|
|
209
242
|
* @name aster#unWatchOrderBookForSymbols
|
|
210
243
|
* @description unsubscribe from the orderbook channel
|
|
211
|
-
* @see https://github.
|
|
212
|
-
* @see https://github.
|
|
244
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#limited-depth-information
|
|
245
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#incremental-depth-information
|
|
246
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#partial-book-depth-streams
|
|
247
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#diff-book-depth-streams
|
|
213
248
|
* @param {string[]} symbols unified symbol of the market to unwatch the trades for
|
|
214
249
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
215
250
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
@@ -221,8 +256,8 @@ export default class aster extends asterRest {
|
|
|
221
256
|
* @method
|
|
222
257
|
* @name aster#watchOHLCV
|
|
223
258
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
224
|
-
* @see https://github.
|
|
225
|
-
* @see https://github.
|
|
259
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#k-line-streams
|
|
260
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#klinecandlestick-streams
|
|
226
261
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
227
262
|
* @param {string} timeframe the length of time each candle represents
|
|
228
263
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -235,8 +270,8 @@ export default class aster extends asterRest {
|
|
|
235
270
|
* @method
|
|
236
271
|
* @name aster#unWatchOHLCV
|
|
237
272
|
* @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
238
|
-
* @see https://github.
|
|
239
|
-
* @see https://github.
|
|
273
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#k-line-streams
|
|
274
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#klinecandlestick-streams
|
|
240
275
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
241
276
|
* @param {string} timeframe the length of time each candle represents
|
|
242
277
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -247,8 +282,8 @@ export default class aster extends asterRest {
|
|
|
247
282
|
* @method
|
|
248
283
|
* @name aster#watchOHLCVForSymbols
|
|
249
284
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
250
|
-
* @see https://github.
|
|
251
|
-
* @see https://github.
|
|
285
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#k-line-streams
|
|
286
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#klinecandlestick-streams
|
|
252
287
|
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
253
288
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
254
289
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
@@ -260,8 +295,8 @@ export default class aster extends asterRest {
|
|
|
260
295
|
* @method
|
|
261
296
|
* @name aster#unWatchOHLCVForSymbols
|
|
262
297
|
* @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
263
|
-
* @see https://github.
|
|
264
|
-
* @see https://github.
|
|
298
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-market-streams/#k-line-streams
|
|
299
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/websocket-market-streams/#klinecandlestick-streams
|
|
265
300
|
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
266
301
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
302
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -276,8 +311,8 @@ export default class aster extends asterRest {
|
|
|
276
311
|
* @method
|
|
277
312
|
* @name aster#watchBalance
|
|
278
313
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
279
|
-
* @see https://github.
|
|
280
|
-
* @see https://github.
|
|
314
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-account-info/#payload-account_update
|
|
315
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/user-data-streams/#event-balance-and-position-update
|
|
281
316
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
282
317
|
* @param {string} [params.type] 'spot' or 'swap', default is 'spot'
|
|
283
318
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
@@ -290,7 +325,7 @@ export default class aster extends asterRest {
|
|
|
290
325
|
* @method
|
|
291
326
|
* @name aster#watchPositions
|
|
292
327
|
* @description watch all open positions
|
|
293
|
-
* @see https://github.
|
|
328
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/user-data-streams/#event-balance-and-position-update
|
|
294
329
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
295
330
|
* @param {number} [since] since timestamp
|
|
296
331
|
* @param {number} [limit] limit
|
|
@@ -306,8 +341,8 @@ export default class aster extends asterRest {
|
|
|
306
341
|
* @method
|
|
307
342
|
* @name aster#watchOrders
|
|
308
343
|
* @description watches information on multiple orders made by the user
|
|
309
|
-
* @see https://github.
|
|
310
|
-
* @see https://github.
|
|
344
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-account-info/#payload-order-update
|
|
345
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/user-data-streams/#event-order-update
|
|
311
346
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
312
347
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
313
348
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -320,8 +355,8 @@ export default class aster extends asterRest {
|
|
|
320
355
|
* @method
|
|
321
356
|
* @name aster#watchMyTrades
|
|
322
357
|
* @description watches information on multiple trades made by the user
|
|
323
|
-
* @see https://github.
|
|
324
|
-
* @see https://github.
|
|
358
|
+
* @see https://asterdex.github.io/aster-api-website/spot-v3/websocket-account-info/#payload-order-update
|
|
359
|
+
* @see https://asterdex.github.io/aster-api-website/futures-v3/user-data-streams/#event-order-update
|
|
325
360
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
326
361
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
327
362
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -335,5 +370,6 @@ export default class aster extends asterRest {
|
|
|
335
370
|
handleOrder(client: Client, message: any): void;
|
|
336
371
|
parseWsOrder(order: any, market?: any): Order;
|
|
337
372
|
getMarketFromOrder(client: Client, order: any): import("../base/types.js").MarketInterface;
|
|
373
|
+
handleBalanceAndPosition(client: Client, message: any): void;
|
|
338
374
|
handleMessage(client: Client, message: any): void;
|
|
339
375
|
}
|