Analysis of market trends, instruments, and trading signals
The Financial Analytics API provides comprehensive data analysis and insights for ISA investments and trading behavior. This powerful platform enables financial institutions, advisors, and analysts to access detailed metrics, trends, and recommendations through a simple, consistent REST API.
Access detailed analytics on Individual Savings Accounts (ISAs) including:
Comprehensive trading data analysis including:
All API requests require authentication using an API key which should be passed as a query parameter:
GET /isa/summary?api_key=your_api_key
Contact our team to obtain your API key and access credentials.
Our API offers different tiers of access:
All responses are returned in JSON format and follow a consistent structure:
{
"timestamp": "2024-03-20T12:00:00Z",
"data": {
// Response data specific to the endpoint
}
}
The API uses standard HTTP status codes to indicate the success or failure of requests:
Error responses include detailed information to help troubleshoot the issue:
{
"timestamp": "2024-03-20T12:00:00Z",
"error": "Validation Error",
"detail": "Invalid parameter: start_date must be in DD-MM-YY format"
}
The API uses a semantic versioning system (Major.Minor.Patch). The current version is 2.1.3.
This guide will help you get started with the TFE API, covering the basics from authentication to making your first requests.
const API_KEY = "your-api-key-here";
const BASE_URL = "https://api.tfe.ai";
async function getIsaSummary() {
try {
const response = await fetch(`${BASE_URL}/isa/summary`, {
headers: {
"X-API-Key": API_KEY
}
});
if (!response.ok) {
const error = await response.json();
throw new Error(`API error: ${error.detail}`);
}
return await response.json();
} catch (error) {
console.error("Error fetching ISA summary:", error);
return null;
}
}
async function getTradingTrends(startDate = null, endDate = null) {
try {
const params = new URLSearchParams();
if (startDate) params.append("start_date", startDate);
if (endDate) params.append("end_date", endDate);
const url = `${BASE_URL}/trading/trends/monthly${params.toString() ? '?' + params.toString() : ''}`;
const response = await fetch(url, {
headers: {
"X-API-Key": API_KEY
}
});
if (!response.ok) {
const error = await response.json();
throw new Error(`API error: ${error.detail}`);
}
return await response.json();
} catch (error) {
console.error("Error fetching trading trends:", error);
return null;
}
}
// Example usage
getIsaSummary().then(summary => {
if (summary) {
console.log(`Most popular provider: ${summary.data.most_popular_provider}`);
console.log(`Average initial deposit: £${summary.data.average_initial_deposit}`);
}
});
// Get trading trends for a specific date range
getTradingTrends("01-03-24", "15-03-24").then(trends => {
if (trends && trends.trending_instruments && trends.trending_instruments.length > 0) {
console.log(`Top trending instrument: ${trends.trending_instruments[0].instrument}`);
console.log(`Trending score: ${trends.trending_instruments[0].trending_score}`);
}
});
Now that you've made your first API request, here are some next steps:
Explore the API documentation:
Implement proper error handling:
Learn about API security:
Build advanced integrations:
For further assistance, contact our support team at support@tfe.ai.