| Pair | Price | 24h % | 24h Volume |
|---|---|---|---|
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
| waiting… | |||
Portfolio
Simulated- Total value
- $10,000.00
- Total return
- $0.00 (0.00%)
- Realized P&L
- $0.00
- Cash
- $10,000.00
No holdings yet. Coins you buy in the Trade panel appear here.
Play money. Average-cost method, fees not simulated.
BTC/USD
5-minute closes from Coinbase REST
Price alerts
No alerts yet. Pick Above or Below and a price for the selected pair.
Trade BTC/USD
SimulatedAvailable: $10,000.00
Waiting for the order book…
Play money: starts with $10,000. Saved in this browser only.
Order book BTC/USD
Connecting…| Price (USD) | Size (BTC) | Total |
|---|---|---|
| Connecting… | ||
Ne yaptım, neyi çözdüm?
Problem
Bir piyasa ekranına saniyede yüzlerce fiyat güncellemesi gelir. Her mesajda ekranı yeniden çizmek, özellikle zayıf cihazlarda takılmaya ve gecikmiş fiyatlara yol açar.
Ne yaptım
Önce en basit hâlini (naif sürüm) yazıp ölçtüm. Sonra güncellemeleri kare başına bire indirdim ve yalnızca değişen satırın çizilmesini sağladım. Üzerine canlı emir defteri, grafik, fiyat alarmları, sanal parayla alım-satım ve portföy ekledim. Gerçek emir gönderilmez.
Çıktılar
6× yavaşlatılmış CPU, saniyede 1000 simüle mesaj
| Ölçüm | Önce | Sonra |
|---|---|---|
| FPS | 8,5–10 | 59,6–60 |
| Gecikme | 430 ms | 19–27 ms |
| Mesaj başına satır render | 20 | 0,5–0,6 |
What I built and what it solves
Problem
A market screen gets hundreds of price updates per second. Redrawing on every message causes jank and late prices, especially on slower devices.
What I did
I built the simplest (naive) version first and measured it. Then I applied updates once per frame and made only the changed row re-render. On top of that I added a live order book, a chart, price alerts, play-money trading and a portfolio. No real order is ever sent.
Results
6× slowed CPU, 1000 simulated messages per second
| Metric | Before | After |
|---|---|---|
| FPS | 8.5–10 | 59.6–60 |
| Latency | 430 ms | 19–27 ms |
| Row renders per message | 20 | 0.5–0.6 |