Skip to content
Browse documentation

Trade Check

Check a stock's upcoming earnings, volatility and liquidity. Calculate share size and hypothetical losses for your trade plan.

POST/api/v1/trade-check
Market IntelligenceIncluded in every plan · one key.

Overview

Look up a US stock's next earnings date, volatility and liquidity. Add a long or short trade plan to calculate whole shares within your stop risk budget, position value at entry and the loss if the order fills at a worse price.

Use it toCheck upcoming earnings and liquidity, and size a position against the risk budget you supply.

Check `market.asOfSession` and `market.status` (`current`, `stale`, `unavailable`). `atr14Pct` is Wilder ATR divided by the last close. `medianDailyDollarVolume20` is the median of close × volume over 20 completed sessions. Missing metrics are null. Trade Check uses the fresh five-weekday Nasdaq calendar for a near-term listing and the cached 45-weekday calendar for dates further out. `earnings.time` is `before_open`, `after_close` (New York market hours) or `unknown` for a listed date, and null without a date. `not_listed` applies only to the verified `calendarFrom`–`calendarThrough` window. A calendar with failed days may support a positive listing, but cannot establish absence. `unavailable` means the calendar could not be verified. The plan assumes the stated fills and excludes fees, borrow costs and brokerage limits. A stop is a trigger and actual loss can be larger. Unsupported tickers return 404; temporarily unavailable equity coverage returns 503. Example values are hypothetical.

Open the calculator

Coverage

Universe
US-listed common stocks and ADRs
History
Completed daily bars and up to 45 weekdays of earnings listings
Updates
On demand with cached sources
Source
Yahoo Finance daily bars + Nasdaq earnings calendar

Call it

Send your ra_live_… key in the x-api-key header. Pick your language:

curl -X POST "https://raspberrytrades.com/api/v1/trade-check" \
+  -H "x-api-key: ra_live_your_key_here" \
+  -H "Content-Type: application/json" \
+  --data '{"ticker":"NVDA","plan":{"side":"long","entryUsd":50,"stopUsd":47.5,"riskBudgetUsd":250,"stressExitUsd":43}}'

Parameters

x-api-key
header
API key with the market scope, shared with Market Brief and Market Sentiment.
Content-Type
header
application/json
ticker
string · required
US-listed common stock or ADR covered by Raspberry. Case insensitive; share-class dots and hyphens are supported.
plan
object · optional
Omit for market and earnings context only. Include side, entryUsd, stopUsd and riskBudgetUsd to size the plan.
plan.side
long | short
A long stop must be below entry; a short stop must be above entry.
plan.entryUsd, plan.stopUsd
number
Positive USD prices up to $10 million and four decimal places.
plan.riskBudgetUsd
number
Positive USD risk budget up to $10 million, with up to two decimal places.
plan.stressExitUsd
number · optional
Hypothetical fill worse than the stop. By default, one additional stop distance beyond the stop, with a zero floor for longs.
Example response

Example, not a live result. Field shapes are exact; the values, prices and timestamps are illustrative. Call the endpoint for current data.

200 OK · application/json
{
  "ticker": "NVDA",
  "asOf": "2026-11-19T15:00:00.000Z",
  "currency": "USD",
  "market": {
    "status": "current", "expectedSession": "2026-11-18", "asOfSession": "2026-11-18",
    "lastCloseUsd": 150, "atr14Pct": 3.25, "medianDailyDollarVolume20": 16000000000,
    "source": { "name": "Yahoo Finance daily bars", "url": "https://finance.yahoo.com/quote/NVDA/history/" }
  },
  "earnings": {
    "status": "listed", "date": "2026-12-02", "time": "after_close",
    "calendarAsOf": "2026-11-19T05:00:00.000Z", "calendarWeekdays": 45,
    "calendarFrom": "2026-11-19", "calendarThrough": "2027-01-20", "calendarFailedDays": 0,
    "source": { "name": "Nasdaq earnings calendar", "url": "https://www.nasdaq.com/market-activity/earnings" }
  },
  "plan": {
    "side": "long", "entryUsd": 50, "stopUsd": 47.5, "riskBudgetUsd": 250, "shares": 100,
    "positionValueUsd": 5000, "riskPerShareUsd": 2.5, "lossAtStopUsd": 250,
    "stress": { "exitUsd": 43, "lossUsd": 700, "basis": "user_exit" }
  }
}
Market Intelligence — related datasets
Get your API key

Create a free account, copy your ra_live_… key and make your first call to https://raspberrytrades.com/api/v1/trade-check.

Keep your key on your server — never ship it in front-end code.