Python Scripting

Craig's Avatar

Craig

17 Feb, 2010 01:59 AM

I am attempting to use the Python scripting interface and have gotten to a point where I am unsure how to retrieve the cost basis from stock sales. Should i be using a certain method to extract the cost basis from a split transaction. I notice that the cost basis has a reference to a transaction ID within the tags of a split transaction. Can someone show me an approach that can be used to get the cost basis of a stock sale, when specific lots are used?

Any direction you can provide will be appreciated.

  1. 1 Posted by Jon Hoover on 02 Mar, 2010 08:21 PM

    Jon Hoover's Avatar

    Craig,
    Sorry to take so long to get back to you. We've been really busy lately and I apologize that we were not more timely. I've spoken with our lead developer and he as asked if you would send us the code you have so far and with that we could hopefully find a solution.
    Thanks and sorry for the late response,
    Jon Hoover, Moneydance Support

  2. 2 Posted by craig on 04 Mar, 2010 12:24 AM

    craig's Avatar

    thanks for the reply Jon. I have attached the code and it represents me
    trying to understand the structure of the data and how to use python
    scripting to get some different views. As I mentioned in my request, I
    am interested in how I can retrieve the cost basis on some of my
    securities sales. My script is not there yet, but I would gladly accept
    any input and direction you can provide.

    I look forward to your reply.

    Thanks again and I enjoy using Moneydance,

    Craig

  3. 3 Posted by Jon Hoover on 05 Mar, 2010 03:24 PM

    Jon Hoover's Avatar

    Craig,
    For some reason your attached script did not make it through. Please send it to my personal email address, [email blocked] . This way it shouldn't be mysteriously scrubbed by the forum interface.
    Jon Hoover, Moneydance Support

  4. Angie Rauscher closed this discussion on 24 Jul, 2011 07:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac