stockdb-node

0.2.2 • Public • Published

node.js library for StockDB

Example

const StockDB = require('../');
 
const client = StockDB.New('http://localhost:18765', 'username:password');
 
const data = {
    Time: 1480737600,
    Open: 109.17,
    High: 110.09,
    Low: 108.85,
    Close: 109.90,
    Volume: 26528000
};
const opt = {
    Market: 'test',
    Symbol: 'nasdq',
    Period: StockDB.Day
};
 
client.PutOHLC(data, opt).then(d => {
    console.log(d);
}).catch(err => {
    console.log(err);
});

Instllation

NPM

$ npm install --save stockdb-node

ES6

import StockDB from 'stockdb';
 
const client = StockDB.New('http://localhost:8765', 'username:password');

Reference

Official Repos

Document

Readme

Keywords

Package Sidebar

Install

npm i stockdb-node

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

95.9 kB

Total Files

10

Last publish

Collaborators

  • longbill