GithubHelp home page GithubHelp logo

majacq / iexjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timkpaine/iexjs

0.0 2.0 0.0 2.53 MB

Javascript interface to IEX and IEX cloud APIs

License: Apache License 2.0

JavaScript 100.00%

iexjs's Introduction

JavaScript interface to IEX Cloud

Build Status License npm

Referral

Please subscribe to IEX Cloud using this referral code.

Install

Install from npm

npm install --save iexjs

iexjs can run in the browser via native fetch and eventsource, or from node via cross-fetch and eventsource.

Overview

iexjs supports the IEX Cloud api through 2 interfaces. The first is a simple function call, passing in the api version and token as arguments

const {chart} = require("iexjs");
chart("AAPL", "1m", token, version).then((res) => {
    console.log(res);
});

Since the token rarely changes, we have a Client object for convenience:

const {Client} = require("iexjs");
const client = new Client({api_token: "YOUR_TOKEN_HERE", version: "v1"});
client.chart("AAPL", "1m").then((res) => {
    console.log(res);
});

The client will automatically pick up the API key from the environment variable IEX_TOKEN, or it can be passed as an argument. To use the IEX Cloud test environment, simple set version: 'sandbox'.

Full API

iexjs provides wrappers around both static and SSE streaming data. Implemented methods are provided in CATALOG.md.

License

This software is licensed under the Apache 2.0 license. See the LICENSE and AUTHORS files for details.

iexjs's People

Contributors

timkpaine avatar aelliott1485 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.