Skip to main content

Interface: IPriceFormatter

Broker.IPriceFormatter

Specific formatter for numbers

Hierarchy

Methods

format

format(price, options?): string

Price formatter

Parameters

NameType
pricenumber
options?PriceFormatterFormatOptions

Returns

string

Overrides

ISymbolValueFormatter.format


formatChange

formatChange(price, prevPrice, options?): string

Price change formatter

Parameters

NameType
pricenumber
prevPricenumber
options?PriceFormatterFormatOptions

Returns

string

Overrides

ISymbolValueFormatter.formatChange


parse

parse(value, options?): ErrorFormatterParseResult | SuccessFormatterParseResult<number>

Check if the input value satisfies the logic and return either an error or the result of the parsing

Parameters

NameType
valuestring
options?FormatterParseOptions

Returns

ErrorFormatterParseResult | SuccessFormatterParseResult<number>

Inherited from

ISymbolValueFormatter.parse