I have created a Bitcoin Price Logger Application (Option B) with currency selection, real-time price logging, interactive charts, technical indicators, and a flexible CSV export system.
Key Features Built:
-
Currency Selector (15 Supported Fiat Currencies):
- Select between USD (),EUR(€),GBP(£),JPY(¥),CAD(C), AUD (A),CHF(CHF),INR(₹),BRL(R), CNY (¥), SGD (S),HKD(HK), KRW (₩), NZD (NZ$), AED (AED).
- Dynamic real-time exchange rates fetched automatically from CoinGecko & CoinCap APIs with live simulation fallback.
- Prices across the live header, interactive charts, statistics cards, and logs table update instantaneously based on the chosen currency.
-
Option B Real-Time Price Logging Engine:
- Auto-Log Intervals: Set continuous logging every 3s, 5s, 10s, 30s, 1min, 5min, or manual mode.
- Countdown Badge: Pulsating countdown timer indicating seconds remaining until the next log tick.
- Instant Log Button: One-click manual price log capture at any moment.
- Log Entry Data Fields:
- Precise Date & Time with timestamp
- Formatted Price in selected currency + USD equivalent
- 24h Price Change %, High, Low, and Volume
- Technical Indicators (RSI 14, SMA-5, SMA-20, Trend status)
- Log Tag / Category (
Auto, Manual, Alert Trigger, Dip, Peak, DCA)
- Editable User Notes & Comments
- Session PnL % relative to a custom target buy price
-
CSV Export & Import Capabilities:
- Export CSV Button: Prominent export action buttons in the navbar and table toolbar.
- Export Customization Modal:
- Custom filename configuration (e.g.
bitcoin_price_log_USD_2026-03-30.csv).
- Column Chooser: Toggle inclusion of any field (ID, Timestamp, Price, 24h %, RSI, SMA, Notes, PnL, etc.).
- Filter options: Export all entries or filter by selected currency.
- Live Raw CSV text preview drawer before downloading.
- One-click UTF-8 CSV file download Blob trigger.
- Import CSV Feature: Upload existing CSV price log files to restore or merge log data back into the application.
-
Interactive Charting & Financial Analytics:
- Recharts Line & Area Chart: Displays live ticks and overlay markers showing where price logs occurred. Toggle moving average lines (SMA-5 & SMA-20).
- Option B Statistics Summary: Calculates total log count, mean log price, minimum / maximum recorded price, volatility (std dev %), and log drift %.
- Price Threshold Alerts: Set UPPER / LOWER price alerts with audio chime synthesizers and auto-logging trigger events.
Files built: index.html, src/types.ts, src/constants/currencies.ts, src/utils/audioAlert.ts, src/utils/technicals.ts, src/utils/csvHandler.ts, src/services/cryptoApi.ts, src/components/Navbar.tsx, src/components/PriceHeader.tsx, src/components/ChartSection.tsx, src/components/AnalyticsCards.tsx, src/components/LogTable.tsx, src/components/ExportModal.tsx, src/components/ImportModal.tsx, src/components/AlertsManager.tsx, src/App.tsx