You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a position is long, market value should be calculated using bid price,
when a position is short, market value should be calculated using ask price.
When #166 will be merged, such improvement should be an easy task.
The text was updated successfully, but these errors were encountered:
position.update_market_value
currently use midpoint (iemidpoint = (bid + ask) // 2
) to calculate market value of a positionqstrader/qstrader/position.py
Line 75 in 325266d
When a position is long, market value should be calculated using bid price,
when a position is short, market value should be calculated using ask price.
When #166 will be merged, such improvement should be an easy task.
The text was updated successfully, but these errors were encountered: