Financial Data API

JavaScript & TypeScript SDK for Financial Data

Full TypeScript types, ESM/CJS, zero dependencies. 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("US0378331005");
const metrics = await client.equity.metrics("AAPL");

console.log(`P/E ${metrics.valuation.pe}`);

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

Zero dependencies

Built on native fetch. Tree-shakeable ESM. ~25 KB unpacked.

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.market.quotesLatest(tickers);

  return holdings.reduce(
    (total, h) => total + h.shares * quotes[h.ticker].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.

The SDK throws typed errors — AuthenticationError, NotFoundError, RateLimitError, BadRequestError, ServerError — so you can catch precisely. Transient failures (429 and 5xx) are retried automatically with exponential backoff; configure maxRetries and timeout when constructing the client.

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. 100,000 calls/month. No credit card required.

Get your free API key