Skip to content
API reference

List the chains and assets

GET
/v3/catalog
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.

API-Revision
string
Allowed values: 0

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.

The catalog.

Media typeapplication/json

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
chains
required
Array<object>
object
id
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
name
required
string
assets
required

Every asset v3 trades. Any listed asset can be traded against any other.

Array<object>
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
depositFee
required

Flat fee when this asset is an order’s source, in its base units. Kept even if the order never fills.

string
/^\d+$/
withdrawFee
required

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.

string
/^\d+$/
operatorFeeBps
required

The caller’s operator fee, which differs by integrator.

integer
commissionBps
required

The caller’s commission.

integer

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

Example

{
"code": "RATE_LIMITED",
"message": "Too many requests, retry later",
"details": null,
"field": null,
"recovery": "retry",
"retryAfterSeconds": 60,
"requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"
}
Retry-After
integer

Seconds to wait.

INTERNAL: an unexpected failure that sending the request again won’t fix. Contact Khalani with requestId.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

Example

{
"code": "UPSTREAM_UNAVAILABLE",
"message": "Integrator terms are temporarily unreadable",
"details": null,
"field": null,
"recovery": "retry",
"retryAfterSeconds": null,
"requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"
}