🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

charles-schwab-api

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

charles-schwab-api

Unofficial API wrapper for Charles Schwab Accounts and Trading, Market Data APIs

0.0.10
latest
Source
npm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 08 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts