Comments (2)
my apologies, this piece of functionality is something that I somewhat overlooked because I didn't feel like it was very important and ended up implementing in a misleading way - the "tradehistory" file doesn't log every purchase you make, but instead logs the results of how much profit/loss was incurred when the bot decides to sell a stock. For example, if the bot buys a share of APL on Monday and then sells it on Friday, it will only write to the file upon selling the stock - saying you made/lost $X. If the bot buys APL and then holds on to it, nothing is logged because in the bot's mind, you haven't gained or lost any actual money until you decide to sell it. I do think that it is better to log every transaction though. I'll try to remedy this at some point.
from robinhoodbot.
Your explanation is good enough for me. So if I understand, the bot will calculate the profit/loss based on buy/sold info that it gets from Robinhood so it doesn't need to save data at time of purchase? If that's the case, I can live with that.
from robinhoodbot.
Related Issues (16)
- positions_data error HOT 1
- IndexError: list index out of range HOT 1
- Attribute Error HOT 1
- unsupported operant Timestamp and NoneType HOT 3
- Login issue? HOT 3
- Would this potentially trigger the "pattern day trader" in RH? HOT 2
- Unexpected keyword argument 'n' in function call HOT 4
- Bot not pulling complete watchlist data HOT 7
- Robinhood
- scan_stocks() not working pls help? HOT 1
- NameError: name 'bollinger_mavg' is not defined HOT 1
- Weird Login Issues HOT 1
- No stocks returning for buy or sell. HOT 1
- Division by zero error? HOT 1
- bollinger_mavg Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robinhoodbot.