Skip to content

Create a new canonical app market and register it with the matcher when trading ids are present

POST
/markets

Authorizations

bearer
Type
HTTP (bearer)
or
api-key
Type
API Key (header: x-api-key)

Request Body

application/json
JSON
{
  
"question": "string",
  
"description": "string",
  
"image": "string",
  
"category": "string",
  
"endTimestamp": "string",
  
"resolutionSource": "string",
  
"conditionId": "string",
  
"questionId": "string",
  
"yesTokenId": "string",
  
"noTokenId": "string",
  
"outcomes": [
  
  
{
  
  
  
"name": "string",
  
  
  
"image": "string",
  
  
  
"sortOrder": 0,
  
  
  
"indexSet": "string",
  
  
  
"tokenId": "string",
  
  
  
"complementIndexSet": "string",
  
  
  
"complementTokenId": "string"
  
  
}
  
],
  
"outcomeSlotCount": 0
}

Responses

application/json
JSON
{
}

Playground

Server
Authorization
Body

Samples