nodejs api for ghostfolio
npm install ghostfolio-api:point_right: Node.js/Typescript library to import data through Ghostfolio. :point_left:


![npm version][1]
![npm size][1]
![npm downloads][1]

![last commit][1]
[1]: https://www.npmjs.com/package/ghostfolio-api
``shell`
yarn add ghostfolio-api
`shell`
yarn build
`typescript
const ghost = GhostfolioApi('access-token');
const requestBody: ImportRequestBody = {
activities: [
{
currency: 'USD',
dataSource: 'YAHOO',
date: '2021-09-15T00:00:00.000Z',
fee: 19,
quantity: 5,
symbol: 'MSFT',
type: 'BUY',
unitPrice: 298.58,
},
],
};
await ghost.importData(requestBody);
`
`shell`
yarn test # to be implemented
Contributions are encouraged, I will review any incoming pull requests.
Be sure to run yarn test to run all tests, yarn lint to run eslint and yarn prettier` to run the prettier.
This is an unofficial NodeJS API wrapper for the Ghostfolio application, use at your own risk.