trungvothanh / bett

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

Support CANCEL_BETS event #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As a trader
I want to process CANCEL_BETS events with market simulator tool 
So that I can analyse trading strategies

As proven by:
All unit/integration/e2e tests for acceptance criteria pass

Acceptance criteria:
Event description:
Cancel a given size of unmatched bets for a given user id, price and market 
runner.

{"eventType":"CANCEL_BETS","userId":124,"betsSize":20.0,"betPrice":1.85,"marketI
d":10,"runnerId":1000}

Blocked on:
None.

Original issue reported on code.google.com by daniel.k...@gmail.com on 8 Jul 2010 at 4:05

GoogleCodeExporter commented 8 years ago

Original comment by daniel.k...@gmail.com on 8 Jul 2010 at 4:05

GoogleCodeExporter commented 8 years ago
TODO:
- Extend MarketEventProcessor to support CANCEL_BETS event.
- Extend Betex to support cancelBets()
- Extend e2e tests for MarketSimulator to process CANCEL_BETS event
- Remove support for CANCEL_BET event
- Remove betId from PLACE_BET event

Original comment by daniel.k...@gmail.com on 8 Jul 2010 at 4:13

GoogleCodeExporter commented 8 years ago

Original comment by daniel.k...@gmail.com on 8 Jul 2010 at 4:15