aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'api.h')
-rw-r--r--api.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/api.h b/api.h
index 6b76676a89b4..a70a7798dbeb 100644
--- a/api.h
+++ b/api.h
@@ -10,6 +10,7 @@
#define QUARTERS 4
#define DATE_MAX_LENGTH 16
+#define CELL_MAX_LENGTH 16
#define SYMBOL_MAX_LENGTH 32
#define URL_MAX_LENGTH 2048
#define INFO_TEXT_MAX 2048
@@ -97,6 +98,10 @@ struct info {
double total_spent; // Total USD spent
double current_value; // Total USD value
+ char famount[CELL_MAX_LENGTH]; // Amount of security in porfolio
+ char ftotal_spent[CELL_MAX_LENGTH]; // Total USD spent
+ char fcurrent_value[CELL_MAX_LENGTH]; // Total USD value
+
/** CALCULATED DATA **/
double profit_total; // Total profit
@@ -107,11 +112,44 @@ struct info {
double profit_7d_percent; // Profit since seven days ago %
double profit_30d; // Profit since thirty days ago
double profit_30d_percent; // Profit since thirty days ago %
+
+ char fprofit_total[CELL_MAX_LENGTH]; // Total profit
+ char fprofit_total_percent[CELL_MAX_LENGTH]; // Total profit %
+ char fprofit_last_close[CELL_MAX_LENGTH]; // Profit since last close
+ char fprofit_last_close_percent[CELL_MAX_LENGTH]; // Profit since last close %
+ char fprofit_7d[CELL_MAX_LENGTH]; // Profit since seven days ago
+ char fprofit_7d_percent[CELL_MAX_LENGTH]; // Profit since seven days ago %
+ char fprofit_30d[CELL_MAX_LENGTH]; // Profit since thirty days ago
+ char fprofit_30d_percent[CELL_MAX_LENGTH]; // Profit since thirty days ago %
};
struct info_array {
Info** array;
size_t length;
+
+ double total_spent; // Total USD spent
+ double current_value; // Total USD value
+
+ char ftotal_spent[CELL_MAX_LENGTH]; // Total USD spent
+ char fcurrent_value[CELL_MAX_LENGTH]; // Total USD value
+
+ double profit_total; // Total profit
+ double profit_total_percent; // Total profit %
+ double profit_last_close; // Profit since last close
+ double profit_last_close_percent; // Profit since last close %
+ double profit_7d; // Profit since seven days ago
+ double profit_7d_percent; // Profit since seven days ago %
+ double profit_30d; // Profit since thirty days ago
+ double profit_30d_percent; // Profit since thirty days ago %
+
+ char fprofit_total[CELL_MAX_LENGTH]; // Total profit
+ char fprofit_total_percent[CELL_MAX_LENGTH]; // Total profit %
+ char fprofit_last_close[CELL_MAX_LENGTH]; // Profit since last close
+ char fprofit_last_close_percent[CELL_MAX_LENGTH]; // Profit since last close %
+ char fprofit_7d[CELL_MAX_LENGTH]; // Profit since seven days ago
+ char fprofit_7d_percent[CELL_MAX_LENGTH]; // Profit since seven days ago %
+ char fprofit_30d[CELL_MAX_LENGTH]; // Profit since thirty days ago
+ char fprofit_30d_percent[CELL_MAX_LENGTH]; // Profit since thirty days ago %
};
/**