UNPKG

kucoin-universal-sdk

Version:
46 lines (45 loc) 1.29 kB
import { RestResponse } from '../../../model/common'; import { Response } from '../../../internal/interfaces/serializable'; export declare class SwitchMarginModeResp implements Response<RestResponse> { /** * Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol: string; /** * Margin mode: ISOLATED (isolated), CROSS (cross margin). */ marginMode: SwitchMarginModeResp.MarginModeEnum; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * common response */ commonResponse?: RestResponse; setCommonResponse(response: RestResponse): void; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): SwitchMarginModeResp; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): SwitchMarginModeResp; } export declare namespace SwitchMarginModeResp { enum MarginModeEnum { /** * isolated margin */ ISOLATED, /** * cross margin */ CROSS } }