Skip to main content
POST
/
api
/
sdk
/
alerts
Create Alert
curl --request POST \
  --url https://api.simmer.markets/api/sdk/alerts \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_id": "<string>",
  "side": "yes",
  "condition": "above",
  "threshold": 0.5,
  "webhook_url": "<string>"
}
'
{
  "id": "<string>",
  "market_id": "<string>",
  "side": "<string>",
  "condition": "<string>",
  "threshold": 123,
  "created_at": "<string>",
  "market_question": "<string>",
  "webhook_url": "<string>",
  "triggered_at": "<string>"
}

Body

application/json

Request to create a price alert.

market_id
string
required
side
enum<string>
required
Available options:
yes,
no
condition
enum<string>
required
Available options:
above,
below,
crosses_above,
crosses_below
threshold
number
required
Required range: 0 <= x <= 1
webhook_url
string | null

Response

Successful Response

Response for a single alert.

id
string
required
market_id
string
required
side
string
required
condition
string
required
threshold
number
required
created_at
string
required
market_question
string | null
webhook_url
string | null
triggered_at
string | null