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
version 4.1.0 update
tilakpatel22480d03481df1
diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.ymlindex 6caaabd3a..974f6c6ed 100644--- a/.github/workflows/build-cpp.yml+++ b/.github/workflows/build-cpp.yml@@ -108,21 +108,24 @@ jobs:echo "CC=gcc-12" >> "$GITHUB_ENV"echo "CXX=g++-12" >> "$GITHUB_ENV"- # ---- OpenSSL dev libs (Windows) ----+ # ---- OpenSSL + zlib dev libs (Windows) ----# windows-2022 runners ship only the "Light" OpenSSL (no .lib files).# vcpkg is pre-installed on every windows-2022 runner at C:\vcpkg.- - name: Install OpenSSL (Windows)+ # zlib is required by find_package(ZLIB) (InstrumentDecompress.cpp).+ - name: Install OpenSSL + zlib (Windows)if: runner.os == 'Windows'shell: bashrun: |set -euo pipefailVCPKG_ROOT="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}"echo "Using vcpkg at: $VCPKG_ROOT"- "$VCPKG_ROOT/vcpkg" install openssl:x64-windows --no-print-usage+ "$VCPKG_ROOT/vcpkg" install openssl:x64-windows zlib:x64-windows --no-print-usageOPENSSL_DIR="$VCPKG_ROOT/installed/x64-windows"echo "OPENSSL_ROOT_DIR=$OPENSSL_DIR" >> "$GITHUB_ENV"- echo "OpenSSL installed at: $OPENSSL_DIR"+ echo "ZLIB_ROOT=$OPENSSL_DIR" >> "$GITHUB_ENV"+ echo "OpenSSL + zlib installed at: $OPENSSL_DIR"ls "$OPENSSL_DIR/lib/libcrypto.lib" && echo "libcrypto.lib confirmed"+ ls "$OPENSSL_DIR/lib/zlib.lib" && echo "zlib.lib confirmed"# ---- Qt6 target (Windows/macOS) ----- name: Install Qt6@@ -312,6 +315,18 @@ jobs:fidone+ # zlib — find_package(ZLIB) links zlib1.dll (vcpkg, dynamic); not a Qt+ # DLL, so windeployqt skips it. Copy from the vcpkg install or Qt bin/.+ for zlib_dll in zlib1.dll; do+ if [ -n "${ZLIB_ROOT:-}" ] && [ -f "${ZLIB_ROOT}/bin/${zlib_dll}" ] && [ ! -f "dist/${zlib_dll}" ]; then+ cp "${ZLIB_ROOT}/bin/${zlib_dll}" dist/+ echo "Copied ${zlib_dll}"+ elif [ -f "${QT_BIN}/${zlib_dll}" ] && [ ! -f "dist/${zlib_dll}" ]; then+ cp "${QT_BIN}/${zlib_dll}" dist/+ echo "Copied ${zlib_dll}"+ fi+ done+# ----------------------------------------------------------------# MSVC Runtime DLLs — --compiler-runtime covers most, but copy# from System32 as a fallback for anything missed.diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex d548ae716..42a33c6f7 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -35,16 +35,20 @@ jobs:submodules: recursivefetch-depth: 1- # ── OpenSSL dev libs ──────────────────────────────────────────────────- - name: Install OpenSSL+ # ── OpenSSL + zlib dev libs ───────────────────────────────────────────+ # zlib is required by find_package(ZLIB) (InstrumentDecompress.cpp); the+ # build points CMake at vcpkg via *_ROOT vars (no vcpkg toolchain file).+ - name: Install OpenSSL + zlibshell: bashrun: |set -euo pipefailVCPKG_ROOT="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}"- "$VCPKG_ROOT/vcpkg" install openssl:x64-windows --no-print-usage+ "$VCPKG_ROOT/vcpkg" install openssl:x64-windows zlib:x64-windows --no-print-usageOPENSSL_DIR="$VCPKG_ROOT/installed/x64-windows"echo "OPENSSL_ROOT_DIR=$OPENSSL_DIR" >> "$GITHUB_ENV"+ echo "ZLIB_ROOT=$OPENSSL_DIR" >> "$GITHUB_ENV"ls "$OPENSSL_DIR/lib/libcrypto.lib" && echo "libcrypto.lib confirmed"+ ls "$OPENSSL_DIR/lib/zlib.lib" && echo "zlib.lib confirmed"# ── Qt ────────────────────────────────────────────────────────────────- name: Install Qt ${{ env.QT_VERSION }}@@ -149,6 +153,15 @@ jobs:cp "${OPENSSL_ROOT_DIR}/bin/${ssl_dll}" "${BUILD_DIR}/" || truedone+ # zlib — find_package(ZLIB) links zlib1.dll (vcpkg, dynamic). windeployqt+ # won't grab a non-Qt dep, so copy it from the vcpkg install or Qt bin/.+ for zlib_dll in zlib1.dll zlibd1.dll; do+ [ -n "${ZLIB_ROOT:-}" ] && [ -f "${ZLIB_ROOT}/bin/${zlib_dll}" ] && [ ! -f "${BUILD_DIR}/${zlib_dll}" ] && \+ cp "${ZLIB_ROOT}/bin/${zlib_dll}" "${BUILD_DIR}/" || true+ [ -f "${QT_BIN}/${zlib_dll}" ] && [ ! -f "${BUILD_DIR}/${zlib_dll}" ] && \+ cp "${QT_BIN}/${zlib_dll}" "${BUILD_DIR}/" || true+ done+# MSVC runtime — --compiler-runtime covers most but not all VS2022 17.x# DLLs (msvcp170, vcruntime140_2, vccorlib140 are sometimes missed).for vcrt_dll in \diff --git a/fincept-qt/src/algo_engine/AlgoEngine.cpp b/fincept-qt/src/algo_engine/AlgoEngine.cppindex d47d328a8..c18cd2f6b 100644--- a/fincept-qt/src/algo_engine/AlgoEngine.cpp+++ b/fincept-qt/src/algo_engine/AlgoEngine.cpp@@ -208,7 +208,7 @@ void AlgoEngine::execute_order(const AlgoOrderSignal& signal) {const QString account_id = signal.account_id;- QtConcurrent::run([self, dep_id, account_id, order, submitted_price]() {+ (void)QtConcurrent::run([self, dep_id, account_id, order, submitted_price]() {auto response = fincept::trading::UnifiedTrading::instance().place_order(account_id, order);@@ -439,7 +439,7 @@ void AlgoEngine::persist_deployment(const services::algo::AlgoDeployment& d) {void AlgoEngine::list_deployments() {QPointer<AlgoEngine> self = this;- QtConcurrent::run([self]() {+ (void)QtConcurrent::run([self]() {auto db = fincept::Database::instance().connection();QSqlQuery q(db);q.exec(QStringLiteral("SELECT * FROM algo_deployments ORDER BY created_at DESC"));diff --git a/fincept-qt/src/algo_engine/BacktestEngine.cpp b/fincept-qt/src/algo_engine/BacktestEngine.cppindex 6519c8b6c..d6323d93d 100644--- a/fincept-qt/src/algo_engine/BacktestEngine.cpp+++ b/fincept-qt/src/algo_engine/BacktestEngine.cpp@@ -349,7 +349,7 @@ QJsonObject BacktestEngine::run(const QVector<OhlcvCandle>& candles,};for (int j = 0; j < equity_curve.size(); ++j) {const QString ym =- QDateTime::fromMSecsSinceEpoch(candles[kWarmupBars + j].open_time, Qt::UTC).toString("yyyy-MM");+ QDateTime::fromMSecsSinceEpoch(candles[kWarmupBars + j].open_time, QTimeZone::UTC).toString("yyyy-MM");if (have_month && ym != cur_month)flush(cur_month);cur_month = ym;diff --git a/fincept-qt/src/mcp/tools/DashboardTools.cpp b/fincept-qt/src/mcp/tools/DashboardTools.cppindex 6ea874e76..fd2ac3152 100644--- a/fincept-qt/src/mcp/tools/DashboardTools.cpp+++ b/fincept-qt/src/mcp/tools/DashboardTools.cpp@@ -95,7 +95,7 @@ QJsonObject cell_to_json(const screens::GridCell& c) {{"min_w", c.min_w}, {"min_h", c.min_h}};}-screens::GridCell json_to_cell(const QJsonObject& j, const screens::GridCell& fallback = {}) {+[[maybe_unused]] screens::GridCell json_to_cell(const QJsonObject& j, const screens::GridCell& fallback = {}) {screens::GridCell c = fallback;if (j.contains("x")) c.x = j["x"].toInt();if (j.contains("y")) c.y = j["y"].toInt();diff --git a/fincept-qt/src/mcp/tools/McpServersTools.cpp b/fincept-qt/src/mcp/tools/McpServersTools.cppindex 8a570244a..d54e6a864 100644--- a/fincept-qt/src/mcp/tools/McpServersTools.cpp+++ b/fincept-qt/src/mcp/tools/McpServersTools.cpp@@ -462,7 +462,7 @@ std::vector<ToolDef> get_mcp_servers_tools() {const QString server_id = args["server_id"].toString();const QString tool_name = args["tool_name"].toString();const QJsonObject inner_args = args["args"].toObject();- QtConcurrent::run([server_id, tool_name, inner_args, promise, ctx]() {+ (void)QtConcurrent::run([server_id, tool_name, inner_args, promise, ctx]() {if (ctx.cancelled())return resolve_async(promise, ToolResult::fail("cancelled"));resolve_async(promise,diff --git a/fincept-qt/src/mcp/tools/SurfaceAnalyticsTools.cpp b/fincept-qt/src/mcp/tools/SurfaceAnalyticsTools.cppindex 578d0f666..b041bb317 100644--- a/fincept-qt/src/mcp/tools/SurfaceAnalyticsTools.cpp+++ b/fincept-qt/src/mcp/tools/SurfaceAnalyticsTools.cpp@@ -184,7 +184,7 @@ QJsonObject futures_result_to_json(const DatabentoFuturesResult& /*r*/) {// listens for one of (vol_surface_ready, surface_ready, ohlcv_ready,// futures_ready, fetch_failed); the first match resolves the promise.template <typename SignalSig, typename KickFn, typename PayloadFn>-void bridge_db_fetch(QPointer<QObject> holder_parent, ToolContext ctx,+void bridge_db_fetch(QPointer<QObject> /*holder_parent*/, ToolContext ctx,std::shared_ptr<QPromise<ToolResult>> promise,KickFn&& kick, SignalSig signal_member, PayloadFn&& payload_fn) {auto* svc = &DatabentoService::instance();@@ -359,7 +359,7 @@ std::vector<ToolDef> get_surface_analytics_tools() {// Generic single-arg fetch builder for surface_ready endpoints.auto make_db_surface_tool = [](const QString& name, const QString& desc,- std::function<void(const QJsonObject&)> kick) {+ std::function<void(const QJsonObject&)> /*kick*/) {ToolDef t;t.name = name;t.description = desc;diff --git a/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel_DeepAgent.cpp b/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel_DeepAgent.cppindex 07ef28265..54c330644 100644--- a/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel_DeepAgent.cpp+++ b/fincept-qt/src/screens/ai_quant_lab/QuantModulePanel_DeepAgent.cpp@@ -228,7 +228,7 @@ QWidget* QuantModulePanel::build_rd_agent_tab(QComboBox* llm_combo) {.arg(ui::fonts::TINY).arg(module_.color.name()).arg(ui::colors::BG_BASE()));- connect(mcp_btn, &QPushButton::toggled, this, [this, mcp_btn, status_txt](bool checked) {+ connect(mcp_btn, &QPushButton::toggled, this, [mcp_btn, status_txt](bool checked) {if (checked) {status_txt->setText(tr("Starting MCP tool server..."));AIQuantLabService::instance().rd_agent_start_mcp_server();diff --git a/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen.cpp b/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen.cppindex f8e09fe86..0aa6562dd 100644--- a/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen.cpp+++ b/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen.cpp@@ -265,7 +265,7 @@ static QList<AltCategory> build_categories() {// ── Per-analyzer form fields ─────────────────────────────────────────────────-static QList<AltField> fields_for(const QString& id) {+[[maybe_unused]] static QList<AltField> fields_for(const QString& id) {if (id == "high-yield")return {text_field("name", "BOND NAME", "HY Corp Bond"),diff --git a/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen_Analysis.cpp b/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen_Analysis.cppindex 28d771e99..ce9c5852b 100644--- a/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen_Analysis.cpp+++ b/fincept-qt/src/screens/alt_investments/AltInvestmentsScreen_Analysis.cpp@@ -96,7 +96,7 @@ static AltField combo_field(const QString& key, const QString& label, const QStr// ── Category definitions ─────────────────────────────────────────────────────-static QList<AltCategory> build_categories() {+[[maybe_unused]] static QList<AltCategory> build_categories() {return {{"bonds","Bonds & Fixed Income",diff --git a/fincept-qt/src/screens/equity_research/EquityFinancialsTab.cpp b/fincept-qt/src/screens/equity_research/EquityFinancialsTab.cppindex 594904cb1..f30d334ce 100644--- a/fincept-qt/src/screens/equity_research/EquityFinancialsTab.cpp+++ b/fincept-qt/src/screens/equity_research/EquityFinancialsTab.cpp@@ -48,7 +48,7 @@ static const QString kPurple = "#a855f7";static const QString kOrange = "#f97316";static const QString kYellow = "#eab308";-QFrame* section_frame(const QString& title, const QString& color) {+[[maybe_unused]] QFrame* section_frame(const QString& title, const QString& color) {auto* f = new QFrame;f->setStyleSheet(QString("QFrame { background:%1; border:1px solid %2; border-radius:4px; }").arg(ui::colors::BG_SURFACE(), ui::colors::BORDER_DIM()));@@ -75,7 +75,7 @@ QFrame* section_frame(const QString& title, const QString& color) {}// Large metric card: label on top, big value, optional subtitle-QWidget* metric_card(const QString& label, QLabel*& val_out, QLabel*& sub_out, const QString& val_color,+[[maybe_unused]] QWidget* metric_card(const QString& label, QLabel*& val_out, QLabel*& sub_out, const QString& val_color,const QString& initial_val = "—", const QString& initial_sub = {}) {auto* f = new QFrame;f->setStyleSheet(QString("QFrame { background:%1; border:1px solid %2; border-radius:4px; }")@@ -108,7 +108,7 @@ QWidget* metric_card(const QString& label, QLabel*& val_out, QLabel*& sub_out, c}// Small ratio row-QLabel* ratio_row(QWidget* parent_vl_owner, const QString& label, const QString& color) {+[[maybe_unused]] QLabel* ratio_row(QWidget* parent_vl_owner, const QString& label, const QString& color) {auto* hl = new QHBoxLayout;hl->setSpacing(4);hl->setContentsMargins(0, 0, 0, 0);@@ -126,7 +126,7 @@ QLabel* ratio_row(QWidget* parent_vl_owner, const QString& label, const QString&return v;}-QTableWidget* make_table() {+[[maybe_unused]] QTableWidget* make_table() {auto* t = new QTableWidget;t->setAlternatingRowColors(true);t->setStyleSheet(QString(R"(@@ -150,7 +150,7 @@ QTableWidget* make_table() {return t;}-QChartView* make_chart_view(int fixed_height = 0) {+[[maybe_unused]] QChartView* make_chart_view(int fixed_height = 0) {auto* cv = new QChartView;cv->setRenderHint(QPainter::Antialiasing, false);cv->setStyleSheet("background:transparent; border:0;");diff --git a/fincept-qt/src/screens/mcp_servers/McpServersScreen_Actions.cpp b/fincept-qt/src/screens/mcp_servers/McpServersScreen_Actions.cppindex 85c2a8a36..71d3cf264 100644--- a/fincept-qt/src/screens/mcp_servers/McpServersScreen_Actions.cpp+++ b/fincept-qt/src/screens/mcp_servers/McpServersScreen_Actions.cpp@@ -46,7 +46,7 @@ using namespace fincept::ui;static const QList<fincept::mcp::MarketplaceEntry>& g_catalog = fincept::mcp::marketplace_catalog();-inline QString kStyle() {+[[maybe_unused]] inline QString kStyle() {return QString(// Screen / headerdiff --git a/fincept-qt/src/screens/mcp_servers/McpServersScreen_Layout.cpp b/fincept-qt/src/screens/mcp_servers/McpServersScreen_Layout.cppindex ca28934a5..0053e5731 100644--- a/fincept-qt/src/screens/mcp_servers/McpServersScreen_Layout.cpp+++ b/fincept-qt/src/screens/mcp_servers/McpServersScreen_Layout.cpp@@ -44,7 +44,7 @@ using namespace fincept::ui;static const QList<fincept::mcp::MarketplaceEntry>& g_catalog = fincept::mcp::marketplace_catalog();-inline QString kStyle() {+[[maybe_unused]] inline QString kStyle() {return QString(// Screen / headerdiff --git a/fincept-qt/src/screens/news/NewsScreen.cpp b/fincept-qt/src/screens/news/NewsScreen.cppindex 1d5dd0c77..f9c862153 100644--- a/fincept-qt/src/screens/news/NewsScreen.cpp+++ b/fincept-qt/src/screens/news/NewsScreen.cpp@@ -125,7 +125,7 @@ void NewsScreen::connect_signals() {if (command_bar_)command_bar_->set_live_state(connected);});- connect(command_bar_, &NewsCommandBar::live_toggle_clicked, this, [this]() {+ connect(command_bar_, &NewsCommandBar::live_toggle_clicked, this, []() {auto& svc = services::NewsService::instance();if (svc.is_live_connected()) {svc.disconnect_live_feed();diff --git a/fincept-qt/src/screens/portfolio/views/AnalyticsSectorsView.cpp b/fincept-qt/src/screens/portfolio/views/AnalyticsSectorsView.cppindex ce016f5d8..79fd92727 100644--- a/fincept-qt/src/screens/portfolio/views/AnalyticsSectorsView.cpp+++ b/fincept-qt/src/screens/portfolio/views/AnalyticsSectorsView.cpp@@ -67,9 +67,9 @@ class SectorCardClickForwarder : public QObject {// English source keys returned by verdict_for_*. Translated to display strings// in the rendering code below (kept English here so verdict_color can pattern-// match without depending on the active locale).-constexpr const char* kVerdictDiversified = "Diversified";-constexpr const char* kVerdictBalanced = "Balanced";-constexpr const char* kVerdictConcentrated = "Concentrated";+[[maybe_unused]] constexpr const char* kVerdictDiversified = "Diversified";+[[maybe_unused]] constexpr const char* kVerdictBalanced = "Balanced";+[[maybe_unused]] constexpr const char* kVerdictConcentrated = "Concentrated";QString verdict_for_hhi(double hhi) {// HHI convention uses fractions of 10,000; we use percent-squared sodiff --git a/fincept-qt/src/screens/profile/ProfileScreen.cpp b/fincept-qt/src/screens/profile/ProfileScreen.cppindex c0a342ab6..3888f01bc 100644--- a/fincept-qt/src/screens/profile/ProfileScreen.cpp+++ b/fincept-qt/src/screens/profile/ProfileScreen.cpp@@ -425,12 +425,12 @@ QWidget* ProfileScreen::build_security() {QString("QPushButton{background:%1;color:%2;border:1px solid %3;padding:0 10px;""font-size:10px;font-weight:700;font-family:'Consolas',monospace;}QPushButton:hover{color:%4;}").arg(ui::colors::BG_RAISED(), ui::colors::TEXT_SECONDARY(), ui::colors::BORDER_DIM(), ui::colors::TEXT_PRIMARY()));- connect(cb, &QPushButton::clicked, this, [this, cb]() {+ connect(cb, &QPushButton::clicked, this, [cb]() {auto key = auth::AuthManager::instance().session().api_key;if (!key.isEmpty()) {QApplication::clipboard()->setText(key);cb->setText(tr("COPIED"));- QTimer::singleShot(1500, cb, [this, cb]() { cb->setText(tr("COPY")); });+ QTimer::singleShot(1500, cb, [cb]() { cb->setText(tr("COPY")); });}});krl->addWidget(cb);diff --git a/fincept-qt/src/screens/settings/CredentialsSection.cpp b/fincept-qt/src/screens/settings/CredentialsSection.cppindex 0cc1b3b32..f030f3951 100644--- a/fincept-qt/src/screens/settings/CredentialsSection.cpp+++ b/fincept-qt/src/screens/settings/CredentialsSection.cpp@@ -141,7 +141,7 @@ void CredentialsSection::build_ui() {bhl->addWidget(save_btn);cred_save_btns_[key] = save_btn;- connect(save_btn, &QPushButton::clicked, this, [this, key, field, status_lbl]() {+ connect(save_btn, &QPushButton::clicked, this, [key, field, status_lbl]() {QString val = field->text().trimmed();if (val.isEmpty()) {SecureStorage::instance().remove(key);diff --git a/fincept-qt/src/screens/settings/GeneralSection.cpp b/fincept-qt/src/screens/settings/GeneralSection.cppindex 84e6fb74c..3732e2f95 100644--- a/fincept-qt/src/screens/settings/GeneralSection.cpp+++ b/fincept-qt/src/screens/settings/GeneralSection.cpp@@ -21,7 +21,7 @@ namespace fincept::screens {namespace {constexpr const char* kKeyOnClose = "general.on_last_window_close";constexpr const char* kDefaultOnClose = "quit";-constexpr const char* kKeyLanguage = "general.language";+[[maybe_unused]] constexpr const char* kKeyLanguage = "general.language";constexpr const char* kDefaultLanguage = "en";// make_row() builds the label (and optional description) QLabel internally anddiff --git a/fincept-qt/src/screens/settings/LlmConfigSection.cpp b/fincept-qt/src/screens/settings/LlmConfigSection.cppindex 2961a518d..d19e94a97 100644--- a/fincept-qt/src/screens/settings/LlmConfigSection.cpp+++ b/fincept-qt/src/screens/settings/LlmConfigSection.cpp@@ -30,7 +30,7 @@namespace fincept::screens {-static constexpr const char* TAG = "LlmConfigSection";+[[maybe_unused]] static constexpr const char* TAG = "LlmConfigSection";const QStringList LlmConfigSection::KNOWN_PROVIDERS = {"openai", "anthropic", "gemini", "groq", "deepseek",diff --git a/fincept-qt/src/screens/settings/NotificationsSection.cpp b/fincept-qt/src/screens/settings/NotificationsSection.cppindex f656bce7d..e91f922c8 100644--- a/fincept-qt/src/screens/settings/NotificationsSection.cpp+++ b/fincept-qt/src/screens/settings/NotificationsSection.cpp@@ -260,7 +260,7 @@ void NotificationsSection::build_ui() {req.trigger = NotifTrigger::Manual;QPointer<QLabel> status_ptr = pw.status_lbl;- NotificationService::instance().send_to(pid, req, [this, status_ptr](bool ok, const QString& err) {+ NotificationService::instance().send_to(pid, req, [status_ptr](bool ok, const QString& err) {if (!status_ptr) return;if (ok) {status_ptr->setText(tr("✓ Sent successfully"));diff --git a/fincept-qt/src/services/cloud/NotebookCloudAdapter.cpp b/fincept-qt/src/services/cloud/NotebookCloudAdapter.cppindex 8b47011d7..ad8673ebb 100644--- a/fincept-qt/src/services/cloud/NotebookCloudAdapter.cpp+++ b/fincept-qt/src/services/cloud/NotebookCloudAdapter.cpp@@ -28,7 +28,7 @@ AdapterResult nb_ok() {r.ok = true;return r;}-AdapterResult nb_retry(const QString& why) {+[[maybe_unused]] AdapterResult nb_retry(const QString& why) {AdapterResult r;r.retry = true;r.error = why;diff --git a/fincept-qt/src/services/options/OptionChainService.cpp b/fincept-qt/src/services/options/OptionChainService.cppindex 12d84c242..da24b8fc7 100644--- a/fincept-qt/src/services/options/OptionChainService.cpp+++ b/fincept-qt/src/services/options/OptionChainService.cpp@@ -661,7 +661,7 @@ void OptionChainService::refresh_chain_fyers(const QString& broker_id, const QStint month = kMon.value(expiry.mid(3, 3).toUpper(), 0);int year = 2000 + QStringView(expiry).mid(7, 2).toInt();if (month > 0) {- QDateTime dt(QDate(year, month, day), QTime(15, 30), Qt::UTC);+ QDateTime dt(QDate(year, month, day), QTime(15, 30), QTimeZone::UTC);constexpr int kIstOffset = 5 * 3600 + 30 * 60;expiry_ts = dt.toSecsSinceEpoch() - kIstOffset;}diff --git a/fincept-qt/src/trading/PaperTrading.cpp b/fincept-qt/src/trading/PaperTrading.cppindex 4706d6043..9fc9e6ff5 100644--- a/fincept-qt/src/trading/PaperTrading.cpp+++ b/fincept-qt/src/trading/PaperTrading.cpp@@ -602,7 +602,7 @@ namespace {// IST = UTC + 5:30. The UTC instant at which the given IST calendar day begins.QDateTime ist_day_start_utc(const QDate& ist_day) {- QDateTime utc_midnight(ist_day, QTime(0, 0, 0), Qt::UTC);+ QDateTime utc_midnight(ist_day, QTime(0, 0, 0), QTimeZone::UTC);return utc_midnight.addSecs(-330 * 60); // shift IST-midnight back to its UTC instant}@@ -611,7 +611,7 @@ QDate ist_date_of(const QString& iso_utc, const QDate& fallback) {QDateTime dt = QDateTime::fromString(iso_utc, Qt::ISODate);if (!dt.isValid())return fallback;- dt.setTimeSpec(Qt::UTC); // timestamps are UTC; reinterpret if no zone was parsed+ dt.setTimeZone(QTimeZone::UTC); // timestamps are UTC; reinterpret if no zone was parsedreturn dt.addSecs(330 * 60).date();}@@ -702,7 +702,7 @@ int pt_settle_intraday(const QString& portfolio_id) {// cutoff that's today's 15:30; for a carried-over position it's that prior// day's close — so a catch-up auto-square lands in THAT day's book, never// polluting today's order list with trades the user didn't place.- const QDateTime close_utc = QDateTime(opened_ist, QTime(15, 30, 0), Qt::UTC).addSecs(-330 * 60);+ const QDateTime close_utc = QDateTime(opened_ist, QTime(15, 30, 0), QTimeZone::UTC).addSecs(-330 * 60);const QString close_iso = close_utc.toString(Qt::ISODate);// Square off = insert a reduce-only market order on the opposite side anddiff --git a/fincept-qt/src/trading/UnifiedTrading.cpp b/fincept-qt/src/trading/UnifiedTrading.cppindex f89f9c152..a963dc080 100644--- a/fincept-qt/src/trading/UnifiedTrading.cpp+++ b/fincept-qt/src/trading/UnifiedTrading.cpp@@ -647,7 +647,7 @@ void UnifiedTrading::place_basket_orders(const QString& account_id, const Basket[](const UnifiedOrder& o) { return o.side == OrderSide::Buy; });QPointer<UnifiedTrading> self = this;- QtConcurrent::run([self, orders, is_paper, broker, creds, paper_portfolio_id, callback]() {+ (void)QtConcurrent::run([self, orders, is_paper, broker, creds, paper_portfolio_id, callback]() {BasketOrderResult result;result.total = orders.size();@@ -803,7 +803,7 @@ void UnifiedTrading::place_split_orders(const QString& account_id, const SplitOrconst int delay_ms = request.delay_between_ms;QPointer<UnifiedTrading> self = this;- QtConcurrent::run([self, base, chunk_qtys, delay_ms, is_paper, broker, creds,+ (void)QtConcurrent::run([self, base, chunk_qtys, delay_ms, is_paper, broker, creds,paper_portfolio_id, callback]() {SplitOrderResult result;diff --git a/fincept-qt/src/trading/instruments/FyersInstrumentParser.cpp b/fincept-qt/src/trading/instruments/FyersInstrumentParser.cppindex 3175b9b30..41d81a563 100644--- a/fincept-qt/src/trading/instruments/FyersInstrumentParser.cpp+++ b/fincept-qt/src/trading/instruments/FyersInstrumentParser.cpp@@ -33,7 +33,7 @@ static QString format_expiry(qint64 unix_ts) {// IST = UTC+5:30. Offset directly instead of QTimeZone("Asia/Kolkata")// which can silently fail on Windows when the IANA tz database is missing.constexpr int kIstOffsetSecs = 5 * 3600 + 30 * 60;- QDateTime dt = QDateTime::fromSecsSinceEpoch(unix_ts + kIstOffsetSecs, Qt::UTC);+ QDateTime dt = QDateTime::fromSecsSinceEpoch(unix_ts + kIstOffsetSecs, QTimeZone::UTC);return dt.toString("dd-MMM-yy").toUpper(); // "26-MAY-26"}diff --git a/fincept-qt/src/trading/instruments/InstrumentRepository.cpp b/fincept-qt/src/trading/instruments/InstrumentRepository.cppindex 0a0c76e3b..8466207f9 100644--- a/fincept-qt/src/trading/instruments/InstrumentRepository.cpp+++ b/fincept-qt/src/trading/instruments/InstrumentRepository.cpp@@ -245,7 +245,7 @@ QDateTime InstrumentRepository::last_updated(const QString& broker_id) const {if (!q.next() || q.value(0).isNull())return {};QDateTime dt = QDateTime::fromString(q.value(0).toString(), "yyyy-MM-dd HH:mm:ss");- dt.setTimeSpec(Qt::UTC); // updated_at is written as datetime('now') (UTC)+ dt.setTimeZone(QTimeZone::UTC); // updated_at is written as datetime('now') (UTC)return dt;}diff --git a/fincept-qt/src/trading/instruments/parsers/KotakInstrumentParser.cpp b/fincept-qt/src/trading/instruments/parsers/KotakInstrumentParser.cppindex 6750c07bf..2fbf96cb1 100644--- a/fincept-qt/src/trading/instruments/parsers/KotakInstrumentParser.cpp+++ b/fincept-qt/src/trading/instruments/parsers/KotakInstrumentParser.cpp@@ -166,7 +166,7 @@ QVector<Instrument> parse_kotak(const QByteArray& payload) {if (esec > 0) {if (seg == "NSE_FO" || seg == "CDE_FO")esec += 315513000;- const QDate d = QDateTime::fromSecsSinceEpoch(esec, Qt::UTC).date();+ const QDate d = QDateTime::fromSecsSinceEpoch(esec, QTimeZone::UTC).date();exp_nd = norm::expiry_to_nodash(d.toString("yyyy-MM-dd"));inst.expiry = norm::nodash_to_display(exp_nd);}diff --git a/fincept-qt/src/trading/instruments/parsers/UpstoxInstrumentParser.cpp b/fincept-qt/src/trading/instruments/parsers/UpstoxInstrumentParser.cppindex 02fbc0394..3717906f2 100644--- a/fincept-qt/src/trading/instruments/parsers/UpstoxInstrumentParser.cpp+++ b/fincept-qt/src/trading/instruments/parsers/UpstoxInstrumentParser.cpp@@ -94,7 +94,7 @@ QVector<Instrument> parse_upstox(const QByteArray& json) {QString exp_nd;const qint64 exp_ms = static_cast<qint64>(o.value("expiry").toDouble());if (exp_ms > 0) {- const QDate d = QDateTime::fromMSecsSinceEpoch(exp_ms, Qt::UTC).date();+ const QDate d = QDateTime::fromMSecsSinceEpoch(exp_ms, QTimeZone::UTC).date();exp_nd = norm::expiry_to_nodash(d.toString("yyyy-MM-dd"));inst.expiry = norm::nodash_to_display(exp_nd);}diff --git a/fincept-qt/src/trading/websocket/IIFLWebSocket.cpp b/fincept-qt/src/trading/websocket/IIFLWebSocket.cppindex bdef762c1..3ff2a3f71 100644--- a/fincept-qt/src/trading/websocket/IIFLWebSocket.cpp+++ b/fincept-qt/src/trading/websocket/IIFLWebSocket.cpp@@ -151,7 +151,7 @@ void IIFLWebSocket::http_subscription(const QVector<qint64>& tokens, bool subscr: nam_->sendCustomRequest(req, "PUT", payload);// `this` as context: Qt auto-disconnects on destruction (safe — see P8).- connect(reply, &QNetworkReply::finished, this, [this, reply, subscribe, code]() {+ connect(reply, &QNetworkReply::finished, this, [reply, subscribe, code]() {const int status =reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();if (reply->error() != QNetworkReply::NoError || status != 200) {diff --git a/fincept-qt/src/trading/websocket/KotakWebSocket.cpp b/fincept-qt/src/trading/websocket/KotakWebSocket.cppindex e7ee59252..7ca983e28 100644--- a/fincept-qt/src/trading/websocket/KotakWebSocket.cpp+++ b/fincept-qt/src/trading/websocket/KotakWebSocket.cpp@@ -68,7 +68,7 @@ constexpr int DP_MULT = 32;constexpr int DP_PREC = 33;// Shared string field indices (STRING_INDEX).-constexpr int STR_NAME = 51;+[[maybe_unused]] constexpr int STR_NAME = 51;constexpr int STR_SYMBOL = 52; // token ("tk")constexpr int STR_EXCHG = 53; // exchange ("e")constexpr int STR_TSYMBOL = 54; // trading symbol ("ts")diff --git a/fincept-qt/src/trading/websocket/MotilalPoller.cpp b/fincept-qt/src/trading/websocket/MotilalPoller.cppindex 3d0d904fe..e04bf8f77 100644--- a/fincept-qt/src/trading/websocket/MotilalPoller.cpp+++ b/fincept-qt/src/trading/websocket/MotilalPoller.cpp@@ -100,7 +100,7 @@ void MotilalPoller::poll_once() {// P8: QPointer guard — the poller may be destroyed before the worker// lambda runs; bail out instead of dereferencing a dangling this.QPointer<MotilalPoller> self = this;- QtConcurrent::run([self, creds, symbols]() {+ (void)QtConcurrent::run([self, creds, symbols]() {IBroker* broker = BrokerRegistry::instance().get("motilal");ApiResponse<QVector<BrokerQuote>> resp;if (broker)diff --git a/fincept-qt/src/ui/charts/HorizontalLineLayer.cpp b/fincept-qt/src/ui/charts/HorizontalLineLayer.cppindex 057a942c0..dad404e10 100644--- a/fincept-qt/src/ui/charts/HorizontalLineLayer.cpp+++ b/fincept-qt/src/ui/charts/HorizontalLineLayer.cpp@@ -32,7 +32,7 @@ void HorizontalLineLayer::attach(QGraphicsScene* scene, QChart* chart) {reposition(chart);}-void HorizontalLineLayer::detach(QGraphicsScene* scene, QChart*) {+void HorizontalLineLayer::detach(QGraphicsScene*, QChart*) {clear_items();scene_ = nullptr;chart_ = nullptr;