Connect to Real-Time SSE Order Stream

Continuous text/event-stream pushing real-time Polymarket order executions (LiveTransaction)

Changelog (2026-10-31): Added version ("v1" | "v2") to market in LiveTransaction events (identifying CTF vs Protocol V2 markets).

GET/streams/{id}

Request Parameters

Required headers and parameter specifications for this endpoint.

Headers
HeaderTypeRequiredDescription
X-PolyEdge-KeystringrequiredPolyEdge API Key for client authentication and rate-limiting
Path Parameters
ParameterTypeRequiredDescription
idstringrequiredStream ID

Event Stream Response & Payload Schema

Real-time streaming protocol specifications and event payload definitions.

text/event-stream
Server-Sent Events (SSE) Wire Protocol

This endpoint establishes a persistent HTTP connection (Content-Type: text/event-stream). It does not return static JSON. The server continuously pushes stream frames over this single connection:

event: tx
New on-chain transaction match. The data line contains a JSON-encoded LiveTransaction object.
: heartbeat
Keep-alive comment pushed periodically every 30s to keep firewalls and TCP connections open.
Parsed "data" JSON Payload (LiveTransaction)
json
{
  "makers": [
    {
      "fee": "0",
      "order": {
        "order_hash": "0x8a60f572cb1cde7fb2999454aacf179f6fb64c096ed92fa475d22f11dfe6964d",
        "shares": "98000000",
        "signature_type": 1,
        "timestamp": "2026-10-31T10:35:00.000Z",
        "usdc": "87220000"
      },
      "outcome": "Down",
      "shares": "10000",
      "side": "BUY",
      "token_ids_index": 1,
      "usdc": "8900",
      "user": {
        "address": "0x21f4c1a1be34a39a7bc20985df4b7e5a39fb691d",
        "name": ""
      }
    }
  ],
  "market": {
    "condition_id": "0xb34532df295942be5fe3bd278e61a83e1436c70129ce8ae5f819eb0d6504bd0a",
    "event_slug": "btc-updown-5m-1793442900",
    "group_item_title": "",
    "id": 6416263,
    "neg_risk": false,
    "outcomes": [
      "Up",
      "Down"
    ],
    "question": "Bitcoin Up or Down - October 31, 6:35AM-6:40AM ET",
    "series_slug": "btc-up-or-down-5m",
    "slug": "btc-updown-5m-1793442900",
    "sports_market_type": "",
    "start_date": "2026-10-30T10:43:39.445Z",
    "tags_slug": [
      "up-or-down",
      "crypto-prices",
      "hide-from-new",
      "recurring",
      "crypto",
      "bitcoin",
      "5M"
    ],
    "token_ids": [
      "28814914629181019462059774020762490221468611547421794430309406342512845668947",
      "107747386482117998086743420484109753549451264451028096589053664410546414438191"
    ],
    "version": "v1"
  },
  "taker": {
    "fee": "60",
    "order": {
      "order_hash": "0xe2cce08fa969efd5c36ae173c2ee0e4ec69a68495b51fc4898c11db03d04f847",
      "shares": "10000",
      "signature_type": 1,
      "timestamp": "2026-10-31T10:35:07.958Z",
      "usdc": "8800"
    },
    "outcome": "Down",
    "shares": "10000",
    "side": "SELL",
    "token_ids_index": 1,
    "usdc": "8900",
    "user": {
      "address": "0xa43e8d963111c38bccfdcec8c82bd15cb7066936",
      "name": ""
    }
  },
  "timestamp": "2026-10-31T10:37:57.304Z",
  "tx_hash": "0x4c2318ed035fcaa8eff3c79841cf08b430433e9aeab3d8584ab56f02740e47e7"
}
Event: "tx" -> data Payload Fields (LiveTransaction)
FieldTypeDescription
makers
array of objectsList of matched maker limit orders filled in this transaction
├─fee
stringExecution and relayer fee paid in micro-USDC
├─order
object-
├─order_hash
stringCryptographic EIP-712 order hash identifying the unique off-chain order
├─shares
stringOriginal clob order shares capacity in 10^6 scale
├─signature_type
integerSignature scheme encoding (0: Direct EOA, 1: Magic / Proxy Wallet, 2: Gnosis Safe, 3: Deposit Wallet (ERC-1271))
├─timestamp
stringUnix epoch seconds when the order was signed
├─usdc
stringOriginal clob order notional value in micro-USDC (10^6 scale)
├─outcome
stringMarket outcome label (e.g. "Yes", "No", "Up", "Down")
├─shares
stringFilled outcome shares amount represented as a 10^6 fixed-point decimal string
├─side
stringOrder execution direction: "BUY" or "SELL"
├─token_ids_index
integer0-based index matching market.token_ids and market.outcomes
├─usdc
stringFilled USDC notional amount in micro-USDC (10^6 scale) decimal string
├─user
object-
├─address
stringCanonical 42-character hexadecimal Ethereum/Polygon wallet address
├─name
stringPolymarket public username
market
object-
├─condition_id
string32-byte hexadecimal condition ID from Gnosis Conditional Tokens
├─event_slug
stringURL slug of the parent event containing this market
├─group_item_title
stringSub-category item title within a grouped multi-market event
├─id
integerPolymarket numeric prediction market identifier (e.g. 3688221)
├─neg_risk
booleanTrue if market operates under multi-outcome negative risk adapter
├─outcomes
string[]Array of market outcome labels: [Outcome 1, Outcome 2] (e.g. ["Yes", "No"])
├─question
stringFull question describing the prediction market condition
├─series_slug
stringURL slug of the recurring sports league or tournament series
├─slug
stringURL-friendly slug identifying the market on Polymarket
├─sports_market_type
stringSports market classification (e.g. moneyline, spread, over/under)
├─start_date
stringISO 8601 UTC timestamp when trading began
├─tags_slug
string[]Canonical categorical tags for content filtering
├─token_ids
string[]ERC-1155 token IDs: [Token 1, Token 2]
├─version
stringPolymarket protocol version: "v1" (CTF tokens) or "v2" (protocol v2 positions)
taker
object-
├─fee
stringExecution and relayer fee paid in micro-USDC
├─order
object-
├─order_hash
stringCryptographic EIP-712 order hash identifying the unique off-chain order
├─shares
stringOriginal clob order shares capacity in 10^6 scale
├─signature_type
integerSignature scheme encoding (0: Direct EOA, 1: Magic / Proxy Wallet, 2: Gnosis Safe, 3: Deposit Wallet (ERC-1271))
├─timestamp
stringUnix epoch seconds when the order was signed
├─usdc
stringOriginal clob order notional value in micro-USDC (10^6 scale)
├─outcome
stringMarket outcome label (e.g. "Yes", "No", "Up", "Down")
├─shares
stringFilled outcome shares amount represented as a 10^6 fixed-point decimal string
├─side
stringOrder execution direction: "BUY" or "SELL"
├─token_ids_index
integer0-based index matching market.token_ids and market.outcomes
├─usdc
stringFilled USDC notional amount in micro-USDC (10^6 scale) decimal string
├─user
object-
├─address
stringCanonical 42-character hexadecimal Ethereum/Polygon wallet address
├─name
stringPolymarket public username
timestamp
stringISO 8601 UTC timestamp (millisecond precision) indicating when the pending transaction was detected in the mempool
tx_hash
stringCanonical Ethereum/Polygon on-chain transaction hash confirming the match execution

cURL Example

Copy and run this command directly in your terminal to test this endpoint.

cURL: GET /streams/{id}
bash
curl -N "https://stream.polyedge.dev/streams/c9d57864-338f-4240-aa37-e7ab4ea491fb" \
  -H "X-PolyEdge-Key: Your-PolyEdge-ApiKey"