ccxt 4.3.43 → 4.3.45
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 +7 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +9 -1
- package/dist/cjs/src/abstract/oxfun.js +9 -0
- package/dist/cjs/src/bitstamp.js +18 -2
- package/dist/cjs/src/kucoin.js +28 -1
- package/dist/cjs/src/luno.js +9 -1
- package/dist/cjs/src/lykke.js +10 -2
- package/dist/cjs/src/ndax.js +5 -1
- package/dist/cjs/src/oxfun.js +2900 -0
- package/dist/cjs/src/poloniexfutures.js +2 -2
- package/dist/cjs/src/pro/bitmex.js +9 -0
- package/dist/cjs/src/pro/oxfun.js +1034 -0
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/wavesexchange.js +121 -110
- package/dist/cjs/src/xt.js +135 -96
- package/js/ccxt.d.ts +11 -2
- package/js/ccxt.js +8 -2
- package/js/src/abstract/bitstamp.d.ts +16 -0
- package/js/src/abstract/kucoin.d.ts +14 -0
- package/js/src/abstract/kucoinfutures.d.ts +14 -0
- package/js/src/abstract/oxfun.d.ts +37 -0
- package/js/src/abstract/oxfun.js +11 -0
- package/js/src/abstract/xt.d.ts +155 -0
- package/js/src/abstract/xt.js +11 -0
- package/js/src/bitstamp.js +18 -2
- package/js/src/kucoin.js +28 -1
- package/js/src/luno.d.ts +1 -1
- package/js/src/luno.js +9 -1
- package/js/src/lykke.d.ts +2 -2
- package/js/src/lykke.js +10 -2
- package/js/src/ndax.d.ts +1 -1
- package/js/src/ndax.js +5 -1
- package/js/src/oxfun.d.ts +129 -0
- package/js/src/oxfun.js +2901 -0
- package/js/src/poloniexfutures.js +2 -2
- package/js/src/pro/bitmex.js +9 -0
- package/js/src/pro/oxfun.d.ts +38 -0
- package/js/src/pro/oxfun.js +1035 -0
- package/js/src/pro/woo.js +1 -1
- package/js/src/wavesexchange.d.ts +7 -7
- package/js/src/wavesexchange.js +122 -111
- package/js/src/xt.d.ts +161 -0
- package/js/src/xt.js +4761 -0
- package/package.json +1 -1
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.45';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -128,6 +128,7 @@ import oceanex from './src/oceanex.js';
|
|
|
128
128
|
import okcoin from './src/okcoin.js';
|
|
129
129
|
import okx from './src/okx.js';
|
|
130
130
|
import onetrading from './src/onetrading.js';
|
|
131
|
+
import oxfun from './src/oxfun.js';
|
|
131
132
|
import p2b from './src/p2b.js';
|
|
132
133
|
import paymium from './src/paymium.js';
|
|
133
134
|
import phemex from './src/phemex.js';
|
|
@@ -143,6 +144,7 @@ import wazirx from './src/wazirx.js';
|
|
|
143
144
|
import whitebit from './src/whitebit.js';
|
|
144
145
|
import woo from './src/woo.js';
|
|
145
146
|
import woofipro from './src/woofipro.js';
|
|
147
|
+
import xt from './src/xt.js';
|
|
146
148
|
import yobit from './src/yobit.js';
|
|
147
149
|
import zaif from './src/zaif.js';
|
|
148
150
|
import zonda from './src/zonda.js';
|
|
@@ -202,6 +204,7 @@ import ndaxPro from './src/pro/ndax.js';
|
|
|
202
204
|
import okcoinPro from './src/pro/okcoin.js';
|
|
203
205
|
import okxPro from './src/pro/okx.js';
|
|
204
206
|
import onetradingPro from './src/pro/onetrading.js';
|
|
207
|
+
import oxfunPro from './src/pro/oxfun.js';
|
|
205
208
|
import p2bPro from './src/pro/p2b.js';
|
|
206
209
|
import phemexPro from './src/pro/phemex.js';
|
|
207
210
|
import poloniexPro from './src/pro/poloniex.js';
|
|
@@ -300,6 +303,7 @@ const exchanges = {
|
|
|
300
303
|
'okcoin': okcoin,
|
|
301
304
|
'okx': okx,
|
|
302
305
|
'onetrading': onetrading,
|
|
306
|
+
'oxfun': oxfun,
|
|
303
307
|
'p2b': p2b,
|
|
304
308
|
'paymium': paymium,
|
|
305
309
|
'phemex': phemex,
|
|
@@ -315,6 +319,7 @@ const exchanges = {
|
|
|
315
319
|
'whitebit': whitebit,
|
|
316
320
|
'woo': woo,
|
|
317
321
|
'woofipro': woofipro,
|
|
322
|
+
'xt': xt,
|
|
318
323
|
'yobit': yobit,
|
|
319
324
|
'zaif': zaif,
|
|
320
325
|
'zonda': zonda,
|
|
@@ -375,6 +380,7 @@ const pro = {
|
|
|
375
380
|
'okcoin': okcoinPro,
|
|
376
381
|
'okx': okxPro,
|
|
377
382
|
'onetrading': onetradingPro,
|
|
383
|
+
'oxfun': oxfunPro,
|
|
378
384
|
'p2b': p2bPro,
|
|
379
385
|
'phemex': phemexPro,
|
|
380
386
|
'poloniex': poloniexPro,
|
|
@@ -398,6 +404,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
398
404
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
399
405
|
//-----------------------------------------------------------------------------
|
|
400
406
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
401
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
|
|
407
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
402
408
|
export default ccxt;
|
|
403
409
|
//-----------------------------------------------------------------------------
|
|
@@ -239,6 +239,22 @@ interface Exchange {
|
|
|
239
239
|
privatePostVchfAddress(params?: {}): Promise<implicitReturnType>;
|
|
240
240
|
privatePostVeurWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
241
241
|
privatePostVeurAddress(params?: {}): Promise<implicitReturnType>;
|
|
242
|
+
privatePostTrufWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
243
|
+
privatePostTrufAddress(params?: {}): Promise<implicitReturnType>;
|
|
244
|
+
privatePostWifWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
245
|
+
privatePostWifAddress(params?: {}): Promise<implicitReturnType>;
|
|
246
|
+
privatePostSmtWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
247
|
+
privatePostSmtAddress(params?: {}): Promise<implicitReturnType>;
|
|
248
|
+
privatePostSuiWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
249
|
+
privatePostSuiAddress(params?: {}): Promise<implicitReturnType>;
|
|
250
|
+
privatePostJupWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
251
|
+
privatePostJupAddress(params?: {}): Promise<implicitReturnType>;
|
|
252
|
+
privatePostOndoWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
253
|
+
privatePostOndoAddress(params?: {}): Promise<implicitReturnType>;
|
|
254
|
+
privatePostBobaWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
255
|
+
privatePostBobaAddress(params?: {}): Promise<implicitReturnType>;
|
|
256
|
+
privatePostPythWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
257
|
+
privatePostPythAddress(params?: {}): Promise<implicitReturnType>;
|
|
242
258
|
}
|
|
243
259
|
declare abstract class Exchange extends _Exchange {
|
|
244
260
|
}
|
|
@@ -192,11 +192,25 @@ interface Exchange {
|
|
|
192
192
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
193
193
|
brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
194
194
|
brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
195
|
+
brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
|
|
196
|
+
brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
|
|
197
|
+
brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
|
|
195
198
|
brokerPostBrokerNdTransfer(params?: {}): Promise<implicitReturnType>;
|
|
196
199
|
brokerPostBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
197
200
|
brokerPostBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
198
201
|
brokerPostBrokerNdAccountUpdateApikey(params?: {}): Promise<implicitReturnType>;
|
|
199
202
|
brokerDeleteBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
203
|
+
earnGetOtcLoanLoan(params?: {}): Promise<implicitReturnType>;
|
|
204
|
+
earnGetOtcLoanAccounts(params?: {}): Promise<implicitReturnType>;
|
|
205
|
+
earnGetEarnRedeemPreview(params?: {}): Promise<implicitReturnType>;
|
|
206
|
+
earnGetEarnSavingProducts(params?: {}): Promise<implicitReturnType>;
|
|
207
|
+
earnGetEarnHoldAssets(params?: {}): Promise<implicitReturnType>;
|
|
208
|
+
earnGetEarnPromotionProducts(params?: {}): Promise<implicitReturnType>;
|
|
209
|
+
earnGetEarnKcsStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
210
|
+
earnGetEarnStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
211
|
+
earnGetEarnEthStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
212
|
+
earnPostEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
213
|
+
earnDeleteEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
200
214
|
}
|
|
201
215
|
declare abstract class Exchange extends _Exchange {
|
|
202
216
|
}
|
|
@@ -211,11 +211,25 @@ interface kucoin {
|
|
|
211
211
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
212
212
|
brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
213
213
|
brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
214
|
+
brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
|
|
215
|
+
brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
|
|
216
|
+
brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
|
|
214
217
|
brokerPostBrokerNdTransfer(params?: {}): Promise<implicitReturnType>;
|
|
215
218
|
brokerPostBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
216
219
|
brokerPostBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
217
220
|
brokerPostBrokerNdAccountUpdateApikey(params?: {}): Promise<implicitReturnType>;
|
|
218
221
|
brokerDeleteBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
222
|
+
earnGetOtcLoanLoan(params?: {}): Promise<implicitReturnType>;
|
|
223
|
+
earnGetOtcLoanAccounts(params?: {}): Promise<implicitReturnType>;
|
|
224
|
+
earnGetEarnRedeemPreview(params?: {}): Promise<implicitReturnType>;
|
|
225
|
+
earnGetEarnSavingProducts(params?: {}): Promise<implicitReturnType>;
|
|
226
|
+
earnGetEarnHoldAssets(params?: {}): Promise<implicitReturnType>;
|
|
227
|
+
earnGetEarnPromotionProducts(params?: {}): Promise<implicitReturnType>;
|
|
228
|
+
earnGetEarnKcsStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
229
|
+
earnGetEarnStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
230
|
+
earnGetEarnEthStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
231
|
+
earnPostEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
232
|
+
earnDeleteEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
219
233
|
}
|
|
220
234
|
declare abstract class kucoin extends _kucoin {
|
|
221
235
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetV3Markets(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetV3Assets(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetV3Tickers(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetV3FundingEstimates(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetV3Candles(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetV3Depth(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetV3MarketsOperational(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetV3ExchangeTrades(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetV3FundingRates(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetV3LeverageTiers(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
privateGetV3Account(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
privateGetV3AccountNames(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
privateGetV3Wallet(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privateGetV3Transfer(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
privateGetV3Balances(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
privateGetV3Positions(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
privateGetV3Funding(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
privateGetV3DepositAddresses(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetV3Deposit(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privateGetV3WithdrawalAddresses(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privateGetV3Withdrawal(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privateGetV3WithdrawalFees(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privateGetV3OrdersStatus(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
privateGetV3OrdersWorking(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privateGetV3Trades(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
privatePostV3Transfer(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
privatePostV3Withdrawal(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
privatePostV3OrdersPlace(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
privateDeleteV3OrdersCancel(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
privateDeleteV3OrdersCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
}
|
|
35
|
+
declare abstract class Exchange extends _Exchange {
|
|
36
|
+
}
|
|
37
|
+
export default Exchange;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicSpotGetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicSpotGetDepth(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicSpotGetKline(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicSpotGetSymbol(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicSpotGetTicker(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicSpotGetTickerBook(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicSpotGetTickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicSpotGetTicker24h(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicSpotGetTime(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicSpotGetTradeHistory(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicSpotGetTradeRecent(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
publicSpotGetWalletSupportCurrency(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicLinearGetFutureMarketV1PublicContractRiskBalance(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicLinearGetFutureMarketV1PublicContractOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
publicLinearGetFutureMarketV1PublicLeverageBracketDetail(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
publicLinearGetFutureMarketV1PublicLeverageBracketList(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
publicLinearGetFutureMarketV1PublicQAggTicker(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
publicLinearGetFutureMarketV1PublicQAggTickers(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
publicLinearGetFutureMarketV1PublicQDeal(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
publicLinearGetFutureMarketV1PublicQDepth(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
publicLinearGetFutureMarketV1PublicQFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
publicLinearGetFutureMarketV1PublicQFundingRateRecord(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
publicLinearGetFutureMarketV1PublicQIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
publicLinearGetFutureMarketV1PublicQKline(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
publicLinearGetFutureMarketV1PublicQMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
publicLinearGetFutureMarketV1PublicQSymbolIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
publicLinearGetFutureMarketV1PublicQSymbolMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicLinearGetFutureMarketV1PublicQTicker(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
publicLinearGetFutureMarketV1PublicQTickers(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
publicLinearGetFutureMarketV1PublicSymbolCoins(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
publicLinearGetFutureMarketV1PublicSymbolDetail(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
publicLinearGetFutureMarketV1PublicSymbolList(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
publicInverseGetFutureMarketV1PublicContractRiskBalance(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
publicInverseGetFutureMarketV1PublicContractOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
publicInverseGetFutureMarketV1PublicLeverageBracketDetail(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
publicInverseGetFutureMarketV1PublicLeverageBracketList(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
publicInverseGetFutureMarketV1PublicQAggTicker(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
publicInverseGetFutureMarketV1PublicQAggTickers(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
publicInverseGetFutureMarketV1PublicQDeal(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
publicInverseGetFutureMarketV1PublicQDepth(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
publicInverseGetFutureMarketV1PublicQFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
publicInverseGetFutureMarketV1PublicQFundingRateRecord(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
publicInverseGetFutureMarketV1PublicQIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
publicInverseGetFutureMarketV1PublicQKline(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
publicInverseGetFutureMarketV1PublicQMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
publicInverseGetFutureMarketV1PublicQSymbolIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
publicInverseGetFutureMarketV1PublicQSymbolMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
publicInverseGetFutureMarketV1PublicQTicker(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
publicInverseGetFutureMarketV1PublicQTickers(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicInverseGetFutureMarketV1PublicSymbolCoins(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicInverseGetFutureMarketV1PublicSymbolDetail(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
publicInverseGetFutureMarketV1PublicSymbolList(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
privateSpotGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privateSpotGetBalances(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
privateSpotGetBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
privateSpotGetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
privateSpotGetDepositHistory(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privateSpotGetHistoryOrder(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
privateSpotGetOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privateSpotGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
privateSpotGetOrderOrderId(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
privateSpotGetTrade(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
privateSpotGetWithdrawHistory(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
privateSpotPostOrder(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
privateSpotPostWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
privateSpotPostBalanceTransfer(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
privateSpotPostBalanceAccountTransfer(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
privateSpotDeleteBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
privateSpotDeleteOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
privateSpotDeleteOrderOrderId(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
privateLinearGetFutureTradeV1EntrustPlanDetail(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
privateLinearGetFutureTradeV1EntrustPlanList(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
privateLinearGetFutureTradeV1EntrustPlanListHistory(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
privateLinearGetFutureTradeV1EntrustProfitDetail(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
privateLinearGetFutureTradeV1EntrustProfitList(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
privateLinearGetFutureTradeV1OrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
privateLinearGetFutureTradeV1OrderList(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
privateLinearGetFutureTradeV1OrderListHistory(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
privateLinearGetFutureTradeV1OrderTradeList(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
privateLinearGetFutureUserV1AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
privateLinearGetFutureUserV1BalanceBills(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
privateLinearGetFutureUserV1BalanceDetail(params?: {}): Promise<implicitReturnType>;
|
|
86
|
+
privateLinearGetFutureUserV1BalanceFundingRateList(params?: {}): Promise<implicitReturnType>;
|
|
87
|
+
privateLinearGetFutureUserV1BalanceList(params?: {}): Promise<implicitReturnType>;
|
|
88
|
+
privateLinearGetFutureUserV1PositionAdl(params?: {}): Promise<implicitReturnType>;
|
|
89
|
+
privateLinearGetFutureUserV1PositionList(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
privateLinearGetFutureUserV1UserCollectionList(params?: {}): Promise<implicitReturnType>;
|
|
91
|
+
privateLinearGetFutureUserV1UserListenKey(params?: {}): Promise<implicitReturnType>;
|
|
92
|
+
privateLinearPostFutureTradeV1EntrustCancelAllPlan(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
privateLinearPostFutureTradeV1EntrustCancelAllProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
privateLinearPostFutureTradeV1EntrustCancelPlan(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
privateLinearPostFutureTradeV1EntrustCancelProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
96
|
+
privateLinearPostFutureTradeV1EntrustCreatePlan(params?: {}): Promise<implicitReturnType>;
|
|
97
|
+
privateLinearPostFutureTradeV1EntrustCreateProfit(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
privateLinearPostFutureTradeV1EntrustUpdateProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
99
|
+
privateLinearPostFutureTradeV1OrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
100
|
+
privateLinearPostFutureTradeV1OrderCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
privateLinearPostFutureTradeV1OrderCreate(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
privateLinearPostFutureTradeV1OrderCreateBatch(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
privateLinearPostFutureUserV1AccountOpen(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
privateLinearPostFutureUserV1PositionAdjustLeverage(params?: {}): Promise<implicitReturnType>;
|
|
105
|
+
privateLinearPostFutureUserV1PositionAutoMargin(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privateLinearPostFutureUserV1PositionCloseAll(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
privateLinearPostFutureUserV1PositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
108
|
+
privateLinearPostFutureUserV1UserCollectionAdd(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
privateLinearPostFutureUserV1UserCollectionCancel(params?: {}): Promise<implicitReturnType>;
|
|
110
|
+
privateInverseGetFutureTradeV1EntrustPlanDetail(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
privateInverseGetFutureTradeV1EntrustPlanList(params?: {}): Promise<implicitReturnType>;
|
|
112
|
+
privateInverseGetFutureTradeV1EntrustPlanListHistory(params?: {}): Promise<implicitReturnType>;
|
|
113
|
+
privateInverseGetFutureTradeV1EntrustProfitDetail(params?: {}): Promise<implicitReturnType>;
|
|
114
|
+
privateInverseGetFutureTradeV1EntrustProfitList(params?: {}): Promise<implicitReturnType>;
|
|
115
|
+
privateInverseGetFutureTradeV1OrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
116
|
+
privateInverseGetFutureTradeV1OrderList(params?: {}): Promise<implicitReturnType>;
|
|
117
|
+
privateInverseGetFutureTradeV1OrderListHistory(params?: {}): Promise<implicitReturnType>;
|
|
118
|
+
privateInverseGetFutureTradeV1OrderTradeList(params?: {}): Promise<implicitReturnType>;
|
|
119
|
+
privateInverseGetFutureUserV1AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
120
|
+
privateInverseGetFutureUserV1BalanceBills(params?: {}): Promise<implicitReturnType>;
|
|
121
|
+
privateInverseGetFutureUserV1BalanceDetail(params?: {}): Promise<implicitReturnType>;
|
|
122
|
+
privateInverseGetFutureUserV1BalanceFundingRateList(params?: {}): Promise<implicitReturnType>;
|
|
123
|
+
privateInverseGetFutureUserV1BalanceList(params?: {}): Promise<implicitReturnType>;
|
|
124
|
+
privateInverseGetFutureUserV1PositionAdl(params?: {}): Promise<implicitReturnType>;
|
|
125
|
+
privateInverseGetFutureUserV1PositionList(params?: {}): Promise<implicitReturnType>;
|
|
126
|
+
privateInverseGetFutureUserV1UserCollectionList(params?: {}): Promise<implicitReturnType>;
|
|
127
|
+
privateInverseGetFutureUserV1UserListenKey(params?: {}): Promise<implicitReturnType>;
|
|
128
|
+
privateInversePostFutureTradeV1EntrustCancelAllPlan(params?: {}): Promise<implicitReturnType>;
|
|
129
|
+
privateInversePostFutureTradeV1EntrustCancelAllProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
130
|
+
privateInversePostFutureTradeV1EntrustCancelPlan(params?: {}): Promise<implicitReturnType>;
|
|
131
|
+
privateInversePostFutureTradeV1EntrustCancelProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
privateInversePostFutureTradeV1EntrustCreatePlan(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
privateInversePostFutureTradeV1EntrustCreateProfit(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
privateInversePostFutureTradeV1EntrustUpdateProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
privateInversePostFutureTradeV1OrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
privateInversePostFutureTradeV1OrderCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
privateInversePostFutureTradeV1OrderCreate(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
privateInversePostFutureTradeV1OrderCreateBatch(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
privateInversePostFutureUserV1AccountOpen(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
privateInversePostFutureUserV1PositionAdjustLeverage(params?: {}): Promise<implicitReturnType>;
|
|
141
|
+
privateInversePostFutureUserV1PositionAutoMargin(params?: {}): Promise<implicitReturnType>;
|
|
142
|
+
privateInversePostFutureUserV1PositionCloseAll(params?: {}): Promise<implicitReturnType>;
|
|
143
|
+
privateInversePostFutureUserV1PositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
144
|
+
privateInversePostFutureUserV1UserCollectionAdd(params?: {}): Promise<implicitReturnType>;
|
|
145
|
+
privateInversePostFutureUserV1UserCollectionCancel(params?: {}): Promise<implicitReturnType>;
|
|
146
|
+
privateUserGetUserAccount(params?: {}): Promise<implicitReturnType>;
|
|
147
|
+
privateUserGetUserAccountApiKey(params?: {}): Promise<implicitReturnType>;
|
|
148
|
+
privateUserPostUserAccount(params?: {}): Promise<implicitReturnType>;
|
|
149
|
+
privateUserPostUserAccountApiKey(params?: {}): Promise<implicitReturnType>;
|
|
150
|
+
privateUserPutUserAccountApiKey(params?: {}): Promise<implicitReturnType>;
|
|
151
|
+
privateUserDeleteUserAccountApikeyId(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
}
|
|
153
|
+
declare abstract class Exchange extends _Exchange {
|
|
154
|
+
}
|
|
155
|
+
export default Exchange;
|
|
@@ -0,0 +1,11 @@
|
|
|
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/bitstamp.js
CHANGED
|
@@ -222,7 +222,7 @@ export default class bitstamp extends Exchange {
|
|
|
222
222
|
'uni_withdrawal/': 1,
|
|
223
223
|
'uni_address/': 1,
|
|
224
224
|
'yfi_withdrawal/': 1,
|
|
225
|
-
'yfi_address': 1,
|
|
225
|
+
'yfi_address/': 1,
|
|
226
226
|
'audio_withdrawal/': 1,
|
|
227
227
|
'audio_address/': 1,
|
|
228
228
|
'crv_withdrawal/': 1,
|
|
@@ -231,7 +231,7 @@ export default class bitstamp extends Exchange {
|
|
|
231
231
|
'algo_address/': 1,
|
|
232
232
|
'comp_withdrawal/': 1,
|
|
233
233
|
'comp_address/': 1,
|
|
234
|
-
'grt_withdrawal': 1,
|
|
234
|
+
'grt_withdrawal/': 1,
|
|
235
235
|
'grt_address/': 1,
|
|
236
236
|
'usdt_withdrawal/': 1,
|
|
237
237
|
'usdt_address/': 1,
|
|
@@ -369,6 +369,22 @@ export default class bitstamp extends Exchange {
|
|
|
369
369
|
'vchf_address/': 1,
|
|
370
370
|
'veur_withdrawal/': 1,
|
|
371
371
|
'veur_address/': 1,
|
|
372
|
+
'truf_withdrawal/': 1,
|
|
373
|
+
'truf_address/': 1,
|
|
374
|
+
'wif_withdrawal/': 1,
|
|
375
|
+
'wif_address/': 1,
|
|
376
|
+
'smt_withdrawal/': 1,
|
|
377
|
+
'smt_address/': 1,
|
|
378
|
+
'sui_withdrawal/': 1,
|
|
379
|
+
'sui_address/': 1,
|
|
380
|
+
'jup_withdrawal/': 1,
|
|
381
|
+
'jup_address/': 1,
|
|
382
|
+
'ondo_withdrawal/': 1,
|
|
383
|
+
'ondo_address/': 1,
|
|
384
|
+
'boba_withdrawal/': 1,
|
|
385
|
+
'boba_address/': 1,
|
|
386
|
+
'pyth_withdrawal/': 1,
|
|
387
|
+
'pyth_address/': 1,
|
|
372
388
|
},
|
|
373
389
|
},
|
|
374
390
|
},
|
package/js/src/kucoin.js
CHANGED
|
@@ -124,6 +124,7 @@ export default class kucoin extends Exchange {
|
|
|
124
124
|
'futuresPublic': 'https://api-futures.kucoin.com',
|
|
125
125
|
'webExchange': 'https://kucoin.com/_api',
|
|
126
126
|
'broker': 'https://api-broker.kucoin.com',
|
|
127
|
+
'earn': 'https://api.kucoin.com',
|
|
127
128
|
},
|
|
128
129
|
'www': 'https://www.kucoin.com',
|
|
129
130
|
'doc': [
|
|
@@ -391,6 +392,9 @@ export default class kucoin extends Exchange {
|
|
|
391
392
|
'broker/nd/account': 2,
|
|
392
393
|
'broker/nd/account/apikey': 2,
|
|
393
394
|
'broker/nd/rebase/download': 3,
|
|
395
|
+
'broker/nd/transfer/detail': 1,
|
|
396
|
+
'broker/nd/deposit/detail': 1,
|
|
397
|
+
'broker/nd/withdraw/detail': 1,
|
|
394
398
|
},
|
|
395
399
|
'post': {
|
|
396
400
|
'broker/nd/transfer': 1,
|
|
@@ -402,6 +406,25 @@ export default class kucoin extends Exchange {
|
|
|
402
406
|
'broker/nd/account/apikey': 3,
|
|
403
407
|
},
|
|
404
408
|
},
|
|
409
|
+
'earn': {
|
|
410
|
+
'get': {
|
|
411
|
+
'otc-loan/loan': 1,
|
|
412
|
+
'otc-loan/accounts': 1,
|
|
413
|
+
'earn/redeem-preview': 7.5,
|
|
414
|
+
'earn/saving/products': 7.5,
|
|
415
|
+
'earn/hold-assets': 7.5,
|
|
416
|
+
'earn/promotion/products': 7.5,
|
|
417
|
+
'earn/kcs-staking/products': 7.5,
|
|
418
|
+
'earn/staking/products': 7.5,
|
|
419
|
+
'earn/eth-staking/products': 7.5, // 5EW
|
|
420
|
+
},
|
|
421
|
+
'post': {
|
|
422
|
+
'earn/orders': 7.5, // 5EW
|
|
423
|
+
},
|
|
424
|
+
'delete': {
|
|
425
|
+
'earn/orders': 7.5, // 5EW
|
|
426
|
+
},
|
|
427
|
+
},
|
|
405
428
|
},
|
|
406
429
|
'timeframes': {
|
|
407
430
|
'1m': '1min',
|
|
@@ -4798,6 +4821,9 @@ export default class kucoin extends Exchange {
|
|
|
4798
4821
|
if (api === 'webExchange') {
|
|
4799
4822
|
endpoint = '/' + this.implodeParams(path, params);
|
|
4800
4823
|
}
|
|
4824
|
+
if (api === 'earn') {
|
|
4825
|
+
endpoint = '/api/v1/' + this.implodeParams(path, params);
|
|
4826
|
+
}
|
|
4801
4827
|
const query = this.omit(params, this.extractParams(path));
|
|
4802
4828
|
let endpart = '';
|
|
4803
4829
|
headers = (headers !== undefined) ? headers : {};
|
|
@@ -4816,7 +4842,8 @@ export default class kucoin extends Exchange {
|
|
|
4816
4842
|
const isFuturePrivate = (api === 'futuresPrivate');
|
|
4817
4843
|
const isPrivate = (api === 'private');
|
|
4818
4844
|
const isBroker = (api === 'broker');
|
|
4819
|
-
|
|
4845
|
+
const isEarn = (api === 'earn');
|
|
4846
|
+
if (isPrivate || isFuturePrivate || isBroker || isEarn) {
|
|
4820
4847
|
this.checkRequiredCredentials();
|
|
4821
4848
|
const timestamp = this.nonce().toString();
|
|
4822
4849
|
headers = this.extend({
|
package/js/src/luno.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export default class luno extends Exchange {
|
|
|
28
28
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
29
29
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
30
30
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
31
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<
|
|
31
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
32
32
|
fetchLedgerByEntries(code?: Str, entry?: any, limit?: any, params?: {}): Promise<any>;
|
|
33
33
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
34
34
|
parseLedgerComment(comment: any): {
|
package/js/src/luno.js
CHANGED
|
@@ -964,7 +964,15 @@ export default class luno extends Exchange {
|
|
|
964
964
|
const request = {
|
|
965
965
|
'order_id': id,
|
|
966
966
|
};
|
|
967
|
-
|
|
967
|
+
const response = await this.privatePostStoporder(this.extend(request, params));
|
|
968
|
+
//
|
|
969
|
+
// {
|
|
970
|
+
// "success": true
|
|
971
|
+
// }
|
|
972
|
+
//
|
|
973
|
+
return this.safeOrder({
|
|
974
|
+
'info': response,
|
|
975
|
+
});
|
|
968
976
|
}
|
|
969
977
|
async fetchLedgerByEntries(code = undefined, entry = undefined, limit = undefined, params = {}) {
|
|
970
978
|
// by default without entry number or limit number, return most recent entry
|
package/js/src/lykke.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export default class lykke extends Exchange {
|
|
|
19
19
|
parseOrderStatus(status: Str): string;
|
|
20
20
|
parseOrder(order: Dict, market?: Market): Order;
|
|
21
21
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
22
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<
|
|
23
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<
|
|
22
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
23
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
24
24
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
25
25
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
26
26
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
package/js/src/lykke.js
CHANGED
|
@@ -883,7 +883,10 @@ export default class lykke extends Exchange {
|
|
|
883
883
|
// "error":null
|
|
884
884
|
// }
|
|
885
885
|
//
|
|
886
|
-
|
|
886
|
+
const response = await this.privateDeleteOrdersOrderId(this.extend(request, params));
|
|
887
|
+
return this.safeOrder({
|
|
888
|
+
'info': response,
|
|
889
|
+
});
|
|
887
890
|
}
|
|
888
891
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
889
892
|
/**
|
|
@@ -910,7 +913,12 @@ export default class lykke extends Exchange {
|
|
|
910
913
|
// "error":null
|
|
911
914
|
// }
|
|
912
915
|
//
|
|
913
|
-
|
|
916
|
+
const response = await this.privateDeleteOrders(this.extend(request, params));
|
|
917
|
+
return [
|
|
918
|
+
this.safeOrder({
|
|
919
|
+
'info': response,
|
|
920
|
+
}),
|
|
921
|
+
];
|
|
914
922
|
}
|
|
915
923
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
916
924
|
/**
|
package/js/src/ndax.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default class ndax extends Exchange {
|
|
|
45
45
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
46
46
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
47
47
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
48
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<
|
|
48
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
49
49
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
|
|
50
50
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
51
51
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
package/js/src/ndax.js
CHANGED
|
@@ -1575,7 +1575,11 @@ export default class ndax extends Exchange {
|
|
|
1575
1575
|
// "detail":null
|
|
1576
1576
|
// }
|
|
1577
1577
|
//
|
|
1578
|
-
return
|
|
1578
|
+
return [
|
|
1579
|
+
this.safeOrder({
|
|
1580
|
+
'info': response,
|
|
1581
|
+
}),
|
|
1582
|
+
];
|
|
1579
1583
|
}
|
|
1580
1584
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1581
1585
|
/**
|