go-futures-tradingdemo
prices portfolio alerts
Trader {{ me.trader_id }} · {{ sessionLeft }}

Dev login

Mints an HS256 token for the trader ID below and stores it in an HttpOnly cookie. There is no user store — anyone can be any trader. Demo only.

{{ error }}

Balance{{ money(portfolio.balance) }}{{ loaded.portfolio ? 'available ' + money(portfolio.available_margin) : 'loading…' }}
Total equity{{ money(portfolio.total_equity) }}balance + unrealized
Used margin{{ money(usedMargin) }}{{ loaded.portfolio ? openPositions.length + ' open position' + (openPositions.length === 1 ? '' : 's') : 'loading…' }}
Unrealized P&L{{ money(unrealized) }}marked to last tick
Realized P&L{{ money(trades.realized) }}{{ loaded.trades ? trades.total + ' closed trade' + (trades.total === 1 ? '' : 's') : 'loading…' }}

Prices

marketfeed · {{ pricesLive ? 'live' : 'reconnecting…' }}{{ tickList.length ? ' · ' + tickList.length + ' symbols' : '' }}
SymbolLastBidAskChgSession rangeTick $Margin
{{ t.symbol }}{{ t.spec.description }} {{ px(t, t.price) }}stale {{ px(t, t.bid) }} {{ px(t, t.ask) }} {{ pct(change(t)) }}
{{ px(t, t.low) }} {{ px(t, t.high) }}
{{ money(t.spec.tick_value) }} {{ tradeable(t.symbol) ? money(margins[t.symbol]) : '—' }}

New order

{{ current.spec.description }} · {{ px(current, current.price) }}

No open positions

SymbolSideQtyAvg entryLastUnrealizedMargin
{{ p.symbol }} {{ p.quantity > 0 ? 'Long' : 'Short' }} {{ Math.abs(p.quantity) }} {{ px(ticks[p.symbol], p.avg_entry_price) }} {{ px(ticks[p.symbol], p.current_price) }} {{ money(p.unrealized_pnl) }} {{ money(p.used_margin) }}
page {{ posPage }} / {{ posPages }} · {{ openPositions.length }} open

No closed trades

SymbolSideQtyEntryExitRealizedClosed
{{ c.symbol }} {{ c.direction === 'long' ? 'Long' : 'Short' }}Liq {{ c.quantity }} {{ px(ticks[c.symbol], c.avg_entry_price) }} {{ px(ticks[c.symbol], c.close_price) }} {{ money(c.realized_pnl) }} {{ ago(c.closed_at) }}
page {{ trades.page }} / {{ tradePages }} · {{ trades.total }} trades

No notifications

  • {{ n.title }}{{ n.message }}{{ ago(n.at) }}
page {{ notesPage }}
{{ n.title }}
{{ n.message }}