Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Yahoo Finance Closing Price

Tài liệu API
https://api.sandbase.ai/v1/api/yahoo-finance/closing-price

Get a stock or ETF's latest price and previous closing price from Yahoo Finance by ticker symbol, with day high/low, change, volume, and market cap. Returns the most recent session only; historical dates are not supported.

Giá
Từ $0.00099USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
The ticker symbol to look up.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Yahoo Finance Closing Price API

Get a stock or ETF's latest price and previous closing price from Yahoo Finance by ticker symbol, with day high/low, change, volume, and market cap. Returns the most recent session only; historical dates are not supported.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "yahoo-finance/closing-price", "ticker": "AAPL"}'

The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.

Parameters

NameTypeRequiredDescription
tickerstringYesThe ticker symbol to look up.

Pricing

Billed at the actual cost of each call: about $0.00099 per result returned (about $0.00099 for 1 results). A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Yahoo FinanceTừ $0.00099 mỗi lần gọiJSON
Yahoo Finance$0.05 mỗi lần gọiJSON bất đồng bộ
Yahoo Finance$0.05 mỗi lần gọiJSON bất đồng bộ
Yahoo FinanceTừ $0.00099 mỗi lần gọiJSON
Yahoo Finance$0.05 mỗi lần gọiJSON bất đồng bộ
Yahoo Finance$0.05 mỗi lần gọiJSON bất đồng bộ

Câu hỏi

FAQ

Làm thế nào để dùng API Yahoo Finance Closing Price?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/yahoo-finance/closing-price với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Yahoo Finance Closing Price có giá bao nhiêu?

Từ $0.00099 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Yahoo Finance Closing Price chấp nhận những tham số nào?

Bắt buộc: ticker (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Yahoo Finance Closing Price trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của Yahoo Finance không?

Không. Yahoo Finance Closing Price chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Yahoo Finance.