LP figures only in lp_security; lock list changes
lp_burn_percentageandlp_locked_percentage(shortlb/ll) are no longer returned by token by address, batch lookups, liquidity pools, search, discovery, or the address, Pulse and Trending WebSocket rooms. Readlp_security(ls) instead.- Pulse and Trending rows now carry
lp_security. Theirlp_burn_percentageandlp_locked_percentagefilters remain and readlp_security. lp_securityandsupply_locksno longer includeupdated_atorblock.- The lock endpoints return the list itself as
data(previouslydata.locks/data.events, shortl/e). - The lock lists take
active(defaulttrue): onlylocked,partially_unlockedandpermanentlocks are returned unless you passactive=false, astatusfilter orinclude_withdrawn=true.
New Robinhood Chain launchpads
Ten more Robinhood Chain launchpads are supported: their launches, curve trades, graduations and the pools they graduate into.- New
protocolvalues:Livo,HoodFun,Circus,HyperMeme,Lemon,Flutch,Stoxes,Holoworld,LaunchHoodandLeaveHood. They are accepted wherever aprotocolfilter is, and appear asprotocol/migrated_from_protocolon tokens, pools and trades. - Curve pools report their trade fees in
protocol_data: buy and sell totals with the creator and protocol cuts, and the token’s buy / sell tax where it charges one (Stoxes). Graduated pools carry their LP fee, and pools behind a launchpad hook (LaunchHood, Circus, Livo on Uniswap V4) carry the hook’s fee. bonding_curve_percenttracks each curve’s graduation progress. LeaveHood pools are Uniswap V3 pools from launch; their bonding progress is the pool’s own raise.- Tokens launched on these launchpads and on Robinfun now include their token metadata.
v0.7.1: LP & Token Locks
Lock tracking for Robinhood Chain: every LP lock, token lock and launchpad custodian behind a pool’s LP security, with unlock times and withdrawal history. Read the walkthrough in LP and token locks.No migration required. The new endpoints and objects are additive.
GET /token/pool-locks: the locks holding a pool’s liquidity (LP tokens, V3 / V4 position NFTs, positions held directly by a locker) and the launchpad custodians that hold launch liquidity.GET /token/locks: the locks holding part of a token’s supply (timed, vesting, permanent and custodial).GET /token/owner-locks: the token and LP locks a wallet can withdraw.GET /token/lock-events:created,extended,transferred,split,withdrawn,claimedandunlockedevents for a token, pool or wallet, newest first.withdrawnandclaimedcarry the recipient into;unlockedevents are recorded at the unlock time and have no transaction hash.- Each lock includes what it locks (
token_address,pool_id), its locker (id, displayname,address,kind,logowhen published),owner,position,amount/amount_raw, its share of the pool or supply (share_percent),status,unlock_at, vesting terms, andurl, a link to the lock on the locker’s site when the locker has per-lock pages. Lists sort byunlock_atoramount, filter bystatusandkind, and page withpagination_key(limitdefaults to 50, at most 100). All four endpoints supportfields=short.
- Token by address, batch and liquidity pools add
lp_security: the pool’s liquidity split intoburned_percent,locked_percent,permanent_locked_percent,claimable_percentandunlocked_percent(summing to 100), withnext_unlock,fully_unlocked_atandlock_count. Token by address and batch also add the token’ssupply_locks. With short field names they arelsandsl. - Launchpad lockers that hold launch liquidity now count: those that can never release it count as permanently locked.
- Uniswap V3 and V4 pools weight each position by its principal value at the current price.
- Token supply locks are reported separately and never count toward a pool’s LP lock percentage.
- When an unlock time or vesting step passes, the released share moves to claimable and the summaries update automatically.
- The
addressroom sends apoolupdate whenlp_securityorsupply_lockschanges (ls/slin short mode). - Claimable is never counted as locked, in
lp_securityandsupply_locksalike. Vesting position locks split pro rata: their vested, not yet withdrawn part is claimable.
- In token holders, a locker holder carries
locks(shortlks):locked_amount/locked_amount_raw/locked_percent,claimable_amount/claimable_amount_raw/claimable_percent(of supply) andlock_count.
v0.7.0: Onchain Units, Millisecond Timestamps & Targeted WebSockets
A consistency pass across the onchain (DEX) API. Several changes are breaking for existing integrations; each is listed below.Units- Three units per value. Every price, market cap and amount exists in token (counter-token) units,
_usdand_native. Unsuffixedprice/market_capare in the pool’s counter token; they were previously native on some responses. - Trades (REST and the
tradesroom) addprice,market_cap,*_nativeprices and caps,token_a/b_amount_native,token_a/b_vault_amount_nativeandnative_usd_price. Liquidity, pool-create and migrate events carry native amounts and vault values but no price or market cap. - Candlestick
data_typenow takesprice,price_usd(default),price_native,market_cap,market_cap_usdormarket_cap_native. - Token data (address, search, pulse, trending, liquidity pools) adds
price_native,market_cap_nativeand all-time highs in token and native units (price_ath,price_native_ath,market_cap_ath,market_cap_native_ath). - Fees are native only:
total_fees_native,total_bot_fees_native,total_priority_fees_native,total_tip_amount_native. price_metricsroom sends the current price and market cap in all three units, plus per-window all-time highs and window-open prices in each unit.native_pricesroom:data.priceis renamedprice_usdanddata.chain_idis added.
- Every timestamp in every onchain REST response and websocket event is epoch milliseconds. This changes
/token/address, liquidity pools, search, dev tokens, first buyers, holder history, hyped, warnings, tradesconfirmed_at, trader PnL (first_active,last_active,first_trade_at,last_trade_at, candletime, portfolio chart), and Uniswap pools, positions andblock_timestamp. Tradefrom/tofilters accept seconds or milliseconds.
trades: subscribe withtargets(chain/chain_idplustoken_address,pool_idortrader, andmode: "pool" | "asset"), usingsubscribe,add,removeandunsubscribe_all. Limits are 50 markets, 50 tokens and 50 wallets. Subscribed pools follow migrations automatically.address: uses the sametargetsformat and actions, with a limit of 50 pools, and follows migrations. Subscribing no longer sends the current state; fetch it withGET /token/address.address_subscribedis returned after every action, andaddress_unsubscribedis removed.- Migrations are reported by the
addressroom: when a subscribed pool migrates, you promptly receive anaddress_updatefor the destination pool (pool_id= the new pool, withis_migration_pool,migrated_from_pool_id,migrated_from_protocol,migrated_at, and dirty kindpool). The row is the fullGET /token/addressshape, so nothing needs to be refetched. No room sends a separate migration event. addresschange filter: the newdirty_kindssubscribe option (price,liquidity,metrics,holders,metadata,pool) sends a pool update only when one of those field groups changed, and everyaddress_updatelists the changed groups indirty_kinds(shortdk). Omit it to receive every change, as before.addressprice points: the newinclude_price_pointssubscribe option defaults tofalse, as onGET /token/address: updates carry noprice_points, and chart-only changes are not sent. Set it totruefor the chart (limited byprice_point_limit).price_metrics,holdersandtop_traders: pool subscriptions (pool_ids,pool_id) follow migrations. Pools that already migrated resolve to their destination on subscribe (listed in the subscribe response’smigrations), and a live migration moves the subscription to the new pool automatically; watch theaddressroom to be notified. Token-only subscriptions are unchanged.accounts:walletsis renamedtradersandnetworkis removed; usechain,chain_id,chainsorchain_ids.- Long / short field names work in every room. Pick them per connection with the
x-field-namesheader or thefieldsquery parameter; the default is short. - Other room changes:
- PnL rooms no longer send
emit_seq. top_tradersno longer sendsliquidity_name.- Holders and top traders only include
pnlwithinclude_pnl, and only take trades from the subscribed pool. - Uniswap V3 pool-state and position updates are now delivered.
- PnL rooms no longer send
GET /token/holdersincludessummary(shortsm), the same data as the holder summary endpoint.fields=shortnow shortens every field of every response, including holders, warnings, protocols, trader balances and metadata, DAS, routing, trading and first-buyer tags./trader/batch-tradestoken metadata ismetadata: { name, symbol, image_url }in long mode (shortmd: { n, sy, iu }).GET /token/addressreturnsprotocol_datawhichever side of the pool is requested.GET /token/dev-tokensrows addpool_id,token_a/token_bprice and market cap data,liquidity_fdv_usd,holdersandmetricsin theGET /token/addressshape, withtimeframe/include_timeframes(default24h). The trader portfolio’sdev_tokensgets the same fields with 24h metrics.GET /token/dev-tokensrows addpnl: the developer’s lifetime PnL on each token, in the same shape as first buyers’pnl(buys, sells, realizedpnl_usd/pnl_native, remaining position valued at the current price, first and last trade times). It is omitted when PnL is unavailable. The trader portfolio’sdev_tokensincludes it too./trader/{address}/funded-byworks on every supported chain, returning the first native-coin transfer from the selected chain. It previously always queried Solana.- Custom quote tokens in discovery: Pulse and Trending (REST and websocket) accept
quote_tokens, up to 50 Solana or0xEVM quote-token addresses, each valid for a requested chain. A pool matches when its quote token is listed or its category is inquote_types, soquote_typescan be left empty to match only the listed tokens. - Pump.fun and Pump AMM
protocol_dataaddsis_offchain_create(shortoc):truewhen the token’s create transaction had no dev buy,falsewhen it had one. It is kept when the token migrates to Pump AMM, and is omitted only when the create was not observed (unknown). holder_distribution_enabled(shorthd) is now also returned asfalsewhen holder rewards are known to be disabled; it is omitted only when unknown.- Per-protocol discovery filters: Pulse and Trending (REST and websocket) accept
protocol_filters, keyed by protocol, with tri-stateoffchain_createandholder_rewardskeys (trueonly,falseexclude, omitted either; pools whose value is unknown are excluded when a key is set). A migrated pool follows its launch protocol’s entry.GET /token/discovery/protocolslists each protocol’s supported keys infilters(shortfk). - Removed: Pump
is_cashbackandcashback_fee_percent(shortcb/cbf) are no longer returned inprotocol_data.
v0.6.5: Combo PnL & Analytics
Trader PnL now runs on an improved mark-to-market engine behind the same base routes, with no path or response-shape break. Two headline unlocks: combo (parlay) PnL for a wallet, and combo analytics for market-level parlay activity across Polymarket.No migration required. Existing
/trader/pnl/... routes keep the same paths and shapes. New combo endpoints and fields are additive — existing integrations keep working and pick up the improved calculation automatically.- Trader combo PnL:
/pnl/{address}/comboslists a wallet’s parlays with filters, sort, and pagination;/pnl/{address}/comboexpands one combo bycondition_idorposition_idinto legs, implied probability, and potential payout. Walkthrough in Tracking a trader’s combo (parlay) PnL. - Combo analytics: market-level Combos APIs — list parlays, metrics, legs, holders, and candlesticks, plus global analytics (snapshot, % change, deltas, timeseries) for volume, fees, lifecycle, and trader activity.
- Combo fields on existing surfaces: position and market rows carry
combo_type: "combinatorial"when the market is a combo (parlay); filter withcombo=combinatorial. Trader summaries and the global leaderboard addcombo_trade_countso you can rank wallets by parlay activity.
v0.6.4: WebSocket Compression & Firehose Mode
Two connection-level additions to the Rooms websocket: opt-in zstd compression for high-throughput sockets, and asubscribe_all firehose flag that turns most rooms into a full, unfiltered stream. No changes to existing subscriptions, filters, or payloads.- zstd compression. Negotiate once at the WebSocket upgrade with the
X-Ws-Compression: zstdheader, or the?compression=zstdquery fallback for browser clients that can’t set headers. When enabled, room envelopes arrive as binary frames of zstd-compressed JSON; decompress andJSON.parseas usual. Omit both for the default uncompressed text frames. See Compression. - Firehose (
subscribe_all). Most rooms now acceptsubscribe_all: trueon the subscribe message to receive every update on the stream instead of a targeted subset. Targeting filters (condition_ids,traders,wallets, and so on) are ignored while it’s set, while secondary filters liketimeframes,dirty_kinds, andreasonsstill apply.polymarket_order_bookdelivers its firehose as conflatedorder_book_batchenvelopes every 50ms. Billing is still per message, so firehose subscriptions can be high volume. See Firehose. - Playground support. The dashboard websockets playground exposes both: a compression toggle on the connection card and the
subscribe_allswitch per room.
v0.6.3: Faster Trades WebSocket
Confirmedpolymarket_trades fills now land on your socket sooner with no change to the subscription, filters, or payload.- Confirmed feed now leads Polymarket’s RTDS. On the default
confirmedstatus, trades surface a median of ~0.5s ahead of Polymarket’s public RTDS activity feed, leading on roughly 85 to 90 percent of matched fills, even though both paths wait for the same on-chain block. - Mempool feed still further ahead.
status: "pending"continues to read the Polygon mempool and lead RTDS by a median of 2.6s on 100 percent of matched trades. Usestatus: "all"to receive both the pending and confirmed sighting of each trade from a single subscription. - No integration changes. Same room, same filters, same fields. Existing subscribers get the speedup for free.
- Benchmark: full method and per-window numbers across ~15,000 live trades in Polymarket RTDS vs Struct Trades WS. The harness is open source and reproducible with a free API key.
v0.6.2: Liquidity Streams & Price-based Filters
Three new Websocket rooms stream real-time USD order-book liquidity:polymarket_position_liquidity (per outcome token), polymarket_market_liquidity (per market), and polymarket_event_liquidity (per event). Filter by id or omit for a firehose. Billed at 0.001 credits per message.Trade-driven webhook and alert filters now gate on price instead of probability, and the standalone probability_spike event has been retired.min_price/max_pricereplacemin_probability/max_probability. The bound filters onclose_to_bond,price_spike,price_threshold, and the trader events (trader_first_trade,trader_new_market,trader_new_trade,trader_trade_event,trader_whale_trade) now takemin_priceandmax_priceon a0.0–1.0scale. Subscriptions using the old field names must be updated.probability_spikeremoved. Useprice_spikeinstead. It fires on the same moves and carries the same payload fields.min_probability_change_pctis unchanged. Theposition_metricspercentage-change filter keeps its name.
v0.6.1: Threshold Crossings, Resolution & Dispute Events, Taxonomy Filters
Three new webhook and alert events, plus market-taxonomy scoping across the trade-driven alerts.price_threshold: an edge-triggered alert that fires once when an outcome’s price crosses a target level. Setmin_probabilityfor an upward target ormax_probabilityfor a downward one.one_shotdeletes the subscription after its first delivery, andfire_if_already_pastfires immediately when the first observed price is already past the target. Available as a webhook and an alert.market_resolved: fires once when a market reaches a terminal resolution, collapsing the underlying oracle events (QuestionResolved,QuestionEmergencyResolved,ConditionResolution,NegRiskOutcomeReported) into a single deduplicated delivery carrying the winning outcome and, when available, the settled price. Available as a webhook and an alert.market_disputed: fires when a proposed resolution is challenged on-chain (DisputePriceorAssertionDisputed), carrying the disputer, the proposer, and the disputed outcome. Available as a webhook and an alert.- Taxonomy filters on trade-driven events:
probability_spike,price_spike, andclose_to_bondnow accepttags(matches a market’s own tags or its category) andseries_slugs(matches the market’s parent series). Both are case-insensitive, so you can scope deliveries to a topic without listing individual condition IDs. - Fire-and-delete (
one_shot): every webhook event now acceptsone_shot, which deletes the subscription after its first successful delivery. It fires exactly once, test deliveries never consume it, and a failed delivery leaves the subscription in place. See Fire-and-Delete.
v0.6: PnL v3, Mark-to-Market
A complete rebuild of Struct’s PnL. v3 switches from cost-basis to mark-to-market accounting at the block level, so a position’s value reflects on-chain reality the moment you buy, with no sell or resolution required. Twenty new REST endpoints across three namespaces, new Websocket rooms, and an updated TypeScript SDK.No migration required. v3 is a drop-in update. Every existing v2 PnL endpoint is automatically upgraded: same routes, same response shape, no fields removed. v3 only adds new fields on top, so existing integrations keep working and get the improved calculation for free.
- Mark-to-market accounting: PnL is now current market value of your shares minus what you paid, recomputed on every block. Realized and unrealized are tracked separately, realized settling on every sell, merge, or redemption, and unrealized updating per block. Merges, splits, neg-risk conversions, redemptions, fees, rebates, rewards, and yield are all folded into the number, so the figure is the actual economic outcome of holding a position, not just price-times-shares minus cost.
- Trader PnL namespace:
/trader/pnl/{address}returns the headline summary (realized PnL, open-position value, volume, win rate, profit factor, avg win/loss, best/worst trade, avg hold time, fees, and a full breakdown of merges/splits/conversions/redemptions/rebates/rewards/yield). Companion endpoints expose/pnl/{address}/candles(OHLC for total PnL and portfolio value, block-tagged),/pnl/{address}/exits(closed-position markers withreasonofresolved_win/resolved_loss/sold_win/sold_loss),/pnl/{address}/periods(best/worst day, week, month),/pnl/{address}/changes(per-window deltas in one call), and/pnl/{address}/risk(max drawdown, current drawdown, max runup). - Trader breakdowns (
/positions,/markets,/events,/categories): every tab of a trader profile from one namespace./positionstakes a requiredstatus=open|closedfilter and returns current price, shares balance, average entry/exit, realized PnL, percent return, andredeemable/mergeableflags;/markets,/events, and/categoriesroll the same activity up a level. - Leaderboards: five PnL-ranked endpoints at different scopes, all sharing fields, sort options, and pagination:
/trader/global_pnl(every tracked trader),/events/top-traders,/market/top-traders,/market/position/top-traders, and/tags/top-traders. - Biggest wins (
/trader/top_trades_markets): ranks every market by aggregate realized PnL across all traders over 1d, 7d, 30d, or lifetime. - Top holders: live top-holder lists for any market or position. Pass
include_pnl=truefor each holder’s full PnL breakdown, plus holder-count time series at event, market, and position level. - Real-time PnL over Websocket: subscribe to
polymarket_trader_pnl(global, market, event, and category granularities, pushed typically within 50ms of block confirmation) with price-driven, trade-driven-only, or window-rollover trigger modes. Two position rooms cover the lifecycle:polymarket_trader_positions(trader_position_lifetime_updateon every PnL change) andpolymarket_trader_position_resolved(fires once on resolution withwonand final realized PnL). - Explorer and SDK: every surface on explorer.struct.to/traders (trader profiles, leaderboards, holder views, PnL charts) now runs on v3, and the TypeScript SDK is fully updated.
v0.5.3: OHLC Candles & Webhook Logs
- OHLC candles for Up/Down assets: new
/v1/polymarket/asset-history/candlestickendpoint returns OHLC price bars per asset at TradingView resolutions (1S,1,5,15,30,60,240,D,1D). - Webhook delivery logs: inspect delivered webhook payloads in the dashboard or via the delivery logs API.
- Documentation: expanded pagination, authentication, and Crypto Up/Down guides.
v0.5.2: Tag Metrics & Builder Attribution
Builder analytics extended down into the real-time metric streams, plus a new tag-level rollup and a cleaner trade-event taxonomy for protocol payouts.Volume on Polymarket vs. Struct. Polymarket’s UI reports “volume” as notional (the count of shares or contracts traded), which corresponds to
shares_volume in Struct payloads. usd_volume is the dollar value of those trades. Use shares_volume to match figures shown on Polymarket and usd_volume for true USD throughput.- Tag metrics streams: new
polymarket_tag_metricsWebsocket room, newtag_metricsalert event, and newtag_metricswebhook. Subscribe by tag label or slug to receive aggregated volume, fees, transactions, and unique-trader counts across the standard timeframes (1m,5m,30m,1h,6h,24h,7d,30d). - Builder-attributed metric fields: every metric payload (market, event, position, condition, tag) now ships builder-attributed counterparts:
builder_usd_volume,builder_shares_volume,builder_fees,builder_txns, andunique_builder_traders. Position metrics additionally split builder activity by side (builder_usd_buy_volume/builder_usd_sell_volume,builder_shares_buy_volume/builder_shares_sell_volume,builder_buys/builder_sells). - Shares volume across metrics: every metric event now includes a top-level
shares_volume(decimal string on rooms, number on alerts and webhooks) alongsideusd_volume, with matching breakdowns on position metrics (shares_buy_volume,shares_sell_volume). - Position-metric trade sizing: position-metric payloads now include
avg_trade_shares,avg_buy_shares, andavg_sell_sharesso you can track average ticket size per window without computing it client-side. - Trades stream payout credits:
MakerRebate,Reward, andYieldjoin the trades discriminator for pUSD credits paid directly to trader wallets, replacing the previousApprovalvariant. The three variants share one payload shape (takeris the payout distributor,shares_amount/price/ fees are always0). image_urlon trade variants:OrderFilled,OrdersMatched,Redemption,Merge,Split,Cancelled,RegisterToken, and oracle lifecycle events onpolymarket_tradesnow carryimage_urlso you can render trade cards without a follow-up market lookup.
v0.5.1: Builder Analytics
- Builders namespace (
/v1/polymarket/builders): query any Polymarket builder by code with latest metrics, deltas / changes / timeseries analytics across the same bucket resolutions as the analytics API, current fee rate and full fee history, cohort retention, tag breakdowns, top traders, and concentration. - Global builder rollups: aggregate stats, bucketed composition, and tag distribution across all builders via
/builders/global,/builders/global/tags, and/builders/tags/{tag}for ranking builders within a category. - Builder metadata: list and look up builder display info (name, image, links) via
/builders/metadataand/builders/{builder_code}/metadata. - Webhook payload enrichments: spike webhooks (volume, probability, price) now carry
question,market_slug,event_slug,image_url(andevent_titleon event-scoped events) so you can render alerts without a follow-up lookup.
v0.5: CLOB v2, Analytics, and Oracle Events
Polymarket’s CLOB v2 cutover lands April 28. v0.5 ships three days early with full v2 support, plus a brand-new analytics API and an oracle events stream.No breaking changes. Every integration built on Struct continues to work without modification. CLOB v2 is wired in transparently behind the existing surfaces. Order, trade, and account fields are additive, not replaced. You do not need to update your code to keep running.
- CLOB v2 ready: order, trade, and account surfaces now reflect the v2 schema. New
builder_feeandbuilder_codeon trades,CTFExchangeV2andNegRiskExchangeV2on theexchangediscriminator, and a newpusd_updateevent on the accounts websocket alongside the existingusdce_updateandmatic_update. - Analytics namespace (
/v1/polymarket/analytics): a dedicated analytics API with three query modes (deltas, changes, timeseries) across five scopes (global, event, market, tag, trader). Bucket resolutions span 60m, 4h, 1d, 1w, 1mo. Includes merge/split volume tracking, a buy-distribution histogram (under $10 through $50k+), and distinct-address counters at every scope. - Oracle events stream: a new websocket room (
polymarket_oracle_events) and webhook event covering 16 UMA assertion lifecycle events includingAssertionMade,AssertionDisputed,AssertionSettled,ProposePrice,DisputePrice,QuestionResolved,QuestionEmergencyResolved, andNegRiskOutcomeReported. Pending events appear from the mempool before chain confirmation, with confirmed events following once the block lands. - Top traders endpoints: rank traders by realized PnL on events, markets, and positions over 1d, 7d, 30d, or lifetime windows.
- Tag and bond sorting: sort tags by volume, txns, unique traders/makers/takers, or fees over 1h through 1y windows, and bond markets by APY, liquidity, volume, or end date.
- Expanded room and alert filters: websocket subscriptions and webhook filters got broad expansion, especially around oracle metadata and trader scoping.
- Docs: see the API Reference for the new analytics endpoints, and the Polymarket CLOB v2 migration guide for context on the v2 cutover.
v0.4.1
- New trade event webhook: receive structured events for every trade type (fills, splits, merges, redemptions, conversions) without parsing raw payloads. Ships as the new
TradeEventwebhook under the Trader category. - Struct CDN: market and event images are now served from the Struct CDN, so
image_url. - CLOB rewards streaming: track reward-earning markets in real time through a new rewards Websocket room, plus
sort_by=rewardsand reward filters on the market API.
v0.4: WebSockets
Websockets are now generally available. Stream real-time Polymarket data directly to your application over two endpoints, authenticated with the sameX-API-Key you use for REST.- Rooms (
wss://staging-api.struct.to/ws): subscribe to topic-based data streams for trades, asset prices and candle windows, market / event / position metrics, trader PnL and positions, accounts, order books, and CLOB rewards. Each room exposes its own filters (condition IDs, market slugs, wallet addresses, asset symbols, timeframes, and more) so you only receive the messages you care about. - Alerts (
wss://staging-api.struct.to/ws/alerts): receive the full catalog of webhook events (whale trades, PnL crossings, probability and volume spikes, milestones, and more) pushed over a persistent Websocket connection, with no public HTTP endpoint to host. - Per-message credit billing: pay only for messages actually delivered to your connection, with a 1 credit hold on connect and per-room rates starting at 0.01 credits per message.
- Docs: see WebSockets → Getting Started for your first connection, the Rooms catalog for every available stream and its filters, and Alerts for the webhook-over-Websocket endpoint.
- Fixed Websocket trade serialization to send numeric fields as strings and return null for ‘side’ field on non-fill trade types (Redemption, Merge, Split)
- Added wallet tracking webhook and new Websocket event types for market trades, asset prices, and candle data updates
- Enhanced position and market metrics with granular timeframe-based analytics
- Fixed position title display and search to use market title as fallback when position title is missing, and improved position search to match against both position and market titles
- Fixed position ID conversion from hexadecimal to decimal format for consistent position identifiers
- Removed ‘worst_trade’ sort option from global PnL leaderboard API and fixed worst trade calculation to only consider closed market positions
- Added min_shares filter to trader position PnL endpoint to exclude dust positions
- Added current_shares_balance and image_url fields to trader positions and trades with real-time Websocket updates
- Expanded REST API with comprehensive market analysis endpoints including trader PnL tracking, order book data, trades, price movements, metrics, volume charts, spread history, and position data
- Added offset-based pagination to trader trades and P&L endpoints, with offset taking precedence over cursor-based pagination
- Search endpoint now supports type filtering and optional trader PnL data enrichment with dynamic credit pricing
- API endpoints now return empty results instead of 404 errors when data is not found; PnL endpoints default to lifetime calculations; renamed pnl_usd to realized_pnl_usd for clarity across REST and Websocket APIs
- Updated PnL data types and tracking system to V2 versions across all PnL-related APIs and data streams, including timestamp field on trader PnL candle data for improved data freshness tracking
- Added comprehensive PnL tracking with position-level and market-level metrics, enriched candle and calendar endpoints with multiple timeframe options (1d, 7d, 30d, lifetime), and pagination support
- Enhanced webhook system with wallet address allowlist filtering, timeframe filtering for PnL events, condition ID and sell volume filtering, new trade execution notifications, and spike webhooks now include previous and current probability/price values with 10-second deduplication across subscriptions
- Positions API now includes market slug and image URL for each position with market_slug as a filterable query parameter, and renamed buy/sell USD fields to total_buy_usd and total_sell_usd for clarity
- Renamed query parameters (‘start’/‘end’ to ‘from’/‘to’) and standardized response field names across order book, PnL candles, and Websocket chart data endpoints
- Added support for DOGE, BNB, and HYPE asset symbols in price history queries, webhooks, Websocket filters, and asset price API with validation for unsupported symbols
- Added realized_pnl_usd sorting option for positions with automatic win rate and average PnL metrics calculation
- Added comprehensive Order Book APIs with real-time Websocket streams, historical snapshots, and spread time-series data with filtering by market, condition, and position ID
- Added support for 4-hour (4h) interval in asset price history across all APIs and webhooks
- Improved Polymarket market search with relevance scoring and enhanced validation for character counting and timeframe parameters
- Improved orderbook parsing to support both object and array formats for bid/ask levels
- Fixed orderbook metrics calculation, market endpoints to return proper 404 responses, and eliminated duplicate history records from redundant Websocket connections
- Added 24-hour volume data to AI market responses and introduced an AI credit system with automatic billing for API, Websocket, and webhook usage
- Added
exclude_shortterm_marketsboolean flag to webhook filtering options - Implemented connection and message rate limiting (30 connections per 60 seconds, 30 messages per second per organization) with improved error handling and validation to ensure clients join rooms before messaging
- Reduced Websocket ping timeout from 30 minutes to 30 seconds for faster detection of inactive connections
- Fixed credit tracking and webhook suspension logic to prevent negative balances and duplicate suspensions
- Enhanced price-spike and volume-spike webhooks with configurable thresholds, time windows, and deduplication to detect market movements with reduced latency and false positives
- Webhook management enforces plan-based limits with automatic deletion or suspension on subscription changes
- Removed min_usd_value filter from asset price tick webhooks; use asset_symbols to filter tracked crypto assets instead
- Purchased credits now persist when changing subscription plans, with add-on credits consumed after plan credits are exhausted
- Added comprehensive event data including 24-hour volume, credit usage tracking, AI-optimized API response formats, and new webhook event types (Close to Bond, Market Created, Asset Price Ticks, Window Updates, Condition/Event/Position Metrics, Volume/Probability Milestones, and Volume Spikes)
- Introduced subscription filters for webhook events, enabling filtering by market, event, trader, position, and other criteria
- Improved Websocket price feeds with immediate updates on new candle periods and enhanced webhook performance through rate limiting and stricter validation
- Updated market webhook payloads to use server timestamps, enriched events with category metadata, and now include all markets regardless of metadata availability
- Fixed whale trade webhooks to only trigger for actual OrderFilled trades and corrected partial updates validation
- Webhooks now support per-endpoint pending-event limits with enhanced delivery analytics tracking all attempts, failures, and error details
- Search API now returns markets and traders alongside events with independent pagination, new sorting parameters, and increased base credits from 2 to 3
- Added support for NegRisk contract adapter with new trade types (Split, Merge, Redemption, PositionsConverted) and enriched metadata
- Trades stream payload includes updated confirmation timestamps with improved accuracy and deduplication logic
- Fixed trader PnL data accuracy, responses for public and authenticated requests, and duplicate updates
- Added comprehensive webhook events for trader transactions, market entries, volume spikes, probability spikes, and real-time asset price updates with customizable timeframes, thresholds, and asset symbol filtering, plus 24-hour credit usage tracking with analytics
- Enhanced data reliability across trader PnL candles, condition metrics, event metrics, holder stats, and liquidity streams with exactly-once delivery guarantees
- Improved Polymarket event and market search performance with faster title-based search
- Removed price and probability open/close/high/low fields from Polymarket event and condition metrics
- Added
ai=truequery parameter to API endpoints for optimized AI agent responses with truncated JSON payloads - Webhook events API now includes category, credits cost, and applicable filter fields for each event type, with validation for webhook filters and subscriptions to enforce required fields at creation time
- Webhook delivery logging now visible by default with info-level logs for successful deliveries and warning-level logs for failures, including delivery ID, status code, and duration
- Fixed webhook credit deduction to use per-event costs instead of a global rate, eliminating silent webhook drops
- Added price jumps detection API endpoint (/v1/polymarket/market/price-jumps) that identifies significant price movements (configurable threshold, default 10%) within configurable candle windows (1, 5, 15, 30, 60, 240 minutes), with support for condition_id or market_slug lookup and millisecond timestamps for direct compatibility with the trades API
- Trader PnL now displays accurate average hold time for lifetime statistics
- Webhooks API endpoints updated to
/v1/webhooksand now support both API key and bearer token authentication methods
- Websocket price updates now only trigger when candles are fully settled, preventing mid-candle close price changes and duplicate data during reconnections
- Added new webhook event types (market_created, volume_spike, volume_milestone, probability_spike, position_metrics, first_trade, new_market, whale_trade, close_to_bond, and PnL tracking) with customizable filters, 6-hour deduplication, concurrent execution support, and 7-day/30-day metrics periods
- Webhook subscriptions now use a single
eventfield per subscription; migrated API endpoints from /frontend/webhooks/* to /v1/webhook/* with volume testing endpoints to estimate delivery costs - Added webhook management endpoints (list_events, rotate_secret) and improved Websocket PING/PONG handling for more reliable connection management
- Asset history now returns null for incomplete time windows, webhook outcomes properly zero out incomplete candle data, and token account data on Polygon filters to Polymarket-relevant collateral tokens (USDC and USDe)
- Added trader PnL statistics including average PnL per market, average PnL per trade, and average hold time
- Implemented webhook deduplication to prevent duplicate webhooks with the same URL and event configuration
- Webhook API restructured with organization-based authentication, new event listing endpoint, and secret rotation capability
- FirstTradePayload webhook schema updated with improved numeric precision (f64 with 6 decimal places), removed unnecessary fields, and renamed slug to market_slug
- Removed ‘All’ event variant from webhook subscriptions and failure tracking fields for more precise event filtering and cleaner responses
- Market images now included in trade results and position queries across all APIs
- Asset price history query time bounds extended by 1 day to include in-progress candles with immediate queryability upon candle opening
- Real-time price updates now follow Chainlink prices for improved accuracy and reliability
- Price change percentage automatically computed from open and close prices for better data consistency
- Fixed asset price history data alignment across Websocket and REST API, with improved candle initialization and correct handling of price conflicts and invalid values
- Added market and event chart endpoints with TradingView-style resolutions (1H, 6H, 1D, 1W, 1M, ALL) with 2-3x faster queries
- Extended markets and outcomes endpoints with new fields: series_slug, accepting_orders, uma_resolution_status, liquidity_usd, and liquidity_updated_at
- Added asset price history API endpoint for BTC, ETH, XRP, and SOL across multiple timeframes with cursor-based pagination using Chainlink price data
- Enhanced trader profile batch endpoint with lifetime timeframe support and ability to retrieve winning outcomes for resolved markets
- Improved connection reliability and recovery after interruptions
- Fixed trader PnL candles API response and improved chart query performance by ~75% for 1-week resolution
- API now uses explicit field names (market_slug, event_slug, created_time, start_time, end_time) with full backwards compatibility
- Added real-time Polymarket CLOB Websocket streaming with market price feeds, sports updates, user order/trade channels, and automatic reconnection
- Added position-level PnL tracking and querying across 1d, 7d, 30d, and lifetime timeframes with filtering and sorting options
- Market responses enhanced with resolution source, CLOB rewards, individual outcome prices, lifetime metrics, detailed PnL analytics, and full outcome details including outcome_index and MarketStatus ‘all’ filter support
- Improved data quality by filtering invalid trades, protocol contract activities, fixing market outcome prices, correcting trade fees, and correcting market closed status
- Added shares_usd field to event holder endpoints and expanded metrics API with new trading volume, fees, and trader count endpoints across multiple timeframes
- Improved Trader Positions endpoint with sorting by shares, USD value, PnL, and price, plus event slug filtering and increased limits to 50/200
- Enhanced market tracking with accepting_orders and uma_resolution_status fields, Cancelled trade type, and accurate UMA assertion state tracking; improved dispute tracking for UMA oracle markets with clear status distinction between disputed and settled outcomes
- Updated API responses to use typed enums instead of integers, numeric volume metrics, and Unix epoch format for timestamps; standardized end_time field naming and increased recommended markets endpoint limit to 250
- Added cursor-based pagination support to candlestick, volume chart, and trader endpoints for better time-series data handling
- Fixed market status API mapping and Websocket URL configuration for Polygon chain; fixed UMA resolution status and market status updates to correctly handle out-of-order events and prevent data loss
- Market metrics API now returns nested metrics organized by multiple timeframes (1m, 5m, 30m, 1h, 6h, 24h, 7d, 30d) with volume, fees, transaction count, unique traders, and open interest change
- Added real-time PnL tracking across multiple timeframes for traders at market, event, and global levels with best/worst trade statistics and enhanced leaderboard sorting
- Restructured trader positions API with clearer field names and nested market-level PnL data under pnl field, plus market metadata in responses
- Simplified PnL data in holder responses with a single realized_pnl_usd field across event, market, and position holders
- Fixed share balance scaling issue in market holders, position holders, and trader positions endpoints
- Improved performance of holder and position queries
- Added 7-day and 30-day metrics timeframes to events and markets with optional include_metrics parameter; market metrics now include volume, fees, transaction counts, trader counts, and open interest across all timeframes (1m, 5m, 30m, 1h, 6h, 24h, 7d, 30d)
- Added ability to fetch up to 50 events by ID or slug using comma-separated lists with enhanced sorting options (title, relevance, creation_date, start_date, EndTime, StartTime, CreatedTime)
- Implemented cursor-based pagination for event and market listing with up to 100 items per page, using base64-encoded pagination_key parameter
- Enhanced market filtering with advanced options including volume, liquidity, holders, tags, and status, plus bulk search across multiple fields
- Market API now returns granular time fields (created_time, start_time, game_start_time, closed_time, end_time) instead of end_date and resolution_date across REST and Websocket APIs, and market status is now returned as a string (“open”/“closed”) instead of a number
- Events with a future start_date now return status “upcoming” instead of “open”, with added support for filtering by status and improved event status logic to distinguish between upcoming, open, and closed events; added show_market_images field to event list responses