Skip to main content
POST
Retrieve FX price history.

Authorizations

Authorization
string
header
required

OAuth2 access-token requested from AWS Cognito and provided as a Auth Bearer header

Body

A slash-delimited FxPair, date-only StartDate/EndDate, optional FxCut for meaningful high/low retrieval, optional IncludeHiLow (default false), and one authorised provider-selector form.

Selects an FX pair and date range for open and close history, with optional cut-specific high and low observations.

$type
enum<string>
required
Available options:
Derivitec.Web.Core.MarketData.ApiFxGetHistoryRequest, Derivitec.Web.Core
fx_pair
string | null

FX pair selected by derived requests.

market_date
string<date-time>

Market date used by the derived request.

provider_id
string | null

Opaque identifier of a single market-data provider to use instead of either environment-name option.

entity_access_type
enum<string>

Access classification associated with the selected market-data environment.

Available options:
view,
edit,
owner,
blocked
market_data_environment_names
string[] | null

Names of the market-data environments to use. Do not combine this list with the single-name or provider-ID alternatives.

market_data_environment_name
string | null

Single market-data environment name to use instead of market_data_environment_names or provider_id.

Example:

"Example market data"

start_date
string<date-time>

First date supplied to the FX history lookup.

end_date
string<date-time>

Last date supplied to the FX history lookup.

fx_cut
string | null

Fixing-cut code used for the optional high-and-low lookup and copied to each returned observation.

include_hi_low
boolean

Whether to request cut-specific high and low values in addition to open and close values.

Example:

false

Response

Returns available dated open/close and optional high/low observations, with missing-series or high/low errors in the response payload.

Returns available FX open and close observations with optional cut-specific high and low values.

$type
enum<string>
required
Available options:
Derivitec.Web.Core.MarketData.ApiFxGetHistoryResponse, Derivitec.Web.Core
is_success
boolean

Whether the operation completed successfully. The default is true; error outcomes set it to false.

Example:

true

error_messages
string[] | null

Messages explaining operation-level failures. The collection is empty by default.

fx_data
object[] | null

Dated open and close observations, with high and low values when requested and available.