charles-schwab-api
v0.0.10
Published
Unofficial API wrapper for Charles Schwab Accounts and Trading, Market Data APIs
Downloads
27
Readme
charles-schwab-api
Unofficial API wrapper for Charles Schwab Accounts and Trading, Market Data APIs
Installation
npm install charles-schwab-api
Usage
CommonJS
const charlesSchwabApi = require('charles-schwab-api');
ES6
import * as charlesSchwabApi from 'charles-schwab-api';
Authorize
charlesSchwabApi.authorize(appKey, callbackUrl);
Get token
charlesSchwabApi.getAccessToken(appKey,
secret,
'authorization_code',
callbackUrl);
Refresh token
charlesSchwabApi.refreshAccessToken(appKey,
secret,
refreshToken);
Get account numbers
charlesSchwabApi.getAccountNumbersHashValues(accessToken);
Get quotes
charlesSchwabApi.getMarketData(accessToken, 'XYZ');
Example
Examples can be found in this project: https://github.com/Artimatic/charles-schwab-algorithmic-trading