npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

candles-sample-aapl

v0.0.23

Published

sample OHLCV candles for AAPL from late 2022

Downloads

21

Readme

candles-sample-aapl

Small dataset of historic candles for testing.

Contains 16,428 ~1-minute OHLCV candles for AAPL from late 2022.

[note -- the 1-minute O/H/L values can be based on the overall market day, or just copies of the close [last] values minute-by-minute. this dataset does not contain sub-minute O/H/L's. see floodClosePrice below]

Also includes minute-by-minute bid/ask prices.

Data may have errors, use at your own risk.

Installation

npm i candles-sample-aapl

Usage

var floodClosePrice = true; //default true, if true, open high low close are all the same, close values minute-by-minute 
                            //otherwise, the open high low values are for the DAY not minute-by-minute 
var aaplMinSample = require('candles-sample-aapl').loadMinutes(floodClosePrice);
//return objs like [{date, open, high, low, close, bid, ask, volume}, ...]

var aapl15MinSample = require('candles-sample-aapl').loadNMinuteCandles(15);

console.log(aaplMinSample);

//1 min candles, note how ohlc prices are the same
// [
//   {
//     date: '2022-09-21T13:30:56.332Z',
//     open: 157.85,
//     high: 157.85,
//     low: 157.85,
//     close: 157.85,
//     bid: 157.86,
//     ask: 157.87,
//     volume: 286213
//   },

console.log(aapl15MinSample);

//15 min candles, from merged 1min candles 
// [
//   {
//     date: '2022-09-21T13:30:00.000Z',
//     open: 157.85,
//     high: 158.23,
//     low: 156.9601,
//     close: 156.9601,
//     bid: 157.86,
//     ask: 157.87,
//     volume: 2851173,
//     nSrcCandles: 15
//   }, ... ]

stonks