---
title: "Retrieve the last executed price and timestamp for each contract in the market ids provided."
method: GET
path: "/v3/markets/{market_ids}/last_executed_prices/"
tags: ["prices"]
---

# Retrieve the last executed price and timestamp for each contract in the market ids provided.

`GET /v3/markets/{market_ids}/last_executed_prices/`

## Request

- Base URL: `https://api.smarkets.com`
- URL: `https://api.smarkets.com/v3/markets/{market_ids}/last_executed_prices/`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/smarkets/apis/smarkets-http-api/docs/v3/markets/:market_ids/last_executed_prices/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `market_ids` integer[], required

## Response `200`

Last executed prices by market success response

- object: Last executed prices by market success response
  - `last_executed_prices` object, required

## Other responses

- `400`: REQUEST_VALIDATION_ERROR, BAD_REQUEST
- `401`: AUTH_REQUIRED
- `403`: FORBIDDEN
- `429`: Rate limit exceeded
- `500`: Internal server error
- `503`: CHARTS_UNAVAILABLE, MDS_SERVICE_UNAVAILABLE, CHARTS_INTERNAL_ERROR

## Changes

> 21 revisions in range; 1 not diffed.

- **2022-10-22** `a17ca5bb986a`: 1 warning
  - added the new `BAD_REQUEST` enum value to the `error_type` response property for the response status `400`
- **2022-02-06** `032833ac8ca3`: 5 breaking, 3 info
  - the response's body type changed from `object` to no type for status `400`
  - the response property `last_executed_prices/additionalProperties/items/last_executed_price` became nullable for the status `200`
  - the response property `last_executed_prices/additionalProperties/items/timestamp` became nullable for the status `200`
  - the `data` response's property type changed from `null` to `object` for status `500`
  - …4 more

[Operation history](https://skmtc.dev/smarkets/apis/smarkets-http-api/changes/v3/markets/:market_ids/last_executed_prices/get.md)

---

[API](https://skmtc.dev/smarkets/apis/smarkets-http-api.md) - [All operations](https://skmtc.dev/smarkets/apis/smarkets-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smarkets/apis/smarkets-http-api/revisions/32c5f1f4369e?raw)
