UNPKG

kucoin-universal-sdk

Version:
32 lines 1.2 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.MarginPublicWSImpl = void 0; const model_index_price_event_1 = require("./model_index_price_event"); const model_mark_price_event_1 = require("./model_mark_price_event"); class MarginPublicWSImpl { constructor(wsService) { this.wsService = wsService; } indexPrice(symbol, callback) { let topicPrefix = '/indicator/index'; let args = symbol; return this.wsService.subscribe(topicPrefix, args, new model_index_price_event_1.IndexPriceEventCallbackWrapper(callback)); } markPrice(symbol, callback) { let topicPrefix = '/indicator/markPrice'; let args = symbol; return this.wsService.subscribe(topicPrefix, args, new model_mark_price_event_1.MarkPriceEventCallbackWrapper(callback)); } unSubscribe(id) { return this.wsService.unsubscribe(id); } start() { return this.wsService.start(); } stop() { return this.wsService.stop(); } } exports.MarginPublicWSImpl = MarginPublicWSImpl; //# sourceMappingURL=api_margin_public.js.map