Because lot-size conversion is market-specific, the
var market = Framework.Instruments.get(instrumentId);
var text = Framework.FormatVolume(20000, market, {append_lots:true});
// For example, text = "0.20 lots"
| Parameter | Description |
| volume | Volume to format - always, as standard in the framework, an amount in cash/units, not lots |
| instrument | FXB.Instrument object to use for the price formatting, or the |
| options | See below |
| Option property | Description |
| mode | Defaults to the user's preference in the MyTrader settings. Can be overridden to either "lots" or "volume". |
| append_lots | Ignored in "volume" mode. In "lots" mode, returns the text as "X lots" rather than just "X". |
| show_plus | Same as for |