REST API
Page explains how to use Liquorice RFQ REST API
1. Authentication
Provide the following headers in each request
solver
- name of the Solverauthorization
- authorization token
2. RFQ
Whenever the solver needs a quote from Liquorice, it sends an RFQ to the system.
URL: https://api.liquorice.tech/v1/solver/rfq
Method: POST
Body:
Exactly one of the baseTokenAmount
or quoteTokenAmount
fields must be present.
Having baseTokenAmount
present equals to asking "How much ETH would I get if I pay 1000 USDC?"
and having quoteTokenAmount
equals to asking "How much USDC do I need to pay to get 1 ETH?"
Response
Last updated