Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@d3fc/d3fc-financial-feed
Advanced tools
An API for fetching financial time-series data from different sources including GDAX
An API for fetching financial time-series data from different sources including GDAX.
npm install @d3fc/d3fc-financial-feed
import { feedGdax } from 'd3fc-financial-feed';
const gdax = feedGdax()
.product('BTC-GBP');
gdax()
.then(data => { console.log(data); });
// [
// {
// date: 2016-05-11T08:51:00.000Z,
// open: 317.99,
// high: 317.99,
// low: 317.99,
// close: 317.99,
// volume: 0.24
// },
// ...
// ]
https://docs.gdax.com/#get-historic-rates
# fc.feedGdax()
Constructs a new GDAX feed.
# feedGdax()
Makes a request to the GDAX API, returns a Promise
which resolves with data.
Data returned from the API is mapped to an array of objects with numeric
open
, high
, low
, close
and volume
properties, and a Date
instance date
property.
# feedGdax.product([value])
If value is specified, sets the product id to the specified string and returns this feed instance.
If value is not specified, returns the current product id, which defaults to "BTC-USD"
.
# feedGdax.start([value])
If value is specified, sets the start date to the specified Date
object and returns this feed instance.
If value is not specified, returns the current start date, which defaults to null.
# feedGdax.end([value])
If value is specified, sets the end date to the specified Date
object and returns this feed instance.
If value is not specified, returns the current end date, which defaults to null.
# feedGdax.granularity([value])
If value is specified, sets the granularity to the specified number of seconds and returns this feed instance. If value is not specified, returns the current granularity, which defaults to null.
FAQs
An API for fetching financial time-series data from different sources including GDAX
The npm package @d3fc/d3fc-financial-feed receives a total of 3,769 weekly downloads. As such, @d3fc/d3fc-financial-feed popularity was classified as popular.
We found that @d3fc/d3fc-financial-feed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.