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
#pragma once
#include <QString>
#include <QStringList>
#include <QUuid>
namespace fincept::screens {
/// Returns the full list of available column identifiers for MarketPanel.
/// SYMBOL is the locked first column and renders the human-readable name;
/// TICKER is the optional column that shows the raw ticker. NAME is retained
/// for backward-compatibility with previously-saved panel configs.
inline QStringList all_market_columns() {
return {"SYMBOL", "LAST", "CHG", "CHG%", "HIGH", "LOW", "VOL", "BID", "ASK", "OPEN", "TICKER", "NAME"};
}
/// Returns the default column set used for new panels.
inline QStringList default_market_columns() {
return {"SYMBOL", "LAST", "CHG", "CHG%", "HIGH", "LOW"};
}
struct MarketPanelConfig {
QString id;
QString title;
QStringList symbols;
bool show_name = false; // legacy — kept for JSON compat
QStringList column_order; // display column order; empty = use default_market_columns()
int column_index = 0; // which horizontal splitter column (0-based)
int splitter_index = 0; // position within that column's vertical splitter
static MarketPanelConfig make(const QString& title, const QStringList& symbols, bool /*show_name*/ = false) {
return {
QUuid::createUuid().toString(QUuid::WithoutBraces), title, symbols, false, default_market_columns(), 0, 0};
}
};
} // namespace fincept::screens