Quote a trade
quotePrices a trade now in both markets Semiosis trades in, the Civic Pool and its Pons launch curve, read at the same block: ETH for Semiosis (side "buy", amount in ETH) or Semiosis for ETH (side "sell", amount in Semiosis). Uses the market that gives more (market auto, the default; the Civic Pool keeps a near tie within 0.5%, since its fee goes to the treasury), or the one named. Gives the market used and why, both markets’ quotes, the expected amount out, the minimum at the chosen slippage, the fee, the price impact and its warnings. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"side": "<side>",
"amount": "<amount>"
},
"name": "quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| amount | Yes | In whole units as a decimal string: ETH for a buy, Semiosis for a sell, such as "0.01". | |
| market | No | Where to trade. auto (the default) quotes the Civic Pool and Semiosis’s Pons launch curve at the same block and uses the one that gives more; the Civic Pool keeps a near tie (within 0.5%), since its fee goes to the treasury, and a buy that would close the curve is never sent to it (the quote gives markets.pons.maxBuyEth). civic or pons uses that market; civic keeps every trade on the CivicRouter, with its deadline. | |
| slippage_bps | No | Slippage in basis points, 1 to 500 (100 = 1%). Default 100. |