active-tick
v1.0.6
Published
ActiveTick Library
Downloads
3
Readme
ActiveTick
ActiveTick Nodejs Library.
- Uses promises
- Uses ES6
Requirements:
- NodeJS ( Version 6+ )
- We recommend using Node Version Manager
To Get Started:
- Install the package in your project
npm install active-tick --save
To use:
const ActiveTick = require('active-tick')({
// Location of your ActiveTick API:
API: 'http://localhost:5000'
})
ActiveTick.tickData( 'TSLA', '8/25/2016' )
.then(( res ) => {
console.log('Results:', res)
})
.catch(( err ) => {
console.log('Error:', err)
})
Enabling the Debugger
To enable debug logs, enable them via environment variables.
To see all debug logs from this app, set the env variable:
DEBUG=active-tick*
Running with your project:
DEBUG=active-tick* node myproject.js