List the chains and assets
const url = 'https://api.hyperstream.dev/v3/catalog';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/catalog \ --header 'API-Revision: 0' \ --header 'X-API-Key: <X-API-Key>'The chains and assets v3 trades, each asset with its flat fees, and your operator fee and commission. Any listed asset trades against any other, so pairs are not listed. Quote with these ids.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header 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 catalog.
The chains and assets v3 trades, with each asset’s flat fees, and the caller’s two bps fees. An order’s flat fee is its source’s depositFee plus its destination’s withdrawFee in the source asset, which a quote shows as display.flatFee. Both bps fees are taken from the deposit less the flat fee, on the part that fills.
object
object
CAIP-2 chain id.
Every asset v3 trades. Any listed asset can be traded against any other.
object
CAIP-19 asset id.
CAIP-2 chain id.
Flat fee when this asset is an order’s source, in its base units. Kept even if the order never fills.
Flat fee when this asset is an order’s destination, in its base units. Charged in the source asset, converted at quote time, and kept even if the order never fills.
The caller’s operator fee, which differs by integrator.
The caller’s commission.
Example
{ "chains": [ { "id": "eip155:42161", "name": "Arbitrum One" }, { "id": "eip155:8453", "name": "Base" }, { "id": "eip155:16661", "name": "0G Mainnet" } ], "assets": [ { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6, "depositFee": "150000", "withdrawFee": "150000" }, { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6, "depositFee": "150000", "withdrawFee": "150000" }, { "id": "eip155:16661/erc20:0x1f3AA82227281cA364bFb3d253B0f1af1Da6473E", "chain": "eip155:16661", "symbol": "USDC.e", "decimals": 6, "depositFee": "0", "withdrawFee": "0" } ], "operatorFeeBps": 3, "commissionBps": 2}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"}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: your terms couldn’t be read. Retry later.
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": "Integrator terms are temporarily unreadable", "details": null, "field": null, "recovery": "retry", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}