/* * ============================================================================= * VibeQuant (vquant) — AI-Powered Financial Intelligence Platform * ----------------------------------------------------------------------------- * File: server/services/fmp/config.ts * * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Website: https://www.spboucher.ai * Demo: https://www.vquant.ai * License: MIT (see LICENSE) * * Copyright © 2026 Simon-Pierre Boucher. All rights reserved. * ============================================================================= */ import axios from 'axios'; export const FMP_API_KEY = process.env.FMP_API_KEY; export const FMP_BASE_URL = 'https://financialmodelingprep.com/stable'; export const FMP_V4_URL = 'https://financialmodelingprep.com/stable'; interface FMPResponse { data: T; error?: string; } // Helper function to make FMP API calls export async function fmpRequest(url: string): Promise { try { const response = await axios.get(url); return response.data; } catch (error) { console.error('FMP API Error:', error); throw error; } }