Get an order's history
const url = 'https://api.hyperstream.dev/v3/orders/ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8/changes';const options = {method: 'GET', headers: {'API-Revision': '0', 'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.hyperstream.dev/v3/orders/ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8/changes \ --header 'API-Revision: 0' \ --header 'X-API-Key: <X-API-Key>'The changes to one of your orders, oldest first, each with the steps and records it set. Once the hub has settled, only
events are listed: an updated change is left out, so versions can skip. The order itself is the current state. A
funding_closed change is fundBy passing with no deposit seen, and names the steps it closed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A v3 order’s ord_ id, or any order’s 0x protocol id, /v2 orders included.
Example
ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8Header Parameters
Section titled “Header Parameters”The revision of v3 the request is built against. Without it, the revision that was current when your integration was set up. An unknown value is a 400 VALIDATION_FAILED naming API-Revision.
Responses
Section titled “Responses”The changes.
The order’s changes, oldest first. Once the hub has settled, only events are listed: an updated change is left out, so versions can skip.
object
object
RFC 3339 UTC time.
Open list: created, imported (the order as it stood when its history began), deposit_seen, funding_closed, expired, not_published, published, cancel_requested, filled, trading_ended, settlement_stuck, settled, payout_delivered, refund_delivered, delivery_stuck, delivered, or updated for any other change before settled.
The ids of the steps and records the change set.
Example
{ "changes": [ { "version": 0, "at": "2026-08-17T20:48:20Z", "kind": "created", "records": [] }, { "version": 1, "at": "2026-08-17T20:48:20Z", "kind": "updated", "records": [] }, { "version": 2, "at": "2026-08-17T20:49:05Z", "kind": "published", "records": [ "approve", "deposit" ] }, { "version": 3, "at": "2026-08-17T20:49:05Z", "kind": "deposit_seen", "records": [ "deposit_receipt" ] }, { "version": 4, "at": "2026-08-17T20:49:20Z", "kind": "cancel_requested", "records": [ "cancel" ] } ]}VALIDATION_FAILED: an unsupported API-Revision header or a query parameter the route doesn’t take. field names the invalid input.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "VALIDATION_FAILED", "message": "Unknown API-Revision. Valid values are [\"0\"]", "details": null, "field": "API-Revision", "recovery": "fix_request", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}UNAUTHENTICATED: the X-API-Key header is missing.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "UNAUTHENTICATED", "message": "X-API-Key required", "details": null, "field": null, "recovery": "fix_request", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}FORBIDDEN: the key is unknown or inactive, or your terms can’t be used. It is about your account: don’t retry.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "FORBIDDEN", "message": "Unknown or inactive integrator", "details": null, "field": null, "recovery": "contact_support", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}NOT_FOUND: no such order of yours.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "NOT_FOUND", "message": "Order not found", "details": null, "field": null, "recovery": "fix_request", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}RATE_LIMITED: too many requests from your IP, or, on quote and create-order, from your integrator. Retry after retryAfterSeconds.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "RATE_LIMITED", "message": "Too many requests, retry later", "details": null, "field": null, "recovery": "retry", "retryAfterSeconds": 60, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}Headers
Section titled “Headers”Seconds to wait.
INTERNAL: an unexpected failure that sending the request again won’t fix. Contact Khalani with requestId.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "INTERNAL", "message": "Internal error", "details": null, "field": null, "recovery": "contact_support", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}UPSTREAM_UNAVAILABLE: our storage is briefly unavailable. Send the same request again after retryAfterSeconds.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "UPSTREAM_UNAVAILABLE", "message": "Storage is briefly unavailable; send the same request again", "details": null, "field": null, "recovery": "retry", "retryAfterSeconds": 1, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}Headers
Section titled “Headers”Seconds to wait.