- {agentData.positions.map((position, index) => (
+ {openPositions.map((position, index) => (
@@ -426,6 +493,28 @@ function AgentSearch({ index }: { index: number }) {
Fees paid across all strategies
+
+
+
+
Total Runtime
+
+ {(() => {
+ const totalSeconds = summary.totalRuntimeSeconds || 0
+ const days = Math.floor(totalSeconds / 86400)
+ const hours = Math.floor((totalSeconds % 86400) / 3600)
+ const minutes = Math.floor((totalSeconds % 3600) / 60)
+ if (days > 0) {
+ return `${days}d ${hours}h`
+ } else if (hours > 0) {
+ return `${hours}h ${minutes}m`
+ } else {
+ return `${minutes}m`
+ }
+ })()}
+
+
Across all strategies
+
+
)}
@@ -457,7 +546,7 @@ function AgentSearch({ index }: { index: number }) {
{strategy.roiPercentage && strategy.roiPercentage >= 0 ? '+' : ''}{(strategy.roiPercentage || 0).toFixed(2)}%
- {strategy.totalRuntimeSeconds > 0 ? (() => {
+ {strategy.totalRuntimeSeconds && strategy.totalRuntimeSeconds > 0 ? (() => {
const totalSeconds = strategy.totalRuntimeSeconds
const days = Math.floor(totalSeconds / 86400)
const hours = Math.floor((totalSeconds % 86400) / 3600)
@@ -486,6 +575,16 @@ function AgentSearch({ index }: { index: number }) {
)}
+
+ {allPositions.length > 0 && (
+
+
+
+ )}
)
}