kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
78 lines (77 loc) • 2.6 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class BatchCancelOrderOldReq implements Serializable {
/**
* symbol
*/
symbol?: string;
/**
* The type of trading :TRADE(Spot Trading), MARGIN_TRADE(Cross Margin Trading), MARGIN_ISOLATED_TRADE(Isolated Margin Trading), and the default is TRADE to cancel the spot trading orders.
*/
tradeType?: BatchCancelOrderOldReq.TradeTypeEnum;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `BatchCancelOrderOldReq` class.
* The builder pattern allows step-by-step construction of a `BatchCancelOrderOldReq` object.
*/
static builder(): BatchCancelOrderOldReqBuilder;
/**
* Creates a new instance of the `BatchCancelOrderOldReq` class with the given data.
*/
static create(data: {
/**
* symbol
*/
symbol?: string;
/**
* The type of trading :TRADE(Spot Trading), MARGIN_TRADE(Cross Margin Trading), MARGIN_ISOLATED_TRADE(Isolated Margin Trading), and the default is TRADE to cancel the spot trading orders.
*/
tradeType?: BatchCancelOrderOldReq.TradeTypeEnum;
}): BatchCancelOrderOldReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): BatchCancelOrderOldReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): BatchCancelOrderOldReq;
}
export declare namespace BatchCancelOrderOldReq {
enum TradeTypeEnum {
/**
* Spot Trading
*/
TRADE,
/**
* Cross Margin Trading
*/
MARGIN_TRADE,
/**
* Isolated Margin Trading
*/
MARGIN_ISOLATED_TRADE
}
}
export declare class BatchCancelOrderOldReqBuilder {
readonly obj: BatchCancelOrderOldReq;
constructor(obj: BatchCancelOrderOldReq);
/**
* symbol
*/
setSymbol(value: string): BatchCancelOrderOldReqBuilder;
/**
* The type of trading :TRADE(Spot Trading), MARGIN_TRADE(Cross Margin Trading), MARGIN_ISOLATED_TRADE(Isolated Margin Trading), and the default is TRADE to cancel the spot trading orders.
*/
setTradeType(value: BatchCancelOrderOldReq.TradeTypeEnum): BatchCancelOrderOldReqBuilder;
/**
* Get the final object.
*/
build(): BatchCancelOrderOldReq;
}