kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
74 lines (73 loc) • 2.66 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class AddIsolatedMarginReq implements Serializable {
/**
* Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
symbol: string;
/**
* Margin amount (min. margin amount≥0.00001667XBT)
*/
margin: number;
/**
* A unique ID generated by the user, to ensure the operation is processed by the system only once, The maximum length cannot exceed 36
*/
bizNo: string;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `AddIsolatedMarginReq` class.
* The builder pattern allows step-by-step construction of a `AddIsolatedMarginReq` object.
*/
static builder(): AddIsolatedMarginReqBuilder;
/**
* Creates a new instance of the `AddIsolatedMarginReq` 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;
/**
* Margin amount (min. margin amount≥0.00001667XBT)
*/
margin: number;
/**
* A unique ID generated by the user, to ensure the operation is processed by the system only once, The maximum length cannot exceed 36
*/
bizNo: string;
}): AddIsolatedMarginReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): AddIsolatedMarginReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): AddIsolatedMarginReq;
}
export declare class AddIsolatedMarginReqBuilder {
readonly obj: AddIsolatedMarginReq;
constructor(obj: AddIsolatedMarginReq);
/**
* Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
setSymbol(value: string): AddIsolatedMarginReqBuilder;
/**
* Margin amount (min. margin amount≥0.00001667XBT)
*/
setMargin(value: number): AddIsolatedMarginReqBuilder;
/**
* A unique ID generated by the user, to ensure the operation is processed by the system only once, The maximum length cannot exceed 36
*/
setBizNo(value: string): AddIsolatedMarginReqBuilder;
/**
* Get the final object.
*/
build(): AddIsolatedMarginReq;
}