Events
Events from the RFQ service are streamed upon subscribing to the RFQ feed.
Connecting to the Feed
URL | Description |
---|---|
wss://rfq.aori.io | WebSocket API for market makers and solvers |
{
"id": 1,
"jsonrpc": "2.0",
"method": "aori_subscribe",
"params": [{
"rfqId": "ALL"
}]
}
Events
After subscribing, the following events will be streamed to the client:
The QuoteRequested
event is emitted when a quote is requested (an RFQ), either from you or another user. An example of the format can be found below:
{
"event": "QuoteRequested",
"data": {
"rfqId": "aori-1234567890",
"address": "0x1234567890123456789012345678901234567890",
"inputToken": "0x1234567890123456789012345678901234567890",
"outputToken": "0x1234567890123456789012345678901234567890",
"inputAmount": "1000000000000000000",
"zone": "0x1234567890123456789012345678901234567890",
"chainId": 1,
"deadline": 1714204800
}
}