Hello Monks,

I am writing some Perl code to import and analyze past stock transactions/trades from my personal OptionsXpress trade account. I am interested in developing this code in a way that it can be shared with others, e.g., via CPAN and/or github.

I have tried searching for other Perl modules that do this, but haven't really found anything quite like it yet. So for organization right now I am thinking something like:

StockAccount::Transaction <-- class for a single trade, buy or sell
StockAccount::TransactionSet <-- class for a sale tied to prior purchases that acquired what was sold
StockAccount::SymbolSet <-- class for the set of all TransactionSets for a given symbol
StockAccount::Import::OptionsXpress <-- import the OptionsXpress format

Down the road, one could add imports for other services or formats, graph or report generation, serialization/export, or anything else people wish to do with their personal past stock transaction data.

So for example, StockAccount::Transaction is a class for a stock trade, that contains the properties of a stock trade, such as price, quantity, commission, regulatory fees, date, etc.; and methods one might wish to use on such a thing, such as ->isSale() or ->printTransaction().

I like writing my own code. But I was wondering if there were opportunities for code reuse that I had missed that I should try to take advantage of. Anyone know of modules that already do this?

Thanks for your help. I've started reading about how to share a module on CPAN and prepare it for others (again), but if there are any particular guides or manuals you recommend for this I appreciate you pointing me in the right direction. Thanks again!

Just another Perl hacker,

John

In reply to Module for Personal Stock Account? Class for Stock Trade? by jrefior

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.