kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
144 lines • 4.72 kB
JavaScript
"use strict";
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetRecentClosedOrdersData = void 0;
const class_transformer_1 = require("class-transformer");
class GetRecentClosedOrdersData {
/**
* 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.type = null;
// @ts-ignore
this.side = null;
// @ts-ignore
this.price = null;
// @ts-ignore
this.size = null;
// @ts-ignore
this.value = null;
// @ts-ignore
this.dealValue = null;
// @ts-ignore
this.dealSize = null;
// @ts-ignore
this.stp = null;
// @ts-ignore
this.stop = null;
// @ts-ignore
this.stopPriceType = null;
// @ts-ignore
this.stopTriggered = null;
// @ts-ignore
this.stopPrice = null;
// @ts-ignore
this.timeInForce = null;
// @ts-ignore
this.postOnly = null;
// @ts-ignore
this.hidden = null;
// @ts-ignore
this.iceberg = null;
// @ts-ignore
this.leverage = null;
// @ts-ignore
this.forceHold = null;
// @ts-ignore
this.closeOrder = null;
// @ts-ignore
this.visibleSize = null;
// @ts-ignore
this.clientOid = null;
// @ts-ignore
this.remark = null;
// @ts-ignore
this.tags = null;
// @ts-ignore
this.isActive = null;
// @ts-ignore
this.cancelExist = null;
// @ts-ignore
this.createdAt = null;
// @ts-ignore
this.updatedAt = null;
// @ts-ignore
this.endAt = null;
// @ts-ignore
this.orderTime = null;
// @ts-ignore
this.settleCurrency = null;
// @ts-ignore
this.marginMode = null;
// @ts-ignore
this.avgDealPrice = null;
// @ts-ignore
this.filledSize = null;
// @ts-ignore
this.filledValue = null;
// @ts-ignore
this.status = null;
// @ts-ignore
this.reduceOnly = 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 GetRecentClosedOrdersData(), jsonObject);
}
}
exports.GetRecentClosedOrdersData = GetRecentClosedOrdersData;
(function (GetRecentClosedOrdersData) {
let StopEnum;
(function (StopEnum) {
/**
* Triggers when the price reaches or goes below the stopPrice.
*/
StopEnum[StopEnum["DOWN"] = 'down'] = "DOWN";
/**
* Triggers when the price reaches or goes above the stopPrice.
*/
StopEnum[StopEnum["UP"] = 'up'] = "UP";
/**
* Not a stop order
*/
StopEnum[StopEnum["NONE"] = ''] = "NONE";
})(StopEnum = GetRecentClosedOrdersData.StopEnum || (GetRecentClosedOrdersData.StopEnum = {}));
let StopPriceTypeEnum;
(function (StopPriceTypeEnum) {
/**
* TP for trade price, The last trade price is the last price at which an order was filled. This price can be found in the latest match message.
*/
StopPriceTypeEnum[StopPriceTypeEnum["TRADE_PRICE"] = 'TP'] = "TRADE_PRICE";
/**
* MP for mark price. The mark price can be obtained through relevant OPEN API for index services.
*/
StopPriceTypeEnum[StopPriceTypeEnum["MARK_PRICE"] = 'MP'] = "MARK_PRICE";
/**
* IP for index price. The index price can be obtained through relevant OPEN API for index services.
*/
StopPriceTypeEnum[StopPriceTypeEnum["INDEX_PRICE"] = 'IP'] = "INDEX_PRICE";
/**
* Not a stop order
*/
StopPriceTypeEnum[StopPriceTypeEnum["NONE"] = ''] = "NONE";
})(StopPriceTypeEnum = GetRecentClosedOrdersData.StopPriceTypeEnum || (GetRecentClosedOrdersData.StopPriceTypeEnum = {}));
})(GetRecentClosedOrdersData || (exports.GetRecentClosedOrdersData = GetRecentClosedOrdersData = {}));
//# sourceMappingURL=model_get_recent_closed_orders_data.js.map