Skip to main content
POST
/
2
/
pm
/
order
/
build
Build the EIP-712 V2 Order typed data ready for signing
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/order/build \
  --header 'Content-Type: application/json' \
  --data '
{
  "maker": "<string>",
  "tokenId": "<string>",
  "side": "<string>",
  "price": 0.5,
  "size": 50000000,
  "signer": "<string>",
  "isNegRisk": true,
  "feeRateBps": 0,
  "expiration": 0,
  "tickSize": 0.5,
  "signatureType": 0
}
'
{
  "hostname": "<string>",
  "took": 123,
  "data": "<unknown>"
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Body

application/json
maker
string
required
Minimum string length: 1
tokenId
string
required
Minimum string length: 1
Pattern: ^[0-9]+$
side
string
required
price
number
required
Required range: 0 < x <= 1
size
number
required
Required range: 0 < x <= 100000000
signer
string
isNegRisk
boolean
feeRateBps
integer | null
default:0
Required range: 0 <= x <= 500
expiration
integer | null
default:0
Required range: 0 <= x <= 315360000
tickSize
number
Required range: 0 < x <= 1
signatureType
integer | null
default:0
Required range: 0 <= x <= 2

Response

201 - application/json

Prediction Markets response

hostname
string
required
took
number
required
data
any | null

See the per-endpoint reference for the exact response shape.