kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
62 lines (61 loc) • 2.11 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetFiatPriceReq implements Serializable {
/**
* Ticker symbol of a base currency, e.g. USD, EUR. Default is USD
*/
base?: string;
/**
* Comma-separated cryptocurrencies to be converted into fiat, e.g.: BTC,ETH, etc. Default to return the fiat price of all currencies.
*/
currencies?: string;
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
private constructor();
/**
* Creates a new instance of the `GetFiatPriceReq` class.
* The builder pattern allows step-by-step construction of a `GetFiatPriceReq` object.
*/
static builder(): GetFiatPriceReqBuilder;
/**
* Creates a new instance of the `GetFiatPriceReq` class with the given data.
*/
static create(data: {
/**
* Ticker symbol of a base currency, e.g. USD, EUR. Default is USD
*/
base?: string;
/**
* Comma-separated cryptocurrencies to be converted into fiat, e.g.: BTC,ETH, etc. Default to return the fiat price of all currencies.
*/
currencies?: string;
}): GetFiatPriceReq;
/**
* Convert the object to a JSON string.
*/
toJson(): string;
/**
* Create an object from a JSON string.
*/
static fromJson(input: string): GetFiatPriceReq;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetFiatPriceReq;
}
export declare class GetFiatPriceReqBuilder {
readonly obj: GetFiatPriceReq;
constructor(obj: GetFiatPriceReq);
/**
* Ticker symbol of a base currency, e.g. USD, EUR. Default is USD
*/
setBase(value: string): GetFiatPriceReqBuilder;
/**
* Comma-separated cryptocurrencies to be converted into fiat, e.g.: BTC,ETH, etc. Default to return the fiat price of all currencies.
*/
setCurrencies(value: string): GetFiatPriceReqBuilder;
/**
* Get the final object.
*/
build(): GetFiatPriceReq;
}