Skip to content
A financial district skyline under the evening sky

Bid, ask, last and midpoint: choosing the right price for the research question

Prevent price-field mismatches from turning a data convenience into an apparent trading edge.

The key idea

Bid, ask, last and midpoint prices answer different questions. A last trade describes a completed transaction; quotes describe available prices under stated conditions; a midpoint is a calculated reference. The correct field depends on whether you are measuring valuation, forecasting or executable trading.

The data assumption

Midpoints can be useful for analysis but are not automatically available fills. Last trades may be stale or occur at one side of a changing spread. A bar constructed from bids can systematically differ from a last-trade bar. Mixing fields across instruments or dates can introduce artificial returns, especially for short-horizon signals.

Document how the provider constructs each series. Some products are exchange-traded while others depend on dealer or broker quotes. A similarly named price field does not guarantee an identical microstructure. Quote size and timestamp matter too: a displayed price for a small quantity may not support the intended order.

A worked example

A quote is $49.98 bid and $50.02 ask, giving a $50.00 midpoint. A strategy that buys and immediately sells without a market move would lose $0.04 per unit before explicit charges if it crosses both sides. A midpoint-only simulator would show no spread loss. A last trade at $50.02 does not imply the account can sell at that price.

Practical review and implementation

Use price-field metadata as part of the dataset schema. Match the fill model to order side and available quote, and store spreads rather than reconstructing them from a universal constant. Compare data providers around large apparent signals to detect construction differences. For portfolio valuations, choose a consistent convention and distinguish it from the assumptions used for execution-cost estimation.

Assumptions and limitations

Quotes can be indicative, delayed or unavailable at the intended size. Midpoint valuation may be appropriate for one report while conservative liquidation valuation is needed for another. There is no single best field for every task; unexplained field switching is the problem.

Primary references

Further detail on the underlying concepts and data definitions: