FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
bug fixes
tilakpatel22145bcbc30e44
diff --git a/fincept-terminal-desktop/src-tauri/src/setup.rs b/fincept-terminal-desktop/src-tauri/src/setup.rsindex b16c3fc54..dd50fb617 100644--- a/fincept-terminal-desktop/src-tauri/src/setup.rs+++ b/fincept-terminal-desktop/src-tauri/src/setup.rs@@ -35,25 +35,16 @@ const BUN_VERSION: &str = "1.1.0";// Optimized builds (require AVX2 - modern CPUs from ~2013+)const BUN_WINDOWS_X64_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64.zip";-#[cfg(target_os = "macos")]const BUN_MACOS_X64_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-darwin-x64.zip";-#[cfg(target_os = "linux")]const BUN_LINUX_X64_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-linux-x64.zip";// Baseline builds (work on all CPUs, slightly slower)const BUN_WINDOWS_X64_BASELINE_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64-baseline.zip";--#[cfg(target_os = "macos")]const BUN_DARWIN_X64_BASELINE_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-darwin-x64-baseline.zip";--#[cfg(target_os = "linux")]const BUN_LINUX_X64_BASELINE_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-linux-x64-baseline.zip";// ARM builds (always optimized for their architecture)-#[cfg(target_os = "macos")]const BUN_DARWIN_ARM_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-darwin-aarch64.zip";--#[cfg(target_os = "linux")]const BUN_LINUX_ARM_URL: &str = "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-linux-aarch64.zip";/// Detect if CPU supports AVX2 (required for optimized Bun builds)diff --git a/fincept-terminal-desktop/src/paper-trading/PaperTradingAdapter.ts b/fincept-terminal-desktop/src/paper-trading/PaperTradingAdapter.tsindex a6e1f209b..a7a61211c 100644--- a/fincept-terminal-desktop/src/paper-trading/PaperTradingAdapter.ts+++ b/fincept-terminal-desktop/src/paper-trading/PaperTradingAdapter.ts@@ -271,7 +271,21 @@ export class PaperTradingAdapter extends BaseExchangeAdapter {// Update PnL with current market pricesfor (const p of positions) {- const currentPrice = p.currentPrice || p.entryPrice;+ // Fetch live market price for each position+ let currentPrice = p.currentPrice || p.entryPrice;+ try {+ const ticker = await this.realAdapter.fetchTicker(p.symbol);+ if (ticker && ticker.last) {+ currentPrice = ticker.last;+ // Update the database with the current price+ await paperTradingDatabase.updatePosition(p.id, {+ currentPrice: currentPrice+ });+ }+ } catch (error) {+ console.warn(`[PaperTrading] Failed to fetch current price for ${p.symbol}, using cached price:`, error);+ }+const unrealizedPnl = p.side === 'long'? (currentPrice - p.entryPrice) * p.quantity: (p.entryPrice - currentPrice) * p.quantity;diff --git a/fincept-terminal-desktop/src/services/aiQuantLab/qlibService.ts b/fincept-terminal-desktop/src/services/aiQuantLab/qlibService.tsindex c7a3a777e..c18fcd95b 100644--- a/fincept-terminal-desktop/src/services/aiQuantLab/qlibService.ts+++ b/fincept-terminal-desktop/src/services/aiQuantLab/qlibService.ts@@ -243,6 +243,24 @@ class QlibService {};}}++ /**+ * Get live predictions for instruments+ */+ async getLivePredictions(request: { model_id: string; instruments: string[] }): Promise<any> {+ try {+ const result = await invoke<string>('qlib_get_live_predictions', {+ modelId: request.model_id,+ instruments: request.instruments+ });+ return JSON.parse(result);+ } catch (error) {+ return {+ success: false,+ error: error as string+ };+ }+ }}// Export singleton instance