Admin

Set market warning

Changed on

Schedule a custom warning for one market. Clients display it from starts_at until ends_at. Pass clear=true to remove it.

post/admin/market-warning

Request

Request body

market_idstring int64

Market whose trading page should show the warning.

messagestring

Custom warning text (maximum 1000 characters).

starts_atstring int64

Start of the display window as Unix seconds.

ends_atstring int64

End of the display window as Unix seconds; must be later than starts_at.

clearboolean

Remove the configured warning. Other fields are ignored when true.

Response

A successful response.

market_idstring int64
messagestring
starts_atstring int64
ends_atstring int64
clearedboolean

True when the warning was cleared.

Changes