kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
156 lines • 4.42 kB
JavaScript
"use strict";
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetClosedOrdersItems = void 0;
const class_transformer_1 = require("class-transformer");
class GetClosedOrdersItems {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() {
// @ts-ignore
this.id = null;
// @ts-ignore
this.symbol = null;
// @ts-ignore
this.opType = null;
// @ts-ignore
this.type = null;
// @ts-ignore
this.side = null;
// @ts-ignore
this.price = null;
// @ts-ignore
this.size = null;
// @ts-ignore
this.funds = null;
// @ts-ignore
this.dealSize = null;
// @ts-ignore
this.dealFunds = null;
// @ts-ignore
this.fee = null;
// @ts-ignore
this.feeCurrency = null;
// @ts-ignore
this.timeInForce = null;
// @ts-ignore
this.postOnly = null;
// @ts-ignore
this.hidden = null;
// @ts-ignore
this.iceberg = null;
// @ts-ignore
this.visibleSize = null;
// @ts-ignore
this.cancelAfter = null;
// @ts-ignore
this.channel = null;
// @ts-ignore
this.clientOid = null;
// @ts-ignore
this.cancelExist = null;
// @ts-ignore
this.createdAt = null;
// @ts-ignore
this.lastUpdatedAt = null;
// @ts-ignore
this.tradeType = null;
// @ts-ignore
this.inOrderBook = null;
// @ts-ignore
this.cancelledSize = null;
// @ts-ignore
this.cancelledFunds = null;
// @ts-ignore
this.remainSize = null;
// @ts-ignore
this.remainFunds = null;
// @ts-ignore
this.tax = null;
// @ts-ignore
this.active = 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 GetClosedOrdersItems(), jsonObject);
}
}
exports.GetClosedOrdersItems = GetClosedOrdersItems;
(function (GetClosedOrdersItems) {
let TypeEnum;
(function (TypeEnum) {
/**
*
*/
TypeEnum[TypeEnum["LIMIT"] = 'limit'] = "LIMIT";
/**
*
*/
TypeEnum[TypeEnum["MARKET"] = 'market'] = "MARKET";
})(TypeEnum = GetClosedOrdersItems.TypeEnum || (GetClosedOrdersItems.TypeEnum = {}));
let SideEnum;
(function (SideEnum) {
/**
*
*/
SideEnum[SideEnum["BUY"] = 'buy'] = "BUY";
/**
*
*/
SideEnum[SideEnum["SELL"] = 'sell'] = "SELL";
})(SideEnum = GetClosedOrdersItems.SideEnum || (GetClosedOrdersItems.SideEnum = {}));
let StpEnum;
(function (StpEnum) {
/**
*
*/
StpEnum[StpEnum["DC"] = 'DC'] = "DC";
/**
*
*/
StpEnum[StpEnum["CO"] = 'CO'] = "CO";
/**
*
*/
StpEnum[StpEnum["CN"] = 'CN'] = "CN";
/**
*
*/
StpEnum[StpEnum["CB"] = 'CB'] = "CB";
})(StpEnum = GetClosedOrdersItems.StpEnum || (GetClosedOrdersItems.StpEnum = {}));
let TimeInForceEnum;
(function (TimeInForceEnum) {
/**
*
*/
TimeInForceEnum[TimeInForceEnum["GTC"] = 'GTC'] = "GTC";
/**
*
*/
TimeInForceEnum[TimeInForceEnum["GTT"] = 'GTT'] = "GTT";
/**
*
*/
TimeInForceEnum[TimeInForceEnum["IOC"] = 'IOC'] = "IOC";
/**
*
*/
TimeInForceEnum[TimeInForceEnum["FOK"] = 'FOK'] = "FOK";
})(TimeInForceEnum = GetClosedOrdersItems.TimeInForceEnum || (GetClosedOrdersItems.TimeInForceEnum = {}));
})(GetClosedOrdersItems || (exports.GetClosedOrdersItems = GetClosedOrdersItems = {}));
//# sourceMappingURL=model_get_closed_orders_items.js.map