kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
114 lines • 3.6 kB
JavaScript
"use strict";
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetPrivateFundingHistoryReqBuilder = exports.GetPrivateFundingHistoryReq = void 0;
const class_transformer_1 = require("class-transformer");
class GetPrivateFundingHistoryReq {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() { }
/**
* Creates a new instance of the `GetPrivateFundingHistoryReq` class.
* The builder pattern allows step-by-step construction of a `GetPrivateFundingHistoryReq` object.
*/
static builder() {
return new GetPrivateFundingHistoryReqBuilder(new GetPrivateFundingHistoryReq());
}
/**
* Creates a new instance of the `GetPrivateFundingHistoryReq` class with the given data.
*/
static create(data) {
let obj = new GetPrivateFundingHistoryReq();
obj.symbol = data.symbol;
obj.startAt = data.startAt;
obj.endAt = data.endAt;
obj.reverse = data.reverse;
obj.offset = data.offset;
obj.forward = data.forward;
obj.maxCount = data.maxCount;
return obj;
}
/**
* 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 GetPrivateFundingHistoryReq(), jsonObject);
}
}
exports.GetPrivateFundingHistoryReq = GetPrivateFundingHistoryReq;
class GetPrivateFundingHistoryReqBuilder {
constructor(obj) {
this.obj = obj;
this.obj = obj;
}
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
setSymbol(value) {
this.obj.symbol = value;
return this;
}
/**
* Begin time (milliseconds)
*/
setStartAt(value) {
this.obj.startAt = value;
return this;
}
/**
* End time (milliseconds)
*/
setEndAt(value) {
this.obj.endAt = value;
return this;
}
/**
* This parameter functions to judge whether the lookup is forward or not. True means “yes” and False means “no”. This parameter is set as true by default.
*/
setReverse(value) {
this.obj.reverse = value;
return this;
}
/**
* Start offset. The unique attribute of the last returned result of the last request. The data of the first page will be returned by default.
*/
setOffset(value) {
this.obj.offset = value;
return this;
}
/**
* This parameter functions to judge whether the lookup is forward or not. True means “yes” and False means “no”. This parameter is set as true by default.
*/
setForward(value) {
this.obj.forward = value;
return this;
}
/**
* Max. record count. The default record count is 10
*/
setMaxCount(value) {
this.obj.maxCount = value;
return this;
}
/**
* Get the final object.
*/
build() {
return this.obj;
}
}
exports.GetPrivateFundingHistoryReqBuilder = GetPrivateFundingHistoryReqBuilder;
//# sourceMappingURL=model_get_private_funding_history_req.js.map