Code Update - Buying/Selling a Portfolio, Transaction support, Initial Refactoring
In today's update there are a few additions:
Complete Buying a Portfolio
You can buy/sell an entire portfolio. I keep doing it just for fun. This will record a purchase of 1 of every contract in the portfolio. This has removed a lot of my previous TODO entries from the hook_nodeapi which feels great. I even added in some more comments.
One concept that I knew I would have to include was transactions. When you buy or sell something 2-4 things have to happen
first prediction market checkin to Drupal cvs
So, I just did the first checkins of code into the cvs repository for Drupal.
There are two things that I think people should get out of this set of code:
Initial Drawings and Musings
So, the first post. I'm going to use the blog here to document progress on the module and design decisions. The goal is to allow others to provide input and to make this module building exercise an open learning situation for people who are interested. The first step is to lay out the initial set of requirements. For the first iteration, my goal is to implement the bank accounts, objects and facility to store the purchasing/trading of contract groups, and the "happy path" through the purchase/sale of a contract group as a whole. "Happy path" means no validation just yet. I've also mentioned (here and in //TODO comments in the code) some things I know I will need to do but that I don't want to worry about now.
Attached is a diagram of some of the initial thoughts - a sort of object/relational map and also a tiny workflow. If you like pictures, maybe that will help more than my descriptions.
About Open Prediction Markets
Open Prediction Markets (this site) is focused on creating an easy to use tool for building Prediction Markets that is licensed under an Open Source license. There are other open source tools* which do this so you might call this "yet another open source prediction market" project.