UNPKG

kucoin-universal-sdk

Version:
62 lines (61 loc) 2.29 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class BatchCancelOcoOrdersReq implements Serializable { /** * Specify the order ID; there can be multiple orders, separated by commas. If not passed, all OCO orders will be canceled by default. */ orderIds?: string; /** * Trading pair. If not passed, the OCO orders of all symbols will be canceled by default. */ symbol?: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `BatchCancelOcoOrdersReq` class. * The builder pattern allows step-by-step construction of a `BatchCancelOcoOrdersReq` object. */ static builder(): BatchCancelOcoOrdersReqBuilder; /** * Creates a new instance of the `BatchCancelOcoOrdersReq` class with the given data. */ static create(data: { /** * Specify the order ID; there can be multiple orders, separated by commas. If not passed, all OCO orders will be canceled by default. */ orderIds?: string; /** * Trading pair. If not passed, the OCO orders of all symbols will be canceled by default. */ symbol?: string; }): BatchCancelOcoOrdersReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): BatchCancelOcoOrdersReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): BatchCancelOcoOrdersReq; } export declare class BatchCancelOcoOrdersReqBuilder { readonly obj: BatchCancelOcoOrdersReq; constructor(obj: BatchCancelOcoOrdersReq); /** * Specify the order ID; there can be multiple orders, separated by commas. If not passed, all OCO orders will be canceled by default. */ setOrderIds(value: string): BatchCancelOcoOrdersReqBuilder; /** * Trading pair. If not passed, the OCO orders of all symbols will be canceled by default. */ setSymbol(value: string): BatchCancelOcoOrdersReqBuilder; /** * Get the final object. */ build(): BatchCancelOcoOrdersReq; }