WebsiteLive demosGuidesSource
  • Preparing search index...
  • The search index is not available
OpenAlgo Charts API - v2.6.9
  • OpenAlgo Charts API
  • trade
  • validateQuantity

Function validateQuantity

  • validateQuantity(qty: number, c: OrderConstraints): ValidationResult
  • Validate a quantity on its own. Split out from validateOrder because a market order has no price, and the freeze and lot limits must still apply to it: routing quantity checks through the price path left them unreachable for exactly the orders that are hardest to take back.

    Parameters

    • qty: number
    • c: OrderConstraints

    Returns ValidationResult

    • Defined in src/trade/validation.ts:98

Settings

Member Visibility
WebsiteLive demosGuidesSource
OpenAlgo Charts API - v2.6.9
  • Loading...

Generated using TypeDoc

Build your next market experience.Explore live demosAPI definitions generated from the current source with every website deployment.