Ingesting Logs via Thalex

Stream order fills and portfolio updates from Thalex into a BunnyLogs logspace in real time.

BunnyLogs connects to Thalex via a private WebSocket and forwards order and portfolio events to your log stream as they happen. Authentication uses an RSA key pair — no trading permissions are needed.

Setup
  1. Log in to Thalex and go to your account → API.
  2. Click New API Key. Choose an account, give the key a name, and set permissions to read-only (do not enable trading).
  3. Copy the Key ID (e.g. K12345678) and download the RSA private key PEM file.
  4. Go to Settings on BunnyLogs and click Connect Thalex.
  5. Paste the Key ID and the full contents of the private key file, select a logspace, and submit.
Event types
ChannelWhat it logs
session.orders Order status changes — placed, partially filled, filled, cancelled, rejected
account.portfolio Position changes and collateral updates
Message field mapping
BunnyLogs fieldSource
messageHuman-readable event summary
programAlways thalex
levelINFO normally; ERROR for cancelled/rejected orders
timestampTime the event was received (UTC)
Example log entries
Order filled: buy 0.01 BTC-PERPETUAL @ 67420.5
Order cancelled: sell 0.05 ETH-PERPETUAL @ 3200.0
Position: BTC-PERPETUAL size=0.01 unrealised_pnl=12.34
Collateral: USDC=10000.0
Notes
  • The private key is stored server-side to maintain the persistent WebSocket connection. Use a dedicated read-only key and never grant trading permissions.
  • The connection is automatically re-established if the WebSocket drops.
  • Select Testnet / Demo in the network dropdown if your account uses demo (ABC) funds.
  • To disconnect, click Disconnect in Settings. Your Thalex account is unaffected.