kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
63 lines • 1.92 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetTradeHistoryData = void 0;
const class_transformer_1 = require("class-transformer");
class GetTradeHistoryData {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() {
// @ts-ignore
this.sequence = null;
// @ts-ignore
this.contractId = null;
// @ts-ignore
this.tradeId = null;
// @ts-ignore
this.makerOrderId = null;
// @ts-ignore
this.takerOrderId = null;
// @ts-ignore
this.ts = null;
// @ts-ignore
this.size = null;
// @ts-ignore
this.price = null;
// @ts-ignore
this.side = 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 GetTradeHistoryData(), jsonObject);
}
}
exports.GetTradeHistoryData = GetTradeHistoryData;
(function (GetTradeHistoryData) {
let SideEnum;
(function (SideEnum) {
/**
* buy
*/
SideEnum[SideEnum["BUY"] = 'buy'] = "BUY";
/**
* sell
*/
SideEnum[SideEnum["SELL"] = 'sell'] = "SELL";
})(SideEnum = GetTradeHistoryData.SideEnum || (GetTradeHistoryData.SideEnum = {}));
})(GetTradeHistoryData || (exports.GetTradeHistoryData = GetTradeHistoryData = {}));
//# sourceMappingURL=model_get_trade_history_data.js.map