UNPKG

kucoin-universal-sdk

Version:
86 lines (85 loc) 2.42 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetBrokerInfoReq implements Serializable { /** * Start time, for example: 20230110 */ begin?: string; /** * End time, for example: 20230210 (query data with a maximum interval of 6 months) */ end?: string; /** * Transaction type: 1, spot; 2: futures */ tradeType?: GetBrokerInfoReq.TradeTypeEnum; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `GetBrokerInfoReq` class. * The builder pattern allows step-by-step construction of a `GetBrokerInfoReq` object. */ static builder(): GetBrokerInfoReqBuilder; /** * Creates a new instance of the `GetBrokerInfoReq` class with the given data. */ static create(data: { /** * Start time, for example: 20230110 */ begin?: string; /** * End time, for example: 20230210 (query data with a maximum interval of 6 months) */ end?: string; /** * Transaction type: 1, spot; 2: futures */ tradeType?: GetBrokerInfoReq.TradeTypeEnum; }): GetBrokerInfoReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetBrokerInfoReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetBrokerInfoReq; } export declare namespace GetBrokerInfoReq { enum TradeTypeEnum { /** * spot */ _1, /** * futures */ _2 } } export declare class GetBrokerInfoReqBuilder { readonly obj: GetBrokerInfoReq; constructor(obj: GetBrokerInfoReq); /** * Start time, for example: 20230110 */ setBegin(value: string): GetBrokerInfoReqBuilder; /** * End time, for example: 20230210 (query data with a maximum interval of 6 months) */ setEnd(value: string): GetBrokerInfoReqBuilder; /** * Transaction type: 1, spot; 2: futures */ setTradeType(value: GetBrokerInfoReq.TradeTypeEnum): GetBrokerInfoReqBuilder; /** * Get the final object. */ build(): GetBrokerInfoReq; }