# Legend WebSocket API

**Canonical:** https://apis.io/apis/legendtrade/websocket/  
**Provider:** LegendTrade — https://apis.io/providers/legendtrade/  
**Base URL:** https://api.legend.trade/ws  
**Documentation:** https://docs.legend.trade

Legend WebSocket API is one of 5 APIs that [LegendTrade](https://apis.io/providers/legendtrade/) publishes on the [APIs.io](https://apis.io/) network, described by an AsyncAPI event-driven specification. Tagged areas include Streaming, Market Data, and WebSocket. The published artifact set on APIs.io includes an AsyncAPI specification.

Legend's Hyperliquid-compatible WebSocket at wss://api.legend.trade/ws, using subscription-based messaging. Public marketData channels stream trades, candles, and active asset context; account userData channels stream fills, open orders, order updates, clearinghouse state, funding, ledger updates, TWAP state and history, and notifications.

## Machine-readable artifacts (2)

- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/legendtrade/refs/heads/main/asyncapi/legendtrade-ws-asyncapi.yml
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/legendtrade/refs/heads/main/apis.yml

## Other LegendTrade APIs (4)

- [LegendTrade Health API](https://apis.io/apis/legendtrade/legendtrade-health-api/)
- [LegendTrade Info API](https://apis.io/apis/legendtrade/legendtrade-info-api/)
- [LegendTrade Market Data API](https://apis.io/apis/legendtrade/legendtrade-market-data-api/)
- [LegendTrade Wallets API](https://apis.io/apis/legendtrade/legendtrade-wallets-api/)

## Tags

Streaming, Market Data, WebSocket

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/legendtrade/websocket/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/legendtrade/.
