Short answer

An exchange can establish its official closing price through a closing auction. A last-sale field can display a trade from another venue or a later session, depending on the feed.

Match venue, session and field label

Identify the primary listing exchange and the vendor's exact field definition. Compare auction price, consolidated last trade and extended-hours last trade separately. Order imbalances can update before the auction and do not by themselves determine the clearing price. If the official close is missing, check the listing venue's published fallback methodology instead of guessing.

Worked example or comparison
Basis Evidence or calculation
Worked example or comparison Illustrative record: official closing auction $25.10, last regular-session trade shown by one feed $25.08 and an after-hours trade $25.50. Preserve all three labels.

Frequently asked question

Which price should I use for a regular-session close-to-close return?

Use the same official-close field on both dates, with the same adjustment method.

Source

Primary reference · nyse.com

Related guide

Reading Stock Quotes and Price History — Timestamps, Sessions, Adjustments and Data Gaps