Get the expected cost, shares, and fees for a potential trade without committing to it. Provide X-Public-Key to include profit estimates based on your existing position.
Authentication
Public — no authentication required. Provide X-Public-Key for personalized profit estimates.
Path parameters
Request body
UUID of the outcome. Use the Get Event endpoint to find outcome IDs.
Amount to spend (buy) or receive (sell), in the specified currency.
Example request
curl -X POST \
"https://relay.bayse.markets/v1/pm/events/a1b2c3d4-e5f6-7890-abcd-ef1234567890/markets/b2c3d4e5-f6a7-8901-bcde-f12345678901/quote" \
-H "Content-Type: application/json" \
-d '{"side":"BUY","outcomeId":"c3d4e5f6-a7b8-9012-cdef-345678901234","amount":100,"currency":"USD"}'
Response
Average price per share for this trade (0.00–1.00).
Current market price before this trade executes.
Number of shares you will receive.
Total amount spent (including fee).
Cost of shares before fee.
How much this trade moves the market price.
Estimated profit percentage if the outcome wins.
Multiplier applied to convert prices to the requested currency (1 for USD, 100 for NGN).
Whether the full amount can be filled at the quoted price (relevant for CLOB markets).
tradeGoesOverMaxLiability
Whether this trade exceeds maximum liability limits.
{
"price": 0.7235,
"currentMarketPrice": 0.72,
"quantity": 138.21,
"amount": 100,
"costOfShares": 98.04,
"fee": 1.96,
"priceImpactAbsolute": 0.0035,
"profitPercentage": 38.21,
"currencyBaseMultiplier": 1,
"completeFill": true,
"tradeGoesOverMaxLiability": false
}
Always get a quote before placing an order to confirm the expected cost and shares. The quoted price is indicative — the actual fill price may differ slightly in fast-moving markets.