SIGNAL INGESTION BRIDGE|● SUB-5MS DISPATCHER
TradingView Webhook & PineScript Bridge
Target Latency: Sub-5ms
Target Strategy Destination Envelope
Webhooks route directly into this strategy's isolated risk envelope.
● WEBHOOK INGESTION URL (HMAC-SHA256)
https://api.obiquant.com/api/v1/webhooks/signal/YOUR_STRATEGY_ID
HTTP Method:POST
Security Header:X-OBIQuant-Signature (Optional)
Passphrase Fallback:Verified in JSON body
Two-Phase Order Commit
Webhooks immediately respond HTTP 202 Accepted and enqueue an immutable OrderIntent to the message broker queue under 5ms.
● TRADINGVIEW ALERT MESSAGE JSON
{
"action": "{{strategy.order.action}}",
"symbol": "{{ticker}}",
"price": "{{close}}",
"candle_ts": "{{time}}",
"passphrase": "YOUR_WEBHOOK_SECRET_KEY"
}Paste this JSON verbatim into your TradingView Alert dialog under the "Message" tab.
● PRODUCTION PINESCRIPT V5 STRATEGY TEMPLATE
//@version=5
strategy("OBIQuant Institutional Confluence [v6.1]", overlay=true, margin_long=100, margin_short=100)
// Quantitative Indicators
rsiLength = input.int(14, "Wilder's RSI Length")
rsiOversold = input.int(30, "RSI Oversold Floor")
rsiOverbought = input.int(70, "RSI Overbought Ceiling")
rsi = ta.rsi(close, rsiLength)
[bbMiddle, bbUpper, bbLower] = ta.bb(close, 20, 2.0)
// Multi-Timeframe Confluence Execution
longCondition = ta.crossover(rsi, rsiOversold) and close <= bbLower
shortCondition = ta.crossunder(rsi, rsiOverbought) and close >= bbUpper
if (longCondition)
strategy.entry("QuantLong", strategy.long, alert_message='{"action": "BUY", "symbol": "' + syminfo.ticker + '", "price": ' + str.tostring(close) + ', "passphrase": "YOUR_WEBHOOK_SECRET_KEY"}')
if (shortCondition)
strategy.close("QuantLong", alert_message='{"action": "SELL", "symbol": "' + syminfo.ticker + '", "price": ' + str.tostring(close) + ', "passphrase": "YOUR_WEBHOOK_SECRET_KEY"}')
● TWO-PHASE ORDERINTENTS DISPATCH LOGPENDING → SUBMITTED → CONFIRMED
| Client Order ID | Pair | Side | Type | Limit Price | Latency | Status |
|---|---|---|---|---|---|---|
| qr-intent-994-sol | SOL/USDC | BUY | LIMIT | $154.10 | 3.8 ms | CONFIRMED |
| qr-intent-993-sol | SOL/USDC | SELL | LIMIT | $162.50 | 4.1 ms | CONFIRMED |
| qr-intent-992-btc | BTC/USDC | BUY | LIMIT | $68200.00 | 3.4 ms | CONFIRMED |