kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
107 lines • 3.16 kB
JavaScript
"use strict";
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetTradeHistoryItems = void 0;
const class_transformer_1 = require("class-transformer");
class GetTradeHistoryItems {
/**
* 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.tradeId = null;
// @ts-ignore
this.orderId = null;
// @ts-ignore
this.counterOrderId = null;
// @ts-ignore
this.side = null;
// @ts-ignore
this.liquidity = null;
// @ts-ignore
this.forceTaker = null;
// @ts-ignore
this.price = null;
// @ts-ignore
this.size = null;
// @ts-ignore
this.funds = null;
// @ts-ignore
this.fee = null;
// @ts-ignore
this.feeRate = null;
// @ts-ignore
this.feeCurrency = null;
// @ts-ignore
this.stop = null;
// @ts-ignore
this.tradeType = null;
// @ts-ignore
this.tax = null;
// @ts-ignore
this.taxRate = null;
// @ts-ignore
this.type = null;
// @ts-ignore
this.createdAt = 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 GetTradeHistoryItems(), jsonObject);
}
}
exports.GetTradeHistoryItems = GetTradeHistoryItems;
(function (GetTradeHistoryItems) {
let SideEnum;
(function (SideEnum) {
/**
*
*/
SideEnum[SideEnum["BUY"] = 'buy'] = "BUY";
/**
*
*/
SideEnum[SideEnum["SELL"] = 'sell'] = "SELL";
})(SideEnum = GetTradeHistoryItems.SideEnum || (GetTradeHistoryItems.SideEnum = {}));
let LiquidityEnum;
(function (LiquidityEnum) {
/**
*
*/
LiquidityEnum[LiquidityEnum["TAKER"] = 'taker'] = "TAKER";
/**
*
*/
LiquidityEnum[LiquidityEnum["MAKER"] = 'maker'] = "MAKER";
})(LiquidityEnum = GetTradeHistoryItems.LiquidityEnum || (GetTradeHistoryItems.LiquidityEnum = {}));
let TypeEnum;
(function (TypeEnum) {
/**
*
*/
TypeEnum[TypeEnum["LIMIT"] = 'limit'] = "LIMIT";
/**
*
*/
TypeEnum[TypeEnum["MARKET"] = 'market'] = "MARKET";
})(TypeEnum = GetTradeHistoryItems.TypeEnum || (GetTradeHistoryItems.TypeEnum = {}));
})(GetTradeHistoryItems || (exports.GetTradeHistoryItems = GetTradeHistoryItems = {}));
//# sourceMappingURL=model_get_trade_history_items.js.map