---
title: "Error"
url: https://docs.truemarkets.co/api/websocket/market-data/error
description: "Server-side error message describing why a request was rejected."
---

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

# Error

True Markets Market Data WebSocket sends these messages to you.

Address: `/v1/defi/market`

## Servers

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

## Messages

### error

Server-side error for a malformed request (e.g. invalid JSON, empty topics, or an unexpected message type).

Payload: `ErrorPayload`

Example payload:

```json
{
  "type": "error",
  "status": "error",
  "timestamp": 0,
  "message": "string"
}
```

## Types

```ts
export type ErrorMessage = ErrorPayload;

export interface ErrorPayload {
  type: "error";
  status: "error";
  timestamp: number;

  /** Human-readable error description. */
  message?: string;
}
```