node-kraken-api
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import WebSocket from "ws"; | ||
export declare const _USER_AGENT = "node-kraken-api/2.2.0"; | ||
export declare const _USER_AGENT = "node-kraken-api/2.2.1"; | ||
export declare const _REST_HOSTNAME = "api.kraken.com"; | ||
@@ -8,0 +8,0 @@ export declare const _WS_PUB_HOSTNAME = "ws.kraken.com"; |
170
index.js
@@ -45,3 +45,3 @@ "use strict"; | ||
const ws_1 = __importDefault(require("ws")); | ||
exports._USER_AGENT = "node-kraken-api/2.2.0"; | ||
exports._USER_AGENT = "node-kraken-api/2.2.1"; | ||
exports._REST_HOSTNAME = "api.kraken.com"; | ||
@@ -556,21 +556,26 @@ exports._WS_PUB_HOSTNAME = "ws.kraken.com"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve) => { | ||
const reqid = (0, exports._GENNONCE)(); | ||
let prevreqid = request.reqid; | ||
const responses = []; | ||
const resolver = new _CountTrigger(nResponses, () => { | ||
this.off("dict", l); | ||
resolve(responses); | ||
}); | ||
const l = (o) => { | ||
if (prevreqid) | ||
o.reqid = prevreqid; | ||
responses.push(o); | ||
resolver.fireWhenReady(); | ||
}; | ||
this.on("dict", l, { | ||
protect: true, | ||
filter: (args) => args[0].reqid === reqid, | ||
}); | ||
this.write(JSON.stringify(Object.assign(Object.assign({}, request), { reqid }))); | ||
return new Promise((resolve, reject) => { | ||
try { | ||
const reqid = (0, exports._GENNONCE)(); | ||
let prevreqid = request.reqid; | ||
const responses = []; | ||
const resolver = new _CountTrigger(nResponses, () => { | ||
this.off("dict", l); | ||
resolve(responses); | ||
}); | ||
const l = (o) => { | ||
if (prevreqid) | ||
o.reqid = prevreqid; | ||
responses.push(o); | ||
resolver.fireWhenReady(); | ||
}; | ||
this.on("dict", l, { | ||
protect: true, | ||
filter: (args) => args[0].reqid === reqid, | ||
}); | ||
this.write(JSON.stringify(Object.assign(Object.assign({}, request), { reqid }))); | ||
} | ||
catch (e) { | ||
reject(e); | ||
} | ||
}); | ||
@@ -724,17 +729,26 @@ }); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve) => { | ||
const request = { | ||
event: "subscribe", | ||
reqid: this._reqid, | ||
subscription: Object.assign(Object.assign({}, this.options), { name: this.name }), | ||
}; | ||
if (pair) { | ||
request.pair = [pair, ...pairs]; | ||
const resolver = new _CountTrigger(request.pair.length, () => resolve(this)); | ||
request.pair.forEach((p) => this._mksub(p).then(() => resolver.fireWhenReady())); | ||
return new Promise((resolve, reject) => { | ||
try { | ||
const request = { | ||
event: "subscribe", | ||
reqid: this._reqid, | ||
subscription: Object.assign(Object.assign({}, this.options), { name: this.name }), | ||
}; | ||
if (pair) { | ||
request.pair = [pair, ...pairs]; | ||
const resolver = new _CountTrigger(request.pair.length, () => resolve(this)); | ||
request.pair.forEach((p) => this._mksub(p) | ||
.then(() => resolver.fireWhenReady()) | ||
.catch(reject)); | ||
} | ||
else { | ||
this._mksub() | ||
.then(() => resolve(this)) | ||
.catch(reject); | ||
} | ||
this._con.write(JSON.stringify(request)); | ||
} | ||
else { | ||
this._mksub().then(() => resolve(this)); | ||
catch (e) { | ||
reject(e); | ||
} | ||
this._con.write(JSON.stringify(request)); | ||
}); | ||
@@ -745,17 +759,26 @@ }); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve) => { | ||
const request = { | ||
event: "unsubscribe", | ||
reqid: this._reqid, | ||
subscription: Object.assign(Object.assign({}, this.options), { name: this.name }), | ||
}; | ||
if (pair) { | ||
request.pair = [pair, ...pairs]; | ||
const resolver = new _CountTrigger(request.pair.length, () => resolve(this)); | ||
request.pair.forEach((p) => this._rmsub(p).then(() => resolver.fireWhenReady())); | ||
return new Promise((resolve, reject) => { | ||
try { | ||
const request = { | ||
event: "unsubscribe", | ||
reqid: this._reqid, | ||
subscription: Object.assign(Object.assign({}, this.options), { name: this.name }), | ||
}; | ||
if (pair) { | ||
request.pair = [pair, ...pairs]; | ||
const resolver = new _CountTrigger(request.pair.length, () => resolve(this)); | ||
request.pair.forEach((p) => this._rmsub(p) | ||
.then(() => resolver.fireWhenReady()) | ||
.catch(reject)); | ||
} | ||
else { | ||
this._rmsub() | ||
.then(() => resolve(this)) | ||
.catch(reject); | ||
} | ||
this._con.write(JSON.stringify(request)); | ||
} | ||
else { | ||
this._rmsub().then(() => resolve(this)); | ||
catch (e) { | ||
reject(e); | ||
} | ||
this._con.write(JSON.stringify(request)); | ||
}); | ||
@@ -765,27 +788,37 @@ }); | ||
_mksub(pair) { | ||
return new Promise((resolve) => { | ||
const protect = { protect: true }; | ||
const sub = new Subscription(this._con, this._reqid, pair); | ||
const onstatus = (status) => this.emit("status", status); | ||
const onerror = (error) => this.emit("error", error, sub.status); | ||
const onpayload = (payload) => this.emit("payload", payload, sub.status); | ||
sub | ||
.once("created", () => { | ||
this.subscriptions.add(sub); | ||
resolve(); | ||
}, protect) | ||
.once("destroyed", () => { | ||
this.subscriptions.delete(sub); | ||
sub.off("status", onstatus).off("error", onerror).off("payload", onpayload); | ||
}, protect) | ||
.on("status", onstatus, protect) | ||
.on("error", onerror, protect) | ||
.on("payload", onpayload, protect); | ||
return new Promise((resolve, reject) => { | ||
try { | ||
const protect = { protect: true }; | ||
const sub = new Subscription(this._con, this._reqid, pair); | ||
const onstatus = (status) => this.emit("status", status); | ||
const onerror = (error) => this.emit("error", error, sub.status); | ||
const onpayload = (payload) => this.emit("payload", payload, sub.status); | ||
sub | ||
.once("created", () => { | ||
this.subscriptions.add(sub); | ||
resolve(); | ||
}, protect) | ||
.once("destroyed", () => { | ||
this.subscriptions.delete(sub); | ||
sub.off("status", onstatus).off("error", onerror).off("payload", onpayload); | ||
}, protect) | ||
.on("status", onstatus, protect) | ||
.on("error", onerror, protect) | ||
.on("payload", onpayload, protect); | ||
} | ||
catch (e) { | ||
reject(e); | ||
} | ||
}); | ||
} | ||
_rmsub(pair) { | ||
return new Promise((resolve) => { | ||
for (const sub of this.subscriptions) | ||
if (sub.status.pair === pair) | ||
sub.once("destroyed", () => resolve(), { protect: true }); | ||
return new Promise((resolve, reject) => { | ||
try { | ||
for (const sub of this.subscriptions) | ||
if (sub.status.pair === pair) | ||
sub.once("destroyed", () => resolve(), { protect: true }); | ||
} | ||
catch (e) { | ||
reject(e); | ||
} | ||
}); | ||
@@ -1040,2 +1073,3 @@ } | ||
"User-Agent": exports._USER_AGENT, | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
}; | ||
@@ -1042,0 +1076,0 @@ if (options) { |
{ | ||
"name": "node-kraken-api", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "a typed REST/WS Node.JS client for the Kraken cryptocurrency exchange", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
150
README.md
@@ -1,2 +0,2 @@ | ||
[![](https://github.com/jpcx/node-kraken-api/blob/2.2.0/logo.png)](#) | ||
[![](https://github.com/jpcx/node-kraken-api/blob/2.2.1/logo.png)](#) | ||
@@ -30,3 +30,3 @@ [![](https://img.shields.io/github/issues/jpcx/node-kraken-api)](#) | ||
[CHANGELOG](https://github.com/jpcx/node-kraken-api/blob/2.2.0/CHANGELOG.md) | [Synopsis](#synopsis) | [Usage](#usage) | [Code](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts) | | ||
[CHANGELOG](https://github.com/jpcx/node-kraken-api/blob/2.2.1/CHANGELOG.md) | [Synopsis](#synopsis) | [Usage](#usage) | [Code](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts) | | ||
| --- | --- | --- | --- | | ||
@@ -79,3 +79,3 @@ | ||
- Errors have changed to named classes. Please review [the synopsis](https://github.com/jpcx/node-kraken-api/blob/2.2.0/README.md#synopsis). | ||
- Errors have changed to named classes. Please review [the synopsis](https://github.com/jpcx/node-kraken-api/blob/2.2.1/README.md#synopsis). | ||
@@ -124,78 +124,78 @@ #### Upgrade Guide | ||
- [`.request()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L195) | ||
- [`.time()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L249) | ||
- [`.systemStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L256) | ||
- [`.assets()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L263) | ||
- [`.assetPairs()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L285) | ||
- [`.ticker()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L311) | ||
- [`.ohlc()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L328) | ||
- [`.depth()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L356) | ||
- [`.trades()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L379) | ||
- [`.spread()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L401) | ||
- [`.getWebSocketsToken()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L424) | ||
- [`.balance()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L431) | ||
- [`.tradeBalance()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L438) | ||
- [`.openOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L455) | ||
- [`.closedOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L476) | ||
- [`.queryOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L513) | ||
- [`.tradesHistory()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L538) | ||
- [`.queryTrades()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L571) | ||
- [`.openPositions()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L591) | ||
- [`.ledgers()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L615) | ||
- [`.queryLedgers()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L654) | ||
- [`.tradeVolume()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L674) | ||
- [`.addExport()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L694) | ||
- [`.exportStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L734) | ||
- [`.retrieveExport()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L750) | ||
- [`.removeExport()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L766) | ||
- [`.addOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L787) | ||
- [`.cancelOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L881) | ||
- [`.cancelAll()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L897) | ||
- [`.cancelAllOrdersAfter()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L905) | ||
- [`.depositMethods()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L921) | ||
- [`.depositAddresses()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L937) | ||
- [`.depositStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L961) | ||
- [`.withdrawInfo()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L981) | ||
- [`.withdrawStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1029) | ||
- [`.withdrawCancel()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1049) | ||
- [`.walletTransfer()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1069) | ||
- [`.stake()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1098) | ||
- [`.unstake()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1123) | ||
- [`.stakingAssets()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1145) | ||
- [`.stakingPending()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1154) | ||
- [`.stakingTransactions()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1163) | ||
- [`.ws.ticker()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1188) | ||
- [`.ws.ohlc()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1211) | ||
- [`.ws.trade()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1234) | ||
- [`.ws.spread()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1253) | ||
- [`.ws.book()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1272) | ||
- [`.ws.ownTrades()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1347) | ||
- [`.ws.openOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1372) | ||
- [`.ws.addOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1397) | ||
- [`.ws.cancelOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1451) | ||
- [`.ws.cancelAll()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1467) | ||
- [`.ws.cancelAllOrdersAfter()`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1487) | ||
- [`.request()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L195) | ||
- [`.time()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L249) | ||
- [`.systemStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L256) | ||
- [`.assets()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L263) | ||
- [`.assetPairs()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L285) | ||
- [`.ticker()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L311) | ||
- [`.ohlc()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L328) | ||
- [`.depth()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L356) | ||
- [`.trades()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L379) | ||
- [`.spread()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L401) | ||
- [`.getWebSocketsToken()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L424) | ||
- [`.balance()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L431) | ||
- [`.tradeBalance()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L438) | ||
- [`.openOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L455) | ||
- [`.closedOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L476) | ||
- [`.queryOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L513) | ||
- [`.tradesHistory()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L538) | ||
- [`.queryTrades()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L571) | ||
- [`.openPositions()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L591) | ||
- [`.ledgers()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L615) | ||
- [`.queryLedgers()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L654) | ||
- [`.tradeVolume()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L674) | ||
- [`.addExport()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L694) | ||
- [`.exportStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L734) | ||
- [`.retrieveExport()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L750) | ||
- [`.removeExport()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L766) | ||
- [`.addOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L787) | ||
- [`.cancelOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L881) | ||
- [`.cancelAll()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L897) | ||
- [`.cancelAllOrdersAfter()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L905) | ||
- [`.depositMethods()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L921) | ||
- [`.depositAddresses()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L937) | ||
- [`.depositStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L961) | ||
- [`.withdrawInfo()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L981) | ||
- [`.withdrawStatus()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1029) | ||
- [`.withdrawCancel()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1049) | ||
- [`.walletTransfer()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1069) | ||
- [`.stake()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1098) | ||
- [`.unstake()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1123) | ||
- [`.stakingAssets()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1145) | ||
- [`.stakingPending()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1154) | ||
- [`.stakingTransactions()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1163) | ||
- [`.ws.ticker()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1188) | ||
- [`.ws.ohlc()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1211) | ||
- [`.ws.trade()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1234) | ||
- [`.ws.spread()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1253) | ||
- [`.ws.book()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1272) | ||
- [`.ws.ownTrades()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1347) | ||
- [`.ws.openOrders()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1372) | ||
- [`.ws.addOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1397) | ||
- [`.ws.cancelOrder()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1451) | ||
- [`.ws.cancelAll()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1467) | ||
- [`.ws.cancelAllOrdersAfter()`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1487) | ||
### Properties | ||
- [`.ws`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1170) | ||
- [`.ws.pub`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1174) | ||
- [`.ws.priv`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1176) | ||
- [`.ws`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1170) | ||
- [`.ws.pub`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1174) | ||
- [`.ws.priv`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1176) | ||
### Classes | ||
- [`Kraken`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L122) | ||
- [`Kraken.InternalError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1510) | ||
- [`Kraken.UnknownError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1517) | ||
- [`Kraken.ArgumentError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1527) | ||
- [`Kraken.SettingsError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1534) | ||
- [`Kraken.JSONParseError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1541) | ||
- [`Kraken.BufferParseError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1551) | ||
- [`Kraken.HTTPRequestError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1561) | ||
- [`Kraken.RESTAPIError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1577) | ||
- [`Kraken.TimeoutError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1587) | ||
- [`Kraken.WSAPIError`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L1594) | ||
- [`Kraken.WS.Connection`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L4390) | ||
- [`Kraken.WS.Subscriber`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L4691) | ||
- [`Kraken.WS.Subscription`](https://github.com/jpcx/node-kraken-api/blob/2.2.0/index.ts#L4853) | ||
- [`Kraken`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L122) | ||
- [`Kraken.InternalError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1510) | ||
- [`Kraken.UnknownError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1517) | ||
- [`Kraken.ArgumentError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1527) | ||
- [`Kraken.SettingsError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1534) | ||
- [`Kraken.JSONParseError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1541) | ||
- [`Kraken.BufferParseError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1551) | ||
- [`Kraken.HTTPRequestError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1561) | ||
- [`Kraken.RESTAPIError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1577) | ||
- [`Kraken.TimeoutError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1587) | ||
- [`Kraken.WSAPIError`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L1594) | ||
- [`Kraken.WS.Connection`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L4390) | ||
- [`Kraken.WS.Subscriber`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L4691) | ||
- [`Kraken.WS.Subscription`](https://github.com/jpcx/node-kraken-api/blob/2.2.1/index.ts#L4853) | ||
@@ -234,3 +234,3 @@ </details> | ||
gennonce?: () => number; | ||
/** Connection timeout. */ | ||
/** Connection timeout (default 1000). */ | ||
timeout?: number; | ||
@@ -363,2 +363,2 @@ }); | ||
This project is licensed under the MIT License - see the [LICENSE](https://github.com/jpcx/node-kraken-api/blob/2.2.0/LICENSE) file for details | ||
This project is licensed under the MIT License - see the [LICENSE](https://github.com/jpcx/node-kraken-api/blob/2.2.1/LICENSE) file for details |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115586
2665