UNPKG

kucoin-universal-sdk

Version:
87 lines 2.72 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetPositionsHistoryItems = void 0; const class_transformer_1 = require("class-transformer"); class GetPositionsHistoryItems { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { // @ts-ignore this.closeId = null; // @ts-ignore this.userId = null; // @ts-ignore this.symbol = null; // @ts-ignore this.settleCurrency = null; // @ts-ignore this.leverage = null; // @ts-ignore this.type = null; // @ts-ignore this.pnl = null; // @ts-ignore this.realisedGrossCost = null; // @ts-ignore this.withdrawPnl = null; // @ts-ignore this.tradeFee = null; // @ts-ignore this.fundingFee = null; // @ts-ignore this.openTime = null; // @ts-ignore this.closeTime = null; // @ts-ignore this.openPrice = null; // @ts-ignore this.closePrice = null; // @ts-ignore this.marginMode = null; // @ts-ignore this.realisedGrossCostNew = null; // @ts-ignore this.tax = null; // @ts-ignore this.liquidAmount = null; // @ts-ignore this.liquidPrice = 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 GetPositionsHistoryItems(), jsonObject); } } exports.GetPositionsHistoryItems = GetPositionsHistoryItems; (function (GetPositionsHistoryItems) { let MarginModeEnum; (function (MarginModeEnum) { /** * cross margin */ MarginModeEnum[MarginModeEnum["CROSS"] = 'CROSS'] = "CROSS"; /** * isolated margin */ MarginModeEnum[MarginModeEnum["ISOLATED"] = 'ISOLATED'] = "ISOLATED"; })(MarginModeEnum = GetPositionsHistoryItems.MarginModeEnum || (GetPositionsHistoryItems.MarginModeEnum = {})); })(GetPositionsHistoryItems || (exports.GetPositionsHistoryItems = GetPositionsHistoryItems = {})); //# sourceMappingURL=model_get_positions_history_items.js.map