import React from 'react'; const RISK_WARNINGS = [ { title: 'Financial Drawdown', body: 'Automated systems can accumulate losses before you notice. Only trade with capital you can afford to lose and define a maximum daily loss limit.' }, { title: 'Credential Exposure', body: 'Anyone with a trading-enabled API key can place orders on your behalf. Rotate keys regularly, restrict access to trusted IPs, and disable withdrawals.' }, { title: 'Software Bugs', body: 'Logic defects or bad market data can send malformed orders. Keep the bot under supervision during roll-outs and log every execution path.' }, { title: 'Market Extremes', body: 'Volatility spikes and liquidity gaps can invalidate even high-confidence signals. Always pair autonomous execution with hard stop losses.' } ]; const BEST_PRACTICES = [ 'Start in paper-trading mode to validate the pipeline end-to-end.', 'Keep a capped, dedicated exchange sub-account (e.g., £500-£1000) for live fire drills.', 'IP whitelist the API key and monitor access logs.', 'Disable withdrawals on all execution keys.', 'Enforce position sizing, stop loss, and take profit guards at the strategy level.', 'Set up 24/7 alerts and dashboards for fills, rejects, and connectivity.' ]; const PHASES = [ { title: 'Phase 1 — Exchange API Configuration', items: [ 'Create a Binance API key with Reading + Spot & Margin Trading enabled.', 'Explicitly disable withdrawals and enable IP access restrictions.', 'Optional: enable universal transfers if you need to rebalance sub-accounts.', 'Test connectivity with a signed /api/v3/account request before going live.' ] }, { title: 'Phase 2 — QGITA Autonomous Bot Pipeline', items: [ 'Stream market data into the QGITA FTCP detector and Lighthouse consensus modules.', 'Run risk filters (daily loss cap, max trades, position limits) before any order leaves the system.', 'Use the execution module to send signed market orders in paper mode before enabling live trading.', 'Continuously log decisions, fills, and PnL deltas for post-trade review.' ] } ]; const AutonomousTradingGuide: React.FC = () => { return (

Autonomous Execution Guardrails

Read this before activating live trading on QGITA.

Critical Risk Disclosures

{RISK_WARNINGS.map((warning) => (
{warning.title}

{warning.body}

))}

Operational Best Practices

    {BEST_PRACTICES.map((item) => (
  • {item}
  • ))}
{PHASES.map((phase) => (

{phase.title}

    {phase.items.map((item, index) => (
  1. {item}
  2. ))}
))}

Binance Trading Permission Check (Python)

            {`import time, hmac, hashlib
from urllib.parse import urlencode
import requests

API_KEY = 'your_api_key'
API_SECRET = 'your_secret_key'
BASE_URL = 'https://api.binance.com'


def binance_signature(params, secret):
    query_string = urlencode(params)
    return hmac.new(secret.encode(), query_string.encode(), hashlib.sha256).hexdigest()


def get_account_info():
    endpoint = '/api/v3/account'
    timestamp = int(time.time() * 1000)
    params = {'timestamp': timestamp}
    params['signature'] = binance_signature(params, API_SECRET)
    headers = {'X-MBX-APIKEY': API_KEY}
    response = requests.get(BASE_URL + endpoint, params=params, headers=headers)
    response.raise_for_status()
    return response.json()


account = get_account_info()
print('Account Type:', account.get('accountType'))
print('Can Trade:', account.get('canTrade'))
print('Balances:', [(b['asset'], b['free']) for b in account['balances'] if float(b['free']) > 0])`}
          

Run this in a secure environment to validate permissions before flipping QGITA from paper trading to live fire.

); }; export default AutonomousTradingGuide;