kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
125 lines • 3.52 kB
JavaScript
"use strict";
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.SymbolSnapshotData = void 0;
const class_transformer_1 = require("class-transformer");
class SymbolSnapshotData {
constructor() {
// @ts-ignore
this.askSize = null;
// @ts-ignore
this.averagePrice = null;
// @ts-ignore
this.baseCurrency = null;
// @ts-ignore
this.bidSize = null;
// @ts-ignore
this.board = null;
// @ts-ignore
this.buy = null;
// @ts-ignore
this.changePrice = null;
// @ts-ignore
this.changeRate = null;
// @ts-ignore
this.close = null;
// @ts-ignore
this.datetime = null;
// @ts-ignore
this.high = null;
// @ts-ignore
this.lastTradedPrice = null;
// @ts-ignore
this.low = null;
// @ts-ignore
this.makerCoefficient = null;
// @ts-ignore
this.makerFeeRate = null;
// @ts-ignore
this.marginTrade = null;
// @ts-ignore
this.mark = null;
// @ts-ignore
this.market = null;
// @ts-ignore
this.marketChange1h = null;
// @ts-ignore
this.marketChange24h = null;
// @ts-ignore
this.marketChange4h = null;
// @ts-ignore
this.markets = null;
// @ts-ignore
this.open = null;
// @ts-ignore
this.quoteCurrency = null;
// @ts-ignore
this.sell = null;
// @ts-ignore
this.siteTypes = null;
// @ts-ignore
this.sort = null;
// @ts-ignore
this.symbol = null;
// @ts-ignore
this.symbolCode = null;
// @ts-ignore
this.takerCoefficient = null;
// @ts-ignore
this.takerFeeRate = null;
// @ts-ignore
this.trading = null;
// @ts-ignore
this.vol = null;
// @ts-ignore
this.volValue = 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 SymbolSnapshotData(), jsonObject);
}
}
exports.SymbolSnapshotData = SymbolSnapshotData;
(function (SymbolSnapshotData) {
let BoardEnum;
(function (BoardEnum) {
/**
* primary partition
*/
BoardEnum[BoardEnum["_0"] = 0] = "_0";
/**
* KuCoin Plus
*/
BoardEnum[BoardEnum["_1"] = 1] = "_1";
})(BoardEnum = SymbolSnapshotData.BoardEnum || (SymbolSnapshotData.BoardEnum = {}));
let MarkEnum;
(function (MarkEnum) {
/**
* default
*/
MarkEnum[MarkEnum["_0"] = 0] = "_0";
/**
* ST
*/
MarkEnum[MarkEnum["_1"] = 1] = "_1";
/**
* NEW
*/
MarkEnum[MarkEnum["_2"] = 2] = "_2";
})(MarkEnum = SymbolSnapshotData.MarkEnum || (SymbolSnapshotData.MarkEnum = {}));
})(SymbolSnapshotData || (exports.SymbolSnapshotData = SymbolSnapshotData = {}));
//# sourceMappingURL=model_symbol_snapshot_data.js.map