UNPKG

kucoin-universal-sdk

Version:
50 lines (49 loc) 2.03 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class CancelAllOrdersV1Req implements Serializable { /** * To cancel all limit orders for a specific contract only, unless otherwise specified, all limit orders will be deleted. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol?: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `CancelAllOrdersV1Req` class. * The builder pattern allows step-by-step construction of a `CancelAllOrdersV1Req` object. */ static builder(): CancelAllOrdersV1ReqBuilder; /** * Creates a new instance of the `CancelAllOrdersV1Req` class with the given data. */ static create(data: { /** * To cancel all limit orders for a specific contract only, unless otherwise specified, all limit orders will be deleted. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol?: string; }): CancelAllOrdersV1Req; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): CancelAllOrdersV1Req; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): CancelAllOrdersV1Req; } export declare class CancelAllOrdersV1ReqBuilder { readonly obj: CancelAllOrdersV1Req; constructor(obj: CancelAllOrdersV1Req); /** * To cancel all limit orders for a specific contract only, unless otherwise specified, all limit orders will be deleted. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ setSymbol(value: string): CancelAllOrdersV1ReqBuilder; /** * Get the final object. */ build(): CancelAllOrdersV1Req; }