Skip to main content

Documentation Index

Fetch the complete documentation index at: https://whitebit-mintlify-fix-broken-links-1777248521.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Subscribe to margin call and liquidation event notifications for collateral borrows. Events fire when a borrow enters margin call or liquidation state. This is an event-driven channel — updates are pushed once per state change, with no periodic polling or snapshot on subscribe.
Connect to wss://api.whitebit.com/ws — see WebSocket Overview for protocol details and keepalive requirements.

Rate limits

Subscribe to borrow events

This channel delivers events only on state changes — no snapshot is sent on subscribe, and events missed during a disconnection are not replayed. For complete borrow state awareness, pair this channel with Borrows, which sends full snapshots every 1.5 seconds.

Update frequency

Updates are pushed in real time on borrow state changes (new borrow, repayment, liquidation).

Error codes

Borrow event object