tickerstring必填
Stock ticker symbol (e.g. 'AAPL').
https://api.sandbase.ai/v1/api/marketbeat/marketrankGet MarketRank scores and component details for a stock. Includes overall percentile score and individual category scores for Analyst Opinion, Earnings and Valuation, Short Interest, Dividend, News/Social Media, and.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns the MarketBeat MarketRank for one stock. It gives an overall percentile and a score out of 5 for each of six categories, with a short detail line for each. The only required input is a ticker.
curl -X POST "https://api.sandbase.ai/v1/api/marketbeat/marketrank" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (e.g. 'AAPL'). |
exchange | string | No | Stock exchange (e.g. 'NYSE', ''). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"components": {
"Analyst's Opinion": {
"detail": "Analyst RatingModerate Buy",
"score": "2.3 / 5"
},
"Company Ownership": {
"detail": "Insider TradingSelling Shares",
"score": "1.4 / 5"
},
"Dividend": {
"detail": "Dividend StrengthStrong",
"score": "3.3 / 5"
},
"Earnings and Valuation": {
"detail": "Proj. Earnings Growth9.37%",
"score": "1.9 / 5"
},
"News and Social Media": {
"detail": "News Sentiment0.64",
"score": "3.5 / 5"
},
"Short Interest": {
"detail": "Short Interest LevelHealthy",
"score": "3.0 / 5"
}
},
"overall_score": "76th Percentile Overall Score",
"percentile": "76th Percentile"
},
"status": "success"
}
| Field | Meaning |
|---|---|
data.percentile | The stock's overall percentile as a string, for example 76th Percentile. |
data.overall_score | The same percentile as a longer label, for example 76th Percentile Overall Score. |
data.components | An object with one entry per category: Analyst's Opinion, Company Ownership, Dividend, Earnings and Valuation, News and Social Media, and Short Interest. Each entry holds a score and a detail. |
score | Inside each category entry. Score out of 5, returned as text like 2.3 / 5. |
detail | Inside each category entry. A short label joined to its value, for example Dividend StrengthStrong or Proj. Earnings Growth9.37%. |
status | Shows success when the call worked. |
/ to sort or filter.detail strings join the label and the value with no separator, such as Dividend StrengthStrong. Split on the known label to get the value.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/marketbeat/marketrank" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
tickerstring必填Stock ticker symbol (e.g. 'AAPL').
exchangestringStock exchange (e.g. 'NYSE', '').
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
MarketBeat | 每次呼叫 $0.01 | 非同步 JSON |
MarketBeat | 每次呼叫 $0.02 | 非同步 JSON |
MarketBeat | 每次呼叫 $0.01 | 非同步 JSON |
MarketBeat | 每次呼叫 $0.01 | 非同步 JSON |
MarketBeat | 每次呼叫 $0.02 | 非同步 JSON |
MarketBeat | 每次呼叫 $0.01 | 非同步 JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/marketbeat/marketrank。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:ticker (string)。 選填:exchange (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
JSON 結果。此端點為非同步執行,因此回應會告訴您如何取得完成的結果。 本頁的 README 包含範例回應。
不需要。MarketBeat Marketrank 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 MarketBeat API 存取權。