Download OpenAPI specification: [Our_Favorites_API.yaml]
This document describes Autochartist's Our Favorites feature that filters technical opportunities based on highest probability of success based on the last 12 months of results.
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 a list of group names for which Our Favorites are available.
A valid request with an authorized MD5 token will be accepted
| broker_id | string Example: broker_id={{broker_id}} Broker ID. |
| 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 |
| token | string Example: token={{token}} |
| user | string Example: user={{user}} Username |
| expire | string Example: expire={{expire}} Expiry of this link as a unix timestamp |
| account_type | string Example: account_type={{account_type}} DEMO or LIVE |
{- "new": false,
- "data": {
- "defaultGroupId": "FX Majors",
- "symbolGroups": [
- {
- "id": "FX Majors",
- "name": "FX Majors"
}
]
},
}Returns latest pattern results for the specified symbol group category.
User configuration is used to limit the pattern results search. The pattern search criteria include the following information:
Note that some of the fields below may not be applicable to all analysis types.
A valid request with an authorized MD5 token will be accepted
| group required | string |
| broker_id | string Example: broker_id={{broker_id}} Broker ID. |
| timezone | string Example: timezone={{timezone}} User timezone. |
| 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 |
| token | string Example: token={{token}} |
| user | string Example: user={{user}} Username |
| expire | string Example: expire={{expire}} Expiry of this link as a unix timestamp |
| account_type | string Example: account_type={{account_type}} DEMO or LIVE |
| result_limit | string Example: result_limit={{result_limit}} Limit number of items to display in a page. Default is 25. |
| probability_percentage | string Example: probability_percentage={{probability_percentage}} (optional) Return pattern result items with probability percentage greater or equal to the value specified. Default is 60. Probability percentage ranges are: 60, 65, 70, 75 and 80. |
{- "new": false,
- "data": [
- {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600441720828059100,
- "percent": 69.18,
- "hod_percent": 70.17,
- "hod_correct": 447,
- "hod_total": 637,
- "symbol_percent": 66.37,
- "symbol_correct": 521,
- "symbol_total": 785,
- "pattern_percent": 63.09,
- "pattern_correct": 658,
- "pattern_total": 1043,
- "forecast": 1.022
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "EURUSD",
- "interval": 60,
- "pattern": "Falling Wedge",
- "complete": true,
- "identified": "2022-08-16T14:00:00.000Z",
- "age": 2,
- "length": 36,
- "result_type": "ChartPattern",
- "result_uid": 600441720828059100,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Falling Wedge has broken through the resistance line at 8/16 14:00. Possible bullish price movement forecast for the next 9 hours towards 1.0220.",
- "expires_at": "2022-08-17T15:09:44.108Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600438428209390100,
- "percent": 66.24,
- "hod_percent": 69.96,
- "hod_correct": 631,
- "hod_total": 902,
- "symbol_percent": 66.47,
- "symbol_correct": 577,
- "symbol_total": 868,
- "pattern_percent": 65.45,
- "pattern_correct": 3360,
- "pattern_total": 5134,
- "forecast": 1.1529
}, - "direction": -1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "GBPUSD",
- "interval": 1440,
- "pattern": "Triangle",
- "complete": true,
- "identified": "2022-08-16T00:00:00.000Z",
- "age": 0,
- "length": 51,
- "result_type": "ChartPattern",
- "result_uid": 600438428209390100,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Triangle has broken through the support line at 8/16 00:00. Possible bearish price movement forecast for the next 16 days towards 1.1837.",
- "expires_at": "2022-08-17T15:09:44.109Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600410103608667100,
- "percent": 66.4,
- "hod_percent": 70.61,
- "hod_correct": 639,
- "hod_total": 905,
- "symbol_percent": 67.62,
- "symbol_correct": 520,
- "symbol_total": 769,
- "pattern_percent": 65.38,
- "pattern_correct": 3331,
- "pattern_total": 5095,
- "forecast": 0.652
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "NZDUSD",
- "interval": 1440,
- "pattern": "Triangle",
- "complete": true,
- "identified": "2022-08-11T00:00:00.000Z",
- "age": 4,
- "length": 47,
- "result_type": "ChartPattern",
- "result_uid": 600410103608667100,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Triangle has broken through the resistance line at 8/11 00:00. Possible bullish price movement forecast for the next 10 days towards 0.6520.",
- "expires_at": "2022-08-17T15:09:44.109Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600438424917914100,
- "percent": 62.79,
- "hod_percent": 69.96,
- "hod_correct": 631,
- "hod_total": 902,
- "symbol_percent": 62.41,
- "symbol_correct": 493,
- "symbol_total": 790,
- "pattern_percent": 55.46,
- "pattern_correct": 518,
- "pattern_total": 934,
- "forecast": 1.3068
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "USDCAD",
- "interval": 1440,
- "pattern": "Pennant",
- "complete": true,
- "identified": "2022-08-16T00:00:00.000Z",
- "age": 0,
- "length": 27,
- "result_type": "ChartPattern",
- "result_uid": 600438424917914100,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Pennant has broken through the resistance line at 8/16 00:00. Possible bullish price movement forecast for the next 8 days towards 1.3068.",
- "expires_at": "2022-08-17T15:09:44.109Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600437468098621000,
- "percent": 65.09,
- "hod_percent": 55.33,
- "hod_correct": 187,
- "hod_total": 338,
- "symbol_percent": 64.05,
- "symbol_correct": 440,
- "symbol_total": 687,
- "pattern_percent": 65.45,
- "pattern_correct": 3360,
- "pattern_total": 5134,
- "forecast": 0.9531
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "USDCHF",
- "interval": 240,
- "pattern": "Triangle",
- "complete": true,
- "identified": "2022-08-15T20:00:00.000Z",
- "age": 5,
- "length": 35,
- "result_type": "ChartPattern",
- "result_uid": 600437468098621000,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Triangle has broken through the resistance line at 8/15 20:00. Possible bullish price movement forecast for the next 23 hours towards 0.9531.",
- "expires_at": "2022-08-17T15:09:44.109Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600441246410602100,
- "percent": 66.75,
- "hod_percent": 75.03,
- "hod_correct": 541,
- "hod_total": 721,
- "symbol_percent": 65.96,
- "symbol_correct": 969,
- "symbol_total": 1469,
- "pattern_percent": 65.45,
- "pattern_correct": 3360,
- "pattern_total": 5134,
- "forecast": 137.28
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "USDJPY",
- "interval": 240,
- "pattern": "Triangle",
- "complete": true,
- "identified": "2022-08-16T12:00:00.000Z",
- "age": 1,
- "length": 111,
- "result_type": "ChartPattern",
- "result_uid": 600441246410602100,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Triangle has broken through the resistance line at 8/16 12:00. Possible bullish price movement forecast for the next 6 days towards 137.28.",
- "expires_at": "2022-08-17T15:09:44.109Z",
- "symbol_pip": "0.01"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600415759780914000,
- "percent": 75.85,
- "hod_percent": 74.72,
- "hod_correct": 334,
- "hod_total": 447,
- "symbol_percent": 75.61,
- "symbol_correct": 530,
- "symbol_total": 701,
- "pattern_percent": 75.96,
- "pattern_correct": 3526,
- "pattern_total": 4642,
- "forecast": 0.7269
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "AUDUSD",
- "interval": 1440,
- "pattern": "Resistance",
- "complete": true,
- "identified": "2022-08-12T00:00:00.000Z",
- "age": 3,
- "length": 79,
- "result_type": "KeyLevel",
- "result_uid": 600415759780914000,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Broke through Resistance level of 0.7069 at 8/12 00:00. Possible bullish price movement forecast for the next 15 days towards 0.7269.",
- "expires_at": "2022-08-17T15:09:44.109Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600441714644183000,
- "percent": 80,
- "hod_percent": 78.46,
- "hod_correct": 1089,
- "hod_total": 1388,
- "symbol_percent": 78.75,
- "symbol_correct": 1449,
- "symbol_total": 1840,
- "pattern_percent": 80.65,
- "pattern_correct": 9655,
- "pattern_total": 11972,
- "forecast": 137.73
}, - "direction": 1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "EURJPY",
- "interval": 60,
- "pattern": "Resistance",
- "complete": false,
- "identified": "2022-08-16T14:00:00.000Z",
- "age": 2,
- "length": 143,
- "result_type": "KeyLevel",
- "result_uid": 600441714644183000,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Approaching Resistance level of 137.73 identified at 8/16 14:00. This pattern is still in the process of forming. Possible bullish price movement towards the resistance 137.73 within the next 2 days.",
- "expires_at": "2022-08-17T15:09:44.111Z",
- "symbol_pip": "0.01"
}, - "links": [
]
}, - {
- "new": false,
- "data": {
- "new": false,
- "probabilities": {
- "result_uid": 600441242042277100,
- "percent": 80.81,
- "hod_percent": 82.72,
- "hod_correct": 1173,
- "hod_total": 1418,
- "symbol_percent": 81.39,
- "symbol_correct": 1461,
- "symbol_total": 1795,
- "pattern_percent": 80.5,
- "pattern_correct": 8399,
- "pattern_total": 10433,
- "forecast": 0.6212
}, - "direction": -1,
- "pip": 0,
- "exchange": "FOREX",
- "symbol": "NZDUSD",
- "interval": 240,
- "pattern": "Support",
- "complete": false,
- "identified": "2022-08-16T12:00:00.000Z",
- "age": 1,
- "length": 107,
- "result_type": "KeyLevel",
- "result_uid": 600441242042277100,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "group_name": "FX Majors",
- "symbol_id": 0,
- "analysis_text": "Approaching Support level of 0.6212 identified at 8/16 12:00. This pattern is still in the process of forming. Possible bearish price movement towards the support 0.6212 within the next 5 days.",
- "expires_at": "2022-08-17T15:09:44.111Z",
- "symbol_pip": "1.0E-4"
}, - "links": [
]
}
]
}Returns a png image of the specified type and uid.
[type] - the type from the GET Best Trade Setups result set
[uid] - the result uid from the GET Best Trade setup result set
Image in image/png format.
A valid request with an authorized MD5 token will be accepted.
| type required | string |
| uid required | string |
| account_type | string Example: account_type={{account_type}} DEMO or LIVE |
| broker_id | string Example: broker_id={{broker_id}} Broker ID. |
| expire | string Example: expire={{expire}} Expiry of this link as a unix timestamp. |
| locale | string Example: locale={{locale}} Locale language tag. |
| user | string Example: user={{user}} Username |
| token | string Example: token={{token}} |
| width | string Example: width={{width}} Chart image width in px. Default is 320px. |
| height | string Example: height={{height}} Chart image height in px. Default is 240px. |