
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
barchart-market-data-api
Advanced tools
Barchart OnDemand API servic have access to 15-minute delayed market data for BATS (US equities) and global Forex pairs, and end-of-day (including historical) market data for US equities from AMEX, NASDAQ, NYSE and futures from CBOT, CME, COMEX and NYMEX.
Barchart offers free Market data API on freemarketdataapi.barchartondemand.com, to use the API you need an API key which is provided singing up on theirs website.
This client offers access to free methods getQuote
and getHistory
.
var MarketData = require('barchart-market-data-api');
var md = new MarketData(__YOUR_API_KEY__);
md.getHistory('IBM').then(function (history) {
console.log('History data:', history);
});
md.getQuote('IBM').then(function (quotes) {
console.log('Price data:', quotes);
});
Creates a new client.
Kind: global function
Param | Type | Description |
---|---|---|
apiKey | String | API key provided by Barchart |
Promise
The getHistory API is used to request historical time series data on stocks, indices, mutual funds, ETFs, futures, indices or forex pairs. Historical data is available as tick, minute or end-of-day data.
Kind: instance method of MarketData
See: http://www.barchartondemand.com/api/getHistory
Param | Type | Description |
---|---|---|
symbol | String | [description] |
[type] | String | [description] |
[options] | Object | All additional options as key value |
The getQuote API is used to request price data, either real-time, delayed or end-of-day, by symbol. In addition to Last Price or Settlement, other fields such as Open, High, Low, Close, Bid, Ask, 52-week high and low, and more are available.
Kind: instance method of MarketData
See: http://www.barchartondemand.com/api/getQuote
Param | Type | Description |
---|---|---|
symbols | String | A symbol or code that identifies a financial instrument. Multiple symbols separated by a comma may be used. |
[fields] | String | The fields requested. |
[mode] | String | Parameter to change quote type to real-time ("R"), delayed ("I") or end-of-day ("D") |
FAQs
Barchart OnDemand API servic have access to 15-minute delayed market data for BATS (US equities) and global Forex pairs, and end-of-day (including historical) market data for US equities from AMEX, NASDAQ, NYSE and futures from CBOT, CME, COMEX and NYMEX.
The npm package barchart-market-data-api receives a total of 1 weekly downloads. As such, barchart-market-data-api popularity was classified as not popular.
We found that barchart-market-data-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.