Open fidoandfido opened 13 years ago
Stock markets are now grouped! Need to add field to trader to indicate which 'group' they belong to. Now need to update DAO code to ensure that trader is always talking to the correct 'group'. ie When looking for companies, placing orders, and so on. This actually adds a bit of overhead, will be interesting to see how many DAO methods this impacts...
Will keep this issue open until I have implemented a second group and tested to ensure all data doesn't 'leak' between them.
Stock markets should be grouped; more detail on this to follow.
Briefly: A group of stock markets would share a period length; trader objects would be linked to a specific group of exchanges; period generator thread would then act on those stock exchanges in serial fashion. This would prevent concurrent updates to objects during period generation.
Possibly they could share economic conditions (possibly?)
Period should also have a 'closed' part; during this time no trades would be conducted (But orders could be placed).
More info to follow soon.