UNPKG

kucoin-universal-sdk

Version:
74 lines (73 loc) 2.56 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class BatchSwitchMarginModeReq implements Serializable { /** * Modified margin model: ISOLATED (isolated), CROSS (cross margin). */ marginMode: BatchSwitchMarginModeReq.MarginModeEnum; /** * Symbol list of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbols: Array<string>; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `BatchSwitchMarginModeReq` class. * The builder pattern allows step-by-step construction of a `BatchSwitchMarginModeReq` object. */ static builder(): BatchSwitchMarginModeReqBuilder; /** * Creates a new instance of the `BatchSwitchMarginModeReq` class with the given data. */ static create(data: { /** * Modified margin model: ISOLATED (isolated), CROSS (cross margin). */ marginMode: BatchSwitchMarginModeReq.MarginModeEnum; /** * Symbol list of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbols: Array<string>; }): BatchSwitchMarginModeReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): BatchSwitchMarginModeReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): BatchSwitchMarginModeReq; } export declare namespace BatchSwitchMarginModeReq { enum MarginModeEnum { /** * Isolated Margin Mode */ ISOLATED, /** * Cross Margin MOde */ CROSS } } export declare class BatchSwitchMarginModeReqBuilder { readonly obj: BatchSwitchMarginModeReq; constructor(obj: BatchSwitchMarginModeReq); /** * Modified margin model: ISOLATED (isolated), CROSS (cross margin). */ setMarginMode(value: BatchSwitchMarginModeReq.MarginModeEnum): BatchSwitchMarginModeReqBuilder; /** * Symbol list of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ setSymbols(value: Array<string>): BatchSwitchMarginModeReqBuilder; /** * Get the final object. */ build(): BatchSwitchMarginModeReq; }