Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App showing incorrect cash balance when traded off market hours #28

Open
agrawalo opened this issue Aug 17, 2019 · 5 comments
Open

App showing incorrect cash balance when traded off market hours #28

agrawalo opened this issue Aug 17, 2019 · 5 comments

Comments

@agrawalo
Copy link

I have created an account and it shows that I have $500000 to trade. I bought 100 stocks of FB (note that the market is closed).

  1. It allowed me to make this transaction. I think it shouldn't allow when the market is closed.
  2. It allowed and my cash balance is not adjusted, i.e. I still have $500000 as cash balance.

Transactions
Cash in your hand: $500000.00

Stock name | Status | Quantity | Stock code | Price | Gain/loss
Alphabet Inc Class C | BOUGHT | 50 | GOOG | $0.00 | $0.00

@ghoshbishakh
Copy link
Member

This is because price for alphabet was not updated. You need to configure proper API keys and then test the app.

@agrawalo
Copy link
Author

How do I do that?

@ghoshbishakh
Copy link
Member

We used an API to fetch quotes.. that has changed now. It requires authentication (to the best of my knowledge).
You have to modify this function with a new API / proper authentication..
https://github.com/lugnitdgp/freemex/blob/master/core/utils.py#L14

@agrawalo
Copy link
Author

Any suggestion on which API to use?

@ankan17
Copy link
Member

ankan17 commented Aug 22, 2019

@agarwalo The API has been updated. This should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants