mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2025-12-24 08:44:22 +01:00
(feat) adapt visualizations to seconds
This commit is contained in:
@@ -7,7 +7,7 @@ def get_pnl_trace(executors):
|
||||
pnl = [e.net_pnl_quote for e in executors]
|
||||
cum_pnl = np.cumsum(pnl)
|
||||
return go.Scatter(
|
||||
x=pd.to_datetime([e.close_timestamp for e in executors], unit="ms"),
|
||||
x=pd.to_datetime([e.close_timestamp for e in executors], unit="s"),
|
||||
y=cum_pnl,
|
||||
mode='lines',
|
||||
line=dict(color='gold', width=2, dash="dash"),
|
||||
|
||||
Reference in New Issue
Block a user