Financial Context exposes market data from openapi.fcontext.com through authenticated /api/market-data/* endpoints.
1. Create A Credential
Sign in to Financial Context at fcontext.com, open account settings, and create an API key for external access.
Keep API keys private. Use environment variables or your platform’s secret manager.
2. Request A Quote
curl "https://openapi.fcontext.com/api/market-data/quote?symbols=AAPL.US,MSFT.US" \
-H "x-api-key: YOUR_FCONTEXT_API_KEY"
The response body includes quote data for the requested symbols. The current API supports .US symbols and US market filters.
3. Use The API From Code
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();
}
Common First Calls
# Realtime quotes
curl "https://openapi.fcontext.com/api/market-data/quote?symbols=AAPL.US" \
-H "x-api-key: YOUR_FCONTEXT_API_KEY"
# Company overview
curl "https://openapi.fcontext.com/api/market-data/fundamental/company?symbol=AAPL.US" \
-H "x-api-key: YOUR_FCONTEXT_API_KEY"
# News
curl "https://openapi.fcontext.com/api/market-data/content/news?symbol=AAPL.US" \
-H "x-api-key: YOUR_FCONTEXT_API_KEY"
# Screener
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"
Method Support
Market-data endpoints support GET. Use query parameters for filters and pagination.