Financial Data API

JavaScript & TypeScript SDK for Financial Data

Full TypeScript types, ESM/CJS, WebSocket streaming. The Node.js market data library for modern apps.

npm install eulerpool

Quick start

Three steps to your first data call

1. Install
$ npm install eulerpool
2. Authenticate
import Eulerpool from "eulerpool";

const client = new Eulerpool("ep_live_xxx");
3. Fetch data
const profile = await client.equity.profile("AAPL");
const financials = await client.equity.financials("AAPL");

console.log(`${profile.name}: P/E ${financials.peRatio}`);

Features

Built for JavaScript & TypeScript

01

Full TypeScript types

Autocomplete and type safety. Every response is fully typed.

02

ESM & CJS

Works with Node.js, Deno, and bundlers. Import how you want.

03

Async/await native

Promise-based API. No callbacks. Modern JavaScript.

04

WebSocket & tree-shakeable

Real-time streaming. Import only what you use. Small bundles.

Example

Portfolio tracker

portfolio.js
import Eulerpool from "eulerpool";

const client = new Eulerpool("ep_live_xxx");

async function getPortfolioValue(holdings) {
  const tickers = holdings.map(h => h.ticker);
  const quotes = await client.equity.quotes(tickers);

  return holdings.reduce((total, h) => {
    const price = quotes[h.ticker].price;
    return total + h.shares * price;
  , 0);
}

Frequently asked questions

Run npm install eulerpool or yarn add eulerpool. The SDK supports Node.js 18+ and modern browsers. It is written in TypeScript and ships with full type definitions for auto-complete and type safety.

Yes. The SDK is written in TypeScript and exports all types. Every API response is fully typed — you get auto-complete for fields like ticker, price, volume, and financial statement line items. No @types package needed.

Yes. The SDK works in Node.js and modern browsers. For browser usage, use the lightweight fetch-based client. Note that API keys should be kept server-side in production — use a backend proxy for browser apps.

Yes. The SDK includes a WebSocket client for real-time data streaming. Call client.stream.subscribe(['AAPL', 'GOOGL']) to receive push-based price updates. The client handles reconnection and heartbeats automatically.

Yes. The SDK works in any JavaScript/TypeScript framework including Next.js, Nuxt, Express, Fastify, and serverless functions (AWS Lambda, Vercel, Cloudflare Workers). It uses standard fetch and has no platform-specific dependencies.

Ready to build?

Get your free API key. 1,000 calls/day. No credit card required.

Get your free API key