kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
50 lines (49 loc) • 1.82 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetPositionListReq implements Serializable {
/**
* Quote currency code, Please refer to [rootSymbol](https://www.kucoin.com/docs-new/api-221752070) , such as USDT,XBT. Query all positions when empty
*/
currency?: string;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `GetPositionListReq` class.
* The builder pattern allows step-by-step construction of a `GetPositionListReq` object.
*/
static builder(): GetPositionListReqBuilder;
/**
* Creates a new instance of the `GetPositionListReq` class with the given data.
*/
static create(data: {
/**
* Quote currency code, Please refer to [rootSymbol](https://www.kucoin.com/docs-new/api-221752070) , such as USDT,XBT. Query all positions when empty
*/
currency?: string;
}): GetPositionListReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): GetPositionListReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetPositionListReq;
}
export declare class GetPositionListReqBuilder {
readonly obj: GetPositionListReq;
constructor(obj: GetPositionListReq);
/**
* Quote currency code, Please refer to [rootSymbol](https://www.kucoin.com/docs-new/api-221752070) , such as USDT,XBT. Query all positions when empty
*/
setCurrency(value: string): GetPositionListReqBuilder;
/**
* Get the final object.
*/
build(): GetPositionListReq;
}