UNPKG

kucoin-universal-sdk

Version:
156 lines 4.36 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetOpenOrdersData = void 0; const class_transformer_1 = require("class-transformer"); class GetOpenOrdersData { /** * 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 GetOpenOrdersData(), jsonObject); } } exports.GetOpenOrdersData = GetOpenOrdersData; (function (GetOpenOrdersData) { let TypeEnum; (function (TypeEnum) { /** * */ TypeEnum[TypeEnum["LIMIT"] = 'limit'] = "LIMIT"; /** * */ TypeEnum[TypeEnum["MARKET"] = 'market'] = "MARKET"; })(TypeEnum = GetOpenOrdersData.TypeEnum || (GetOpenOrdersData.TypeEnum = {})); let SideEnum; (function (SideEnum) { /** * */ SideEnum[SideEnum["BUY"] = 'buy'] = "BUY"; /** * */ SideEnum[SideEnum["SELL"] = 'sell'] = "SELL"; })(SideEnum = GetOpenOrdersData.SideEnum || (GetOpenOrdersData.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 = GetOpenOrdersData.StpEnum || (GetOpenOrdersData.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 = GetOpenOrdersData.TimeInForceEnum || (GetOpenOrdersData.TimeInForceEnum = {})); })(GetOpenOrdersData || (exports.GetOpenOrdersData = GetOpenOrdersData = {})); //# sourceMappingURL=model_get_open_orders_data.js.map