kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
44 lines • 1.76 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpotPrivateWSImpl = void 0;
const model_order_v2_event_1 = require("./model_order_v2_event");
const model_stop_order_event_1 = require("./model_stop_order_event");
const model_account_event_1 = require("./model_account_event");
const model_order_v1_event_1 = require("./model_order_v1_event");
class SpotPrivateWSImpl {
constructor(wsService) {
this.wsService = wsService;
}
account(callback) {
let topicPrefix = '/account/balance';
let args = [];
return this.wsService.subscribe(topicPrefix, args, new model_account_event_1.AccountEventCallbackWrapper(callback));
}
orderV1(callback) {
let topicPrefix = '/spotMarket/tradeOrders';
let args = [];
return this.wsService.subscribe(topicPrefix, args, new model_order_v1_event_1.OrderV1EventCallbackWrapper(callback));
}
orderV2(callback) {
let topicPrefix = '/spotMarket/tradeOrdersV2';
let args = [];
return this.wsService.subscribe(topicPrefix, args, new model_order_v2_event_1.OrderV2EventCallbackWrapper(callback));
}
stopOrder(callback) {
let topicPrefix = '/spotMarket/advancedOrders';
let args = [];
return this.wsService.subscribe(topicPrefix, args, new model_stop_order_event_1.StopOrderEventCallbackWrapper(callback));
}
unSubscribe(id) {
return this.wsService.unsubscribe(id);
}
start() {
return this.wsService.start();
}
stop() {
return this.wsService.stop();
}
}
exports.SpotPrivateWSImpl = SpotPrivateWSImpl;
//# sourceMappingURL=api_spot_private.js.map