alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
143 stars 13 forks source link

Dashboard chart and profit/loss always display lower than actual #161

Open kimih0223 opened 3 years ago

kimih0223 commented 3 years ago

Describe the bug Dashboard chart always displays lower than actual equity value by around 1.5%. The value shown at the end of the chart does not correspond to the equity value shown towards the top. Profit/Loss also is off by ~1.5% every day compared to actual information found in account balances page.

To Reproduce Steps to reproduce the behavior:

  1. Check equity value at the top
  2. Check equity value at the end of the graph below. Note discrepancies.
  3. Check today profit/loss
  4. Check balances (current / last_close)-1 (without any trade within a trading day) Note discrepancies

Expected behavior Numbers from steps 1, 2, and 4. Balances - Current [E. Equity] should are expected to match. Current equity / Last Close equity - 1 is expected to match profit/loss percentage.

Screenshots Screenshots available, but cannot share publicly.