
MidChains Market Data Connector
MidChains Data Connector based on WebSocket and REST.
Features
midchainsConnector Key✓
Level 1
✓
Level 2
✗
Level 3
✗
Trades
✗
Funding Rates
Configuration
Data Connector Parameters
| Parameter | Default Value | Description |
|---|---|---|
| WebSocket URL | N/A | WebSocket root URL of the MidChains LP Gateway (Order Book Trading). Example (development): wss://lpob-gateway-dev.midchains.info/v1/ws. |
| REST URL | N/A | REST root URL of the MidChains LP Gateway. Used for login (challenge–response) and session keepalive. Example (development): https://lpob-gateway-dev.midchains.info/. |
| API Key | N/A | API key (UUID) registered with the MidChains LP Gateway (api_key_id). |
| Private Key | N/A | PEM file (.pem) holding the RSA-2048 private key used to sign the login challenge. Generate a key pair with OpenSSL if needed:openssl genrsa -out client_private.pem 2048openssl rsa -in client_private.pem -pubout -out client_public.pemShare the public key with MidChains; keep the private key secret. |
| Read Timeout | 45000 | Read timeout in milliseconds. |
| Reconnect Timeout | 15000 | Reconnect timeout in milliseconds. |
| Keepalive Interval | 30000 | Interval in milliseconds between REST session keepalive calls (POST /api/v1/keepalive). Must be shorter than the gateway keepalive timeout returned at login confirm. |
| Exchange Name | MIDCHAINS | Exchange name for this session. |
| Output Book Size | 20 | Size of the output book. |
Symbology
Symbols use the BASE/QUOTE pair format as the MidChains WebSocket subscription channel. Symbols are case-sensitive and use upper-case letters.
Supported symbol notations:
| Symbol Notation | Examples |
|---|---|
| BASE/QUOTE | USDC/USD BTC/USD BTC/USDT BTC/AED |
For the full list of tradable pairs, refer to the MidChains markets endpoint (GET /v1/markets) described in the MidChains LP Gateway Integration Guide.
Logging
To enable detailed logging, use these lines in the <QSHOME>/config/gflog.xml file:
<logger name="deltix.qsrv.hf.plugins.data.midchains" level="TRACE">
<appender-ref ref="safeAppender"/>
</logger>
