UNPKG

kucoin-universal-sdk

Version:
235 lines 7.58 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetSymbolResp = void 0; const class_transformer_1 = require("class-transformer"); const common_1 = require("../../../model/common"); class GetSymbolResp { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { // @ts-ignore this.symbol = null; // @ts-ignore this.rootSymbol = null; // @ts-ignore this.type = null; // @ts-ignore this.firstOpenDate = null; // @ts-ignore this.expireDate = null; // @ts-ignore this.settleDate = null; // @ts-ignore this.baseCurrency = null; // @ts-ignore this.quoteCurrency = null; // @ts-ignore this.settleCurrency = null; // @ts-ignore this.maxOrderQty = null; // @ts-ignore this.maxPrice = null; // @ts-ignore this.lotSize = null; // @ts-ignore this.tickSize = null; // @ts-ignore this.indexPriceTickSize = null; // @ts-ignore this.multiplier = null; // @ts-ignore this.initialMargin = null; // @ts-ignore this.maintainMargin = null; // @ts-ignore this.maxRiskLimit = null; // @ts-ignore this.minRiskLimit = null; // @ts-ignore this.riskStep = null; // @ts-ignore this.makerFeeRate = null; // @ts-ignore this.takerFeeRate = null; // @ts-ignore this.takerFixFee = null; // @ts-ignore this.makerFixFee = null; // @ts-ignore this.settlementFee = null; // @ts-ignore this.isDeleverage = null; // @ts-ignore this.isQuanto = null; // @ts-ignore this.isInverse = null; // @ts-ignore this.markMethod = null; // @ts-ignore this.fairMethod = null; // @ts-ignore this.fundingBaseSymbol = null; // @ts-ignore this.fundingQuoteSymbol = null; // @ts-ignore this.fundingRateSymbol = null; // @ts-ignore this.indexSymbol = null; // @ts-ignore this.settlementSymbol = null; // @ts-ignore this.status = null; // @ts-ignore this.fundingFeeRate = null; // @ts-ignore this.predictedFundingFeeRate = null; // @ts-ignore this.fundingRateGranularity = null; // @ts-ignore this.openInterest = null; // @ts-ignore this.turnoverOf24h = null; // @ts-ignore this.volumeOf24h = null; // @ts-ignore this.markPrice = null; // @ts-ignore this.indexPrice = null; // @ts-ignore this.lastTradePrice = null; // @ts-ignore this.nextFundingRateTime = null; // @ts-ignore this.maxLeverage = null; // @ts-ignore this.sourceExchanges = null; // @ts-ignore this.premiumsSymbol1M = null; // @ts-ignore this.premiumsSymbol8H = null; // @ts-ignore this.fundingBaseSymbol1M = null; // @ts-ignore this.fundingQuoteSymbol1M = null; // @ts-ignore this.lowPrice = null; // @ts-ignore this.highPrice = null; // @ts-ignore this.priceChgPct = null; // @ts-ignore this.priceChg = null; // @ts-ignore this.k = null; // @ts-ignore this.m = null; // @ts-ignore this.f = null; // @ts-ignore this.mmrLimit = null; // @ts-ignore this.mmrLevConstant = null; // @ts-ignore this.supportCross = null; // @ts-ignore this.buyLimit = null; // @ts-ignore this.sellLimit = null; } setCommonResponse(response) { this.commonResponse = response; } /** * 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 GetSymbolResp(), jsonObject); } } exports.GetSymbolResp = GetSymbolResp; __decorate([ (0, class_transformer_1.Exclude)(), __metadata("design:type", common_1.RestResponse) ], GetSymbolResp.prototype, "commonResponse", void 0); (function (GetSymbolResp) { let TypeEnum; (function (TypeEnum) { /** * Standardized swap contracts, standard financial futures on swaps, expiration swap funding rates */ TypeEnum[TypeEnum["FFWCSX"] = 'FFWCSX'] = "FFWCSX"; /** * Futures Contract */ TypeEnum[TypeEnum["FFICSX"] = 'FFICSX'] = "FFICSX"; })(TypeEnum = GetSymbolResp.TypeEnum || (GetSymbolResp.TypeEnum = {})); let MarkMethodEnum; (function (MarkMethodEnum) { /** * FairPrice */ MarkMethodEnum[MarkMethodEnum["FAIRPRICE"] = 'FairPrice'] = "FAIRPRICE"; })(MarkMethodEnum = GetSymbolResp.MarkMethodEnum || (GetSymbolResp.MarkMethodEnum = {})); let FairMethodEnum; (function (FairMethodEnum) { /** * FundingRate */ FairMethodEnum[FairMethodEnum["FUNDINGRATE"] = 'FundingRate'] = "FUNDINGRATE"; })(FairMethodEnum = GetSymbolResp.FairMethodEnum || (GetSymbolResp.FairMethodEnum = {})); let StatusEnum; (function (StatusEnum) { /** * Initial */ StatusEnum[StatusEnum["INIT"] = 'Init'] = "INIT"; /** * Online */ StatusEnum[StatusEnum["OPEN"] = 'Open'] = "OPEN"; /** * Settling */ StatusEnum[StatusEnum["BEINGSETTLED"] = 'BeingSettled'] = "BEINGSETTLED"; /** * Settled */ StatusEnum[StatusEnum["SETTLED"] = 'Settled'] = "SETTLED"; /** * Suspended */ StatusEnum[StatusEnum["PAUSED"] = 'Paused'] = "PAUSED"; /** * Offline */ StatusEnum[StatusEnum["CLOSED"] = 'Closed'] = "CLOSED"; /** * Orders can only be canceled */ StatusEnum[StatusEnum["CANCELONLY"] = 'CancelOnly'] = "CANCELONLY"; })(StatusEnum = GetSymbolResp.StatusEnum || (GetSymbolResp.StatusEnum = {})); })(GetSymbolResp || (exports.GetSymbolResp = GetSymbolResp = {})); //# sourceMappingURL=model_get_symbol_resp.js.map