Repository avatar
AI Tools
v1.0.0
active

quant-b2b-intel-hub

io.github.zk16k123-svg/quant-b2b-intel-hub

Polymarket & Kalshi arbitrage, crypto perp funding carry & Shopify B2B leads via Apify MCP.

Documentation

Quant & B2B Intelligence Hub — Live Terminal & MCP Server

Refresh Live Quant & B2B Intel Feed Live Terminal MCP Compatible

Live Public Terminal (Refreshed Hourly 24/7):
https://zk16k123-svg.github.io/quant-b2b-intel-hub/

Real-time institutional market intelligence terminal and Model Context Protocol (MCP) server connecting AI Agents, quantitative researchers, and growth engineers to three production Apify Cloud Actors:

Intelligence StreamApify Cloud ActorFull Cloud Scope
01. Prediction Market Arbitrageconscious_chuckwalla/prediction-market-arb-intel3,400+ active Polymarket & Kalshi contracts, L2 CLOB orderbooks, $1,000 VWAP slippage, cross-venue arbitrage, NegRisk sum-to-one baskets & near-expiry yield bonds
02. Crypto Perp Funding Carryconscious_chuckwalla/crypto-funding-rate-carry-arb650+ perpetual markets (Hyperliquid, Kraken Futures, dYdX v4 & more), OI-filtered delta-neutral carry spreads, realized stability & notional USD yield sizing
03. B2B Shopify Lead & Tech Stackconscious_chuckwalla/shopify-leads-tech-stack-intelVerified DTC merchant emails, social profiles, SKU/AOV catalog pricing & 40+ SaaS / pixel signatures (Klaviyo, Attentive, Recharge, Gorgias, Meta/TikTok Pixel)

Architecture: Hourly Public Preview + On-Demand Full Depth

  1. 7×24 Automated Public Snapshot (docs/data/live_feed.json):
    • Updated every hour (12 * * * * UTC) via .github/workflows/refresh-live-intel.yml using zero-dependency Python 3.11 stdlib (scripts/update_live_preview.py).
    • Queries official public read-only endpoints across Polymarket Gamma, Kalshi Trade API v2, Hyperliquid, Kraken Futures, and dYdX v4.
  2. Interactive Web Terminal (docs/index.html):
    • Live cross-venue arbitrage & perpetual carry matrix, interactive notional yield calculator ($10k / $50k / $100k / custom), B2B Shopify lead segment explorer, and one-click MCP / Python / cURL snippets.
  3. Dual-Tier MCP Server (mcp_server.py):
    • With APIFY_TOKEN set: Executes synchronous on-demand cloud runs (run-sync-get-dataset-items) against conscious_chuckwalla/* for full market depth, custom keyword/tech filters, and L2 orderbook slippage.
    • Without APIFY_TOKEN: Zero-auth fallback to the hourly live_feed.json preview so agents work immediately on first install.

MCP Server Setup (Claude Desktop / Cursor / Windsurf / Cline)

Grab your free Apify API token at console.apify.com/settings/integrations to unlock full real-time dataset runs across all 3,400+ prediction contracts, 650+ perpetuals, and live Shopify store leads.

Option A: Zero-Install via uvx (Recommended)

Add to claude_desktop_config.json or .cursor/mcp.json:

{
  "mcpServers": {
    "quant-b2b-intel": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/zk16k123-svg/quant-b2b-intel-hub",
        "quant-b2b-intel-mcp"
      ],
      "env": {
        "APIFY_TOKEN": "apify_api_YOUR_TOKEN_HERE"
      }
    }
  }
}

Option B: Direct Python Execution (Zero External Dependencies Required)

mcp_server.py includes a built-in Python 3.10+ stdlib JSON-RPC 2.0 stdio transport—you can run it directly after cloning without installing a single package:

git clone https://github.com/zk16k123-svg/quant-b2b-intel-hub.git
cd quant-b2b-intel-hub
python mcp_server.py
{
  "mcpServers": {
    "quant-b2b-intel": {
      "command": "python",
      "args": ["/absolute/path/to/quant-b2b-intel-hub/mcp_server.py"],
      "env": {
        "APIFY_TOKEN": "apify_api_YOUR_TOKEN_HERE"
      }
    }
  }
}

Exposed MCP Tools

  • scan_prediction_market_arbitrage(mode, search_query, max_results, include_orderbook_depth)
  • scan_crypto_funding_carry(min_net_apr_pct, min_oi_usd, notional_usd, symbol_filter, max_results)
  • enrich_shopify_b2b_leads(niche_keyword, domains, required_tech, max_leads)
  • get_live_terminal_summary()

Direct REST API & Python Quickstart

1. Polymarket & Kalshi Arbitrage + L2 Orderbook Slippage

curl -X POST "https://api.apify.com/v2/acts/conscious_chuckwalla~prediction-market-arb-intel/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "all",
    "venues": ["polymarket", "kalshi"],
    "minVolume24h": 1000,
    "includeOrderbookDepth": true,
    "maxResults": 100
  }'

2. Crypto Perpetual Funding-Rate Delta-Neutral Carry

curl -X POST "https://api.apify.com/v2/acts/conscious_chuckwalla~crypto-funding-rate-carry-arb/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "minNetSpreadAprPct": 10.0,
    "minOpenInterestUsd": 100000,
    "notionalUsd": 50000,
    "maxResults": 50
  }'

3. Shopify Store Leads, Verified Emails & Tech Stack Enricher

curl -X POST "https://api.apify.com/v2/acts/conscious_chuckwalla~shopify-leads-tech-stack-intel/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "searchQuery": "specialty coffee",
    "requiredTechStack": ["Klaviyo"],
    "maxResults": 50
  }'

Refreshing the Public Feed Locally

python scripts/update_live_preview.py

Writes fresh market telemetry to docs/data/live_feed.json using only the Python 3.11 standard library.

License

MIT — Data provided strictly for quantitative research, engineering, and informational workflows. Not financial advice.