Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A simple NodeJS library for interfacing with the Finage financial data API.
This is a simple Node package that facilitates interaction with Finage's financial data REST API. The library has full support for functionality across all financial data available via Finage, including:
Library | Version |
---|---|
axios | ^0.24.0 |
For versions of npm ^5.0.0 run npm i finage
For other versions run npm i finage -S
Or else clone the repo and from the root directory and run npm i
A valid Finage API key is required in order to set up the client.
This can be achieved with the following:
import Finage from 'finage';
const client = new Finage({ apiKey: 'API_KEY' });
It is advisable to store your api key as an environment variable and pass that to the Finage
constructor if you are going to share your code anywhere.
This package is in-line with the official Finage documentation. As such all methods, where necessary, require certain params
that must be passed for a successful request and optional queries
that alter how the data is presented. These must be passed as objects to a method when making a call.
For example, to get the last quote of the symbol AAPL with a nanosecond timestamp:
const res = await client.stocks.us.lastQuote({
params: { symbol: 'AAPL' }, queries: { ts: 'ns' }
})
PLEASE NOTE: When a method requires multiple params
, the order-of-insertion matters and must follow the order outlined in the official documentation. This is because the ordering of string-based keys is preserved since ES2015, and this is used to construct the URL for API endpoints.
Finage
│
└───bonds
│ │ lastRate()
│
└───crypto
│ │ lastTrade()
│ │ lastQuote()
│ │ aggregates()
│ │ prevClose()
│ │ marketDepth()
│ │ historicalMarketDepth()
│ │ priceChange()
│ │ marketCap()
│
└───forex
| | lastQuote()
| | lastTrade()
| | tickData()
| | aggregates()
| | prevClose()
| | converter()
|
└───funds
| |
| └───index
| | | lastPrice()
| | | aggregates
| | | prevClose()
| |
| └───etf
| | | lastPrice()
| | | aggregates
| | | prevClose()
|
└───fundamentals
| | symbols()
| | calendar()
| | stockMarketDetails()
| | indicators()
| | mostActiveUs()
| | topGainersUs()
| | topLosersUs()
| | sectorPerformance()
| |
| └───market
| | | status()
| | | search()
| |
| └───country
| | | status()
| | | search()
| |
| └───forex
| | | status()
| | | search()
| |
| └───crypto
| | | status()
| | | search()
| | | detailedLastPrice()
| |
| └───index
| | | status()
| |
| └───funds
| | |
| | └─── holders
| | | | institutional()
| | | | mutual()
| | | | etf()
| | |
| | | etfSectorWeightings()
| | | secRssFeed()
| |
| └───statements
| | | cashFlow()
| | | balanceSheet()
| | | income()
| |
| └───news
| | | market()
| | | forex()
| | | crypto()
|
└───stocks
| |
| └───us
| | | lastQuote()
| | | lastQuoteMulti()
| | | lastTrade()
| | | lastTradeMulti()
| | | endOfDay()
| | | orderBook()
| | | aggregates()
| | | prevClose()
| |
| └───lse
| | | lastPrice()
| | | aggregates()
| |
| └───canada
| | | lastPrice()
| | | aggregates()
| |
| └───moex
| | | lastPrice()
| | | aggregates()
FAQs
A simple NodeJS library for interfacing with the Finage financial data API.
The npm package finage receives a total of 4 weekly downloads. As such, finage popularity was classified as not popular.
We found that finage 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.