kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
66 lines • 1.96 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetAllSymbolsReqBuilder = exports.GetAllSymbolsReq = void 0;
const class_transformer_1 = require("class-transformer");
class GetAllSymbolsReq {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() { }
/**
* Creates a new instance of the `GetAllSymbolsReq` class.
* The builder pattern allows step-by-step construction of a `GetAllSymbolsReq` object.
*/
static builder() {
return new GetAllSymbolsReqBuilder(new GetAllSymbolsReq());
}
/**
* Creates a new instance of the `GetAllSymbolsReq` class with the given data.
*/
static create(data) {
let obj = new GetAllSymbolsReq();
obj.market = data.market;
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 GetAllSymbolsReq(), jsonObject);
}
}
exports.GetAllSymbolsReq = GetAllSymbolsReq;
class GetAllSymbolsReqBuilder {
constructor(obj) {
this.obj = obj;
this.obj = obj;
}
/**
* [The trading market](https://www.kucoin.com/docs-new/api-222921786)
*/
setMarket(value) {
this.obj.market = value;
return this;
}
/**
* Get the final object.
*/
build() {
return this.obj;
}
}
exports.GetAllSymbolsReqBuilder = GetAllSymbolsReqBuilder;
//# sourceMappingURL=model_get_all_symbols_req.js.map