trungvothanh / bett

Automatically exported from code.google.com/p/betting-ai
1 stars 1 forks source link

Create MarketEventCalculator #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As a MarketEventProducer.
I want to calculate market events that represent the delta between previous and 
current state of the market.
So that I can return it to the MarketDataCollectorTask

As proven by:
- MarketEventProducer is developed and tested with automated tests.

Acceptance criteria:
- If no previous market state is available then CREATE_MARKET event will be 
generated as the first event on the list.
- If both previous and current market states are the same then nothing is 
generated.
- If both previous and current market states are not the same then appropriate 
PLACE_BET/CANCEL_BET events are generated.
- If the current market state presents less traded volume than the previous 
market state then exception is thrown.

Blocked on:
Nothing.

Original issue reported on code.google.com by daniel.k...@gmail.com on 23 Jun 2010 at 11:17

GoogleCodeExporter commented 9 years ago
TODO:
Implemented and tested with unit tests to cover all acceptance criteria.
More details for:
If both previous and current market states are not the same then appropriate 
PLACE_BET/CANCEL_BET events are generated:

New traded volume is bigger than before:
- New market prices are available.
- Volume on exiting market price is bigger than before.
- Volume on existing market price is smaller than before.
- Previous market price doesn't exist any more.

New traded volume is the same as was before:
- New market prices are available.
- Volume on exiting market price is bigger than before.
- Volume on existing market price is smaller than before.
- Previous market price doesn't exist any more.

Original comment by daniel.k...@gmail.com on 23 Jun 2010 at 12:34

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 23 Jun 2010 at 4:35

GoogleCodeExporter commented 9 years ago
The following acceptance criteria is removed:
- If no previous market state is available then CREATE_MARKET event will be 
generated as the first event on the list.

Original comment by daniel.k...@gmail.com on 29 Jun 2010 at 5:16

GoogleCodeExporter commented 9 years ago
Excluded acceptance criteria:
- If no previous market state is available then CREATE_MARKET event will be 
generated as the first event on the list.
- If the current market state presents less traded volume than the previous 
market state then exception is thrown.

Original comment by daniel.k...@gmail.com on 12 Jul 2010 at 4:08