UNPKG

kucoin-universal-sdk

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