Firm-Quote

Based on the order book that you give, our router will decide which liquidity source to route to give the best price. In case our router chooses your pricing, Native will ask you for the firm quote. The firm quote endpoint provided must adhere to the following format:

Firm Quote Endpoint

GET <market_maker_base_url>/firm-quote

Params

Example

<market_maker_base_url>/firm-quote?sellerTokenAmount=10000000000000000000000&chainId=97&sellerToken=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d&buyerToken=0x55d398326f99059ff775485246999027b3197955&pool=0xaaE854bdd940cf402d79e8051DC7E3390e32A3ac&seller=0x7d1F5C43998570629f5d00134321fB6a95451ec3&quoteId=62716-206e-41cb-8559-013f1ed1a65a&feeBps=12

In this example, a user sells 10,000 USDC to market maker in exchange for USDT on Binance Smart Chain (BSC).

Response

You need to provide a response in the following format:

Example response:

{
  "success": true,
  "buyerTokenAmount": "10100000000000000000000",
  "deadlineTimestamp": 1671086729, // Will be passed to sign-quote
  "auth": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" // <OPTIONAL> will be passed to sign-quote
}

In the response above, market maker returns 10,100 USDT for the order sent in the example.

Last updated