Package Exports
- @jeanmc/finnhub-sdk
- @jeanmc/finnhub-sdk/dist-esm/index.js
- @jeanmc/finnhub-sdk/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jeanmc/finnhub-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Finnhub API client library for JavaScript
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Finnhub API client.
Getting started
Currently supported environments
- LTS versions of Node.js
- Latest versions of Safari, Chrome, Edge and Firefox.
See the support policy for more details.
Install the @jeanmc/finnhub-sdk package
Install the FinnhubApi client library for JavaScript with npm:
npm install @jeanmc/finnhub-sdkconst client = new FinnhubAPI()
client.pipeline.addPolicy({
name: 'add-api-key',
sendRequest(req, next) {
req.headers.set('X-Finnhub-Token', '')
return next(req)
},
})JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to the bundling documentation.