0.0.6 • Published 7 years ago
stockbot v0.0.6
Still under development, use with caution.
import Stockbot from 'stockbot';
async function make(){
const bot = new Stockbot('demo');
const stock = bot.stock('AAPL');
const series = await stock.series('1min');
const indicator = await stock.indicator('SMA', '1min', {
time_period: 10,
series_type: 'close',
});
//TODO
const points = await stock.points('1min', {
'SMA': {
time_period: 10,
series_type: 'close',
}
});
}
const series = await new Stockbot('demo').stock('APPL').series('1min');