---
title: "Heartbeat"
url: https://docs.truemarkets.co/api/websocket/institutional/heartbeat
description: "Message sent to a connection subscribed to the HEARTBEAT channel after 10 seconds with nothing else sent to it, so clients can tell a quiet feed from a dead connection."
---

Docs index: https://docs.truemarkets.co/llms.txt

# Heartbeat

True Markets CeFi WebSocket sends these messages to you.

Address: `/v1/cefi/market`

## Servers

- `wss://api.truemarkets.co` (Production, wss)
- `wss://api.uat.truemarkets.co` (Uat, wss)

## Messages

### heartbeat

Payload: `HeartbeatPayload`

Example payload:

```json
{
  "timestamp": "string",
  "channel": "HEARTBEAT",
  "update": "HEARTBEAT"
}
```

## Types

```ts
export type HeartbeatMessage = HeartbeatPayload;

export interface HeartbeatPayload {
  /** Server UTC time the heartbeat was sent, in nanoseconds since the Unix epoch. */
  timestamp?: string;

  /** Channel this message originated from. */
  channel?: "HEARTBEAT";

  /** Type of update for the current message. */
  update?: "HEARTBEAT";
}
```