Back to builder reference

Value ref

constant

A fixed numeric literal, usable anywhere a value ref is accepted.

The one ref that is NOT a ValueRefBaseModel: it has no symbol or resolution qualifier. A bare int/float written into binary_expr/ unary_expr operands or compare.right is coerced to this type automatically, so writing it out explicitly is rarely necessary.

Backing types

ConstantValueRef

Required fields

valuereqnumber-

Optional fields

kindstring-

Backing types

The IR ValueRef classes this builder field resolves to.

ConstantValueRef
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.