Firm-Quote
1. Receiving Firm Quote Request
If our router decides to route to you, your server will receive a Firm Quote message via websocket in the following format:
After receiving this Firm Quote message, you have to compute the quote you'd like to offer (based on market conditions, internal balances, etc) and return it in the following format:
2. Sending Firm Quote Response
After receiving this Firm Quote message, you have to compute the quote you'd like to offer (based on market conditions, internal balances, etc) and return it in the following format:
Note that this transaction always involves the user selling the baseTokenAddress
with the amount of baseTokenAmount
and buying the quoteTokenAddress
.
Note: Native server will generally wait 500 milliseconds for a quote to be provided before the quote is flagged as invalid.
Last updated