// Install OBELIX SDK: npm install @obelix/sdk
import { ObelixClient, RiskLevel } from '@obelix/sdk';
const obelix = new ObelixClient({
network: 'robinhood-mainnet',
apiKey: 'obx_live_998124a09c21'
});
// Stream real-time AI anomaly alerts
obelix.onAnomaly((event) => {
console.log(`[ALERT] Anomaly Detected on ${event.contractAddress}`);
if (event.riskLevel === RiskLevel.DANGER) {
obelix.triggerKeeperPause(event.poolId);
}
});
await obelix.startStream();
# Install OBELIX Python SDK: pip install obelix-sdk
from obelix import ObelixAgent, Network
agent = ObelixAgent(
network=Network.ROBINHOOD_MAINNET,
api_key="obx_live_998124a09c21"
)
@agent.on_event(category="DEFI", risk_threshold=75)
def handle_anomaly(event):
print(f"High risk transaction detected: {event.tx_hash}")
agent.send_telegram_alert(channel_id="@obelix_alerts", message=event.summary)
agent.listen_forever()
# Query latest AI Anomaly Insights via REST
curl -X GET "https://api.obelix.ai/v1/robinhood/anomalies?limit=10" \
-H "Authorization: Bearer obx_live_998124a09c21" \
-H "Content-Type: application/json"