Rounds a price to a nearest correct tradable price (honoring tick sizes).
Visual Basic |
---|
Public Function GetNearestTradeablePrice( _ ByVal price_ As Double _ ) As Double |
- price_
- The correct price represented as Double
The nearest tradable price represented as Double
The rounding is performed based on each instrument's own price conversion rules.