Developer reference
TradeLink API
Connect your backend to technical analysis and MT5 signals. Find your Business/Developer key under Account → API keys.
Quickstart
| Capability | Resources |
|---|---|
ta | Technical analysis JSON and analysis chart grants |
signals | Signal list, details, and signal chart grants |
Call the REST API from your backend with Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY. Store the key server-side. API access requires an active key on an active Business/Developer account with a valid subscription. Trader accounts use the customer portal.
Both account types offer Technical Analysis and Technical Analysis + Signals. For Business/Developer accounts, Technical Analysis allows ta. Technical Analysis + Signals allows ta and signals. An administrator can limit each key to a subset under Customers → API keys. Plan changes and key permission edits apply to existing keys.
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://platform.tradelinkcharts.com/api/analysis?engine=levels&symbol=EURUSD&tf=H1&view=analysis"
Technical analysis
/api/analysisThis endpoint requires ta. Request an instrument and timeframe or use a published reference. On SQLite, eligible dates come from the portal’s analysis feed. If the current day has no analysis, the app can serve its latest available date.
| Parameter | Usage |
|---|---|
symbol and tf | Instrument and timeframe, for example EURUSD and H1. |
ref | Reference for a specific published analysis. Can be used in place of symbol and timeframe. |
engine | Use levels for support and resistance, smart for Smart, or sk for Waves. A symbol/timeframe request without an engine uses Waves. A supplied engine must match the referenced analysis. |
session | Optional session filter, such as pre_london or pre_ny. |
date | Optional date in YYYY-MM-DD format. The account’s date access still applies. |
view | Set to analysis for a payload without signal fields. TradeLink applies this view automatically if the account or the key lacks Signals permission, including when the chart loads through an embed grant. |
Build an analysis type switcher
From your backend, call GET /api/analysis?view=types with the same Business API key. Use each returned label as the switcher text and its id as the engine parameter. The list can change whenever the administrator changes customer access.
{"analysis_types":[{"id":"sk","label":"Waves"},{"id":"levels","label":"Levels"}]}- Keep the selected symbol, timeframe and optional session. On selection, fetch
/api/analysis?symbol=EURUSD&tf=H1&view=analysis&engine=skusing the selected ID. A savedrefidentifies one specific snapshot. Drop it when switching types. - For an iframe or WebView, have the backend issue a fresh
/api/embed-grantsgrant for the selected type and open the returned path using its viewer proof. Each grant is scoped to its original chart. - An empty list means the administrator has turned off all customer analysis types. On
403, refresh the list and check the requested date. On404, clear the previous chart and show that no matching snapshot is available. A listed type can be enabled ahead of its first scheduled run.
Symbol/timeframe requests without engine select Waves. Levels is also enabled by default. Smart requires an administrator to enable it and the client to request engine=smart. A request for a disabled type returns 403. For future types, render the common candle and overlay fields first. Treat engine-specific details and new fields as optional, and skip unrecognized overlay kinds. Use the default_visible hint when present. A value of false is an optional overlay the viewer can reveal.
Admin → Analysis → Customer access & session schedule controls publication and generation independently. Only available types are scheduled. Weekday UTC slots are Asian at 00:00 (H1/D1), Pre-London at 06:00 (H1/H4), and Pre-New York at 12:00 (H1). The chosen timeframes must also be enabled. The snapshot uses the closed candles available at the session cutoff.
Use the top-level candles array. Candle times are UTC. Some snapshots serialize a UTC timestamp without its offset. Interpret those times as UTC before converting for display. Prices are numbers and analysis.confidence is text. overlays contains zones, lines, markers, and paths. Waves adds analysis.sk when matching analysis exists.
Levels adds analysis.levels, with the last closed price, current ATR, nearest support (demand), and nearest resistance (supply). Either side can be null. Zones include bounds, score, retests, invalidation, distance in ATR, and overlapping higher timeframes. A zone score describes the zone’s quality. Smart remains the source of context for filtering MT5 signals.
Levels returns broker-precision prices. analysis.levels.display_precision is the suggested number of decimal places for chart labels and summaries. On fractional-pip FX feeds it displays whole pips.
analysis.levels.movement includes regime, summary, and what_to_watch. The regime is uptrend, downtrend, consolidation, mixed, or insufficient_history. range holds the consolidation bounds when present. reaction describes the latest closed candle when it reacted to or closed through a previously confirmed level. Its level gives the relevant price. Trendlines, range boundaries, and reaction markers use the existing overlay arrays.
The Levels payload can contain candles with no qualifying zones. analysis.levels.status reports ready, insufficient_history, or partial_width_history. For a protected Levels chart grant, include "engine":"levels" in the selector.
analysis.levels.movement.reading supplies the title, history, current interpretation and conditional next step. Fresh snapshots can also include approach, structure_note and a lowercase bias of bullish, bearish or neutral. A close back inside a broken range resets its local bias to neutral even if the broader swing trend is still directional. The top-level analysis bias mirrors the local reading when structure is available. Zone scores and confidence still describe zone quality.
reading.invalidation gives the scope of the interpretation, a close direction of above or below, the exact price and display text. A range interpretation uses direction: "outside" with low and high. A null or missing value means a distinct invalidation has yet to form. Use the numeric prices for comparisons and the display precision for labels.
A range event supplies its original range and level, breakout direction, separate pre-break edge_visits, and an event of break, retest or failed_break. Break, retest and failure indices refer to the top-level candles. A failed break can retain a retest observed before the failure. Unobserved indices are null.
analysis.levels.movement.breakouts lists up to two distinct confirmed range breaks from the last 96 closed candles, oldest first. The 20 candles from from_index through to_index establish the range. The following candle at break_index closed beyond its edge by more than 0.08 of the preceding 14-candle average true range. Each item supplies the original bounds, direction, edge price, visits, closing price, prior_atr, and close_extension_atr. Only a break used in the current reading has role: "current". Historical breaks describe earlier events. An empty array means no qualifying break was found.
Draw a visible breakout_range box over its stated candles only. A marker with event_type: "range_break" sits at the confirming close. On a measured_swing path the two observed pivots define the signed percentage move in the label. Older payloads can omit these elements.
analysis.levels.movement.structure describes the broader swing trend, an optional protected swing, recent confirmed swings, the earlier swing pair in approach and the most recent qualifying last_break in the last 43 candles. Each swing has a candle index, confirmed_index, price, kind and relation to the preceding swing of the same kind. Swing confirmation requires four subsequent completed candles. A close through a swing in the established direction is a continuation. A close through the protected swing is a possible_reversal. While that change is unresolved it appears in pending. A reversal also requires a higher low or lower high and another confirming break. Its first_break and pullback identify those earlier events. New snapshots also provide events with up to six recent swing breaks in candle order, including the confirmation candle time, its close and the level it crossed. Overlays tagged detail_only are shown when the viewer selects Show swing history. Nearby confirmed supply and demand zones can provide a display_from_index and display_label for the chart. from_index still identifies the original zone. A trendline with anchors joins two confirmed swings. A swing support or resistance line represents an unbroken pivot close level.
Render each line only from from_index to to_index. A structure_break segment joins the pivot to the candle that broke it. On a range break the operative edge also marks local invalidation. A zone_edge uses the original near edge and links to its full zone via zone_id. Hide zones marked default_visible: false in the default chart. Full measured bounds remain available for inspection. Older snapshots can omit the structure and invalidation fields.
The 0–A–B fallback shows its Fibonacci retracements, preferred correction band, extension band, and selected C objective. Regenerate a saved Waves snapshot to include the latest chart and API fields.
When Waves detects nested 0–A–B sequences, analysis.sk.wave_degrees includes a relationship of continuation or correction, the larger sequence and its overlays, and the developing sequence. Both use the configured 0–A–B Fibonacci rules, and analysis.sk.primary describes the developing wave. If no larger sequence qualifies, the degree field is omitted.
Waves labels retracements as Fib, extensions as Ext, and the selected objective as C projection or C reached. The label percentage is for display, while ratio gives the underlying multiplier. Use analysis.sk.display_precision for price labels. A C marker is emitted at the objective price on the candle that reached it.
New Waves snapshots also include analysis.sk.elliott_count. It reports status as candidate, developing, or none. The main count uses 1–5 for impulses and W–X–Y or W–X–Y–X–Z for linked zigzags. For a completed or developing count, subdivisions lists each qualifying smaller sequence with its parent_wave, start_index, end_index, and labels. The matching markers and paths are in overlays. Smaller impulses use (i)–(v), and smaller corrections use (a)–(c) or A–B–C inside linked zigzags. A shared endpoint can carry both labels. The existing subdivided_wave field identifies a main numbered leg with a five-wave subdivision when available.
A subdivision can include a children array for a finer degree. If an eligible Wave 4, B, or X leg contracts through five confirmed turns, the subdivision can report pattern: "contracting_triangle" with A–E labels and boundary paths. Its labels use double parentheses and its additional markers carry degree: 2. When a qualifying completed count shares a swing with the active count, preceding_count describes that earlier count and its subdivisions. The overlay arrays include the earlier markers and paths alongside the active count. TradeLink's Chart details menu controls nested wave labels, hypothetical projections and Fibonacci levels independently. Fit wave count frames the count. Latest focuses the most recent candles. fibonacci identifies the completed move measured by the 38.2%, 50%, and 61.8% retracement overlays and reports measured relationships between waves.
Render one result for engine=sk from the top-level overlays. A qualifying Elliott count uses Fibonacci measurements anchored to that count. When the Elliott count has status none, the result shows the available 0–A–B Fibonacci setup or the confirmed swing levels while a setup is pending. analysis.sk.sequence_context and analysis.sk.wave_degrees provide supplementary detail for existing API consumers.
An incomplete count can have status developing. Its scenario includes the projected wave, price levels and Fibonacci basis for each leg, the invalidation price and direction, and the last observed candle index. A path with kind: "scenario" and arrow: true is hypothetical. Its points beyond the last candle use relative chart spacing for illustration.
For fresh Elliott counts, use analysis.sk.elliott_count.reading for the wave interpretation. The history, current, and next strings connect the observed structure to the conditional outlook. observed contains provisional corrective labels on existing candles. route contains hypothetical legs with a wave label, numeric price, structural basis and condition. The chart draws them in order from the last close. invalidation identifies the price, direction and scope of the active interpretation. It can be null. An empty route means the engine is waiting for more evidence. The optional phase distinguishes a developing, completed, or historical count. A historical reading uses recent confirmed swing references so clients can show what would establish the next move. Those references identify observed highs and lows.
The structural route can differ from the Fibonacci objectives in scenario.legs. That array can be empty. reading.fibonacci_reference identifies one measured line or zone within half a recent average true range of a structural waypoint, or null. For the default chart, draw overlays whose default_visible is true or absent. To show all Fibonacci measurements, include the other lines and zones. Older snapshots can omit the reading and visibility fields.
Waves supports M15, H1, H4, and D1 for manual live runs. The default set is H1, H4, and D1. Historical and scheduled generation uses the session presets: H1 and D1 for Asian, H1 and H4 for Pre-London, and H1 for Pre-New York.
{
"symbol": "EURUSD",
"timeframe": "H1",
"candles": [
{
"time": "2026-11-11T06:00:00",
"open": 1.11623, "high": 1.1165, "low": 1.11612,
"close": 1.11646, "volume": 728
}
],
"analysis": {
"bias": "Neutral",
"confidence": "Low",
"summary": "No clear directional bias is confirmed yet.",
"session_key": "pre_london"
}
}Start with symbol and timeframe alone. An exact session or Waves request returns 404 if a matching report has not been generated. A matched chart outside the allowed dates returns 403.
Trading signals
/api/signalsLists signals visible to the customer. Filter by symbol, status, or limit (1–500). An empty items array is a successful response with no matching signals.
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://platform.tradelinkcharts.com/api/signals?symbol=EURUSD&limit=20"
{"items":[]}/api/signal?id=SIGNAL_IDUse an id from the signal list. The detail response is one signal object. Chart candles are in chart_candles, which can be empty when history is unavailable. The list and detail endpoints require signals. Use the returned embed_url to open the chart in a TradeLink session with Signals access.
Chart embeds
A signed-in TradeLink customer can open an analysis link directly. Signal links also require Signals access.
https://platform.tradelinkcharts.com/embed?symbol=EURUSD&tf=H1
Embed in an authenticated app
/api/embed-grantsAfter your backend authenticates a viewer and checks their chart access, request a grant using your Business API key in a header. For analysis, supply kind: "analysis" and a ref or symbol and tf. For signals, supply kind: "signal" and the signal id.
curl -X POST "https://platform.tradelinkcharts.com/api/embed-grants" \
-H "Authorization: Bearer YOUR_BUSINESS_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"analysis","symbol":"EURUSD","tf":"H1"}'{
"embed_path": "/embed?symbol=EURUSD&tf=H1&api_key=ONE_TIME_GRANT",
"viewer_proof": "SEPARATE_VIEWER_PROOF",
"expires_in": 30
}- Open
embed_pathin the mobile WebView with theX-TradeLink-Viewerheader set toviewer_proof. In a browser, a form can POSTviewer_proofto the same URL with the iframe as its target. - Request a fresh grant each time the chart is opened. A grant expires after 30 seconds and can open only the chart it was issued for.
Keep the reusable Business key on your backend. The iframe’s api_key carries a one-time chart grant. A copied URL alone returns 401.
Live quotes
Live quotes are available for approved Business integrations on request.
Errors and keys
| Status | What to check |
|---|---|
400 | Request parameters and supported values. |
401 | Key validity, expiration and capability. |
403 | Whether the administrator has enabled the requested analysis type, subscription access, and the requested date. |
404 | Whether matching analysis or a signal exists. |
503 | Temporary chart or index availability. Respect Retry-After where present. |
Rotate a key from Account → API keys if it was exposed. The previous key stops working immediately. Update any integration using it.