Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Nasdaq Stock Quote

API dokümanları
https://api.sandbase.ai/v1/api/nasdaq/stock-quote

Real-time quote for a single equity including last sale price, net change, percentage change, bid/ask, volume, 52-week range, and market status. Response shape varies by asset class (stocks show keyStats; ETFs and.

Fiyat
$0.01USD / çağrı
Yöntem
POST
Yanıt
Asenkron JSON
Parametreler
1 gerekli · 1 isteğe bağlı

Oynatma Alanı

Girdi
Stock symbol (e.g. AAPL).
Asset class: stocks, etf, mutualfunds, crypto.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Nasdaq Stock Quote

Returns a quote for one Nasdaq-listed symbol, including last sale price, bid and ask, market status, and 52-week range. It needs a symbol such as AAPL, and optionally an asset_class.

Use cases

  • Show the latest sale price and market open or closed state for a ticker in a dashboard.
  • Check whether a symbol is listed on Nasdaq or belongs to the Nasdaq-100 before adding it to a watchlist.
  • Read the 52-week range to flag stocks trading near their yearly high or low.
  • Confirm the company name, exchange, and stock type for a ticker symbol.

Request

curl -X POST "https://api.sandbase.ai/v1/api/nasdaq/stock-quote" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol": "AAPL"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
symbolstringYesStock symbol (e.g. AAPL).
asset_classstringNoAsset class: stocks, etf, mutualfunds, crypto.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "data": {
      "assetClass": "STOCKS",
      "companyName": "Apple Inc. Common Stock",
      "exchange": "NASDAQ-GS",
      "isHeld": false,
      "isNasdaq100": true,
      "isNasdaqListed": true,
      "keyStats": {
        "dayrange": {
          "label": "High/Low:",
          "value": "NA"
        },
        "fiftyTwoWeekHighLow": {
          "label": "52 Week Range:",
          "value": "243.42 - 351.73"
        }
      },
      "marketStatus": "Closed",
      "notifications": [
        {
          "eventTypes": [
            {
              "eventName": "High Technical Attribute",
              "id": "tech_attribute",
              "message": "AAPL has a High Technical Rating by Nasdaq Dorsey Wright. Discover why technical…",
              "url": {
                "label": "Discover why technical analysis matters",
                "value": "https://www.nasdaq.com/solutions/nasdaq-dorsey-wright/technical-analysis"
              }
            }
          ],
          "headline": "HIGH TECHNICAL ATTRIBUTE"
        }
      ],
      "primaryData": {
        "askPrice": "N/A",
        "askSize": "N/A",
        "bidPrice": "N/A",
        "bidSize": "N/A",
        "currency": null,
        "deltaIndicator": "down",
        "isRealTime": false,
        "lastSalePrice": "$338.32"
      },
      "secondaryData": null,
      "stockType": "Common Stock"
    },
    "message": null,
    "status": {
      "bCodeMessage": null,
      "developerMessage": null,
      "rCode": 200
    }
  },
  "status": "success"
}

Response fields

FieldMeaning
data.data.symbolTicker symbol of the quoted security.
data.data.companyNameFull name of the company and share class.
data.data.primaryData.lastSalePriceLast sale price as a string with a currency sign, for example $338.32.
data.data.primaryData.deltaIndicatorDirection of the latest price change, such as down.
data.data.primaryData.bidPrice / askPrice / bidSize / askSizeCurrent bid and ask price and size. These show N/A when no value is available, as when the market is closed.
data.data.primaryData.isRealTimeTells you whether the price is real time. It is false in this response.
data.data.marketStatusMarket state at the time of the call, for example Closed.
data.data.keyStats.fiftyTwoWeekHighLow.value52-week low and high as one string, for example 243.42 - 351.73.
data.data.exchangeExchange or market tier where the symbol trades, for example NASDAQ-GS.
data.data.isNasdaq100 / isNasdaqListedBoolean flags for membership in the Nasdaq-100 and for a Nasdaq listing.

Notes

  • Set asset_class to stocks, etf, mutualfunds, or crypto. The response shape changes by asset class, so keyStats as shown here applies to stocks.
  • Price and range values are formatted strings, not numbers. Strip the $ sign and split the range text before you calculate with them.
  • The result sits under data.data. The inner status.rCode is 200 on success.
  • To find a symbol first, use Nasdaq Search Symbols. For price history, call Nasdaq Stock Historical Quotes.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Nasdaq$0.01 çağrı başınaAsenkron JSON
Nasdaq$0.01 çağrı başınaAsenkron JSON
Nasdaq$0.01 çağrı başınaAsenkron JSON
Nasdaq$0.01 çağrı başınaAsenkron JSON
Nasdaq$0.01 çağrı başınaAsenkron JSON
Nasdaq$0.01 çağrı başınaAsenkron JSON

Sorular

SSS

Nasdaq Stock Quote API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/nasdaq/stock-quote adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Nasdaq Stock Quote API'sinin fiyatı nedir?

çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Nasdaq Stock Quote API'si hangi parametreleri kabul eder?

Gerekli: symbol (string). İsteğe bağlı: asset_class (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Nasdaq Stock Quote API'si ne döndürür?

Bir JSON sonucu. Bu uç nokta asenkron çalışır; bu nedenle yanıt, tamamlanan sonucu nasıl alacağınızı söyler. Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Nasdaq geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Nasdaq Stock Quote, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Nasdaq API erişimi için ayrıca başvuru yapmanız gerekmez.