Segmentation
segmentationPossible values: Value must match regular expression ^seg_[0-9A-Za-z]+$
The profile version used. The same bars with the same version give the same segments, always.
standard@2026-11The unit of every time in the request and the answer, since the Unix epoch, UTC.
In JSON, us and ns times are strings of digits; ms times are integers.
Possible values: [ms, us, ns]
msBars the series had after any samples were turned into bars.
Levels above the bars.
segments object[]required
Every segment above the bars, parent before child.
h
Possible values: Value must match regular expression ^h[0-9]+@[0-9]+$
The id of the segment one level up that contains this one; null at the top.
The level: 1 is the finest segments above the bars, larger is coarser.
Possible values: >= 1
Position among its siblings, in time order.
Possible values: >= 0
How many bars it covers.
Possible values: >= 1
open_time objectrequired
- integer
- string
Possible values: >= 0
high_time objectrequired
- integer
- string
Possible values: >= 0
low_time objectrequired
- integer
- string
Possible values: >= 0
close_time objectrequired
- integer
- string
Possible values: >= 0
True for the open right edge: it may still grow, and its close may move. Every other segment is final.
With return_edge, the edge to carry on from with POST /v1/segmentations/extend.
Possible values: <= 65536 characters, Value must match regular expression ^pne1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
edge_last_close_time object
- integer
- string
usage objectrequired
{
"id": "string",
"series": "string",
"profile_version": "standard@2026-11",
"time_unit": "ms",
"bars": 0,
"depth": 0,
"segments": [
{
"id": "string",
"parent": "string",
"height": 0,
"order": 0,
"bars": 0,
"open_time": 0,
"open": 0,
"high_time": 0,
"high": 0,
"low_time": 0,
"low": 0,
"close_time": 0,
"close": 0,
"provisional": true
}
],
"edge": "string",
"edge_last_close_time": 0,
"usage": {
"samples_billed": 0,
"cost_usd": 0
}
}