dotnet-forex-quotes is a .NET library for fetching realtime forex quotes. Any contributions or issues opened are greatly appreciated.
- An API key which you can obtain for free at http://1forge.com/forex-data-api
Please see the list of known issues here: Issues
Need to add to Nuget package manager.
var client = new ForexDataClient("YOUR_API_KEY");
var symbols = client.GetSymbols();
foreach (var symbol in symbols)
{
Console.WriteLine(symbol);
}
var quotes = client.GetQuotes(new string[] {"EURUSD", "GBPJPY", "BTCUSD"});
foreach (var quote in quotes)
{
Console.WriteLine(quote);
}
var conversion = client.Convert("EUR", "USD", 100);
Console.WriteLine(conversion);
var marketStatus = client.GetMarketStatus();
if (marketStatus.marketIsOpen)
{
Console.WriteLine("The market is open!");
}
else
{
Console.WriteLine("The market is closed!");
}
var quota = client.GetQuota();
Console.WriteLine(quota);
## 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.