Trade AI-generated news events against 8 crowd archetypes in simulated market sessions.
Overview
News Trading simulates a real-time market driven by AI-generated news events. An AI model generates a stream of market events — headlines, whale alerts, liquidation cascades, macro data releases, rumors, and more — that impact a simulated price feed. You trade alongside (and against) a crowd of 8 simulated trader archetypes, each with distinct news interpretation and trading behaviors.
Feature
Details
Assets
SOL, BTC, ETH, XAU (Gold), OIL (Crude Oil)
Leverage
Up to 100x (majors), 50x (commodities)
Time scale
Configurable acceleration (simulated minutes per real minute)
Session length
Up to 24 hours simulated (compressed via time scale)
Max participants
20 per session
Price engine
GBM (Geometric Brownian Motion) + news impacts + noise, seeded from real Pyth oracle price
AI model
MiniMax M1 via OpenRouter for headline generation
Currency
Virtual SOL (free) or credits (real balance)
Two modes: Trade with virtual currency (no risk, no reward) or stake credits for real gains. Credit-staked positions count toward wagering requirements for relay marketplace earnings.
Session Flow
1. POST /api/news-sim/create → Create session (pick asset, time scale, duration)
2. POST /api/news-sim/:id/join → Other traders join the session
3. POST /api/news-sim/:id/start → Creator starts the session
4. GET /api/news-sim/:id/stream → Connect SSE for real-time price + events
5. (AI generates news events) → Headlines, whale alerts, rumors, macro data...
6. (Crowd archetypes react) → 8 simulated trader types move the market
7. POST /api/news-sim/:id/open → Open a position (long/short with leverage)
8. POST /api/news-sim/:id/close/:pos → Close position for profit/loss
9. (session timer expires) → All positions auto-settled
10. GET /api/news-sim/:id/leaderboard → Final rankings by P&L
Crowd Archetypes
The simulated crowd consists of 8 distinct trader archetypes. Each reacts differently to news events, creating realistic market dynamics with order flow, sentiment shifts, and price impact.
# Get archetype activity for a session
curl "https://api.g2e.io/api/news-sim/{sessionId}/archetypes"
# Get full crowd market state
curl "https://api.g2e.io/api/news-sim/{sessionId}/crowd-state"
Market Events
The AI generates a diverse stream of market events beyond simple headlines. Each event type has different urgency levels and price impact characteristics.
Event Type
Description
headline
AI-generated news headline
whale_alert
Large transfer detected
liquidation
Liquidation cascade
on_chain
Network/protocol anomaly
macro_countdown
Scheduled macro event countdown
macro_release
Actual macro data drop
rumor
Unconfirmed rumor
rumor_resolution
Confirmation or denial of earlier rumor
sentiment
Social sentiment shift
funding_rate
Extreme funding rate alert
volume_spike
Unusual volume detected
technical
RSI / MA / support-resistance alerts
order_book
Large wall appeared/pulled
correlation
Cross-asset correlation event
commentary
Analyst quote / opinion
Event urgency levels: low, medium, high, critical. Higher urgency events tend to have larger price impacts and faster crowd reactions.
Virtual lamports or credit base units (default: 100,000,000 = 0.1 SOL equivalent)
currency
string
no
virtual (free, default) or g2e (real credits)
The response includes entryPrice, liquidationPrice, and real-time crowdContext showing current order flow, dominant archetype, and market sentiment at the moment of entry.
Close a position
curl -X POST https://api.g2e.io/api/news-sim/{sessionId}/close/{positionId} \
-H "X-API-Key: vk_xxx"
Positions are automatically liquidated when the simulated price reaches the liquidation price. Higher leverage means tighter liquidation thresholds.
Credit stakes: When trading with "currency": "g2e", stakes are deducted from your credit balance at open and payouts credited at close. Stake range: 10–50,000 credits. Max payout: 50x stake. Credit wagers count toward wagering requirements.
Live Updates (SSE)
Connect to the Server-Sent Events stream for real-time updates during an active session. The stream delivers price ticks, news events, crowd actions, and session state changes.
# Connect to SSE stream
curl -N "https://api.g2e.io/api/news-sim/{sessionId}/stream"
Event types
SSE Event
Data
init
Full session state on connect (asset, status, seed price, recent price history, all events so far)
tick
Price update with simulated time, real time, and current price
event
New market event (headline, whale alert, rumor, etc.) with type, urgency, and text