---
title: "Get API public v1 market historical oi"
method: GET
path: "/api/public/v1/market/historical-oi"
---

# Get API public v1 market historical oi

`GET /api/public/v1/market/historical-oi`

## Request

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

## Query parameters

- `coin` string
- `since` string
- `startTime` string
- `endTime` string

## Response `200`

OK

- OIHistoryBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `history` OISnapshot[], nullable, required
    - `coin` string, required
    - `markPx` unknown
    - `openInterest` number, double, required
    - `timestamp` unknown, required
  - `latest` OISnapshot
    - `coin` string, required
    - `markPx` unknown
    - `openInterest` number, double, required
    - `timestamp` unknown, required

## Other responses

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

## Changes

- **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/market/historical-oi/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)
