Stock Market Data API for Price Alerts: What Does Polling 120 Stocks Every Two Seconds Cost in Requests?

TickDB Research ·

Stock Market Data API for Price Alerts: What Does Polling 120 Stocks Every Two Seconds Cost in Requests?

Before launching watchlist alerts, estimate how many requests polling will use. At a 50-symbol batch limit, polling 120 named symbols every two seconds takes an estimated 90 requests per minute. We split a real archived list offline, compare three polling intervals and show what to measure before putting the plan into service.

Suppose your alert watchlist grows from 50 stocks to 120 while the page keeps refreshing every two seconds. Can you keep that interval? Look at the requests first. A round that used to take one request now takes three, so keeping the same interval triples the planned call count.

For symbol-list snapshots, polling 120 stocks every two seconds takes an estimated 90 requests per minute. If the job has 60 requests available per minute and you want to reserve some for retries, it already exceeds the budget. Five seconds fits the illustrative budget. Whether it meets the alert requirement depends on when each symbol actually receives a usable observation.

Count the calls first. One more symbol can add a batch

TickDB's symbol-list snapshot endpoint, GET /v1/market/ticker, accepts up to 50 symbols per request. We split the first 120 unique symbols from a November 20, 2026 CSI 300 archive into 50, 50 and 20. There are three calls per round and 30 scheduled rounds per minute at two-second intervals, giving 90 calls. These are steady-cadence estimates. Count retries and other traffic separately.

Three batches for 120 symbols take an estimated 90, 36 or 18 requests per minute at intervals of two, five or ten seconds

An actual archived stock list, split and costed offline. The 50-symbol cap applies to the symbol-list snapshot endpoint.

Interval between round startsEstimated requests per minute
2 seconds90
5 seconds36
10 seconds18

Suppose 60 calls per minute are available and you set aside 20% for retries or other calls. Routine polling has 48 requests. At five seconds, 120 symbols need 36 and leave 12 routine calls unused. Even 150 symbols still fit in three batches. The 151st symbol adds a fourth batch and uses all 48 routine calls at five-second intervals. The original reserve is still set aside.

Replace the two inputs with your watchlist size and interval. This code runs offline and takes a unique symbol count and a positive interval in seconds.

def budget(symbol_count, cycle_seconds, batch_limit=50):
    batches = (symbol_count + batch_limit - 1) // batch_limit
    return batches, batches * 60 / cycle_seconds


cases = [(120, 2), (120, 5), (120, 10), (150, 5), (151, 5)]
for count, seconds in cases:
    batches, per_minute = budget(count, seconds)
    print(f"{count:3d}  {seconds:2g}s  {batches}  {per_minute:g}")

The actual output shows the symbol count, interval, calls per round and estimated requests per minute.

120   2s  3  90
120   5s  3  36
120  10s  3  18
150   5s  3  36
151   5s  4  48

Check when each symbol actually updates

Start with an interval you can afford and run your own watchlist. Reconcile all the requested symbols with the returned records in each round. Record missing, duplicate and unexpected symbols, as well as failed batches. Checking positions 50–51 and 100–101 helps diagnose boundary mistakes. Check completeness against the entire list.

MeasureWhat to record
Time to finish a roundFirst batch send to last batch completion. Flag failures, retries and overlapping rounds
Time between successful observationsHow much time elapsed between two usable records for the same symbol
Quote age on arrivalReceive time minus source timestamp when the clocks are comparable. Record unchanged source timestamps separately from request failures

If the prior round is still running, avoid queuing a backlog. On a rate limit or partial response, record which symbols had no usable observation that round and keep stale values distinct from new observations. This tells you whether to investigate scheduling, batch coverage or the price timestamp itself.

When to try WebSocket

Define the price that triggers the alert and how quickly you need to see it. If the threshold is 101 and two snapshot reads of the latest price show 100 and 100.2, the snapshots cannot reveal whether the price briefly touched 101.2 between them. If brief crossings matter and tighter polling would exceed the budget, test TickDB's WebSocket market-data subscription. Check symbol and channel availability, then verify triggers against the messages you receive. Test reconnect, resubscription and state recovery. REST snapshots can still support initial loading and periodic reconciliation. TickDB stock market data API

FAQ

Do parallel batches use fewer requests?

The round still sends three requests. Parallelism may change completion time, which you need to measure on your own list and runtime environment. The table estimates an average based on the polling interval. Rate limits may also apply in shorter windows, especially when several batches are sent in a burst.

Does the same 50-symbol calculation apply to a full-market snapshot?

The 50-symbol limit here belongs to the symbol-list endpoint. Full-market snapshots are a separate route. Compare supported markets, request conditions and response size for each route, then test both against the same alert requirement.

References

  • TickDB official market ticker and stock market WebSocket documentation.
  • CSI 300 archive dated November 20, 2026. Unique symbols were split and costed offline.

This Week's Offer

Original TickDB Black Friday subscription campaign banner

TickDB Black Friday subscription week ends at 23:59 Beijing time on November 29, 2026. Save 15% on a six-month subscription and receive an additional half month. Save 20% on an annual subscription and receive an additional month. New paid subscriptions and renewals are eligible.

7 markets · 43,111 symbols

US stocks
14,809
Hong Kong market
3,354
China stocks, ETFs & bonds
7,576
Forex & metals
1,228
Indices
13,960
Futures
1,172
Crypto
1,012
11/27/2026

Related articles

A-Share Minute Data API: A Stock Gapped Up and Is Still Up at 10:00. Has It Given Back the Gap?

When an A-share stock opens higher and is still up on the day at 10:00, how much of the opening gap is left? In a November 24 replay, the same CNY 167.73 Hygon price was 2.27% above the previous close and 1.29% below the open. Use the two baselines and the worksheet below to separate continuation, a fading gap and missing observations on your own watchlist.

TickDB Research ·

A-share market data API: Why a 300-stock report still needs a trading-date check

An after-close job can receive all 300 quotes and still contain a quote from the wrong day. In a local replay of a real CSI 300 sample, complete input updated the date in the reader file to November 20. Removing a row or changing one quote to an older date left the file on November 19. The file contained the date and row count only.

TickDB Research ·

US stock kline API: How to check batch downloads for missing and duplicate bars

How do you verify coverage after downloading US daily bars in batches? A complete AAPL response contained 15 bars. The same window with limit=2 returned the final two. Splitting the 15 bars offline produced either an extra row or a missing date at the boundary. Here is how to distinguish those cases and check your downloaded batches against a trading calendar.

TickDB Research ·

Financial data in a backtest: When can you use earnings reported after the close?

If your stock screen runs at 4 p.m. New York time, when can it use Apple's latest quarterly net income? Using EDGAR acceptance as a proxy, the July 31 screen cannot use the figure, while the August 1 screen can. We verify the amount against TickDB's response and the SEC exhibit, then show a cutoff check you can run on your own records.

TickDB Research ·