
EWMA and GARCH(1,1) volatility forecasts for a currency pair.
GET/v1/currencyvolatilityforecast
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "api-ninjas",
"path": "/v1/currencyvolatilityforecast",
"method": "GET",
"query": {
"pair": ""
}
}'
$0.001per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
API-wide: 100% success · 450 ms median · 30 days
About this endpoint
Projects forward volatility for a currency pair over a horizon, using EWMA or a comparable method. For realised values instead use /currencyvolatility.
Query parameters
pairrequiredstringCurrency pair in ABC_DEF form (e.g. EUR_USD). Both must be supported fiat currency codes; ZWG, BTC, and XAG are not supported.methodstringForecast method: garch_11 (default) or ewma. If a GARCH fit does not converge the response falls back to EWMA. (Allowed: garch_11, ewma) (Default: garch_11)lambdanumberEWMA decay factor (only used when method=ewma). Defaults to 0.94. Must be between 0.80 and 0.99. (Default: 0.94)horizonstringComma-separated forecast horizons in trading days (e.g. 1,5,21,63). Defaults to 1,5,21,63. (Default: 1,5,21,63)day_countnumberAnnualization factor: 252 trading days (default) or 365 calendar days. (Allowed: 252, 365) (Default: 252)More from API Ninjas
- Get current stock priceGET/v1/stockprice$0.001 per callFixed
- Convert between IATA and ICAO airport codes. Premium only.GET/v1/airportconvert$0.001 per callFixed
- Get bank holidays for a given country and year.GET/v1/bankholidays$0.001 per callFixed
- Lookup bank information by BINGET/v2/bin$0.001 per callFixed
- Get balance sheet data for a specific company, period, and yearGET/v1/balancesheet$0.001 per callFixed
- List which fiscal periods have cash flow data for a company (premium)GET/v1/cashflowavailability$0.001 per callFixed
- Get historical Bitcoin price dataGET/v1/bitcoinhistorical$0.001 per callFixed
- Get historical OHLCV data for a cryptocurrencyGET/v1/cryptopricehistorical$0.001 per callFixed
- Get a Chuck Norris jokeGET/v1/chucknorris$0.001 per callFixed
- Get aircraft detailsGET/v1/aircraft$0.001 per callFixed
- List models for a manufacturer. Premium only.GET/v2/carmodels$0.001 per callFixed
- Get country data from given parameters.GET/v1/country$0.001 per callFixed