UNPKG

kucoin-universal-sdk

Version:
122 lines (121 loc) 4.93 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetInterestRateIndexReq implements Serializable { /** * Symbol of the contract. Please refer to [Get Symbol endpoint: fundingBaseSymbol, fundingQuoteSymbol, fundingBaseSymbol1M, fundingQuoteSymbol1M](https://www.kucoin.com/docs-new/api-3470220) */ symbol?: string; /** * Start time (milliseconds) */ startAt?: number; /** * End time (milliseconds) */ endAt?: number; /** * This parameter functions to judge whether the lookup is reversed. True means “yes”. False means “no”. This parameter is set as True by default. */ reverse?: boolean; /** * 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. */ offset?: number; /** * 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. */ forward?: boolean; /** * Max. record count. The default record count is 10; the maximum length cannot exceed 100 */ maxCount?: number; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `GetInterestRateIndexReq` class. * The builder pattern allows step-by-step construction of a `GetInterestRateIndexReq` object. */ static builder(): GetInterestRateIndexReqBuilder; /** * Creates a new instance of the `GetInterestRateIndexReq` class with the given data. */ static create(data: { /** * Symbol of the contract. Please refer to [Get Symbol endpoint: fundingBaseSymbol, fundingQuoteSymbol, fundingBaseSymbol1M, fundingQuoteSymbol1M](https://www.kucoin.com/docs-new/api-3470220) */ symbol?: string; /** * Start time (milliseconds) */ startAt?: number; /** * End time (milliseconds) */ endAt?: number; /** * This parameter functions to judge whether the lookup is reversed. True means “yes”. False means “no”. This parameter is set as True by default. */ reverse?: boolean; /** * 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. */ offset?: number; /** * 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. */ forward?: boolean; /** * Max. record count. The default record count is 10; the maximum length cannot exceed 100 */ maxCount?: number; }): GetInterestRateIndexReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetInterestRateIndexReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetInterestRateIndexReq; } export declare class GetInterestRateIndexReqBuilder { readonly obj: GetInterestRateIndexReq; constructor(obj: GetInterestRateIndexReq); /** * Symbol of the contract. Please refer to [Get Symbol endpoint: fundingBaseSymbol, fundingQuoteSymbol, fundingBaseSymbol1M, fundingQuoteSymbol1M](https://www.kucoin.com/docs-new/api-3470220) */ setSymbol(value: string): GetInterestRateIndexReqBuilder; /** * Start time (milliseconds) */ setStartAt(value: number): GetInterestRateIndexReqBuilder; /** * End time (milliseconds) */ setEndAt(value: number): GetInterestRateIndexReqBuilder; /** * This parameter functions to judge whether the lookup is reversed. True means “yes”. False means “no”. This parameter is set as True by default. */ setReverse(value: boolean): GetInterestRateIndexReqBuilder; /** * 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: number): GetInterestRateIndexReqBuilder; /** * 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: boolean): GetInterestRateIndexReqBuilder; /** * Max. record count. The default record count is 10; the maximum length cannot exceed 100 */ setMaxCount(value: number): GetInterestRateIndexReqBuilder; /** * Get the final object. */ build(): GetInterestRateIndexReq; }