UNPKG

kucoin-universal-sdk

Version:
62 lines (61 loc) 2.49 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class RemoveIsolatedMarginReq implements Serializable { /** * Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol: string; /** * The size of the position that can be deposited. If it is USDT-margin, it represents the amount of USDT. If it is coin-margin, this value represents the number of coins */ withdrawAmount: number; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `RemoveIsolatedMarginReq` class. * The builder pattern allows step-by-step construction of a `RemoveIsolatedMarginReq` object. */ static builder(): RemoveIsolatedMarginReqBuilder; /** * Creates a new instance of the `RemoveIsolatedMarginReq` class with the given data. */ static create(data: { /** * Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol: string; /** * The size of the position that can be deposited. If it is USDT-margin, it represents the amount of USDT. If it is coin-margin, this value represents the number of coins */ withdrawAmount: number; }): RemoveIsolatedMarginReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): RemoveIsolatedMarginReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): RemoveIsolatedMarginReq; } export declare class RemoveIsolatedMarginReqBuilder { readonly obj: RemoveIsolatedMarginReq; constructor(obj: RemoveIsolatedMarginReq); /** * Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ setSymbol(value: string): RemoveIsolatedMarginReqBuilder; /** * The size of the position that can be deposited. If it is USDT-margin, it represents the amount of USDT. If it is coin-margin, this value represents the number of coins */ setWithdrawAmount(value: number): RemoveIsolatedMarginReqBuilder; /** * Get the final object. */ build(): RemoveIsolatedMarginReq; }