The OANDA v1 REST API will cease to function for your account as early as May 2018. Please migrate your forex 1 minute patterns of time to use the v20 REST API.
The information provided by these API requests is available on our Forex Labs website. This offering is under development so you can expect changes to some of the resources. Please monitor our release notes page for any recent changes. Calendar Returns up to 1 year worth of economic calendar information relevant to an instrument. For example, if the instrument is EUR_USD, then all economic information relevant to the Euro and the US Dollar will be included.
Some of the entries are strictly news about an important meeting, while other entries may contain economic indicator data. If this is left out, information for all tradable instruments will be returned. Required Period of time in seconds to retrieve calendar data for. Values not in the following list will be automatically adjusted to the nearest valid value. A positive period is used for data in the past and a negative period for upcoming events. Time of the event, returned as a unix timestamp. This field describes the data found in the forecast, previous, actual and market fields.
This is the currency that is affected by the news event. Shows the value of the previous release of the same event. The actual value, this is only available after the event has taken place. The market expectation of what the value was.
Please use the v20-REST API to derive the position ratio values. Returns up to 1 year worth of historical position ratios for a supported instrument. More info at our Forex Labs page. Supported instruments: AUD_JPY, AUD_USD, EUR_AUD, EUR_CHF, EUR_GBP, EUR_JPY, EUR_USD, GBP_CHF, GBP_JPY, GBP_USD, NZD_USD, USD_CAD, USD_CHF, USD_JPY, XAU_USD, XAG_USD. Required Period of time in seconds to retrieve historical position ratios data for. The time returned as a unix timestamp.
The second field in the array. The percentage of long positions for this snapshot. The third field in the array. The exchange rate for the instrument at that point in time.
Returns up to 1 year worth of spread information for a supported instrument. The returned data is divided in 15 minute intervals. For each period, we provide the time weighted average, minimum, and maximum spread. Required Period of time in seconds to retrieve spread data for. Optional This parameter specifies whether to return identical adjacent spreads.
This is used to reduce bandwidth consumption. JSON Response Fields The main response hash has 3 keys: max, min, and avg. Corresponding to these 3 keys are arrays of spread entries. Maximum spreads for the 15 minute intervals.
Minimum spreads for the 15 minute intervals. Average spreads for the 15 minute intervals. This is the first field of the array, representing the time at the end of the 15 minute interval, returned as a unix timestamp. This is the second field of the array, representing the spread for the 15 minute interval. Commitments of Traders Returns up to 4 years worth of Commitments of Traders data from the CFTC for supported currencies. This is essentially CFTC’s Non-Commercial order book data. Supported instruments: AUD_USD, GBP_USD, USD_CAD, EUR_USD, USD_JPY, USD_MXN, NZD_USD, USD_CHF, XAU_USD, XAG_USD.