Starkex
Real-time price data with cryptographic verification for StarkEx integrations
Verified Price Feeds
Perfect for StarkEx integrations and applications requiring cryptographic verification of price data
Overview
If you are building on StarkEx or need a robust verification mechanism for price data, this endpoint provides real-time feeds with cryptographic signatures to ensure data integrity and provenance.
Connection
Open WebSocket Connection
Connect to our WebSocket endpoint on your preferred environment:
Subscribe to Asset Pairs
Send a subscription message to start receiving updates every 500 milliseconds.
Subscription Management
Subscribing to Pairs
The response includes all pairs you are currently subscribed to, including any previous subscriptions not mentioned in your latest request.
Unsubscribing from Pairs
Price Types
Median price from spot markets across supported exchanges.
Format Example: BTC/USD
By default, subscriptions are for index prices. Subscribing to a pair without specifying the type will subscribe to the index price.
Median price from spot markets across supported exchanges.
Format Example: BTC/USD
By default, subscriptions are for index prices. Subscribing to a pair without specifying the type will subscribe to the index price.
Median price from perpetual markets across supported exchanges.
Format Example: ETH/USD:MARK
Calculation Method:
For assets quoted in a stablecoin:
- Determine the median perp price of the asset quoted in the stablecoin
- Determine the median spot price of the stablecoin in USD
- Divide the median perp price by the median spot price of the stablecoin in USD
For assets quoted in USD:
- Determine the median perp price of the asset quoted in USD
To subscribe to a mark price, append :MARK
to the pair name (e.g., ETH/USD:MARK
).
Data Format
Field Reference
Field | Description |
---|---|
global_asset_id | Unique identifier for the asset encoded using the pair name |
median_price | The median price of the asset |
signature | Signature of the median price by the Pragma oracle |
signed_prices | Array of the prices used to compute the median price |
oracle_asset_id | Unique identifier encoded using the pair and publisher names |
oracle_price | Price provided by the oracle |
signing_key | Key used by the oracle to sign the price |
timestamp | Time when the price was recorded |
signature | Signature of the price by our publisher |
All numeric values are returned as strings to preserve precision, especially for assets with very small or very large prices.
Integration Examples
We’ve created a ready-to-use example with a terminal UI for testing this endpoint:
We’ve created a ready-to-use example with a terminal UI for testing this endpoint:
Connect to the Pragma websocket endpoint and subscribe to the TIA/USD index price:
Comparison with Lightspeed
Starkex
- ✓ Includes cryptographic signatures
- ✓ Verifiable price data
- ✓ Individual publisher prices
- ✓ Ideal for StarkEx integration
- ⚠️ Slightly larger payload size
Lightspeed
- ✓ Minimal payload size
- ✓ Optimized for performance
- ✓ Lower latency
- ✓ Ideal for trading applications
- ❌ No verification metadata
Choose Starkex when data provenance and verification are required, and Lightspeed when raw performance is your primary concern.
Was this page helpful?