tradier-client
tradier-client is a promise-based Node.js wrapper for the Tradier API. It currently works with the Market Data and Fundamentals API.
API Keys
You will receive your Tradier API Access Token after: creating an account
Installation
$ npm i -S tradier-client
Example Usage
Require or import the package.
const Tradier = ; // ES2015 ;
When creating a new Tradier
instance, you must specify if you are in a sandbox account. See below for a description.
// If you are not in a sandbox account, you only need to pass in your access token and it takes care of the rest:const tradier = 'TRADIER_ACCESS_TOKEN'; // If you are in a sandbox account, you must pass in 'sandbox' as a second argument in the new instance: const tradier = 'TRADIER_ACCESS_TOKEN' 'sandbox'; // Get current stock quotestradier // For multiple quotes, separate tickers with a comma: .quote('AAPL,KO,S')
Documentation
Methods
- Quote
- Time and Sales
- Option Chains
- Option Strikes
- Option Expirations
- Historical Pricing
- Intraday Status
- Market Calendar
- Company Search
- Company Information
- Corporate Calendar
- Dividend Information
- Corporate Actions
- Ratios
- Corporate Financials
- Price Statistics
Quote
tradier // For multiple quotes: .quote('AAPL,KO,S')
Time and Sales
tradier
Option Chains
tradier
Option Strikes
tradier
Option Expirations
tradier
Historical Pricing
tradier }); /* returns an array of objects { day: [ { date: '2017-01-03', open: 115.8, high: 116.33, low: 114.76, close: 116.15, volume: 28781865 }... ] */
Intraday Status
tradier
Market Calendar
tradier
Company Search
tradier
Company Information
tradier
Corporate Calendar
tradier
Dividend Information
tradier
Corporate Actions
tradier
Ratios
tradier
Corporate Financials
tradier
Price Statistics
tradier
Endpoints
API Endpoints used include:
Sandbox: https://sandbox.tradier.com/v1/
API: https://api.tradier.com/v1/
Beta: https://api.tradier.com/beta/
Contribute
Feel free to suggest new features, open an issue or submit a pull request.