Dow Jones Transportation Average (DJT) OHLC API — Intraday tick and minute-level access
To chart the Dow Jones Transportation Average, you need to distinguish a current DJT quote from an OHLC candle and know whether the data is fresh enough for your chosen interval. This guide shows how to retrieve and interpret the latest DJT response, then use the date-based OHLC and intraday capabilities without mistaking polling for tick-level access.
Retrieve the latest DJT quote
Indices-API exposes its latest values at https://indices-api.com/api/latest. The following request authenticates with the access_key query parameter. Replace YOUR_API_KEY with your key before running it:
curl "https://indices-api.com/api/latest?access_key=YOUR_API_KEY"
The request does not specify a symbol filter, so read DJT from the returned rates object rather than assuming that the response contains only one index. The following is the supplied response for DJT:
{"data":{"success":true,"timestamp":1796085600,"date":"2026-12-01","base":"USD","rates":{"DJT":4.8708019775456e-5,"USD":1,"USDDJT":20530.50000000001}}}
The payload is wrapped in data. Inside it, success indicates the operation result; timestamp is a Unix timestamp in seconds; date is the associated date; and base is the quote base. The DJT-related values are in rates.DJT and rates.USDDJT.
The symbol used here is DJT, not the code for the Dow Jones Industrial Average. Check Symbols when integrating or validating the index against the current supported list.
Read the response in Python
Set an environment variable named INDICES_API_KEY to your key, then run this example with Python’s standard library. It calls the same endpoint, checks the response and reads both quote orientations without converting the JSON decimals to binary floating-point values.
import json
import os
from datetime import datetime, timezone
from decimal import Decimal
from urllib.parse import quote
from urllib.request import urlopen
api_key = os.environ["INDICES_API_KEY"]
url = (
"https://indices-api.com/api/latest?access_key="
+ quote(api_key, safe="")
)
with urlopen(url) as response:
payload = json.load(response, parse_float=Decimal)
data = payload["data"]
if data.get("success") is not True:
raise RuntimeError("Indices-API did not return a successful response")
rates = data["rates"]
djt_per_usd = rates["DJT"]
usd_per_djt = rates["USDDJT"]
if djt_per_usd <= 0 or usd_per_djt <= 0:
raise ValueError("Expected positive DJT rates")
observed_at = datetime.fromtimestamp(
data["timestamp"], tz=timezone.utc
)
print("Base:", data["base"])
print("API date:", data["date"])
print("Timestamp (UTC):", observed_at.isoformat())
print("DJT per USD:", djt_per_usd)
print("USD per DJT:", usd_per_djt)
In production, handle network errors, unsuccessful responses and missing fields before updating a chart or evaluating an alert. The example deliberately leaves the access key out of the printed output; also redact query strings from request logs because the key appears in the URL.
Understand quote direction and time
The response identifies USD as its base. In the supplied DJT response, rates.DJT is the DJT-per-USD rate, while rates.USDDJT is the reciprocal orientation. If your chart is intended to resemble an index-level display, the latter is the more intuitive field in this response.
Choose one orientation for the entire pipeline and label it explicitly. An increase in the reciprocal quote corresponds to a decrease in the original quote, so a threshold or percentage-change alert can point in the wrong direction if it mixes the two. Retain the original response alongside any derived value so you can audit how the display was produced.
The Unix timestamp can be converted to UTC, as in the Python example. Keep it with the value and display the timezone when showing a time to users. The separate date field identifies the date supplied with the response; do not infer an exchange-session boundary or a candle interval from that field alone.
Also distinguish the response timestamp from your own collection time. Recording both lets you tell whether your application fetched successfully while still receiving an older value. A successful request by itself is not proof that a new market observation has arrived.
Use OHLC and intraday data for candles
For a date-specific OHLC request, Indices-API documents the open-high-low-close/YYYY-MM-DD endpoint. Its OHLC response format places an object under the relevant key in rates, with open, high, low and close fields. Confirm the DJT request details and returned fields in the Documentation before wiring those fields into your chart.
The OHLC fields describe different observations over a period: the opening and closing values, plus the highest and lowest values. A latest quote has only one value for each rate, so it cannot establish a period’s high or low. Treat it as a current marker or an alert input, not as a complete historical candle.
Indices-API also describes an intraday endpoint for interval-based candles on a specific date. Check the documentation for its exact request syntax, available intervals, response structure and access requirements. In particular, verify that the interval you need is available for DJT before promising a minute chart in your product.
Interval candles are not the same as a tick feed. Polling the latest endpoint repeatedly does not reconstruct every underlying update, and a candle does not expose the sequence of individual observations inside it. If your application needs tick-by-tick replay, confirm that the required data and delivery method are available rather than inferring them from an intraday candle feature.
Keep candle orientation consistent
Check the base and quote orientation of the actual OHLC response before combining it with rates.USDDJT from the latest response. Do not assume that an OHLC number and a latest number are directly comparable just because both are associated with DJT.
If you have a positive OHLC series in one orientation and explicitly convert it to its reciprocal, invert the open and close individually. The reciprocal high comes from the original low, and the reciprocal low comes from the original high. Preserve sufficient precision and label the resulting series as derived; otherwise, rounding can make a narrow candle misleading.
Build a chart and alert pipeline
Start by deciding what each view represents. A daily chart needs dated OHLC records; an intraday chart needs candles with a verified interval and session interpretation; a latest-value card needs a current rate and its timestamp. Store these as distinct data types rather than merging them into a single undifferentiated series.
For a backfill, request the date-specific OHLC data for the dates you need, subject to the documented availability and your plan. Validate the returned symbol, date, base and fields before saving each record. If you use a date range elsewhere in the API, end_date cannot be today; use a prior eligible date and handle the current session separately.
Trading calendars matter. Weekends and exchange holidays are not ordinary DJT trading sessions, and an absent record is not automatically a zero-price candle. Leave a gap or use an explicitly labelled carry-forward presentation if your product requires one; do not silently manufacture a candle from the previous close.
For intraday displays, establish how the provider timestamps each interval and how those intervals map to the relevant market session. Convert times consistently at the presentation boundary, including around daylight-saving changes. Until you have confirmed those details for the endpoint, avoid labelling an interval as a particular local-market minute.
For an alert on a move, compare like with like: the same symbol, quote orientation and observation type. Record the source timestamp of the value that triggered the alert, and suppress duplicate notifications when a repeated poll returns the same observation. Decide how stale a value can be before your application stops evaluating alerts against it.
Plan for freshness and operational limits
Latest-rate update frequency depends on the subscription plan; the described options include updates every 60 minutes or every 10 minutes, with other availability depending on the plan. Polling more frequently than the underlying feed updates can produce repeated values, not additional market ticks. Check your plan and the documentation for the actual freshness available to your integration.
Cache the latest response for a period appropriate to that freshness and your application’s tolerance for delay. Cache keys should distinguish the endpoint and request context, and cached records should retain the provider timestamp. Historical, completed OHLC records can be cached separately from a current-session view, where values may still change.
Do not interpret a cached response as live merely because it was served quickly. Show its timestamp or a stale-data indicator, and define what happens when the API is unavailable: for example, retain the last verified value while clearly marking it as stale rather than presenting it as a new quote.
The latest example above returns a response directly; it does not establish a pagination mechanism. For any intraday or historical workflow that returns more data, consult the endpoint documentation for request limits and any pagination or date-splitting requirements instead of assuming the latest endpoint’s behavior applies. If you are evaluating another integration route, the MCP page is available as a separate resource.
FAQ
Is the latest DJT value an OHLC candle?
No. The latest response supplies rates and a timestamp. Use the date-based OHLC or documented intraday candle capability when you need open, high, low and close values.
Does the intraday endpoint guarantee minute or tick data?
It is described as providing interval-based candles for a specific date. Confirm the available DJT intervals and plan access in the documentation; candles alone do not establish tick-by-tick access.
Which DJT rate should I chart?
For the supplied response, DJT and USDDJT are reciprocal orientations. Choose the orientation that matches your display, label it, and use the same convention for candles, comparisons and alerts.
What should happen on a weekend?
Do not assume a new trading-session candle exists. Check the returned date and timestamp, preserve any gap in the series, and distinguish a previously available value from a new observation.
Ready to test the latest request with your own credentials? Visit Register to get a free API key, then verify the DJT candle intervals and freshness available for your use case.