fcsapi-economic-calendar
Wrapper of the fcsapi.com for the economic calendar route.
More infos: https://fcsapi.com/document/forex-api#economy_calendar
Node.js library
npm install fcsapi-economic-calendar
fetchEconomicCalendar
Return economic events between two dates.
fetchEconomicCalendar(
{
symbol: 'EUR,USD',
from: '2022-12-05',
to: '2022-12-10',
access_key: 'XXX',
},
[0, 1, 2],
);
fetchDailyEconomicCalendar
Return economic events of the current day.
fetchDailyEconomicCalendar(
{
symbol: 'CAD,JPY',
access_key: 'XXX',
},
[2],
);
fetchWeeklyEconomicCalendar
Return economic events of the current week.
fetchWeeklyEconomicCalendar(
{
symbol: 'GBP,USD,EUR,CAD',
access_key: 'XXX',
},
[1, 2],
);
TypeScript types are also availaible for all methods.
Contributing
Don't hesitate to create a pull request to improve the project.
Bugs
If you find a bug or want a new feature, dont'hesitate to create an issue.
License
MIT