kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
75 lines (74 loc) • 2.08 kB
TypeScript
import 'reflect-metadata';
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class CancelPartialOrderReq implements Serializable {
/**
* The unique order id generated by the trading system
*/
orderId?: string;
/**
* symbol
*/
symbol?: string;
/**
* The size you want cancel
*/
cancelSize?: string;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `CancelPartialOrderReq` class.
* The builder pattern allows step-by-step construction of a `CancelPartialOrderReq` object.
*/
static builder(): CancelPartialOrderReqBuilder;
/**
* Creates a new instance of the `CancelPartialOrderReq` class with the given data.
*/
static create(data: {
/**
* The unique order id generated by the trading system
*/
orderId?: string;
/**
* symbol
*/
symbol?: string;
/**
* The size you want cancel
*/
cancelSize?: string;
}): CancelPartialOrderReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): CancelPartialOrderReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): CancelPartialOrderReq;
}
export declare class CancelPartialOrderReqBuilder {
readonly obj: CancelPartialOrderReq;
constructor(obj: CancelPartialOrderReq);
/**
* The unique order id generated by the trading system
*/
setOrderId(value: string): CancelPartialOrderReqBuilder;
/**
* symbol
*/
setSymbol(value: string): CancelPartialOrderReqBuilder;
/**
* The size you want cancel
*/
setCancelSize(value: string): CancelPartialOrderReqBuilder;
/**
* Get the final object.
*/
build(): CancelPartialOrderReq;
}