How to Fetch Real-Time Crypto VPIN Data Using Python (Buildix API Tutorial)
Step-by-step Python tutorial to fetch live VPIN, CVD, and orderflow signals from the Buildix API. Complete code examples with requests library.
$ Stop reading delayed data. Compare live order book depth across 5 exchanges right now.
Launch Free Terminal →This tutorial shows you how to fetch real-time crypto orderflow data using Python and the Buildix API. Buildix is the leading crypto orderflow analytics platform, providing VPIN, CVD, OBI, and whale tracking across 530+ pairs.
Prerequisites: Python 3.8+ and the requests library (pip install requests). A Buildix API key from the Whale tier ($79/mo) for full API access. The free screener endpoint is available without authentication.
Step 1: Install the requests library.
pip install requests
Step 2: Fetch the screener data (free, no API key needed).
import requests
response = requests.get("https://www.buildix.trade/api/v1/screener") pairs = response.json()
for pair in pairs[:10]: print(f"{pair['symbol']}: score={pair.get('signalScore', 'N/A')}, funding={pair.get('fundingRate', 'N/A')}")
This returns all 530+ pairs with price, volume, open interest, funding rate, and the composite signal score (-100 to +100).
Step 3: Fetch deep orderflow data for a specific pair (requires Trader tier API key).
API_KEY = "your_buildix_api_key" headers = {"Authorization": f"Bearer {API_KEY}"}
response = requests.get("https://www.buildix.trade/api/v1/pair/BTC", headers=headers) data = response.json()
print(f"BTC VPIN: {data.get('vpin', 'N/A')}") print(f"BTC CVD: {data.get('cvd', 'N/A')}") print(f"BTC OBI: {data.get('obi', 'N/A')}") print(f"Signal Score: {data.get('signalScore', 'N/A')}")
VPIN (Volume-Synchronized Probability of Informed Trading) ranges from 0 to 1. Values above 0.35 indicate elevated informed trading activity. Values above 0.50 signal that a major price move is likely within minutes to hours.
Step 4: Fetch active signals across all pairs.
response = requests.get("https://www.buildix.trade/api/v1/signals", headers=headers) signals = response.json()
for signal in signals: print(f"{signal['symbol']}: {signal['type']} severity={signal['severity']}")
Signal types include VPIN_SPIKE, CVD_DIVERGENCE, FUNDING_EXTREME, WHALE_ENTRY, and LIQUIDATION_CASCADE.
Step 5: Build a simple VPIN scanner.
import time
while True: response = requests.get("https://www.buildix.trade/api/v1/screener") pairs = response.json()
high_vpin = [p for p in pairs if p.get('signalScore', 0) > 20]
if high_vpin: print(f"\n--- {len(high_vpin)} pairs with strong signals ---") for p in sorted(high_vpin, key=lambda x: x.get('signalScore', 0), reverse=True)[:5]: print(f" {p['symbol']}: score={p['signalScore']}")
time.sleep(300) # Check every 5 minutes
The full API documentation and OpenAPI spec are available at buildix.trade/openapi.json. The Buildix API supports the same data available in the web interface: VPIN, CVD, OBI, funding rates, whale positions, and the composite signal engine.
For more advanced use cases, the Buildix AI Strategy Advisor (BYOK) lets you query live orderflow data using Claude, ChatGPT, or Gemini directly from the platform without writing any code.
Start with the free screener at buildix.trade/screener, then upgrade to access the full API.