1.2.0 • Published 6 years ago

chartstorage v1.2.0

Weekly downloads
-
License
BSD 3-Clause
Repository
github
Last release
6 years ago

chartstorage

An easier way to save or read forex/stocks/crypto chart data with NodeJS

Getting started

1. Install

npm i chartstorage

2. Example usage

import ChartStorage from "chartstorage";
import * as path from "path";

const c = new ChartStorage(path.join(process.cwd(), "storage"));

function generateCandles(n: number) {
	let candles: number[][] = [];
	for (let i = 0; i < n; i++) {
		candles.push([1+ i, 10, 10, 10, 10, 0]);
	}
	return candles;
}

console.log(c.save("TEST", generateCandles(1000000), ["timestamp", "open", "close", "low", "high", "volume"], 1));
console.log(c.get("TEST"));
console.log(c.info());
1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago