UNPKG

kucoin-universal-sdk

Version:
122 lines (121 loc) 3.81 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetInterestHistoryReq implements Serializable { /** * currency */ currency?: string; /** * true-isolated, false-cross; default is false */ isIsolated?: boolean; /** * symbol, mandatory for isolated margin account */ symbol?: string; /** * The start and end times are not restricted. If the start time is empty or less than 1680278400000, the default value is set to 1680278400000 (April 1, 2023, 00:00:00) */ startTime?: number; /** * End time */ endTime?: number; /** * Current query page, with a starting value of 1. Default:1 */ currentPage?: number; /** * Number of results per page. Default is 50, minimum is 10, maximum is 500 */ pageSize?: number; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `GetInterestHistoryReq` class. * The builder pattern allows step-by-step construction of a `GetInterestHistoryReq` object. */ static builder(): GetInterestHistoryReqBuilder; /** * Creates a new instance of the `GetInterestHistoryReq` class with the given data. */ static create(data: { /** * currency */ currency?: string; /** * true-isolated, false-cross; default is false */ isIsolated?: boolean; /** * symbol, mandatory for isolated margin account */ symbol?: string; /** * The start and end times are not restricted. If the start time is empty or less than 1680278400000, the default value is set to 1680278400000 (April 1, 2023, 00:00:00) */ startTime?: number; /** * End time */ endTime?: number; /** * Current query page, with a starting value of 1. Default:1 */ currentPage?: number; /** * Number of results per page. Default is 50, minimum is 10, maximum is 500 */ pageSize?: number; }): GetInterestHistoryReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetInterestHistoryReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetInterestHistoryReq; } export declare class GetInterestHistoryReqBuilder { readonly obj: GetInterestHistoryReq; constructor(obj: GetInterestHistoryReq); /** * currency */ setCurrency(value: string): GetInterestHistoryReqBuilder; /** * true-isolated, false-cross; default is false */ setIsIsolated(value: boolean): GetInterestHistoryReqBuilder; /** * symbol, mandatory for isolated margin account */ setSymbol(value: string): GetInterestHistoryReqBuilder; /** * The start and end times are not restricted. If the start time is empty or less than 1680278400000, the default value is set to 1680278400000 (April 1, 2023, 00:00:00) */ setStartTime(value: number): GetInterestHistoryReqBuilder; /** * End time */ setEndTime(value: number): GetInterestHistoryReqBuilder; /** * Current query page, with a starting value of 1. Default:1 */ setCurrentPage(value: number): GetInterestHistoryReqBuilder; /** * Number of results per page. Default is 50, minimum is 10, maximum is 500 */ setPageSize(value: number): GetInterestHistoryReqBuilder; /** * Get the final object. */ build(): GetInterestHistoryReq; }