kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
98 lines (97 loc) • 2.99 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class ModifyOrderReq implements Serializable {
/**
* One must be chose out of the old client order ID, orderId and clientOid
*/
clientOid?: string;
/**
* symbol
*/
symbol: string;
/**
* One must be chosen out of the old order id, orderId and clientOid
*/
orderId?: string;
/**
* One must be chosen out of the modified price of the new order, newPrice and newSize
*/
newPrice?: string;
/**
* One must be chosen out of the modified size of the new order, newPrice and newSize
*/
newSize?: string;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `ModifyOrderReq` class.
* The builder pattern allows step-by-step construction of a `ModifyOrderReq` object.
*/
static builder(): ModifyOrderReqBuilder;
/**
* Creates a new instance of the `ModifyOrderReq` class with the given data.
*/
static create(data: {
/**
* One must be chose out of the old client order ID, orderId and clientOid
*/
clientOid?: string;
/**
* symbol
*/
symbol: string;
/**
* One must be chosen out of the old order id, orderId and clientOid
*/
orderId?: string;
/**
* One must be chosen out of the modified price of the new order, newPrice and newSize
*/
newPrice?: string;
/**
* One must be chosen out of the modified size of the new order, newPrice and newSize
*/
newSize?: string;
}): ModifyOrderReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): ModifyOrderReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): ModifyOrderReq;
}
export declare class ModifyOrderReqBuilder {
readonly obj: ModifyOrderReq;
constructor(obj: ModifyOrderReq);
/**
* One must be chose out of the old client order ID, orderId and clientOid
*/
setClientOid(value: string): ModifyOrderReqBuilder;
/**
* symbol
*/
setSymbol(value: string): ModifyOrderReqBuilder;
/**
* One must be chosen out of the old order id, orderId and clientOid
*/
setOrderId(value: string): ModifyOrderReqBuilder;
/**
* One must be chosen out of the modified price of the new order, newPrice and newSize
*/
setNewPrice(value: string): ModifyOrderReqBuilder;
/**
* One must be chosen out of the modified size of the new order, newPrice and newSize
*/
setNewSize(value: string): ModifyOrderReqBuilder;
/**
* Get the final object.
*/
build(): ModifyOrderReq;
}