Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
發起第一筆 Financial Context 市場資料請求
openapi.fcontext.com
/api/market-data/*
curl "https://openapi.fcontext.com/api/market-data/quote?symbols=AAPL.US,MSFT.US" \ -H "x-api-key: YOUR_FCONTEXT_API_KEY"
.US
US
const baseUrl = "https://openapi.fcontext.com"; const apiKey = process.env.FCONTEXT_API_KEY; export async function getQuote(symbols) { const params = new URLSearchParams({ symbols: symbols.join(",") }); const response = await fetch(`${baseUrl}/api/market-data/quote?${params}`, { headers: { "x-api-key": apiKey }, }); if (!response.ok) { throw new Error(`Financial Context request failed: ${response.status}`); } return response.json(); }
# 即時行情 curl "https://openapi.fcontext.com/api/market-data/quote?symbols=AAPL.US" \ -H "x-api-key: YOUR_FCONTEXT_API_KEY" # 公司概況 curl "https://openapi.fcontext.com/api/market-data/fundamental/company?symbol=AAPL.US" \ -H "x-api-key: YOUR_FCONTEXT_API_KEY" # 新聞 curl "https://openapi.fcontext.com/api/market-data/content/news?symbol=AAPL.US" \ -H "x-api-key: YOUR_FCONTEXT_API_KEY" # 選股器 curl "https://openapi.fcontext.com/api/market-data/screener/search?market=US&conditions=pettm:10:50&count=20" \ -H "x-api-key: YOUR_FCONTEXT_API_KEY"
GET