Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Nasdaq Stock Quote

API 문서
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.

가격
$0.01USD / 호출
메서드
POST
응답
비동기 JSON
매개변수
필수 1개 · 선택 사항 1개

Playground

입력
Stock symbol (e.g. AAPL).
Asset class: stocks, etf, mutualfunds, crypto.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

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.

더 살펴보기

관련 API

모든 API
API가격응답
Nasdaq$0.01 / 호출비동기 JSON
Nasdaq$0.01 / 호출비동기 JSON
Nasdaq$0.01 / 호출비동기 JSON
Nasdaq$0.01 / 호출비동기 JSON
Nasdaq$0.01 / 호출비동기 JSON
Nasdaq$0.01 / 호출비동기 JSON

질문

FAQ

Nasdaq Stock Quote API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/nasdaq/stock-quote에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Nasdaq Stock Quote API 비용은 얼마인가요?

호출당 $0.01, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Nasdaq Stock Quote API는 어떤 매개변수를 받나요?

필수: symbol (string). 선택: asset_class (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Nasdaq Stock Quote API는 무엇을 반환하나요?

JSON 결과를 반환합니다. 이 엔드포인트는 비동기적으로 실행되므로, 응답에는 완료된 결과를 가져오는 방법이 안내됩니다. 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Nasdaq 개발자 계정이나 API 키가 필요한가요?

아니요. Nasdaq Stock Quote은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Nasdaq API 액세스를 별도로 신청할 필요는 없습니다.