UNPKG

kucoin-universal-sdk

Version:
74 lines (73 loc) 2.38 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class BatchCancelStopOrderReq implements Serializable { /** * Cancel the open order for the specified symbol */ symbol?: string; /** * The type of trading : TRADE(Spot), MARGIN_TRADE (Cross Margin), MARGIN_ISOLATED_TRADE (Isolated Margin). */ tradeType?: string; /** * Comma seperated order IDs. */ orderIds?: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `BatchCancelStopOrderReq` class. * The builder pattern allows step-by-step construction of a `BatchCancelStopOrderReq` object. */ static builder(): BatchCancelStopOrderReqBuilder; /** * Creates a new instance of the `BatchCancelStopOrderReq` class with the given data. */ static create(data: { /** * Cancel the open order for the specified symbol */ symbol?: string; /** * The type of trading : TRADE(Spot), MARGIN_TRADE (Cross Margin), MARGIN_ISOLATED_TRADE (Isolated Margin). */ tradeType?: string; /** * Comma seperated order IDs. */ orderIds?: string; }): BatchCancelStopOrderReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): BatchCancelStopOrderReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): BatchCancelStopOrderReq; } export declare class BatchCancelStopOrderReqBuilder { readonly obj: BatchCancelStopOrderReq; constructor(obj: BatchCancelStopOrderReq); /** * Cancel the open order for the specified symbol */ setSymbol(value: string): BatchCancelStopOrderReqBuilder; /** * The type of trading : TRADE(Spot), MARGIN_TRADE (Cross Margin), MARGIN_ISOLATED_TRADE (Isolated Margin). */ setTradeType(value: string): BatchCancelStopOrderReqBuilder; /** * Comma seperated order IDs. */ setOrderIds(value: string): BatchCancelStopOrderReqBuilder; /** * Get the final object. */ build(): BatchCancelStopOrderReq; }