(feat) adapt visualizations to seconds

This commit is contained in:
cardosofede
2024-05-30 13:28:04 -05:00
parent 373a497227
commit 38a21142ff
4 changed files with 5 additions and 5 deletions

View File

@@ -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"),