• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióncfef80f7064cea7cceaabcfc77a7850c049f5190 (tree)
Tiempo2024-03-01 17:32:42
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I now choose whether to save the latest portfolio data or not.

Cambiar Resumen

Diferencia incremental

diff -r 48d67f767c19 -r cfef80f7064c R-codes/status_portfolio.R
--- a/R-codes/status_portfolio.R Thu Feb 29 17:40:29 2024 +0100
+++ b/R-codes/status_portfolio.R Fri Mar 01 09:32:42 2024 +0100
@@ -13,6 +13,8 @@
1313 source("/home/lorenzo/myprojects-hg/R-codes/stat_lib.R")
1414
1515
16+save_portfolio_composition <- 1 ## whether to save the new data or not
17+
1618
1719 ### flexible products giving earnings
1820 fname <- "flexible_position.json"
@@ -138,6 +140,9 @@
138140 mutate(timestamp=as_datetime(timestamp))
139141
140142
143+## Choose whether to save the data or not.
144+
145+if (save_portfolio_composition==1){
141146
142147 fname <- paste("./history_usdt/portfolio_detailed_", df_global_usdt$timestamp[1], ".csv",
143148 sep="")
@@ -159,7 +164,7 @@
159164
160165 save_excel(df_stat1_usdt, "portfolio_summary.xlsx")
161166
162-
167+}
163168
164169
165170