All packages
npm package

@pyriter/etrade

A Node.js client for the E*TRADE developer API.

Version v0.0.1
Weekly 3
License OSS

Installation

$ npm install @pyriter/etrade
$ pnpm add @pyriter/etrade
$ yarn add @pyriter/etrade
$ bun add @pyriter/etrade

Overview

OAuth 1.0a, account access, and order management for the E*TRADE developer API — written in TypeScript.

  • OAuth 1.0a flow helpers
  • Account list and balance endpoints
  • Sandbox + production modes
  • TypeScript declarations included

Usage

List accounts

ts
import { EtradeClient } from '@pyriter/etrade';

const client = new EtradeClient({
  consumerKey: process.env.ETRADE_KEY!,
  consumerSecret: process.env.ETRADE_SECRET!,
  env: 'sandbox',
});

await client.authorize();
const accounts = await client.accounts.list();

Keywords

E*TRADEtradingOAuthTypeScript