Quote
AMM price for a market, in ticks (1000 = $1.00). Step one of a market order: quote the pool, then sign a limit at or beyond the quoted side.
GET https://app-staging.daejin.xyz/clob-engine/quote?market=373 ← SolanaGET https://app-staging.daejin.xyz/clob-engine/quote?chain=97&market=314 ← EVM{ "market": 373, "yes": 655, "no": 345 }Use the side you are buying as your signed price limit, or a worse one to allow slippage — the fill is bounded by what you signed. EVM answers include chainId; a market or chain the bridge does not serve answers 400.
yes and no are the marginal price — right for displaying "the market is at 65¢", wrong for sizing an order against: a fill clears at the average along the curve, which for anything but a dust trade is worse. On Solana, pass size (with action and outcome) to get that average back as exec, or budget (buys only, raw collateral units) to learn what size that money buys:
GET https://app-staging.daejin.xyz/clob-engine/quote?market=373&action=buy&outcome=yes&size=5000000{ "market": 373, "yes": 655, "no": 345, "exec": { "yes": 662, "no": 338, "action": "buy", "outcome": "yes", "size": 5000000 } }Developer-portal API key (tp_live_… / tp_test_…), also accepted as Authorization: Bearer tp_….
In: header
Query Parameters
On-chain CLOB market id
EVM chain id; omit for Solana
Solana only: order size in raw units; with action and outcome, adds the average execution price as exec
Solana only, with size; default buy
Value in
- "buy"
- "sell"
Solana only, with size; default yes
Value in
- "yes"
- "no"
Solana only, buys: collateral in raw units; answers with the size it buys and its average price as exec
Response Body
curl -X GET "https://example.com/quote?market=string"