Skip to main content

Detailed flows

For engineers building the integration. Each flow names every call and what your code does when something goes wrong. The contract for each call is in the API reference; the events are in Events.

Finished series​

Forming series: the edge travels with you​

Patternode keeps nothing between calls. The series' state is its edge, which lives in your segment store and is sent with each new bar.

Rules your code keeps:

SituationAnswerDo
A retried requestThe same answer, whichever region gives itStore it as usual
A bar before the edge's last close409 out_of_orderDrop it, or rebuild the window as a finished series
An edge from another series or profile version409 edge_mismatchRead this series' edge from your store
A changed or truncated edge400 edge_invalidStore edges as opaque strings, exactly as received
Two writers on one seriesBoth answers are validKeep the first write: a version check in your store
Your workload restartedRead the edge from your store and carry on
You lost a series' edgeSend the series again as a finished series with return_edge: true

The life of a forming series, on your side:

Backfill, with a webhook​

Rotating credentials without downtime​

Next: Decisions you make.