javascript-forex-quotes
javascript-forex-quotes is a Javascript Library for fetching realtime forex quotes.
Table of Contents
Requirements
- A 1Forge API key which you can obtain at http://1forge.com/forex-data-api
Installation
npm install forex-quotes --save
Usage
Importing the client
// With requireconst ForgeClient = default; // With es6 or TypeScript;
Using WebSocket
let client = 'YOUR_API_KEY'; // Handle incoming price updates from the serverclient; // Handle non-price update messagesclient; // Handle disconnection from the serverclient; // Handle successful connectionclient; client;
Using RESTful API
// You can get an API key at 1forge.comlet client = 'YOUR_API_KEY'; // Get the list of available symbolsclient; // Get quotes for specified symbols:client; // Convert from one currency to another:client; // Check if the market is open:client; // Check your usage / quota limit:client;
Contributing
Thank you for considering contributing! Any issues, bug fixes, suggestions, improvements or help in any other way is always appreciated. Please feel free to open an issue or create a pull request.
Support and Contact
Please contact me at contact@1forge.com if you have any questions or requests.
License and Terms
This library is provided without warranty under the MIT license.