UNPKG

kucoin-universal-sdk

Version:
62 lines (61 loc) 2.03 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class ModifyMarginLeverageReq implements Serializable { /** * Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol: string; /** * Leverage multiple */ leverage: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `ModifyMarginLeverageReq` class. * The builder pattern allows step-by-step construction of a `ModifyMarginLeverageReq` object. */ static builder(): ModifyMarginLeverageReqBuilder; /** * Creates a new instance of the `ModifyMarginLeverageReq` 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; /** * Leverage multiple */ leverage: string; }): ModifyMarginLeverageReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): ModifyMarginLeverageReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): ModifyMarginLeverageReq; } export declare class ModifyMarginLeverageReqBuilder { readonly obj: ModifyMarginLeverageReq; constructor(obj: ModifyMarginLeverageReq); /** * Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ setSymbol(value: string): ModifyMarginLeverageReqBuilder; /** * Leverage multiple */ setLeverage(value: string): ModifyMarginLeverageReqBuilder; /** * Get the final object. */ build(): ModifyMarginLeverageReq; }