Download OpenAPI specification: [Market_Alerts_API.yaml]
This document describes Autochartist Trading Opportunities.
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 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:
patterns
pattern results
symbols
intervals
exchanges
age - number of candles
candles delay - For demo accounts, any pattern result with age less than 5 is excluded from the results.
Status 200 - application/json - latest pattern results.
The JSON object includes the following keys:
page - pagination configuration for pagination links.
items - a list of pattern result items.
new - indicate whether the data has been updated since the last request if any.
data - pattern result item - see "Fields" below
links - an array of HATEOAS links for chart pattern images of different sizes displaying the price graph for the pattern result.
Note that some of the fields below may not be applicable to all analysis types.
result_type - The type of trade setup
result_uid - Internal unique identification numbers
direction - The direction of the forecast
prediction_price_from - The start of the forecast range
prediction_price_to - The end of the forecast range
pip - The size of a pip for this instrument
exchange - The exchange to which this symbol belongs
group_name - The logical group to which this symbol belongs
symbol - The TICKER
symbol_name - The long name of the symbol
symbol_id - Internal symbolID (ignore)
interval - The data interval on which this trade setup was identified
pattern - The name of the trade setup. If multiple locales are specified then this field will be an array
pattern_list - If multiple locales are specified then this field will be an array of language specific pattern names
complete - false when this trade setup is not yet fully formed. otherwise True.
identified - Date/Time when this trade setup was identified
age - The age in candles of the trade setup (difference between the current date and the identified date, divided by the 'interval')
length - The number of candles forming this trade setup
found - Internal timestamp. Ignore.
analysis_text - Text that describes the identified trade setup.
analysis_text_list - If multiple locales are specified then this field will be an array of language specific analysis_text
analysis_text_template - Text that describes the identified trade setup but the date portion of the text will be replaced be the {identified} identifier. This allows developers to customize the text for different timezones. If multiple locales are specified then this field will be an array
expires_at - A maximum date/time when this setup should be expired
details - will only be returned if the parameter "include_detail" is set to true. For information about this field see the section "Get pattern result details"
drawing - will only be returned if the parameter "include_drawing" is set to true. For information about this field see the section "Get pattern result drawing data"
A valid request with an authorized MD5 token will be accepted
| timezone | string Example: timezone={{timezone}} |
| locale | string Example: locale={{locale}} |
| locales | string Example: locales={{locales}} |
| broker_id | string Example: broker_id={{broker_id}} |
| group | string Example: group={{group}} |
| token | string Example: token={{token}} |
| user | string Example: user={{user}} |
| expire | string Example: expire={{expire}} |
| account_type | string Example: account_type={{account_type}} |
| include_detail | string Example: include_detail={{include_detail}} |
| include_drawing | string Example: include_drawing={{include_drawing}} |
| page_limit | string Example: page_limit={{page_limit}} |
| page_offset | string page start index. Default is 0. |
| since | string excludes pattern result items identified before it's date/time value. |
{- "date": "2025-11-28T13:56:41.217Z",
- "query": {
- "pattern_types": [ ],
- "pattern_categories": [
- {
- "name": "ConsecutiveCandles"
}, - {
- "name": "BigMovement"
}, - {
- "name": "RoundNumbers",
- "types": [
- "approach",
- "breakout"
]
}
], - "symbols": [
- "NZDUSD",
- "EURGBP",
- "EURJPY",
- "GBPCHF",
- "USDCHF",
- "EURCHF",
- "AUDCAD",
- "AUDUSD",
- "AUDNZD",
- "USDJPY",
- "GBPJPY",
- "EURCAD",
- "EURUSD",
- "USDZAR",
- "AUDJPY",
- "EURAUD",
- "USDCAD",
- "CHFJPY",
- "GBPUSD",
- "LTCUSD",
- "BTCUSD",
- "ETHUSD",
- "Netflix",
- "Paypal",
- "Google",
- "Adobe Systems Incorporated",
- "Advanced Micro Devices",
- "Exxon Mobil",
- "Pfizer",
- "Visa",
- "Alibaba",
- "Intel",
- "Microsoft Corporation",
- "Nike",
- "Nvidia",
- "Apple",
- "Baidu",
- "Meta Platforms",
- "Moderna",
- "Tesla",
- "Chevron",
- "Amazon",
- "Broadcom",
- "Silver Spot",
- "US Crude Oil",
- "Brent Crude",
- "Natural Gas",
- "Gold Spot",
- "CAC 40",
- "ASX 225",
- "DAX 40",
- "FTSE 100",
- "DOW 30",
- "Nikkei 225",
- "US 500",
- "USDJPY",
- "LTCUSD",
- "EURUSD",
- "BTCUSD",
- "FTSE 100",
- "US Crude Oil",
- "Brent Crude",
- "ETHUSD",
- "Gold Spot",
- "US 500"
], - "exchanges": [ ],
- "patterns": [ ],
- "intervals": [
- 240,
- 1440,
- 60,
- 30,
- 15
], - "types": [
- "breakout",
- "approach"
], - "candles": 0,
- "candles_delay": 0,
- "page_limit": 20,
- "page_offset": 0,
- "relevant_only": true,
- "MaxPatternLength": 0,
- "require_pips": false,
- "use_old_result_uid": false
}, - "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": {
- "result_type": "ConsecutiveCandles",
- "result_uid": 607233189843523100,
- "direction": -1,
- "prediction_price_from": 0,
- "prediction_price_to": 0,
- "pip": 0,
- "exchange": "TEI",
- "group_name": "Indices",
- "symbol": "DOW 30",
- "symbol_name": "DOW JONES 30 Industrials",
- "symbol_id": 525055074115569100,
- "interval": 1440,
- "pattern": "Consecutive Candles",
- "complete": true,
- "identified": "2025-11-28T00:00:00.000Z",
- "age": 0,
- "length": 6,
- "found": "2025-11-28T07:21:19.123Z",
- "analysis_text": "INDU.IND experienced 6 consecutive bullish candles. Possible bearish price movement to follow.",
- "locale_list": [ ],
- "expires_at": "2025-11-28T23:44:14.046Z",
- "signal_levels": {
- "entry_level": 47522.66,
- "stop_loss": 48354.36,
- "target_level": 47106.81,
- "target_period": "1 hour",
- "target_period_in_min": -440
}, - "detail": {
- "from_price": 45859.26,
- "to_price": 47522.66,
- "qty_candles": 6,
- "statistical_qty_candles": 6,
- "percentile": 0.980000019073486,
- "symbol": "INDU.IND",
- "granularity": 1440,
- "direction": -1,
- "length": 6,
- "complete": false,
- "exchange": "TEI",
- "age": 0,
- "relevant": 1,
- "pattern_id": 0,
- "symbol_id": 525055074115569100,
- "long_name": "DOW JONES 30 Industrials",
- "short_name": "DOW JONES 30 Industrials",
- "pattern_end_time": "2025-11-27T00:00:00.000Z",
- "pattern_start_time": "2025-11-21T00:00:00.000Z",
- "pattern_name": "Consecutive Candles",
- "result_uid": 607233189843523100,
- "is_new": false,
- "prediction_pip_profit": 0,
- "forecast_minutes": 1440,
- "symbol_pip": "0.01",
- "use_exact_pattern_end_time": true,
- "use_exact_pattern_start_time": true
}, - "drawing": {
- "symbol": "INDU.IND",
- "arrow": [
- {
- "point2Name": null,
- "y1": 47522.66,
- "name": "Arrow Line",
- "x1": 1764288000,
- "y2": 46612.025,
- "x2": 1764374400,
- "point1Name": null
}
], - "length": 6,
- "timeZone": "UTC",
- "forecast": null,
- "timeFrame": {
- "from": 1763078400,
- "to": 1764460800
}, - "originalLines": [ ],
- "eventLine": {
- "point2Name": null,
- "y1": 49418.88,
- "name": "Event Line",
- "x1": 1764288000,
- "y2": 43955.07,
- "x2": 1764288000,
- "point1Name": null
}, - "chartType": "CONSECUTIVE_CANDLES",
- "interval": 1440,
- "lines": [
- {
- "point2Name": null,
- "y1": 47597.61,
- "name": "Consecutive Candles Rectangle",
- "x1": 1763683200,
- "y2": 47597.61,
- "x2": 1764288000,
- "point1Name": null
}, - {
- "point2Name": null,
- "y1": 47597.61,
- "name": "Consecutive Candles Rectangle",
- "x1": 1764288000,
- "y2": 45776.34,
- "x2": 1764288000,
- "point1Name": null
}, - {
- "point2Name": null,
- "y1": 45776.34,
- "name": "Consecutive Candles Rectangle",
- "x1": 1764288000,
- "y2": 45776.34,
- "x2": 1763683200,
- "point1Name": null
}, - {
- "point2Name": null,
- "y1": 45776.34,
- "name": "Consecutive Candles Rectangle",
- "x1": 1763683200,
- "y2": 47597.61,
- "x2": 1763683200,
- "point1Name": null
}
], - "priceRange": {
- "low": 45776.34,
- "to": 47597.61
}, - "direction": "BEARISH",
- "predictionRectangle": null
}, - "symbol_pip": "0.01"
}, - "links": [
- {
- "rel": "icon-arrow",
}
]
}
],
}Returns details of a pattern result item.
Status 200 - application/json - latest pattern results.
The JSON object includes the following keys:
page - pagination configuration for pagination links.
items - a list of pattern result items.
new - indicate whether the data has been updated since the last request if any.
data - pattern result item. See "Fields" below.
links - an array of HATEOAS links for chart pattern images of different sizes displaying the price graph for the pattern result.
Below are the return fields. There are fields that are common to all analysis types, and some fields that are specific to each analysis type.
symbol - The TICKER on which this trade setup was identified
exchange - The exchange to which this instrument belongs
short_name - The short name of the symbol
long_name - The long name of the symbols
age - The age (in candles) of the trade setup
complete - Is this trade fully formed or still in the process of forming.
direction - Direction of forecast
granularity - Data interval on which this setup was identified
forecast_minutes - The forecast in minutes
is_new - Is this a new setup since the last call to the API
length - the length of this trade setup in candles
pattern_start_time - The first candle in this trade setup
pattern_end_time - The last candle in this trade setup. Ignore if complete == false.
pattern_name - The name of the pattern that was identified
relevant - 1 = this trade setup is still relevant. 0 = trade expired
result_uid - unique identifier of a result
prediction_pip_profit - Internal. Ignore
use_relevance_logic - Internal. Ignore
pattern_id - Internal. Ignore
symbol_id - Internal symbol code. Ignore
A valid request with an authorized MD5 token will be accepted.
| broker_id | string Example: broker_id={{broker_id}} Broker ID. |
| 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": {
- "from_price": 0.65315,
- "to_price": 0.64757,
- "movement": -0.9074216,
- "statistical_movement": -0.71224207,
- "percentile": 2,
- "symbol": "NZDCHF",
- "granularity": 60,
- "direction": 0,
- "length": 14,
- "complete": false,
- "exchange": "FOREX",
- "age": 4,
- "relevant": 0,
- "pattern_id": 0,
- "symbol_id": 866795,
- "long_name": "NZDCHF",
- "short_name": "NZDCHF",
- "pattern_end_time": "2021-09-24T14:00:00.000Z",
- "pattern_start_time": "2021-09-24T00:00:00.000Z",
- "pattern_name": "Big Movement",
- "result_uid": 744377188,
- "is_new": false,
- "prediction_pip_profit": 0,
- "use_relevance_logic": false,
- "forecast_minutes": 279
}, - "links": [
]
}Returns details of a pattern result item.
Status 200 - application/json - latest pattern results.
The JSON object includes the following keys:
Below are the return fields. There are fields that are common to all analysis types, and some fields that are specific to each analysis type.
A valid request with an authorized MD5 token will be accepted.
| broker_id | string Example: broker_id={{broker_id}} Broker ID. |
| 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 |
string |
{- "chartType": "BIG_MOVEMENT",
- "interval": 60,
- "length": 41,
- "direction": "BULLISH",
- "priceRange": {
- "low": 109.11,
- "to": 110.2
}, - "timeFrame": {
- "from": 1632268800,
- "to": 1632416400
}, - "originalLines": [ ],
- "lines": [
- {
- "x1": 1632268800,
- "x2": 1632416400,
- "y1": 110.2,
- "y2": 110.2,
- "name": "Rectangle",
- "point1Name": null,
- "point2Name": null
}, - {
- "x1": 1632416400,
- "x2": 1632416400,
- "y1": 110.2,
- "y2": 109.11,
- "name": "Rectangle",
- "point1Name": null,
- "point2Name": null
}, - {
- "x1": 1632416400,
- "x2": 1632268800,
- "y1": 109.11,
- "y2": 109.11,
- "name": "Rectangle",
- "point1Name": null,
- "point2Name": null
}, - {
- "x1": 1632268800,
- "x2": 1632268800,
- "y1": 109.11,
- "y2": 110.2,
- "name": "Rectangle",
- "point1Name": null,
- "point2Name": null
}
], - "forecast": null,
- "eventLine": {
- "x1": 1632416400,
- "x2": 1632416400,
- "y1": 111.29,
- "y2": 108.02,
- "name": "Event Line",
- "point1Name": null,
- "point2Name": null
}, - "arrow": [
- {
- "x1": 1632416400,
- "x2": 1632430800,
- "y1": 110.169,
- "y2": 110.714,
- "name": "Arrow Line",
- "point1Name": null,
- "point2Name": null
}
], - "predictionRectangle": null,
- "timeZone": "America/New_York",
- "symbol": "USDJPY"
}Returns latest group pattern results for a specific broker. The pattern results are cached at every 5 minutes interval.
Image in image/png format.
A valid request with an authorized MD5 token will be accepted.
| 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 | integer Example: width=320 Chart image width in px. Default is 320px. |
| height | integer Example: height=240 Chart image height in px. Default is 240px. |