Giter VIP home page Giter VIP logo

Comments (2)

2018kguo avatar 2018kguo commented on August 28, 2024

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.

jpstokes avatar jpstokes commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.