All URIs are relative to https://api-v2.intrinio.com
Method | HTTP request | Description |
---|---|---|
GetForexCurrencies | GET /forex/currencies | Forex Currencies |
GetForexPairs | GET /forex/pairs | Forex Currency Pairs |
GetForexPrices | GET /forex/prices/{pair}/{timeframe} | Forex Currency Prices |
View Intrinio API Documentation
ApiResponseForexCurrencies GetForexCurrencies ()
Returns a list of forex currencies for which prices are available.
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetForexCurrenciesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var forexApi = new ForexApi();
ApiResponseForexCurrencies result = forexApi.GetForexCurrencies();
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
This endpoint does not need any parameter.
View Intrinio API Documentation
ApiResponseForexPairs GetForexPairs ()
Returns a list of currency pairs used to request foreign exchange (forex) market price data. The currency that is used as the reference is called quote currency and the currency that is quoted in relation is called the base currency. For example, in the pair code “EURGBP” with a price of 0.88, one Euro (base currency) can be exchanged for 0.88 British Pounds (quote currency).
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetForexPairsExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var forexApi = new ForexApi();
ApiResponseForexPairs result = forexApi.GetForexPairs();
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
This endpoint does not need any parameter.
View Intrinio API Documentation
ApiResponseForexPrices GetForexPrices (string pair, string timeframe, string timezone = null, DateTime? startDate = null, string startTime = null, DateTime? endDate = null, string endTime = null, int? pageSize = null, string nextPage = null)
Provides a list of forex price quotes for a given forex currency pair and timeframe.
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetForexPricesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var forexApi = new ForexApi();
string pair = "EURUSD";
string timeframe = "D1";
string timezone = "UTC";
DateTime? startDate = DateTime.Parse("2018-01-01");
string startTime = null;
DateTime? endDate = DateTime.Parse("2019-01-01");
string endTime = null;
int? pageSize = 100;
string nextPage = null;
ApiResponseForexPrices result = forexApi.GetForexPrices(pair, timeframe, timezone, startDate, startTime, endDate, endTime, pageSize, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pair | string | The Forex Currency Pair code | |
timeframe | string | The time interval for the quotes | |
timezone | string | Returns trading times in this timezone | [optional] [default to UTC] |
startDate | DateTime? | Return Forex Prices on or after this date | [optional] |
startTime | string | Return Forex Prices at or after this time (24-hour in 'hh:mm' format, UTC timezone) | [optional] |
endDate | DateTime? | Return Forex Prices on or before this date | [optional] |
endTime | string | Return Forex Prices at or before this time (24-hour in 'hh:mm' format, UTC timezone) | [optional] |
pageSize | int? | The number of results to return | [optional] [default to 100] |
nextPage | string | Gets the next page of data from a previous API call | [optional] |