Heartbeats

Create heartbeat

Open a new heartbeat timer. If the timer expires before being refreshed or cancelled, every open order on the account is closed, including orders placed by other sessions or API keys; only orders created after the expiry instant are spared. Closing cancels the unfilled stake and withdraws unmatched liquidity advertised on the exchange; bets that already matched are unaffected. Expiry is evaluated server-side about once per second.

post/v2/heartbeats/

Request

  • Base URL: https://magicmarkets.com (the document declares no server; this is the origin it was published from)
  • URL: https://magicmarkets.com/v2/heartbeats/
  • Auth: API key in header X-Api-Key

Request body

timeoutinteger required

Seconds before the heartbeat expires

Response

Heartbeat created

status'ok'

Changes

No recorded changes to this operation across all 1 revision of this API.