WebsiteLive demosGuidesSource
  • Preparing search index...
  • The search index is not available
OpenAlgo Charts API - v2.3.2
  • 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:86

Settings

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

Generated using TypeDoc

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