kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
122 lines (121 loc) • 4.7 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetPrivateFundingHistoryReq implements Serializable {
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
symbol?: string;
/**
* Begin time (milliseconds)
*/
startAt?: number;
/**
* End time (milliseconds)
*/
endAt?: 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.
*/
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
*/
maxCount?: number;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `GetPrivateFundingHistoryReq` class.
* The builder pattern allows step-by-step construction of a `GetPrivateFundingHistoryReq` object.
*/
static builder(): GetPrivateFundingHistoryReqBuilder;
/**
* Creates a new instance of the `GetPrivateFundingHistoryReq` class with the given data.
*/
static create(data: {
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
symbol?: string;
/**
* Begin time (milliseconds)
*/
startAt?: number;
/**
* End time (milliseconds)
*/
endAt?: 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.
*/
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
*/
maxCount?: number;
}): GetPrivateFundingHistoryReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): GetPrivateFundingHistoryReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetPrivateFundingHistoryReq;
}
export declare class GetPrivateFundingHistoryReqBuilder {
readonly obj: GetPrivateFundingHistoryReq;
constructor(obj: GetPrivateFundingHistoryReq);
/**
* Symbol of the contract. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
setSymbol(value: string): GetPrivateFundingHistoryReqBuilder;
/**
* Begin time (milliseconds)
*/
setStartAt(value: number): GetPrivateFundingHistoryReqBuilder;
/**
* End time (milliseconds)
*/
setEndAt(value: number): GetPrivateFundingHistoryReqBuilder;
/**
* 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.
*/
setReverse(value: boolean): GetPrivateFundingHistoryReqBuilder;
/**
* 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): GetPrivateFundingHistoryReqBuilder;
/**
* 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): GetPrivateFundingHistoryReqBuilder;
/**
* Max. record count. The default record count is 10
*/
setMaxCount(value: number): GetPrivateFundingHistoryReqBuilder;
/**
* Get the final object.
*/
build(): GetPrivateFundingHistoryReq;
}