---
title: "Agent Market Context"
method: GET
path: "/v1/agent/market-context"
---

# Agent Market Context

`GET /v1/agent/market-context`

## Request

- Base URL: `https://api.storyflo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.storyflo.com/v1/agent/market-context`
- Auth: none declared

Agent action: Storyflo stories that match an actively traded
event contract on Kalshi and/or Polymarket. Each item carries
qualitative signal tags + a link-out to the venue's own page for the
live numbers — never raw odds. Editorial sourcing surface, not data
redistribution.

Served from the ``market_context:v1`` (Kalshi) and
``market_context:polymarket:v1`` (Polymarket) kv snapshots (PK
lookups) that ``app/market_context.py`` / ``app/
market_context_polymarket.py`` workers refresh — see those modules
for the matching + compliance posture. The Polymarket poller writes
its row; this endpoint is what serves it (``source=polymarket|all``).

## Query parameters

- `vertical` string, nullable
- `category` string, nullable
- `signal` string, nullable
- `source` string: Market source: 'kalshi' (default, the CFTC-regulated DCM), 'polymarket' (the Polymarket prediction market), or 'all' to merge both snapshots. Each source is independently feature-flagged; a disabled source contributes no items.
- `limit` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/storyflo/apis/storyflo-inference-router.md) · [All operations](https://skmtc.dev/storyflo/apis/storyflo-inference-router/llms.txt) · [OpenAPI document](https://skmtc.dev/storyflo/apis/storyflo-inference-router/revisions/c3a1a735ac7a?raw)
