intrinio-client
- Unofficial NodeJS SDK for Intrinio
- The most affordable and flexible financial data on the market.
Quick Start
Create the app:
$ mkdir newApp
$ cd newApp
$ npm init
Install intrinio-client as a dependency:
$ npm install --save intrinio-client
Example Use
var username = ""
var password = ""
var intrinio = require("intrinio-client")(username, password)
intrinio
.ticker('AAPL')
.on('complete', function(data, response) {
if(response.statusCode==404){
console.log("Not found")
}else if(response.statusCode==200){
console.log(data)
}
});
Using "watch"
var username = ""
var password = ""
var intrinio = require("../index.js")(username, password)
var updateFrequency = 5000
var numberOfRequests = 5
intrinio
.watch
.prices('AAPL', updateFrequency, numberOfRequests, function(watcher){
watcher
.on('update', function(data, response){
console.log(data)
console.log(response)
})
.on('error', function(data, response){
console.log(data)
console.log(response)
})
})
intrinio.prices('AAPL')
.on('complete', function(data, response) {
});
intrinio.companies('AAPL')
.on('complete', function(data, response) {
});
intrinio.securities('AAPL')
.on('complete', function(data, response) {
});
intrinio.indices('AAPL')
.on('complete', function(data, response) {
});
intrinio.data_point('AAPL')
.on('complete', function(data, response) {
});
intrinio.historical_data('AAPL')
.on('complete', function(data, response) {
});
intrinio.news('AAPL')
.on('complete', function(data, response) {
});
Installation
$ npm install intrinio-client
Features
Goals
- 100% Intrinio End Point Coverage (Currently ~40%)
Examples
To view the examples, clone the
$ git clone git://github.com/jspenc72/intrinio-client.git --depth 1
$ cd intrinio-client
$ npm install
Then run whichever example you want:
$ node examples/example.js
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
People
The original author of Intrinio-Client is @Jspenc72
License
MIT