A real-time, zero-cost proprietary trading dashboard that analyzes order flow and cross-correlation between leading and lagging crypto assets.
Welcome to Trading View. This component provides a local, high-frequency dashboard designed to calculate statistical cross-correlation and order flow imbalance (OFI) on live cryptocurrency tick data via public WebSockets.
- Real-Time WebSocket Engine: Streams tick-by-tick public trade and limit order book data directly from Binance at zero cost.
- Cross-Correlation Function (CCF): Continually measures the microsecond lag correlation between a Lead asset (BTC) and a Lag asset (SOL).
- Order Flow Imbalance (OFI): Evaluates bid/ask pressure at the top of the order book to confirm signal direction.
- In-Memory Ring Buffers: Uses sliding windows to maintain high read/write performance on tick data directly in memory.
- Anti-Bleed Style Isolation: Scopes layout components under rigid container class keys, preventing CSS leakage into host Obsidian workspace configurations.
- Immersive Full-Tab Dashboard: Uses Datacore's native reparenting to present an edge-to-edge trading workspace overlay.
The package exposes the following compiled files:
| File | Description |
|---|---|
| TRADING VIEW.md | The main entry point leaf designed to be loaded inside Obsidian panes. |
| src/index.jsx | Main bootstrap application loader and full-tab viewport injector. |
| METADATA.md | Packaging manifest outlining indexing, target, and security configurations. |
| CONTRIBUTION.md | Contributor architecture standards and local compilation guidelines. |
| LICENSE.md | MIT open-source license. |
The component includes a native MCP Bridge to allow AI coding assistants and autonomous agents to monitor market data and execute paper trades directly through the UI.
AI agents can read data/mcp_state.json to retrieve real-time state:
- connectionStatus:
'Connected','Connecting', or'Disconnected'. - activeHost: Current WebSocket connection node (
stream.binance.comor fallbackstream.binance.us). - leadAsset (BTC) & lagAsset (SOL): Instantaneous prices, OFI (Order Flow Imbalance), and spreads.
To execute a trade or reload the component, the AI writes a command payload directly to data/mcp_commands.json.
The component checks this file every 1.5 seconds. If it finds executed: false, it triggers the operation, locks the state to prevent duplicate fills, and writes back the execution results.
{
"action": "buy",
"qty": 5,
"executed": false
}{
"action": "sell",
"qty": 10,
"executed": false
}{
"action": "reload",
"executed": false
}Once processed, the component automatically updates the command file to:
{
"action": "buy",
"qty": 5,
"executed": true,
"executedAt": "2026-06-07T03:22:04.120Z",
"status": "success",
"result": {
"id": "alpaca-order-uuid-here"
}
}- Download the Repository (cloning or downloading into the Obsidian vault folder).
- Install Datacore (ensuring the plugin is active).
- Open the Entry Note (specifying the exact loader note
TRADING VIEW.md).
| Preview | Description |
|---|---|
![]() |
Real-time normalized price tracking dashboard showing Lead and Lag assets. |
- beto.group

