UNPKG

kucoin-universal-sdk

Version:
74 lines (73 loc) 2.22 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetMarginRiskLimitReq implements Serializable { /** * True-isolated, false-cross */ isIsolated?: boolean; /** * Currency: This field is only required for cross margin */ currency?: string; /** * Symbol: This field is only required for isolated margin */ symbol?: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `GetMarginRiskLimitReq` class. * The builder pattern allows step-by-step construction of a `GetMarginRiskLimitReq` object. */ static builder(): GetMarginRiskLimitReqBuilder; /** * Creates a new instance of the `GetMarginRiskLimitReq` class with the given data. */ static create(data: { /** * True-isolated, false-cross */ isIsolated?: boolean; /** * Currency: This field is only required for cross margin */ currency?: string; /** * Symbol: This field is only required for isolated margin */ symbol?: string; }): GetMarginRiskLimitReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetMarginRiskLimitReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetMarginRiskLimitReq; } export declare class GetMarginRiskLimitReqBuilder { readonly obj: GetMarginRiskLimitReq; constructor(obj: GetMarginRiskLimitReq); /** * True-isolated, false-cross */ setIsIsolated(value: boolean): GetMarginRiskLimitReqBuilder; /** * Currency: This field is only required for cross margin */ setCurrency(value: string): GetMarginRiskLimitReqBuilder; /** * Symbol: This field is only required for isolated margin */ setSymbol(value: string): GetMarginRiskLimitReqBuilder; /** * Get the final object. */ build(): GetMarginRiskLimitReq; }