REST API
Rest API End Points
Overview
Arbitrum Goerli (421613)
https://test.orderbook.premia.finance
Arbitrum One (42161)
https://orderbook.premia.finance
Publish Quotes
To submit a quote to the orderbook, POST
quotes can be used. In the background, we will take this quote an submit an event on Arbitrum Nova on the users behalf. One the quote event is generated on Arbitrum Nova, it will be added to the orderbook.
Get Quotes
When using GET
quotes, orders are returned based on the params details provided. quotes
endpoint is ideal for determining which order(s) will satisfy a specific order size
and side
. The returned quotes are ordered by price, and only the order(s) that satisfy the size
(cumulatively) will be returned.
Additionally, it is possible to receive RFQ quotes along with public quotes by specifying a taker
address. The allows users to find the best possible public/private quote combination for a particular quote size.
Get rfq_quotes
When publishing an RFQ, users can listen for quotes via WEBSOCKET or use the rfq_quotes endpoint to retrieve only RFQ quotes via REST API.
Get Orders
GET
orders is a general purpose query of orders in the orderbook. Many of the params are optional to suit the needs of the query. Orders are returned in descending order based on the timestamp in which they were created.
Good To Know: size
param in GET
orders is not the same as size
param in GET
quotes. See param descriptions.
Last updated