UNPKG

kucoin-universal-sdk

Version:
67 lines 1.99 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetAllTickersData = void 0; const class_transformer_1 = require("class-transformer"); class GetAllTickersData { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { // @ts-ignore this.sequence = null; // @ts-ignore this.symbol = null; // @ts-ignore this.side = null; // @ts-ignore this.size = null; // @ts-ignore this.tradeId = null; // @ts-ignore this.price = null; // @ts-ignore this.bestBidPrice = null; // @ts-ignore this.bestBidSize = null; // @ts-ignore this.bestAskPrice = null; // @ts-ignore this.bestAskSize = null; // @ts-ignore this.ts = null; } /** * Convert the object to a JSON string. */ toJson() { return JSON.stringify((0, class_transformer_1.instanceToPlain)(this)); } /** * Create an object from a JSON string. */ static fromJson(input) { return this.fromObject(JSON.parse(input)); } /** * Create an object from Js Object. */ static fromObject(jsonObject) { return (0, class_transformer_1.plainToClassFromExist)(new GetAllTickersData(), jsonObject); } } exports.GetAllTickersData = GetAllTickersData; (function (GetAllTickersData) { let SideEnum; (function (SideEnum) { /** * */ SideEnum[SideEnum["BUY"] = 'buy'] = "BUY"; /** * */ SideEnum[SideEnum["SELL"] = 'sell'] = "SELL"; })(SideEnum = GetAllTickersData.SideEnum || (GetAllTickersData.SideEnum = {})); })(GetAllTickersData || (exports.GetAllTickersData = GetAllTickersData = {})); //# sourceMappingURL=model_get_all_tickers_data.js.map