ccxt 4.4.90 → 4.4.92
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 +5 -6
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -4
- package/dist/cjs/src/base/Exchange.js +23 -33
- package/dist/cjs/src/base/ws/Client.js +4 -34
- package/dist/cjs/src/binance.js +1 -1
- package/dist/cjs/src/bitmart.js +7 -0
- package/dist/cjs/src/bitmex.js +2 -1
- package/dist/cjs/src/bitvavo.js +10 -1
- package/dist/cjs/src/cex.js +61 -0
- package/dist/cjs/src/cryptocom.js +21 -2
- package/dist/cjs/src/cryptomus.js +1 -1
- package/dist/cjs/src/exmo.js +25 -10
- package/dist/cjs/src/fmfwio.js +1 -1
- package/dist/cjs/src/gate.js +2 -2
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/hyperliquid.js +115 -59
- package/dist/cjs/src/kraken.js +29 -1
- package/dist/cjs/src/krakenfutures.js +1 -1
- package/dist/cjs/src/lbank.js +116 -32
- package/dist/cjs/src/mexc.js +1 -0
- package/dist/cjs/src/modetrade.js +2 -2
- package/dist/cjs/src/okx.js +2 -2
- package/dist/cjs/src/paradex.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +1 -1
- package/dist/cjs/src/pro/bybit.js +10 -149
- package/dist/cjs/src/pro/kraken.js +251 -264
- package/dist/cjs/src/pro/mexc.js +0 -1
- package/js/ccxt.d.ts +2 -5
- package/js/ccxt.js +2 -4
- package/js/src/abstract/lbank.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +4 -1
- package/js/src/base/Exchange.js +24 -34
- package/js/src/base/ws/Client.d.ts +0 -2
- package/js/src/base/ws/Client.js +4 -34
- package/js/src/binance.js +1 -1
- package/js/src/bitmart.d.ts +7 -0
- package/js/src/bitmart.js +7 -0
- package/js/src/bitmex.js +2 -1
- package/js/src/bitvavo.js +10 -1
- package/js/src/cex.js +61 -0
- package/js/src/cryptocom.js +21 -2
- package/js/src/cryptomus.js +1 -1
- package/js/src/exmo.js +25 -10
- package/js/src/fmfwio.js +2 -2
- package/js/src/gate.js +2 -2
- package/js/src/htx.js +1 -1
- package/js/src/hyperliquid.d.ts +1 -0
- package/js/src/hyperliquid.js +115 -59
- package/js/src/kraken.js +29 -1
- package/js/src/krakenfutures.js +1 -1
- package/js/src/lbank.d.ts +9 -1
- package/js/src/lbank.js +116 -32
- package/js/src/mexc.js +1 -0
- package/js/src/modetrade.js +2 -2
- package/js/src/okx.d.ts +1 -1
- package/js/src/okx.js +2 -2
- package/js/src/p2b.d.ts +1 -2
- package/js/src/paradex.js +1 -1
- package/js/src/pro/bitstamp.js +1 -1
- package/js/src/pro/bybit.d.ts +0 -1
- package/js/src/pro/bybit.js +11 -150
- package/js/src/pro/kraken.d.ts +17 -17
- package/js/src/pro/kraken.js +251 -264
- package/js/src/pro/mexc.js +0 -1
- package/js/src/tradeogre.d.ts +1 -2
- package/package.json +1 -1
- package/js/src/abstract/coinlist.d.ts +0 -60
- package/js/src/abstract/coinlist.js +0 -11
- package/js/src/coinlist.d.ts +0 -384
- package/js/src/coinlist.js +0 -2610
package/js/src/pro/mexc.js
CHANGED
|
@@ -1111,7 +1111,6 @@ export default class mexc extends mexcRest {
|
|
|
1111
1111
|
*/
|
|
1112
1112
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1113
1113
|
await this.loadMarkets();
|
|
1114
|
-
params = this.omit(params, 'type');
|
|
1115
1114
|
let messageHash = 'orders';
|
|
1116
1115
|
let market = undefined;
|
|
1117
1116
|
if (symbol !== undefined) {
|
package/js/src/tradeogre.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Market } from '../ccxt.js';
|
|
2
1
|
import Exchange from './abstract/tradeogre.js';
|
|
3
|
-
import type { Int, Num, Order, OrderSide, OrderType, Str, Ticker, IndexType, Dict, int, Strings, Tickers, OHLCV } from './base/types.js';
|
|
2
|
+
import type { Int, Num, Order, OrderSide, OrderType, Str, Ticker, IndexType, Dict, int, Strings, Tickers, OHLCV, Market } from './base/types.js';
|
|
4
3
|
/**
|
|
5
4
|
* @class tradeogre
|
|
6
5
|
* @augments Exchange
|
package/package.json
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { implicitReturnType } from '../base/types.js';
|
|
2
|
-
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
-
interface Exchange {
|
|
4
|
-
publicGetV1Symbols(params?: {}): Promise<implicitReturnType>;
|
|
5
|
-
publicGetV1SymbolsSummary(params?: {}): Promise<implicitReturnType>;
|
|
6
|
-
publicGetV1SymbolsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
7
|
-
publicGetV1SymbolsSymbolSummary(params?: {}): Promise<implicitReturnType>;
|
|
8
|
-
publicGetV1SymbolsSymbolBook(params?: {}): Promise<implicitReturnType>;
|
|
9
|
-
publicGetV1SymbolsSymbolQuote(params?: {}): Promise<implicitReturnType>;
|
|
10
|
-
publicGetV1SymbolsSymbolCandles(params?: {}): Promise<implicitReturnType>;
|
|
11
|
-
publicGetV1SymbolsSymbolAuctions(params?: {}): Promise<implicitReturnType>;
|
|
12
|
-
publicGetV1SymbolsSymbolAuctionsAuctionCode(params?: {}): Promise<implicitReturnType>;
|
|
13
|
-
publicGetV1Time(params?: {}): Promise<implicitReturnType>;
|
|
14
|
-
publicGetV1Assets(params?: {}): Promise<implicitReturnType>;
|
|
15
|
-
publicGetV1Leaderboard(params?: {}): Promise<implicitReturnType>;
|
|
16
|
-
publicGetV1AffiliateCompetitionCode(params?: {}): Promise<implicitReturnType>;
|
|
17
|
-
publicGetV1CompetitionCompetitionId(params?: {}): Promise<implicitReturnType>;
|
|
18
|
-
publicGetV1SymbolsSymbolFunding(params?: {}): Promise<implicitReturnType>;
|
|
19
|
-
privateGetV1Fees(params?: {}): Promise<implicitReturnType>;
|
|
20
|
-
privateGetV1Accounts(params?: {}): Promise<implicitReturnType>;
|
|
21
|
-
privateGetV1AccountsTraderId(params?: {}): Promise<implicitReturnType>;
|
|
22
|
-
privateGetV1AccountsTraderIdAlias(params?: {}): Promise<implicitReturnType>;
|
|
23
|
-
privateGetV1AccountsTraderIdLedger(params?: {}): Promise<implicitReturnType>;
|
|
24
|
-
privateGetV1AccountsTraderIdWallets(params?: {}): Promise<implicitReturnType>;
|
|
25
|
-
privateGetV1AccountsTraderIdWalletLedger(params?: {}): Promise<implicitReturnType>;
|
|
26
|
-
privateGetV1AccountsTraderIdLedgerSummary(params?: {}): Promise<implicitReturnType>;
|
|
27
|
-
privateGetV1Keys(params?: {}): Promise<implicitReturnType>;
|
|
28
|
-
privateGetV1Fills(params?: {}): Promise<implicitReturnType>;
|
|
29
|
-
privateGetV1Orders(params?: {}): Promise<implicitReturnType>;
|
|
30
|
-
privateGetV1OrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
31
|
-
privateGetV1Reports(params?: {}): Promise<implicitReturnType>;
|
|
32
|
-
privateGetV1Balances(params?: {}): Promise<implicitReturnType>;
|
|
33
|
-
privateGetV1Transfers(params?: {}): Promise<implicitReturnType>;
|
|
34
|
-
privateGetV1User(params?: {}): Promise<implicitReturnType>;
|
|
35
|
-
privateGetV1Credits(params?: {}): Promise<implicitReturnType>;
|
|
36
|
-
privateGetV1Positions(params?: {}): Promise<implicitReturnType>;
|
|
37
|
-
privateGetV1AccountsTraderIdCompetitions(params?: {}): Promise<implicitReturnType>;
|
|
38
|
-
privateGetV1ClosedPositions(params?: {}): Promise<implicitReturnType>;
|
|
39
|
-
privatePostV1Keys(params?: {}): Promise<implicitReturnType>;
|
|
40
|
-
privatePostV1Orders(params?: {}): Promise<implicitReturnType>;
|
|
41
|
-
privatePostV1OrdersCancelAllAfter(params?: {}): Promise<implicitReturnType>;
|
|
42
|
-
privatePostV1Reports(params?: {}): Promise<implicitReturnType>;
|
|
43
|
-
privatePostV1TransfersToWallet(params?: {}): Promise<implicitReturnType>;
|
|
44
|
-
privatePostV1TransfersFromWallet(params?: {}): Promise<implicitReturnType>;
|
|
45
|
-
privatePostV1TransfersInternalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
46
|
-
privatePostV1TransfersWithdrawalRequest(params?: {}): Promise<implicitReturnType>;
|
|
47
|
-
privatePostV1OrdersBulk(params?: {}): Promise<implicitReturnType>;
|
|
48
|
-
privatePostV1AccountsTraderIdCompetitions(params?: {}): Promise<implicitReturnType>;
|
|
49
|
-
privatePostV1AccountsTraderIdCreateCompetition(params?: {}): Promise<implicitReturnType>;
|
|
50
|
-
privatePatchV1OrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
51
|
-
privatePatchV1OrdersBulk(params?: {}): Promise<implicitReturnType>;
|
|
52
|
-
privatePutV1AccountsTraderIdAlias(params?: {}): Promise<implicitReturnType>;
|
|
53
|
-
privateDeleteV1KeysKey(params?: {}): Promise<implicitReturnType>;
|
|
54
|
-
privateDeleteV1Orders(params?: {}): Promise<implicitReturnType>;
|
|
55
|
-
privateDeleteV1OrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
56
|
-
privateDeleteV1OrdersBulk(params?: {}): Promise<implicitReturnType>;
|
|
57
|
-
}
|
|
58
|
-
declare abstract class Exchange extends _Exchange {
|
|
59
|
-
}
|
|
60
|
-
export default Exchange;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
|
-
// -------------------------------------------------------------------------------
|
|
8
|
-
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
9
|
-
class Exchange extends _Exchange {
|
|
10
|
-
}
|
|
11
|
-
export default Exchange;
|
package/js/src/coinlist.d.ts
DELETED
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
import Exchange from './abstract/coinlist.js';
|
|
2
|
-
import type { Account, Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntry, int, LedgerEntry, FundingRate } from './base/types.js';
|
|
3
|
-
/**
|
|
4
|
-
* @class coinlist
|
|
5
|
-
* @augments Exchange
|
|
6
|
-
*/
|
|
7
|
-
export default class coinlist extends Exchange {
|
|
8
|
-
describe(): any;
|
|
9
|
-
calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?: {}): number;
|
|
10
|
-
/**
|
|
11
|
-
* @method
|
|
12
|
-
* @name coinlist#fetchTime
|
|
13
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
14
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-system-time
|
|
15
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
16
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
17
|
-
*/
|
|
18
|
-
fetchTime(params?: {}): Promise<Int>;
|
|
19
|
-
/**
|
|
20
|
-
* @method
|
|
21
|
-
* @name coinlist#fetchCurrencies
|
|
22
|
-
* @description fetches all available currencies on an exchange
|
|
23
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-supported-assets
|
|
24
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
25
|
-
* @returns {object} an associative dictionary of currencies
|
|
26
|
-
*/
|
|
27
|
-
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
28
|
-
/**
|
|
29
|
-
* @method
|
|
30
|
-
* @name coinlist#fetchMarkets
|
|
31
|
-
* @description retrieves data on all markets for coinlist
|
|
32
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-symbols
|
|
33
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
34
|
-
* @returns {object[]} an array of objects representing market data
|
|
35
|
-
*/
|
|
36
|
-
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
37
|
-
parseMarket(market: Dict): Market;
|
|
38
|
-
/**
|
|
39
|
-
* @method
|
|
40
|
-
* @name coinlist#fetchTickers
|
|
41
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
42
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-symbol-summaries
|
|
43
|
-
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
44
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
46
|
-
*/
|
|
47
|
-
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
48
|
-
/**
|
|
49
|
-
* @method
|
|
50
|
-
* @name coinlist#fetchTicker
|
|
51
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
52
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-market-summary
|
|
53
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
54
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
55
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
56
|
-
*/
|
|
57
|
-
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
58
|
-
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
59
|
-
/**
|
|
60
|
-
* @method
|
|
61
|
-
* @name coinlist#fetchOrderBook
|
|
62
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
63
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-order-book-level-2
|
|
64
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
65
|
-
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
66
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
67
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
68
|
-
*/
|
|
69
|
-
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
70
|
-
/**
|
|
71
|
-
* @method
|
|
72
|
-
* @name coinlist#fetchOHLCV
|
|
73
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
74
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-candles
|
|
75
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
76
|
-
* @param {string} timeframe the length of time each candle represents
|
|
77
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
78
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
79
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
80
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
81
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
82
|
-
*/
|
|
83
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
84
|
-
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
85
|
-
/**
|
|
86
|
-
* @method
|
|
87
|
-
* @name coinlist#fetchTrades
|
|
88
|
-
* @description get the list of most recent trades for a particular symbol
|
|
89
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-auctions
|
|
90
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
91
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
92
|
-
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
93
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
94
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
95
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
96
|
-
*/
|
|
97
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
98
|
-
parseTrade(trade: Dict, market?: Market): Trade;
|
|
99
|
-
/**
|
|
100
|
-
* @method
|
|
101
|
-
* @name coinlist#fetchTradingFees
|
|
102
|
-
* @description fetch the trading fees for multiple markets
|
|
103
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-fees
|
|
104
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
105
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
106
|
-
*/
|
|
107
|
-
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
108
|
-
parseFeeTiers(feeTiers: any, market?: Market): {
|
|
109
|
-
maker: any[];
|
|
110
|
-
taker: any[];
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* @method
|
|
114
|
-
* @name coinlist#fetchAccounts
|
|
115
|
-
* @description fetch all the accounts associated with a profile
|
|
116
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-accounts
|
|
117
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
118
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
119
|
-
*/
|
|
120
|
-
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
121
|
-
parseAccount(account: any): {
|
|
122
|
-
id: string;
|
|
123
|
-
type: string;
|
|
124
|
-
code: any;
|
|
125
|
-
info: any;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* @method
|
|
129
|
-
* @name coinlist#fetchBalance
|
|
130
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
131
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-balances
|
|
132
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
133
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
134
|
-
*/
|
|
135
|
-
fetchBalance(params?: {}): Promise<Balances>;
|
|
136
|
-
parseBalance(response: any): Balances;
|
|
137
|
-
/**
|
|
138
|
-
* @method
|
|
139
|
-
* @name coinlist#fetchMyTrades
|
|
140
|
-
* @description fetch all trades made by the user
|
|
141
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-fills
|
|
142
|
-
* @param {string} symbol unified market symbol
|
|
143
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
144
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve (default 200, max 500)
|
|
145
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
146
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
147
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
148
|
-
*/
|
|
149
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
150
|
-
/**
|
|
151
|
-
* @method
|
|
152
|
-
* @name coinlist#fetchOrderTrades
|
|
153
|
-
* @description fetch all the trades made from a single order
|
|
154
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-fills
|
|
155
|
-
* @param {string} id order id
|
|
156
|
-
* @param {string} symbol unified market symbol
|
|
157
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
158
|
-
* @param {int} [limit] the maximum number of trades to retrieve
|
|
159
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
160
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
161
|
-
*/
|
|
162
|
-
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
163
|
-
/**
|
|
164
|
-
* @method
|
|
165
|
-
* @name coinlist#fetchOrders
|
|
166
|
-
* @description fetches information on multiple orders made by the user
|
|
167
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
168
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
169
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
170
|
-
* @param {int} [limit] the maximum number of order structures to retrieve (default 200, max 500)
|
|
171
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
172
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
173
|
-
* @param {string|string[]} [params.status] the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending' (default [ 'accepted', 'done', 'canceled', 'rejected', 'pending' ])
|
|
174
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
175
|
-
*/
|
|
176
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
177
|
-
/**
|
|
178
|
-
* @method
|
|
179
|
-
* @name coinlist#fetchOrder
|
|
180
|
-
* @description fetches information on an order made by the user
|
|
181
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-specific-order-by-id
|
|
182
|
-
* @param {int|string} id order id
|
|
183
|
-
* @param {string} symbol not used by coinlist fetchOrder ()
|
|
184
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
186
|
-
*/
|
|
187
|
-
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
188
|
-
/**
|
|
189
|
-
* @method
|
|
190
|
-
* @name coinlist#fetchOpenOrders
|
|
191
|
-
* @description fetch all unfilled currently open orders
|
|
192
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
193
|
-
* @param {string} symbol unified market symbol
|
|
194
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
195
|
-
* @param {int} [limit] the maximum number of open order structures to retrieve (default 200, max 500)
|
|
196
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
197
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
198
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
199
|
-
*/
|
|
200
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
201
|
-
/**
|
|
202
|
-
* @method
|
|
203
|
-
* @name coinlist#fetchClosedOrders
|
|
204
|
-
* @description fetches information on multiple closed orders made by the user
|
|
205
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
206
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
207
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
208
|
-
* @param {int} [limit] the maximum number of closed order structures to retrieve (default 200, max 500)
|
|
209
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
210
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
211
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
212
|
-
*/
|
|
213
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
214
|
-
/**
|
|
215
|
-
* @method
|
|
216
|
-
* @name coinlist#fetchCanceledOrders
|
|
217
|
-
* @description fetches information on multiple canceled orders made by the user
|
|
218
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
219
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
220
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
221
|
-
* @param {int} [limit] the maximum number of canceled order structures to retrieve (default 200, max 500)
|
|
222
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
223
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
224
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
225
|
-
*/
|
|
226
|
-
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
227
|
-
/**
|
|
228
|
-
* @method
|
|
229
|
-
* @name coinlist#cancelAllOrders
|
|
230
|
-
* @description cancel open orders of market
|
|
231
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-all-orders
|
|
232
|
-
* @param {string} symbol unified market symbol
|
|
233
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
235
|
-
*/
|
|
236
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
237
|
-
/**
|
|
238
|
-
* @method
|
|
239
|
-
* @name coinlist#cancelOrder
|
|
240
|
-
* @description cancels an open order
|
|
241
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-specific-order-by-id
|
|
242
|
-
* @param {string} id order id
|
|
243
|
-
* @param {string} symbol not used by coinlist cancelOrder ()
|
|
244
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
246
|
-
*/
|
|
247
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
248
|
-
/**
|
|
249
|
-
* @method
|
|
250
|
-
* @name coinlist#cancelOrders
|
|
251
|
-
* @description cancel multiple orders
|
|
252
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-specific-orders
|
|
253
|
-
* @param {string[]} ids order ids
|
|
254
|
-
* @param {string} symbol not used by coinlist cancelOrders ()
|
|
255
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
256
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
257
|
-
*/
|
|
258
|
-
cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
|
|
259
|
-
/**
|
|
260
|
-
* @method
|
|
261
|
-
* @name coinlist#createOrder
|
|
262
|
-
* @description create a trade order
|
|
263
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#create-new-order
|
|
264
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
265
|
-
* @param {string} type 'market' or 'limit' or 'stop_market' or 'stop_limit' or 'take_market' or 'take_limit'
|
|
266
|
-
* @param {string} side 'buy' or 'sell'
|
|
267
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
268
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
269
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
270
|
-
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately (default false)
|
|
271
|
-
* @param {float} [params.triggerPrice] only for the 'stop_market', 'stop_limit', 'take_market' or 'take_limit' orders (the price at which an order is triggered)
|
|
272
|
-
* @param {string} [params.clientOrderId] client order id (default undefined)
|
|
273
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
274
|
-
*/
|
|
275
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
276
|
-
/**
|
|
277
|
-
* @method
|
|
278
|
-
* @name coinlist#editOrder
|
|
279
|
-
* @description create a trade order
|
|
280
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#modify-existing-order
|
|
281
|
-
* @param {string} id order id
|
|
282
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
283
|
-
* @param {string} type 'market' or 'limit' or 'stop_market' or 'stop_limit' or 'take_market' or 'take_limit'
|
|
284
|
-
* @param {string} side 'buy' or 'sell'
|
|
285
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
286
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
287
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
288
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
289
|
-
*/
|
|
290
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
291
|
-
parseOrder(order: Dict, market?: Market): Order;
|
|
292
|
-
parseOrderStatus(status: Str): string;
|
|
293
|
-
parseOrderType(status: any): string;
|
|
294
|
-
/**
|
|
295
|
-
* @method
|
|
296
|
-
* @name coinlist#transfer
|
|
297
|
-
* @description transfer currency internally between wallets on the same account
|
|
298
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#transfer-funds-between-entities
|
|
299
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#transfer-funds-from-wallet-to-pro
|
|
300
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#transfer-funds-from-pro-to-wallet
|
|
301
|
-
* @param {string} code unified currency code
|
|
302
|
-
* @param {float} amount amount to transfer
|
|
303
|
-
* @param {string} fromAccount account to transfer from
|
|
304
|
-
* @param {string} toAccount account to transfer to
|
|
305
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
307
|
-
*/
|
|
308
|
-
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
309
|
-
/**
|
|
310
|
-
* @method
|
|
311
|
-
* @name coinlist#fetchTransfers
|
|
312
|
-
* @description fetch a history of internal transfers between CoinList.co and CoinList Pro. It does not return external deposits or withdrawals
|
|
313
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-transfers
|
|
314
|
-
* @param {string} code unified currency code
|
|
315
|
-
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
316
|
-
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 200, max 500)
|
|
317
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
318
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
319
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
320
|
-
*/
|
|
321
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
322
|
-
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
323
|
-
parseTransferStatus(status: Str): Str;
|
|
324
|
-
/**
|
|
325
|
-
* @method
|
|
326
|
-
* @name coinlist#fetchDepositsWithdrawals
|
|
327
|
-
* @description fetch history of deposits and withdrawals from external wallets and between CoinList Pro trading account and CoinList wallet
|
|
328
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-coinlist-wallet-ledger
|
|
329
|
-
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals
|
|
330
|
-
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal
|
|
331
|
-
* @param {int} [limit] max number of deposit/withdrawals to return (default 200, max 500)
|
|
332
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
333
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
334
|
-
*/
|
|
335
|
-
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
336
|
-
/**
|
|
337
|
-
* @method
|
|
338
|
-
* @name coinlist#withdraw
|
|
339
|
-
* @description request a withdrawal from CoinList wallet. (Disabled by default. Contact CoinList to apply for an exception.)
|
|
340
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#request-withdrawal-from-wallet
|
|
341
|
-
* @param {string} code unified currency code
|
|
342
|
-
* @param {float} amount the amount to withdraw
|
|
343
|
-
* @param {string} address the address to withdraw to
|
|
344
|
-
* @param {string} tag
|
|
345
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
346
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
347
|
-
*/
|
|
348
|
-
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
349
|
-
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
350
|
-
parseTransactionType(type: any): string;
|
|
351
|
-
/**
|
|
352
|
-
* @method
|
|
353
|
-
* @name coinlist#fetchLedger
|
|
354
|
-
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
355
|
-
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-account-history
|
|
356
|
-
* @param {string} [code] unified currency code, default is undefined
|
|
357
|
-
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
358
|
-
* @param {int} [limit] max number of ledger entries to return (default 200, max 500)
|
|
359
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
360
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
361
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
|
|
362
|
-
*/
|
|
363
|
-
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
364
|
-
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
365
|
-
parseLedgerEntryType(type: any): string;
|
|
366
|
-
/**
|
|
367
|
-
* @method
|
|
368
|
-
* @name coinlist#fetchFundingRate
|
|
369
|
-
* @description fetch the current funding rate
|
|
370
|
-
* @see https://trade-docs.coinlist.co/#coinlist-pro-api-Funding-Rates
|
|
371
|
-
* @param {string} symbol unified market symbol
|
|
372
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
373
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
374
|
-
*/
|
|
375
|
-
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
376
|
-
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
377
|
-
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
378
|
-
url: string;
|
|
379
|
-
method: string;
|
|
380
|
-
body: any;
|
|
381
|
-
headers: any;
|
|
382
|
-
};
|
|
383
|
-
handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
|
|
384
|
-
}
|