kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
122 lines (121 loc) • 4.66 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetSpotIndexPriceReq implements Serializable {
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: indexSymbol](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 `GetSpotIndexPriceReq` class.
* The builder pattern allows step-by-step construction of a `GetSpotIndexPriceReq` object.
*/
static builder(): GetSpotIndexPriceReqBuilder;
/**
* Creates a new instance of the `GetSpotIndexPriceReq` class with the given data.
*/
static create(data: {
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: indexSymbol](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;
}): GetSpotIndexPriceReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): GetSpotIndexPriceReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetSpotIndexPriceReq;
}
export declare class GetSpotIndexPriceReqBuilder {
readonly obj: GetSpotIndexPriceReq;
constructor(obj: GetSpotIndexPriceReq);
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: indexSymbol](https://www.kucoin.com/docs-new/api-3470220)
*/
setSymbol(value: string): GetSpotIndexPriceReqBuilder;
/**
* Start time (milliseconds)
*/
setStartAt(value: number): GetSpotIndexPriceReqBuilder;
/**
* End time (milliseconds)
*/
setEndAt(value: number): GetSpotIndexPriceReqBuilder;
/**
* 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): GetSpotIndexPriceReqBuilder;
/**
* 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): GetSpotIndexPriceReqBuilder;
/**
* 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): GetSpotIndexPriceReqBuilder;
/**
* Max. record count. The default record count is 10; the maximum length cannot exceed 100
*/
setMaxCount(value: number): GetSpotIndexPriceReqBuilder;
/**
* Get the final object.
*/
build(): GetSpotIndexPriceReq;
}