Pending trade events are available on Dev, Pro, and Enterprise plans.
How It Works
- A trade transaction enters the Polygon mempool
- Predexon detects it and emits a pending event
- ~3–5 seconds later, the transaction is mined and a confirmed event is emitted
- Match the two events by
tx_hash- the confirmed event supersedes the pending one
Enabling Pending Events
Add astatus filter to your orders subscription. There are three modes:
status Value | What You Receive | Plan Required |
|---|---|---|
"confirmed" (default) | Only confirmed (mined) events | Any plan |
"all" | Both pending + confirmed events | Dev+ |
"pending" | Only pending (mempool) events | Dev+ |
status defaults to "confirmed" - works on all tiers.
Free-tier keys cannot request pending events. Subscribing with
status: "all" or status: "pending" on Free returns PLAN_REQUIRED. Free tier continues to receive confirmed events on the default ("confirmed") as before.Subscribe to both pending and confirmed
Subscribe to pending only
Update an existing subscription
What Differs Between Pending and Confirmed
Everyorder_filled event includes a status field ("pending" or "confirmed"). Most fields are identical, but a few differ:
| Field | Pending | Confirmed | Why |
|---|---|---|---|
status | "pending" | "confirmed" | |
price | May differ slightly | Exact | Can differ by a fraction of a cent if partial fills change the effective price |
shares / shares_normalized | May differ slightly | Exact | If the tx partially fills, final on-chain amounts may differ |
fee | Estimated | Exact | Actual fee may vary slightly after on-chain settlement |
log_index | null | Integer | No log exists yet for pending |
order_hash | String | String | Now included in both pending and confirmed events |
timestamp | Time seen in mempool | Block timestamp | |
tx_hash | Exact | Exact | Same hash - use this to match pending → confirmed |
user, taker, token_id, side, and all metadata (market slug, title, outcome, etc.) - are identical between pending and confirmed.
Important Caveats
- Not guaranteed to confirm - some pending transactions may be dropped, reverted, or replaced. Treat
status: "pending"as a strong signal, not a guarantee. - Only
order_filledevents - pending detection applies to trade fills only. Fee refunds, activity, and lifecycle events remain confirmed-only. - Match by
tx_hash- when the confirmed event arrives, it supersedes the pending one. Usetx_hashto correlate them.
