ISymbolValueFormatter
Interface
Methods
format
Default formatter function used to assign the correct sign (+ or -) to a number
Signature
format(price: number, signPositive?: boolean) => string
Parameters
| Name | Type | 
|---|---|
| price | number | 
| signPositive? | boolean | 
Returns
string
formatChange
OptionalFormatter for a price change
Signature
formatChange(currentPrice: number, prevPrice: number, signPositive?: boolean) => string
Parameters
| Name | Type | Description | 
|---|---|---|
| currentPrice | number | current price | 
| prevPrice | number | previous price | 
| signPositive? | boolean | is the sign of the number positive | 
Returns
string