Market Maker
Any market maker willing to register with Dfyn Exchange RFQ module, needs to expose an endpoint that has the following structure:
Get Quote
Get a quote from the market maker for the base token
GET
https://api.marketmaker.com/v1/getQuote
This endpoint should return a calldata that includes the quote price and the signature. As a market maker, you need to call Dfyn's RFQ contract to fetch the nonce. Nonce has to be included in the signed data.
Note: The deadline should be in seconds.
Query Parameters
token0*
String
token0 (base token) address
token1*
String
token1 (quote token) address
amount0*
String
token0 (base token) amount
chainId*
String
chain ID
user*
String
address of the user
Example API Server
You can fork the following GitHub repo to create your own API server: https://github.com/dfyn/rfq-api. For access, please contact us on Telegram.
Last updated