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