ccxt 4.5.1 → 4.5.2
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 +110 -112
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -9
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/binance.js +20 -14
- package/dist/cjs/src/bitget.js +1 -1
- package/dist/cjs/src/indodax.js +11 -12
- package/dist/cjs/src/okx.js +2 -2
- package/dist/cjs/src/poloniex.js +1 -1
- package/dist/cjs/src/pro/bitget.js +161 -26
- package/dist/cjs/src/pro/bitmart.js +1 -1
- package/dist/cjs/src/pro/gemini.js +7 -2
- package/dist/cjs/src/pro/hyperliquid.js +5 -0
- package/dist/cjs/src/pro/kraken.js +4 -6
- package/dist/cjs/src/zonda.js +12 -0
- package/js/ccxt.d.ts +2 -11
- package/js/ccxt.js +2 -8
- package/js/src/ascendex.js +1 -1
- package/js/src/binance.d.ts +1 -1
- package/js/src/binance.js +20 -14
- package/js/src/bitget.js +1 -1
- package/js/src/indodax.js +11 -12
- package/js/src/okx.js +2 -2
- package/js/src/poloniex.js +1 -1
- package/js/src/pro/bitget.d.ts +4 -0
- package/js/src/pro/bitget.js +167 -26
- package/js/src/pro/bitmart.js +1 -1
- package/js/src/pro/gemini.d.ts +1 -1
- package/js/src/pro/gemini.js +7 -2
- package/js/src/pro/hyperliquid.js +5 -0
- package/js/src/pro/kraken.js +4 -6
- package/js/src/zonda.js +12 -0
- package/package.json +2 -1
- package/js/src/abstract/ellipx.d.ts +0 -28
- package/js/src/abstract/ellipx.js +0 -11
- package/js/src/abstract/vertex.d.ts +0 -22
- package/js/src/abstract/vertex.js +0 -11
- package/js/src/ellipx.d.ts +0 -237
- package/js/src/ellipx.js +0 -2071
- package/js/src/pro/vertex.d.ts +0 -104
- package/js/src/pro/vertex.js +0 -999
- package/js/src/vertex.d.ts +0 -346
- package/js/src/vertex.js +0 -3146
package/js/src/vertex.d.ts
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import Exchange from './abstract/vertex.js';
|
|
2
|
-
import type { Market, Ticker, Tickers, TradingFees, Balances, Int, OrderBook, OHLCV, Str, Order, OrderType, OrderSide, Trade, Strings, Dict, Num, Currencies, FundingRate, FundingRates, Currency, Transaction, OpenInterests, Position } from './base/types.js';
|
|
3
|
-
/**
|
|
4
|
-
* @class vertex
|
|
5
|
-
* @augments Exchange
|
|
6
|
-
*/
|
|
7
|
-
export default class vertex extends Exchange {
|
|
8
|
-
describe(): any;
|
|
9
|
-
setSandboxMode(enabled: any): void;
|
|
10
|
-
convertToX18(num: any): string;
|
|
11
|
-
convertFromX18(num: any): string;
|
|
12
|
-
/**
|
|
13
|
-
* @method
|
|
14
|
-
* @name vertex#fetchCurrencies
|
|
15
|
-
* @description fetches all available currencies on an exchange
|
|
16
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/assets
|
|
17
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
18
|
-
* @returns {object} an associative dictionary of currencies
|
|
19
|
-
*/
|
|
20
|
-
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
21
|
-
parseMarket(market: any): Market;
|
|
22
|
-
/**
|
|
23
|
-
* @method
|
|
24
|
-
* @name vertex#fetchMarkets
|
|
25
|
-
* @description retrieves data on all markets for vertex
|
|
26
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/symbols
|
|
27
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
28
|
-
* @returns {object[]} an array of objects representing market data
|
|
29
|
-
*/
|
|
30
|
-
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
31
|
-
/**
|
|
32
|
-
* @method
|
|
33
|
-
* @name vertex#fetchTime
|
|
34
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
35
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
36
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
37
|
-
*/
|
|
38
|
-
fetchTime(params?: {}): Promise<Int>;
|
|
39
|
-
/**
|
|
40
|
-
* @method
|
|
41
|
-
* @name vertex#fetchStatus
|
|
42
|
-
* @description the latest known information on the availability of the exchange API
|
|
43
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/status
|
|
44
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
46
|
-
*/
|
|
47
|
-
fetchStatus(params?: {}): Promise<{
|
|
48
|
-
status: string;
|
|
49
|
-
updated: any;
|
|
50
|
-
eta: any;
|
|
51
|
-
url: any;
|
|
52
|
-
info: any;
|
|
53
|
-
}>;
|
|
54
|
-
parseTrade(trade: any, market?: Market): Trade;
|
|
55
|
-
/**
|
|
56
|
-
* @method
|
|
57
|
-
* @name vertex#fetchTrades
|
|
58
|
-
* @description get the list of most recent trades for a particular symbol
|
|
59
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/trades
|
|
60
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
61
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
62
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
63
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
64
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
65
|
-
*/
|
|
66
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
67
|
-
/**
|
|
68
|
-
* @method
|
|
69
|
-
* @name vertex#fetchMyTrades
|
|
70
|
-
* @description fetch all trades made by the user
|
|
71
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/matches
|
|
72
|
-
* @param {string} symbol unified market symbol
|
|
73
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
74
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
75
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
76
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
77
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
78
|
-
*/
|
|
79
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
80
|
-
/**
|
|
81
|
-
* @method
|
|
82
|
-
* @name vertex#fetchOrderBook
|
|
83
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
84
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/orderbook
|
|
85
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
86
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
87
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
88
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
89
|
-
*/
|
|
90
|
-
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
91
|
-
/**
|
|
92
|
-
* @method
|
|
93
|
-
* @name vertex#fetchTradingFees
|
|
94
|
-
* @description fetch the trading fees for multiple markets
|
|
95
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/fee-rates
|
|
96
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
97
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
98
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
99
|
-
*/
|
|
100
|
-
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
101
|
-
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
102
|
-
/**
|
|
103
|
-
* @method
|
|
104
|
-
* @name vertex#fetchOHLCV
|
|
105
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/candlesticks
|
|
106
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
107
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
108
|
-
* @param {string} timeframe the length of time each candle represents
|
|
109
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
110
|
-
* @param {int} [limit] max=1000, max=100 when since is defined and is less than (now - (999 * (timeframe in ms)))
|
|
111
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
113
|
-
*/
|
|
114
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
115
|
-
parseFundingRate(ticker: any, market?: Market): FundingRate;
|
|
116
|
-
/**
|
|
117
|
-
* @method
|
|
118
|
-
* @name vertex#fetchFundingRate
|
|
119
|
-
* @description fetch the current funding rate
|
|
120
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/funding-rate
|
|
121
|
-
* @param {string} symbol unified market symbol
|
|
122
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
124
|
-
*/
|
|
125
|
-
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
126
|
-
/**
|
|
127
|
-
* @method
|
|
128
|
-
* @name vertex#fetchFundingRates
|
|
129
|
-
* @description fetches funding rates for multiple markets
|
|
130
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
131
|
-
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
132
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
133
|
-
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
134
|
-
*/
|
|
135
|
-
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
136
|
-
parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
|
|
137
|
-
/**
|
|
138
|
-
* @method
|
|
139
|
-
* @name vertex#fetchOpenInterests
|
|
140
|
-
* @description Retrieves the open interest for a list of symbols
|
|
141
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
142
|
-
* @param {string[]} [symbols] a list of unified CCXT market symbols
|
|
143
|
-
* @param {object} [params] exchange specific parameters
|
|
144
|
-
* @returns {object[]} a list of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
145
|
-
*/
|
|
146
|
-
fetchOpenInterests(symbols?: Strings, params?: {}): Promise<OpenInterests>;
|
|
147
|
-
/**
|
|
148
|
-
* @method
|
|
149
|
-
* @name vertex#fetchOpenInterest
|
|
150
|
-
* @description Retrieves the open interest of a derivative trading pair
|
|
151
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
152
|
-
* @param {string} symbol Unified CCXT market symbol
|
|
153
|
-
* @param {object} [params] exchange specific parameters
|
|
154
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
155
|
-
*/
|
|
156
|
-
fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
|
|
157
|
-
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
158
|
-
/**
|
|
159
|
-
* @method
|
|
160
|
-
* @name vertex#fetchTickers
|
|
161
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
162
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/tickers
|
|
163
|
-
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
164
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
165
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
166
|
-
*/
|
|
167
|
-
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
168
|
-
queryContracts(params?: {}): Promise<Currencies>;
|
|
169
|
-
nonce(): number;
|
|
170
|
-
hashMessage(message: any): string;
|
|
171
|
-
signHash(hash: any, privateKey: any): string;
|
|
172
|
-
signMessage(message: any, privateKey: any): string;
|
|
173
|
-
buildSig(chainId: any, messageTypes: any, message: any, verifyingContractAddress?: string): string;
|
|
174
|
-
buildCreateOrderSig(message: any, chainId: any, verifyingContractAddress: any): string;
|
|
175
|
-
buildListTriggerTxSig(message: any, chainId: any, verifyingContractAddress: any): string;
|
|
176
|
-
buildCancelAllOrdersSig(message: any, chainId: any, verifyingContractAddress: any): string;
|
|
177
|
-
buildCancelOrdersSig(message: any, chainId: any, verifyingContractAddress: any): string;
|
|
178
|
-
buildWithdrawSig(message: any, chainId: any, verifyingContractAddress: any): string;
|
|
179
|
-
convertAddressToSender(address: string): string;
|
|
180
|
-
getNonce(now: any, expiration: any): string;
|
|
181
|
-
getExpiration(now: any, timeInForce: any, postOnly: any, reduceOnly: any): string;
|
|
182
|
-
getAmount(amount: any, side: any): string;
|
|
183
|
-
/**
|
|
184
|
-
* @method
|
|
185
|
-
* @name vertex#createOrder
|
|
186
|
-
* @description create a trade order
|
|
187
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/place-order
|
|
188
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/place-order
|
|
189
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
190
|
-
* @param {string} type 'market' or 'limit'
|
|
191
|
-
* @param {string} side 'buy' or 'sell'
|
|
192
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
193
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
194
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
|
-
* @param {string} [params.timeInForce] ioc, fok
|
|
196
|
-
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
197
|
-
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only, only works for ioc and fok order
|
|
198
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
199
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
200
|
-
*/
|
|
201
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
202
|
-
/**
|
|
203
|
-
* @method
|
|
204
|
-
* @name vertex#editOrder
|
|
205
|
-
* @description edit a trade order
|
|
206
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-and-place
|
|
207
|
-
* @param {string} id cancel order id
|
|
208
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
209
|
-
* @param {string} type 'market' or 'limit'
|
|
210
|
-
* @param {string} side 'buy' or 'sell'
|
|
211
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
212
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
213
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
214
|
-
* @param {string} [params.timeInForce] ioc, fok
|
|
215
|
-
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
216
|
-
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only, only works for ioc and fok order
|
|
217
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
218
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
219
|
-
*/
|
|
220
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
221
|
-
parseOrderStatus(status: any): any;
|
|
222
|
-
parseOrder(order: any, market?: Market): Order;
|
|
223
|
-
parseTimeInForce(timeInForce: any): string;
|
|
224
|
-
/**
|
|
225
|
-
* @method
|
|
226
|
-
* @name vertex#fetchOrder
|
|
227
|
-
* @description fetches information on an order made by the user
|
|
228
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/order
|
|
229
|
-
* @param {string} id the order id
|
|
230
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
231
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
232
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
233
|
-
*/
|
|
234
|
-
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
235
|
-
/**
|
|
236
|
-
* @method
|
|
237
|
-
* @name vertex#fetchOpenOrders
|
|
238
|
-
* @description fetch all unfilled currently open orders
|
|
239
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/orders
|
|
240
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
|
241
|
-
* @param {string} symbol unified market symbol
|
|
242
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
243
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
244
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
|
-
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
246
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
247
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
248
|
-
*/
|
|
249
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
250
|
-
/**
|
|
251
|
-
* @method
|
|
252
|
-
* @name vertex#fetchOrders
|
|
253
|
-
* @description fetches information on multiple orders made by the user
|
|
254
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
|
255
|
-
* @param {string} symbol unified market symbol
|
|
256
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
257
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
258
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
259
|
-
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
260
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
261
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
262
|
-
*/
|
|
263
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
264
|
-
/**
|
|
265
|
-
* @method
|
|
266
|
-
* @name vertex#cancelAllOrders
|
|
267
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-product-orders
|
|
268
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-product-orders
|
|
269
|
-
* @description cancel all open orders in a market
|
|
270
|
-
* @param {string} symbol unified market symbol
|
|
271
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
272
|
-
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
273
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
274
|
-
*/
|
|
275
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
276
|
-
/**
|
|
277
|
-
* @method
|
|
278
|
-
* @name vertex#cancelOrder
|
|
279
|
-
* @description cancels an open order
|
|
280
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
|
281
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
|
282
|
-
* @param {string} id order id
|
|
283
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
284
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
286
|
-
*/
|
|
287
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
288
|
-
/**
|
|
289
|
-
* @method
|
|
290
|
-
* @name vertex#cancelOrders
|
|
291
|
-
* @description cancel multiple orders
|
|
292
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
|
293
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
|
294
|
-
* @param {string[]} ids order ids
|
|
295
|
-
* @param {string} [symbol] unified market symbol
|
|
296
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
297
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
298
|
-
*/
|
|
299
|
-
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<any>;
|
|
300
|
-
/**
|
|
301
|
-
* @method
|
|
302
|
-
* @name vertex#fetchBalance
|
|
303
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
304
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
|
305
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
307
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
308
|
-
*/
|
|
309
|
-
fetchBalance(params?: {}): Promise<Balances>;
|
|
310
|
-
parsePosition(position: any, market?: Market): Position;
|
|
311
|
-
/**
|
|
312
|
-
* @method
|
|
313
|
-
* @name vertex#fetchPositions
|
|
314
|
-
* @description fetch all open positions
|
|
315
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
|
316
|
-
* @param {string[]} [symbols] list of unified market symbols
|
|
317
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
318
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
319
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
320
|
-
*/
|
|
321
|
-
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
322
|
-
queryNonces(): Promise<import("./base/types.js").Dictionary<any>>;
|
|
323
|
-
/**
|
|
324
|
-
* @method
|
|
325
|
-
* @name vertex#withdraw
|
|
326
|
-
* @description make a withdrawal
|
|
327
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/withdrawing-on-chain
|
|
328
|
-
* @param {string} code unified currency code
|
|
329
|
-
* @param {float} amount the amount to withdraw
|
|
330
|
-
* @param {string} address the address to withdraw to
|
|
331
|
-
* @param {string} tag
|
|
332
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
333
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
334
|
-
*/
|
|
335
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
336
|
-
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
337
|
-
parseTransactionStatus(status: Str): string;
|
|
338
|
-
handlePublicAddress(methodName: string, params: Dict): any[];
|
|
339
|
-
handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
340
|
-
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
341
|
-
url: string;
|
|
342
|
-
method: string;
|
|
343
|
-
body: any;
|
|
344
|
-
headers: any;
|
|
345
|
-
};
|
|
346
|
-
}
|