Sifting provides enterprise-grade real-time market data across crypto, foreign exchange, US equities, and on-chain venues — delivered over REST and WebSocket behind a single bearer token.
- Unified JSON schema across all venues
- Multi-venue aggregation into one canonical view
- Sub-100ms streams worldwide
- Single bearer token for all endpoints
import requests
API_KEY = "your_bearer_token"
headers = {"Authorization": f"Bearer {API_KEY}"}
# Get BTC/USD price
response = requests.get(
"https://api.sifting.io/v1/price",
headers=headers,
params={"symbol": "BTC/USD", "venue": "crypto"}
)
print(response.json())import asyncio
import websockets
import json
API_KEY = "your_bearer_token"
async def stream_prices():
uri = f"wss://stream.sifting.io/v1/prices"
async with websockets.connect(
uri,
extra_headers={"Authorization": f"Bearer {API_KEY}"}
) as ws:
# Subscribe to BTC and EUR/USD
await ws.send(json.dumps({
"action": "subscribe",
"symbols": ["BTC/USD", "EUR/USD", "AAPL"]
}))
async for message in ws:
data = json.loads(message)
print(f"{data['symbol']}: {data['price']} ({data['venue']})")
asyncio.run(stream_prices())const API_KEY = "your_bearer_token";
const response = await fetch("https://api.sifting.io/v1/price?symbol=BTC/USD", {
headers: {
"Authorization": `Bearer ${API_KEY}`
}
});
const data = await response.json();
console.log(data);| Asset class | Example symbols |
|---|---|
| Crypto | BTC/USD, ETH/USD, SOL/USD |
| Foreign Exchange | EUR/USD, GBP/USD, USD/JPY |
| US Equities | AAPL, MSFT, TSLA |
| On-chain | On-chain venue data |
Full API reference: https://sifting.io/docs
Get your API key: https://sifting.io
MIT