v1

latestOpenAPI 3.0.12026-07-26251295.9 KB
Orders

Fill an order

post/orders/fill/v2

Request body

marketstring required

The market hash of the market you are filling an order on

baseTokenstring required

The address of the ERC-20 token representing the currency of the fill. Token addresses vary by network — see the addresses field in GET /metadata or the References page for the correct address.

isTakerBettingOutcomeOneboolean required

Whether or not taker is betting outcome 1 (team 1 wins), if false then taker is betting outcome 2 (team 2 wins)

stakeWeistring required

The stake amount for this bet in wei units - see Unit Conversion. Minimum 1 USDC.

desiredOddsstring required

The worst taker odds acceptable for filling, used as an anchor when applying oddsSlippage - note that any order found with taker odds better than the desiredOdds can still fill if found at the time of order matching

oddsSlippageinteger required

An integer between 0-100 representing the percentage of tolerance that is acceptable based on desiredOdds

fillSaltstring required

Random 32 byte string to identify this fill. Must match the fillSalt used when computing the signing payload

takerstring required

Address of the taker taking the bet

takerSigstring required

Your wallet signature over the fill payload.

Response

statusstring

success or failure if the request succeeded or not