1.0.5 • Published 2 years ago

ghostfolio-api v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Ghostfolio API

:point_right: Node.js/Typescript library to import data through Ghostfolio. :point_left:

Percentage of issues still open GitHub license npm version npm size npm downloads GitHub contributors last commit

:package: Install

yarn add ghostfolio-api

:wrench: Build

yarn build

:open_book: Examples

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);

:test_tube: Tests

yarn test    # to be implemented

:wave: Contributions & Pull Requests

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.

:warning: Disclaimer

This is an unofficial NodeJS API wrapper for the Ghostfolio application, use at your own risk.

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago