Retrieve the Latest and Recent Market Activity for Prediction Markets

This tutorial shows how to pull (a) the latest trade + quote snapshot and (b) recent trades + quotes for a specific prediction market using FinFeedAPI’s Prediction Markets REST API.

By the end, you’ll be able to:

  • Fetch the current/latest trade + quote
  • Fetch recent trades and recent quotes (lists)
  • Handle common cases like null activity and 404 market not found

Endpoints used:

  • GET /v1/activity/:exchange_id/:market_id/current → current trade + current quote (either may be null)
  • GET /v1/activity/:exchange_id/:market_id/latest → recent trades + recent quotes (lists may be empty)

Base host (REST):

  • https://api.prediction-markets.finfeedapi.com
  • Put API key in the query string: ?apikey=YOUR_API_KEY or,
  • Put API key in the Authorization header: Authorization: API Key YOUR_API_KEY

Example header:

1Authorization: YOUR_API_KEY

Example query string:

1?apikey=YOUR_API_KEY


Both endpoints require:

  • exchange_id (string)
  • market_id (string)

If your system already knows the market you want, you can proceed. Otherwise, you’d typically discover these via the Markets endpoints (covered in a separate tutorial).

1GET "https://api.prediction-markets.finfeedapi.com/v1/activity/:exchange_id/:market_id/current?apikey=YOUR_API_KEY"

A single object containing:

  • trade: latest trade (or null)
  • quote: latest quote (or null)

Trade fields include price, quantity, timestamp, outcome, and side (Buy/Sell).

Quote fields include entry_time, recv_time, ask, bid, ask_volume, bid_volume.

Use it when you want a fast “now” view:

  • last print + current top-of-book
  • quick UI refresh
  • lightweight monitoring/alert checks
1GET "https://api.prediction-markets.finfeedapi.com/v1/activity/:exchange_id/:market_id/latest?apikey=YOUR_API_KEY"
  • trades: array (may be empty)
  • quotes: array (may be empty)

Each trade item has the same shape as in /current.

Each quote item includes entry_time, recv_time, ask, bid, ask_volume, bid_volume.

Use it when you want a short rolling window of activity:

  • mini tape (recent trades)
  • recent quote updates for spread/liquidity changes
  • “what just happened?” context around a move
  • /current: trade and/or quote can be null
  • /latest: trades/quotes arrays can be empty

Treat this as normal: it can happen when a market is inactive or newly listed.

Both endpoints can return 404 (e.g., market not found / no activity).

If you see 404:

  • verify exchange_id spelling/case
  • verify market_id exists on that exchange
  • confirm the market hasn’t been retired/renamed on the upstream venue

You now have two clean building blocks for “right now” prediction markets:

  • /current for a snapshot of the latest trade + quote
  • /latest for short rolling lists of trades and quotes