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.
{
"timestamp": "2024-03-20T15:45:32.123Z",
"data": {
"most_popular_provider": "Moneybox",
"most_popular_age_group": "25-34",
"most_popular_calculator_type": "Standard ISA",
"most_popular_annual_income": "£30,000 - £49,999",
"average_initial_deposit": 5000.0,
"average_monthly_deposit": 300.0,
"average_final_amount": 15750.0,
"average_growth_amount": 2450.0
}
}
For trading data, you can use the /trading/summary
endpoint:
GET /trading/summary
Host: api.tfe.ai
X-API-Key: your-api-key-here
Response:
{
"average_metrics": {
"account_balance": 10000.0,
"risk_input": 2.5,
"lot_size": 0.25,
"stop_loss": 50.0,
"take_profit": 150.0
},
"most_popular": {
"pair": "EURUSD",
"broker": "IG",
"experience_level": "Intermediate",
"direction": "buy",
"time_frame": "1h",
"risk_mode": "percentage"
},
"timestamp_utc": "2024-03-20T15:45:32.123Z"
}
import requests
API_KEY = "your-api-key-here"
BASE_URL = "https://api.tfe.ai"
def get_isa_summary():
headers = {
"X-API-Key": API_KEY
}
response = requests.get(f"{BASE_URL}/isa/summary", headers=headers)
if response.status_code == 200:
return response.json()
else:
print(f"Error: {response.status_code}")
print(response.json())
return None
def get_trading_trends(start_date=None, end_date=None):
headers = {
"X-API-Key": API_KEY
}
params = {}
if start_date:
params["start_date"] = start_date
if end_date:
params["end_date"] = end_date
response = requests.get(f"{BASE_URL}/trading/trends/monthly", headers=headers, params=params)
if response.status_code == 200:
return response.json()
else:
print(f"Error: {response.status_code}")
print(response.json())
return None
# Example usage
summary = get_isa_summary()
if summary:
print(f"Most popular provider: {summary['data']['most_popular_provider']}")
print(f"Average initial deposit: £{summary['data']['average_initial_deposit']}")
# Get trading trends for a specific date range
trends = get_trading_trends(start_date="01-03-24", end_date="15-03-24")
if trends:
instruments = trends.get("trending_instruments", [])
if instruments:
print(f"Top trending instrument: {instruments[0]['instrument']}")
print(f"Trending score: {instruments[0]['trending_score']}")