ParlayAPI Field Guides

Checking quote freshness

For spreadsheet users checking two UTC clocks against a fixed review time. All six quotes are invented.

Which timestamp tells me how old a quote is?

Subtract the source’s last update time from your review time. A receipt time tells you when your system saw the record. In this fictional example, all three clocks use UTC.

Question at 18:00:00 Calculation Answer
How old is East’s quoted price? Review minus source update at 17:58:35 85 seconds
How old was the update when the sheet received it? Receipt at 17:59:59 minus source update at 17:58:35 84 seconds
How long has the row been in the sheet? Review minus receipt at 17:59:59 1 second

A 60-second source-age limit excludes East. If the source update field is empty or its meaning is undocumented, source age stays unknown. You can still report the receipt time. Check the six fictional rows and formulas in the workbook.

To inspect the timestamp fields on a response for your project, get a ParlayAPI key.

If only some venues appear in a response, compare the visible average age with a complete fictional feed. You can remove the oldest rows or an entire venue.

Can I tell whether the API took 84 seconds?

East’s source update and your receipt are 84 seconds apart. That interval includes any time the price was already sitting in a feed or cache before your request. To time the request itself, start a monotonic timer on the client immediately before sending it and stop it after reading the full response body.

Suppose the client log adds a request start and the server supplies a documented timestamp for when it prepared this response. For this fictional timeline, the UTC clocks are synchronized.

Observation Time (UTC) What it measures
Source records the price update 17:58:35.000 Start of the quote-age calculation
Client starts the request 17:59:58.500 Start of this client’s request timer
Server prepares the response 17:59:58.800 The update is already 83.8 seconds old
Client finishes reading the body 17:59:59.000 End of the request timer, 0.500 seconds after it started
Analyst reviews the row 18:00:00.000 The quote is 85 seconds old

The half-second includes work by the client, server and network. Measuring network time alone would take additional instrumentation. If the source timestamp is absent, you can still measure the half-second request but quote age stays unknown. If the response has a generic HTTP date, check what it means before treating it as a server observation of the price.

Download the 43-second walkthrough or download the English captions.

Download the corrected workbook

To inspect an actual response, open the public NBA preview and load one board. Record a named bookmaker’s moneyline price and its available market update time. Report missing timestamps as unknown.

It arrived one second ago. How old is it?

East reached the sheet at 17:59:59. Its source last changed at 17:58:35. At 18:00:00, calculate its age at review and the lag from update to receipt, then check the workbook’s two answers.

Open the freshness workbook

Which quote joins when the limit moves from 60 to 90?

Change D5 from 60 to 90 in the sample workbook. The qualifying count goes from two to three. Find the newly eligible source and explain why West still misses the review.

Change the age limit

Does exactly 60 seconds count?

Central sits right on the example’s 60-second limit. Move the limit down by one second and watch its status change. That single row makes the boundary easy to check.

Test the boundary in the sheet

A blank timestamp and a blank price need different fixes

Compare South and Coastal in the six-row sheet. South needs a source update time. Coastal needs a price. Use the status column to decide what you would ask each source for.

Inspect the two missing fields

Make row 17 your first test case

Jump to A17, enter a fictional source, price and two UTC times, then tab across. Column E calculates age at the fixed review time. Column F subtracts the source update from the time the sheet received the row.

Add a quote to the workbook

Connecting a workbook to your own account? Create a ParlayAPI account.

All six field guides

Test your clock and fixture decisions in the sports desk quiz.