Skip to content
Docs
URLs

URLs

RFQ API

URLDescription
https://rfq.aori.ioHTTP API for end-users to be able to send RFQs statelessly.
wss://rfq.aori.ioWebSocket API for market makers and solvers

We are looking at deploying to various regions over the coming months, optimised for each chain to minimise latency. Please let us know what regions or chains you are interested in.

Payloads to the HTTP or Websocket API follow the JSON-RPC 2.0 specification.

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "aori_...",
    "params": [{
        ...
    }]
}

Orderbook API

HTTP

All HTTP requests follow the JSON-RPC 2.0 specification.

The HTTP endpoint url is as follows:

EnvironmentURL
Productionhttps://api.aori.io
Developmenthttps://dev.api.aori.io

You'll be POSTing to the / endpoint with the following request body format:

{
    "id": <request_id>,
    "jsonrpc": "2.0",
    "method": <method_name>,
    "params": [{
        ...
    }]
}

WebSockets

You can also connect via the WebSocket endpoint - the payload also follows the JSON-RPC 2.0 specification.

The WebSocket endpoint url is as follows:

EnvironmentURL
Productionwss://api.aori.io
Developmentwss://dev.api.aori.io

Payloads to the WebSocket endpoint with the following payload format:

{
    "id": <request_id>,
    "jsonrpc": "2.0",
    "method": <method_name>,
    "params": [{
        ...
    }]
}

Each method is listed with their respective body format under the Actions section but you can also find them here:

Feed

The feed endpoint is a WebSocket endpoint that streams the orderbook updates to the client. The response follows the JSON-RPC 2.0 specification for response payloads.

The feed endpoint url is as follows:

EnvironmentURL
Productionwss://feed.aori.io
Developmentwss://dev.feed.aori.io

The response payloads follows the following format:

{
    "id": <request_id>,
    "result": ...
}

Taker Service

The taker service is an endpoint that facilitates interactions that a taker may make e.g requesting for a quote, market orders, requesting a swap etc.

The taker service endpoint url is as follows:

EnvironmentURL
Productionhttps://taker.aori.io
Developmenthttps://dev.taker.aori.io

You'll be POSTing to the / endpoint with the following request body format:

{
    "id": <request_id>,
    "jsonrpc": "2.0",
    "method": <method_name>,
    "params": [{
        ...
    }]
}