Brokex Public API (Multi-Network Ready)

https://base.brokex.trade
High-performance REST and SSE endpoints for Brokex Protocol. Supports Base Sepolia (Testnet) and Base (Mainnet) via ?network=testnet|mainnet.
Oracle & Real-Time Price Streams
GET /stream SSE Live Price Stream

Subscribes to live price updates for Gold (XAU/USD).

curl -N "https://base.brokex.trade/stream"
GET /oracle Current Oracle Spot Price

Returns live Pyth spot price.

curl "https://base.brokex.trade/oracle"
GET /proof Pyth Hermes v2 Binary Proof

Returns latest signed binary price update data for execution.

curl "https://base.brokex.trade/proof"
Protocol & Trades
GET /protocol-info Protocol Global Stats

Returns latest Lens snapshot (?network=testnet|mainnet).

curl "https://base.brokex.trade/protocol-info?network=testnet"
GET /liquidations Open Positions & Liquidations

Returns exact calculated liquidation prices for open trades.

curl "https://base.brokex.trade/liquidations"
GET /average-prices Weighted Average Open Prices

Calculates weighted average open prices for Long and Short.

curl "https://base.brokex.trade/average-prices"
Chart & Market Data
GET /markets Multi-Asset Market Variations & Prices

Returns 1h, 24h and 7d percentage variations and spot prices for Top Forex, Metals (Gold, Silver, Platinum), Commodities (Crude Oil), Cryptos (BTC, ETH, SOL...) and US Equities (AAPL, TSLA, NVDA...).

curl "https://base.brokex.trade/markets"
GET /markets/refresh Force Refresh Pyth Market Differences

Forces a live re-fetch from Pyth Benchmarks and updates data/marketsSummary.json on disk immediately.

curl "https://base.brokex.trade/markets/refresh"
GET /chart/24h 24h High, Low & Sparkline

Returns 24h lowest price (low_24h), 24h highest price (high_24h), price variations and 120-pt sparkline.

curl "https://base.brokex.trade/chart/24h"