1.0.2 • Published 6 years ago

quandl-node v1.0.2

Weekly downloads
4
License
MIT
Repository
gitlab
Last release
6 years ago

Quandl-Node

Description

Node module to interact with the Quandl API. with support for promises. For a list of possible parameters and filters check out the official API Docs for Quandl

Installation

npm install quandl-node 

How to

const Quandl = require("quandl-node")
let quandl = new Quandl({
key:"Your-Api-key"
});

Fetching timeseries data

let data:any = await quandl.timeseries.data({
                database:"WIKI",
                dataset:"FB",
                start_date:"2017-06-12",
                end_date: "2017-12-12",
                order:"asc",
                limit:15
            });

Fetching timeseries metadata

 let data:any = await quandl.timeseries.metadata({
                database:"WIKI"
            });

Fetching timeseries data and metadata

let data:any = await quandl.timeseries.all({
                database:"WIKI",
                dataset:"FB",
                start_date:"2017-06-12",
                end_date: "2017-12-12",
                order:"asc",
                limit:15
            });

Fetching table data

let data:any = await quandl.table.rows({
                publisher:"ETFG",
                datatable:"FUND",
                filter: {
                    ticker:"SPY"
                }
            });

Fetching table metadata

let data:any = await quandl.table.metadata({
               publisher:"AR",
               datatable:"MWCS"
           });