fcsapi-economic-calendar
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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 # or yarn add 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', // Create an account on fcsapi.com to get an access key
	},
	[0, 1, 2], // News importance (optional parameters)
);

fetchDailyEconomicCalendar

Return economic events of the current day.

fetchDailyEconomicCalendar(
	{
		symbol:     'CAD,JPY',
		access_key: 'XXX', // Create an account on fcsapi.com to get an access key
	},
	[2], // News importance (optional parameters)
);

fetchWeeklyEconomicCalendar

Return economic events of the current week.

fetchWeeklyEconomicCalendar(
	{
		symbol:     'GBP,USD,EUR,CAD',
		access_key: 'XXX', // Create an account on fcsapi.com to get an access key
	},
	[1, 2], // News importance (optional parameters)
);

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

Package Sidebar

Install

npm i fcsapi-economic-calendar

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

27.7 kB

Total Files

19

Last publish

Collaborators

  • lludol