Interface: IPriceFormatter
Charting Library.IPriceFormatter
Specific formatter for numbers
Hierarchy
-
↳
IPriceFormatter
Methods
format
▸ format(price, options?): string
Price formatter
Parameters
| Name | Type |
|---|---|
price | number |
options? | PriceFormatterFormatOptions |
Returns
string
Overrides
formatChange
▸ formatChange(price, prevPrice, options?): string
Price change formatter
Parameters
| Name | Type |
|---|---|
price | number |
prevPrice | number |
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
| Name | Type |
|---|---|
value | string |
options? | FormatterParseOptions |
Returns
ErrorFormatterParseResult | SuccessFormatterParseResult<number>