Build with pUSD
Integrate pUSD as a user-aligned reward layer. Access treasury metrics, manage rewards, build utilities.
How pUSD Works
Understand the fundamental mechanics before integrating.
Reward Flow: Trade → Calculate → Credit → Use
Trade Event
User executes a trade on Prex Markets
Reward Calc
System calculates pUSD based on volume + LossLess
pUSD Credit
pUSD credited to user account (subject to unlock)
On-Platform Use
User can utilize, stake, or redeem pUSD
Proof-of-Activity
pUSD is minted based on verified user activity: trading volume, referrals, and grants. Never purchased.
LossLess Rebates
10% of realized trading losses automatically rebated as pUSD, up to caps. Softens downside.
Treasury Updates
50% of protocol revenue flows to Solvency Pool continuously. Query real-time via API.
Redemption Epochs
Weekly redemption windows. Value calculated at epoch close: Pool ÷ Opting pUSD.
Get Started in Minutes
Fetch pUSD data with a simple API call. No authentication required for public endpoints.
# Get current treasury status
curl https://api.prex.markets/v1/treasury/status
# Response
{
"solvency_pool": {
"usdt_balance": 847523.45,
"last_updated": "2026-02-02T10:30:00Z"
},
"health_score": 199.4,
"status": "healthy"
}API Endpoints
All endpoints return JSON. Base URL: https://api.prex.markets
/v1/treasury/statusGet current treasury and solvency pool status
/v1/treasury/reservesGet detailed reserve breakdown and historical data
/v1/pusd/supplyGet pUSD supply metrics (minted, burned, circulating)
/v1/pusd/redemption/valueGet current redemption value calculation
/v1/user/balanceGet user pUSD balance and unlock status
/v1/user/earningsGet user earning history and sources
/v1/redemption/opt-inOpt into the current redemption epoch
/v1/redemption/epochsGet redemption epoch history and upcoming epochs
API Keys
Public endpoints (treasury, supply, redemption epochs) don't require authentication. For user-specific data and actions, you'll need an API key.
Secure by Default
All requests use HTTPS. API keys are scoped to specific permissions.
Easy Key Management
Generate, rotate, and revoke keys from your dashboard.
Rate Limiting
Public: 100 req/min. Authenticated: 1000 req/min.
12345678910111213141516171819202122232425262728// Include your API key in the Authorization headerconst response = await fetch( 'https://api.prex.markets/v1/user/balance', { headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' } }); const data = await response.json(); // Response{ "user_id": "usr_abc123", "pusd_balance": { "total": 5000.00, "unlocked": 2500.00, "locked": 2500.00, "eligible_for_redemption": 1250.00 }, "unlock_progress": { "percentage": 50, "next_milestone": "volume_tier", "next_unlock_amount": 1250.00 }}Real-time Events
Subscribe to events and get notified when important things happen.
treasury.updatedAvailableFired when treasury balance changes significantly
redemption.epoch_startedAvailableFired when a new redemption epoch opens
redemption.epoch_endedAvailableFired when redemption epoch closes with final values
pusd.large_burnComing SoonFired when a significant burn event occurs
user.pusd_earnedComing SoonFired when a user earns pUSD (requires user auth)
user.unlock_milestoneComing SoonFired when a user hits an unlock milestone
{
"event": "redemption.epoch_ended",
"timestamp": "2026-02-08T00:00:00Z",
"data": {
"epoch_id": "epoch_2026_06",
"total_opted_in": 425000,
"solvency_pool_at_close": 847523.45,
"redemption_value": 1.9942,
"total_redeemed_usdt": 847523.45
}
}Official SDKs
Type-safe, well-documented libraries for popular languages.
Go
Coming Soongithub.com/prex-markets/go-sdkComing Q2 2026Need Help Integrating?
Our developer relations team is here to help you build on Prex.