Skip to main content
POST
/
2
/
pm
/
order
/
submit
Submit signed prediction market order
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/order/submit \
  --header 'Content-Type: application/json' \
  --data '
{
  "order": {
    "salt": "<string>",
    "maker": "<string>",
    "signer": "<string>",
    "taker": "<string>",
    "tokenId": "<string>",
    "makerAmount": "<string>",
    "takerAmount": "<string>",
    "expiration": "<string>",
    "nonce": "<string>",
    "feeRateBps": "<string>",
    "side": "<string>",
    "signatureType": "<string>"
  },
  "signature": "<string>",
  "apiKey": "<string>",
  "apiSecret": "<string>",
  "apiPassphrase": "<string>",
  "owner": "<string>",
  "orderType": "GTC"
}
'
{
  "data": {
    "success": true,
    "orderId": "<string>",
    "status": "live",
    "transactionsHashes": [
      "<string>"
    ]
  },
  "hostname": "<string>",
  "took": 123
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Body

application/json
order
object
required

The EIP-712 order struct

signature
string
required
apiKey
string
required
apiSecret
string
required
apiPassphrase
string
required
owner
string

Optional owner address

orderType
enum<string>
default:GTC
Available options:
GTC,
GTD,
FOK

Response

200 - application/json

Order submission result

data
object
hostname
string
took
number