Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tradier-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tradier-api

Node.js library for the Tradier API

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

tradier-api

Node.js library for the Tradier API

API Documentation

The REST API documentation can be found at https://developer.tradier.com/documentation.

Usage

const Tradier = require('tradier-api');

// You will need to get an access token from https://developer.tradier.com/
// Possible endpoints are prod, beta, and sandbox
const tradier = new Tradier(ACCESS_TOKEN, ENDPOINT);

tradier.getQuote('SPY')
  .then(quote => {
    console.log(`
      symbol: ${quote.symbol}
      price: ${quote.last}
      bid: ${quote.bid}
      ask: ${quote.ask}     
      volume: ${quote.volume} 
    `);
  })
  .catch(error => {
    console.log(error);
  });

Keywords

FAQs

Package last updated on 24 Mar 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc