Download OpenAPI specification: [Volatility_Analysis_API.yaml]
This document describes Autochartist's Volatility Analysis API which provides real-time expected volatility ranges based on past volatility
Our APIs require the following url parameters on every call:
brokerid – your customer ID on our systems (provided to you)
user – a unique ID of the end-user consuming the information. For server-2-Server integrations this would typically be your company name
accounttype – 0 = LIVE, 1 = DEMO
expiry – Unix timestamp of when this token will expire________token – a token generated by MD5(user|[accounttype]|[expiry][secretkey])
in which secretkey is the secret key provided to you, not to be shared with the end-user
Note the ‘|’ (Pipe) character before and after the AccountType parameter
$expiryDate = time() + (3 * 24 * 60 * 60);
$userid = “myuserid”;
$accountType = “0”;
$secretKey = “secretkey”;
$token = md5(“${userid}|${accountType}|${expiryDate}${secretKey }”);
echo $token;
?>
import hashlib
import time
expiry_date = int(time.time()) + (3 * 24 * 60 * 60)
userid = "myuserid"
account_type = "0"
secret_key = "secretkey"
token = hashlib.md5(f"{userid}|{account_type}|{expiry_date}{secret_key}".encode("utf-8")).hexdigest()
print(token)
Returns the expected price ranges for the next 15 minutes, 30 minutes, 1 hour, 4 hours, and 24 hours. This information is updated every 15 minutes.
Note when displaying this information on live price charts: instruments may have changed their price so it is important to adjust the levels displayed; trying to keep the current market price in the middle of the price ranges.
The following information can be found in the "data" section of the returned information.
A valid request with an authorized MD5 token will be accepted
| account_type | string Example: account_type={{account_type}} LIVE / DEMO |
| broker_id | string Example: broker_id={{broker_id}} the broekr_id as provided by Autochartist |
| token | string Example: token={{token}} |
| expire | string Example: expire={{expire}} Expiry of this link as a unix timestamp |
| user | string Example: user={{user}} username |
| locale | string Example: locale={{locale}} Locale language tag. This parameter to be used for one locale. To specify more than one locale, use the "locales" parameter |
| timezone | string Example: timezone={{timezone}} Timezone. For example America/Chicago |
{- "date": "2022-08-16T18:00:25.314Z",
- "query": {
- "symbols": [
- "NZDUSD",
- "USDJPY",
- "EURGBP",
- "EURJPY",
- "EURUSD",
- "USDCHF",
- "XAGUSD",
- "XAUUSD",
- "EURCHF",
- "USDCAD",
- "GBPUSD",
- "AUDUSD"
], - "exchanges": [
- "FOREX"
], - "groups": [
- 525070887732741100
], - "day_of_week": 2,
- "from_time": 1080,
- "symbol_id": 0,
- "page_limit": 50,
- "page_offset": 0,
- "timezone_offset": 0
}, - "returnSymbols": [
- "USDJPY",
- "NZDUSD",
- "EURGBP",
- "EURJPY",
- "EURUSD",
- "USDCHF",
- "XAGUSD",
- "XAUUSD",
- "EURCHF",
- "USDCAD",
- "GBPUSD",
- "AUDUSD"
], - "page": {
- "number": 1,
- "limit": 20,
- "offset": 0,
- "total_items": 1,
- "total_pages": 1,
- "links": [
- {
- "rel": "first",
- "display": "<<",
- "enabled": false
}, - {
- "rel": "prev",
- "display": "<",
- "enabled": false
}, - {
- "rel": "pages[0]",
- "display": "1",
- "enabled": false,
- "active": true
}, - {
- "rel": "next",
- "display": ">",
- "enabled": false
}, - {
- "rel": "last",
- "display": ">>",
- "enabled": false
}
]
}, - "items": [
- {
- "new": false,
- "data": {
- "datetime": "2022-08-16T20:00:06.134Z",
- "result_uid": 0,
- "group_id": 525070887732741100,
- "broker_id": 604,
- "symbol": "EURCHF",
- "longname": "EURCHF",
- "display_symbol": "EURCHF",
- "exchange": "FOREX",
- "symbol_id": 525055075343910100,
- "hourly_symbol_id": 525055079643129100,
- "day_of_week": 1,
- "from_time": 840,
- "closing_price": 0.96663,
- "low_15": 0.966,
- "high_15": 0.9673,
- "low_30": 0.9657,
- "high_30": 0.9676,
- "low_60": 0.9653,
- "high_60": 0.968,
- "low_240": 0.9644,
- "high_240": 0.9688,
- "low_1440": 0.9615,
- "high_1440": 0.9717,
- "timezone_offset": 0,
- "timezone": "UTC",
- "rank": 9.5833,
- "rank_rounded": 10
}, - "links": [
]
}
],
}