---
title: "Get API public v1 hip4 outcomes by outcome ID recent trades"
method: GET
path: "/api/public/v1/hip4/outcomes/{outcome_id}/recent-trades"
---

# Get API public v1 hip4 outcomes by outcome ID recent trades

`GET /api/public/v1/hip4/outcomes/{outcome_id}/recent-trades`

## Request

- Base URL: `https://api.coinversa.ai`
- URL: `https://api.coinversa.ai/api/public/v1/hip4/outcomes/{outcome_id}/recent-trades`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/coinversa/apis/coinversa-api/docs/api/public/v1/hip4/outcomes/:outcome_id/recent-trades/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `outcome_id` integer, required

## Query parameters

- `limit` integer: Max trades to return (1..500, default 100)
- `hours` integer: Look-back window in hours (default 24, max 168)

## Response `200`

OK

- HIP4RecentTradesBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `count` integer, required
  - `displayName` string
  - `name` string
  - `outcomeId` integer, required
  - `trades` HIP4RecentTrade[], nullable, required
    - `address` string, required
    - `coin` string, required
    - `dirId` integer, required
    - `fee` number, double, required
    - `pnl` number, double, required
    - `px` number, double, required
    - `side` string, required
    - `sideIndex` integer, required
    - `sz` number, double, required
    - `tradeTime` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `504`: Gateway Timeout

## Changes

- **2026-10-12** `7aae8c32ff78`: 2 warning
  - for the `query` request parameter `limit`, the max was set to `500.00`
  - for the `query` request parameter `limit`, the min was set to `1.00`
- **2026-09-23** `f2eba29805e5`: 7 info
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
  - added the optional property `reason` to the response with the `400` status
  - added the optional property `reason` to the response with the `422` status
  - …3 more

[Operation history](https://skmtc.dev/coinversa/apis/coinversa-api/changes/api/public/v1/hip4/outcomes/:outcome_id/recent-trades/get.md)

---

[API](https://skmtc.dev/coinversa/apis/coinversa-api.md) - [All operations](https://skmtc.dev/coinversa/apis/coinversa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/coinversa/apis/coinversa-api/revisions/3454317a5830?raw)
