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
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