How serdarkocak/fjorterminal works
FjorTerminal is a full-stack crypto trading dashboard: users authenticate, configure exchange credentials and preferences, monitor prices/news and portfolio state, then submit trades and manage positions. Its backend authenticates requests, accesses Binance Futures and persists application data; the frontend also uses market-data and news integrations. The graph reflects sampled calls and README-described capabilities; unsampled controller and integration details are not inferred as direct calls.
Main entry points: App.jsx Dashboard app · binanceBackendService.js Trading API client · ApplicationDbContext.cs Application database · TradingService.cs Trade execution
Components 28
Dashboard UI
- Dashboard app
src/App.jsx - Sign-in UI
src/components/LoginPage.jsx - Market tickers
src/components/TickerSection.jsx - Analysis charts
src/components/ChartSection.jsx - Positions UI
src/components/PositionsTable.jsx - User settings
src/components/SettingsModal.jsx - News feed
src/components/NewsFeed.jsx - Auth client
src/services/authService.js - Trading API client
src/services/binanceBackendService.js - Price hook
src/hooks/useCryptoPrices.js - News client
src/services/newsApi.js
API workflows
- Auth endpoints
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/AuthController.cs - Exchange endpoints
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/ExchangesController.cs - Trading endpoints
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/TradingController.cs - Settings endpoints
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/UserSettingsController.cs - News endpoints
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/NewsController.cs - Price updates
FjorTerminal.Backend/src/FjorTerminal.API/Services/PriceUpdateService.cs - Live update hub
FjorTerminal.Backend/src/FjorTerminal.API/Hubs/TradingHub.cs
Trading services
- Authentication
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/AuthService.cs - Trade execution
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/TradingService.cs - Binance integration
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/BinanceService.cs - Portfolio service
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/PortfolioService.cs
Persistence
- Trading and user records
FjorTerminal.Backend/src/FjorTerminal.Domain/Entities - Application database
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Data/ApplicationDbContext.cs
Other components
- Trader
- Binance Futures
- Market data providers
- RSS sources
Connections 34
- Trader → Dashboard app: uses
README.md - Dashboard app → Sign-in UI: renders
src/App.jsx - Dashboard app → Trading API client: submits orders
src/App.jsx - Dashboard app → News feed: renders
src/App.jsx - Dashboard app → Market tickers: renders
src/App.jsx - Dashboard app → Analysis charts: renders
src/App.jsx - Dashboard app → Positions UI: renders
src/App.jsx - Dashboard app → User settings: renders
- Sign-in UI → Auth client: authenticates through
- Auth client → Auth endpoints: calls
src/services/authService.js - Trading API client → Auth client: gets auth headers
src/services/binanceBackendService.js - Trading API client → Trading endpoints: requests trading
- Trading API client → Exchange endpoints: requests exchange data
- Positions UI → Trading API client: loads positions
src/components/PositionsTable.jsx - User settings → Trading API client: configures exchange
src/components/SettingsModal.jsx - User settings → Auth client: uses account
src/components/SettingsModal.jsx - Market tickers → Price hook: reads prices
- Price hook → Market data providers: fetches prices
src/hooks/useCryptoPrices.js - News feed → News client: loads stories
- News client → News endpoints: requests news
- News endpoints → RSS sources: aggregates feeds
README.md - Auth endpoints → Authentication: delegates to
- Authentication → Application database: reads and writes
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/AuthService.cs - Exchange endpoints → Binance integration: validates credentials
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/ExchangesController.cs - Exchange endpoints → Application database: reads and writes
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/ExchangesController.cs - Trading endpoints → Trade execution: delegates to
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/TradingController.cs - Trade execution → Binance Futures: sends signed orders
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/TradingService.cs - Trade execution → Application database: reads and writes trades
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Services/TradingService.cs - Trade execution → Binance integration: uses exchange credentials
- Settings endpoints → Application database: reads and writes
FjorTerminal.Backend/src/FjorTerminal.API/Controllers/UserSettingsController.cs - Price updates → Application database: reads settings
FjorTerminal.Backend/src/FjorTerminal.API/Services/PriceUpdateService.cs - Price updates → Binance integration: fetches prices
FjorTerminal.Backend/src/FjorTerminal.API/Services/PriceUpdateService.cs - Price updates → Live update hub: broadcasts updates
FjorTerminal.Backend/src/FjorTerminal.API/Services/PriceUpdateService.cs - Application database → Trading and user records: maps records
FjorTerminal.Backend/src/FjorTerminal.Infrastructure/Data/ApplicationDbContext.cs