Skip to content
Live news Screener Coverage Pricing Docs REST API WebSocket API MCP server Company Use cases Blog Changelog Status Compare Contact
BLK$1,118.50-18.79(-1.65%)BlackRock® Canada Announces the Termination of iShares Convertible Bond Index ETF[5:23:34 PM ET]ITFS$1.43-0.02(-1.10%)Itafos Announces Release Date for Q3 2026 Results and Business Update Webcast[5:15:00 PM ET]FAGI$0.01-0.00(-13.33%)Full Alliance Group, Inc (OTC:FAGI) YAHBEE Highlights Community-Commerce Model for Agentic Commerce Era[5:15:00 PM ET]TGT$152.76-5.35(-3.38%)Vital Farms Introduces a Higher Standard for Free-Range Eggs Through Limited Pilot at Select Target Retail Stores[5:05:00 PM ET]NU$15.27+0.54(+3.67%)Notice to Market: Nu Holdings Ltd.[5:03:00 PM ET]POR$44.55-0.35(-0.78%)Portland General Electric Declares Dividend[5:00:00 PM ET]ANTX$3.55-0.09(-2.47%)AN2 Therapeutics, Inc. Reports Inducement Grants Under Listing Rule 5635(c)(4)[5:00:00 PM ET]EML$24.18-0.67(-2.70%)The Eastern Company Announces Timing of Third Quarter 2026 Earnings Release and Conference Call[4:55:00 PM ET]MYE$32.13-0.70(-2.13%)Myers Industries Announces Quarterly Dividend[4:45:00 PM ET]FCAP$63.35-0.59(-0.92%)First Capital, Inc. Reports Quarterly Earnings[4:45:00 PM ET]AIRDF$0.33-0.01(-3.96%)Rocket Doctor Grants Equity[4:42:20 PM ET]OXSQ$1.31-0.02(-1.83%)Oxford Square Capital Corp. Schedules Third Quarter 2026 Earnings Release and Conference Call for October 30, 2026[4:37:45 PM ET]SMMT$15.550.00(0.00%)Summit Therapeutics and Lunit Announce Agreement to Apply AI-powered SCOPE IO Platform for Tumor Microenvironment Analysis in Immuno-Oncology Development[4:37:00 PM ET]DGX$241.89-1.39(-0.57%)PRIVACY ALERT: AWKO Law LLP Investigates Quest Diagnostics for Data Breach of Patient Records[4:33:00 PM ET]
Guide 6 min read

REST vs WebSocket for financial news: which should you use?

When to poll a REST news API and when to stream over WebSocket: latency, cost, complexity and reliability trade-offs for market news apps.

Short answer: use REST to search, backfill and build pages on demand. Use WebSocket when your app has to react to new articles within seconds. Most production apps use both: REST for history and gap-filling, WebSocket for the live edge.

How REST news delivery works

With REST, your code asks a question ("latest Apple news since 13:00") and gets a page of results. It's stateless, cache-friendly, easy to debug with cURL, and runs anywhere, including serverless functions and cron jobs. To get new articles, you poll: repeat the request on an interval.

How WebSocket news delivery works

With WebSocket, your code opens one long-lived connection and subscribes to channels (ticker:AAPL, type:press_release). The server pushes each matching article as soon as it's available. There are no wasted requests and no polling delay, but you now own a stateful connection: heartbeats, reconnects and gap-filling.

Side-by-side

REST (polling)WebSocket (push)
LatencyPoll interval ÷ 2 on averageSeconds after ingestion
Wasted callsMost polls return nothing newNone
History & searchYes: filters, full-text, paginationNo, live only
InfrastructureAnything that can make HTTP requestsAn always-on process
Failure handlingRetry the requestReconnect + backfill via REST
Best forPages, reports, research, cron jobsAlerts, trading signals, live UIs

The latency math of polling

If you poll every 30 seconds, a headline waits 15 seconds on average and up to 30 seconds before your code sees it. Polling every 2 seconds cuts that, but that's 43,200 requests a day per filter set. On quota-based APIs that adds up fast. On MarketNewsAPI paid plans there's no request quota, but a stream is still simpler and faster.

Try it for 7 days. Signup starts Pro. A card is required. Real-time REST, WebSocket, and MCP, with no request cap. After that it's $15/month, or Free if you stop.

Start 7-day free trial

The hybrid pattern most teams use

  1. On startup, call GET /v1/news with your filters to load recent history.
  2. Open the WebSocket and subscribe to the same filters.
  3. Track the latest published_at you've processed.
  4. On disconnect, reconnect, then call REST with from= that timestamp to fill the gap. De-duplicate by id.
# Gap-fill after a reconnect
curl "https://api.marketnewsapi.com/v1/news?tickers=AAPL,MSFT&from=2026-10-06T13:02:11Z&sort=published_asc&limit=100" \
  -H "Authorization: Bearer $MARKETNEWSAPI_KEY"

Which plan do you need?

Pro is $15 a month for unlimited real-time REST and the WebSocket, with 3 concurrent connections and unlimited messages. The 7-day trial includes both.

Frequently asked questions

Should I use REST or WebSocket for stock news?
Use REST to search, backfill, and build pages. Use the WebSocket when the app has to react within seconds of ingestion. Most production apps use both: REST for history and gap-filling, the socket for the live edge. Pro at $15 a month includes both, and the 7-day trial does too. Free is REST only, delayed 15 minutes.
Does polling a news API waste requests?
Often, yes. Most polls return nothing new, and a headline waits about half your poll interval. Polling every 2 seconds is tens of thousands of calls a day. MarketNewsAPI Pro has no daily cap, only a burst of 20 requests per second, but a stream is still faster. Free would hit 100 requests a day quickly if you poll that hard.
How do I fill gaps after a WebSocket disconnect?
Store the latest published_at you processed. On reconnect, call GET /v1/news with the same tickers and from set to that timestamp, then de-duplicate by article id. The socket does not replay the gap by itself. Pro includes 3 concurrent connections, so a spare connection can be the standby. The trial includes the same pattern.

Real-time stock news for $15 a month.

Start a 7-day Pro trial. A card is required. REST, WebSocket, and MCP are included. If you don't subscribe, the account stays on Free.