Email me if you have any questions.
If you don't mind I'll ask you my questions here. There's no reason why it should not be public.
I don't like OT very much. Seems quite complicated right now. But I will take a deeper look into it when it implements stock markets. According to the main page, it should come soon, right ?
Suggest you check out the Use Cases for a list of the basic client-side functionality:
https://github.com/FellowTraveler/Open-Transactions/wiki/Use-Cases
That article also shows which API functions to call for implementing each case.
To play with the functionality without coding, try the command-line test client.
Instructions:
https://github.com/FellowTraveler/Open-Transactions/wiki/Test-Wallet-commands
OT already supports markets. (That is, trading 2 asset types against each other by making an
offer onto a market, where it may trade against other offers from other users.) To read more
about OT markets, here:
https://github.com/FellowTraveler/Open-Transactions/wiki/Markets
Note that each trade involves 4 accounts. If we are trading dollars for wheat, then there
are my dollar and wheat accounts, and there are your dollar and wheat accounts. Total of 4.
What OT does NOT yet support is stocks. (A stock being an asset type that may occasionally
pay dividends, as set by the issuer, which are paid out in a different asset type.) Once stocks are
added to OT, you will be able to trade them on markets like any other asset type.
You may find value in this article about future potential instruments on OT:
https://github.com/FellowTraveler/Open-Transactions/wiki/Future-Direction
From what you have written, OT seems like what you are describing, and having written it,
I can assure you that playing around with OT for a few hours will be much easier and simpler
for you, than actually writing it from scratch was for me. I have endeavored to protect you
from that complexity as much as possible with a simple interface (the OT API and classes.)
FYI, here's a project to create a perl wrapper for the OT API:
https://github.com/DsPearson/tempest
There is a web (HTML) GUI layered over that, but soon the author will release a command-line
version as well. (A real UNIX style command line, unlike the current OT command-line test wallet.)
You may find that such a command line is also well-suited to your needs.
Good luck!
-FT