Taketrung / betting-ai

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

Market simulation for CREATE_MARKET event only and any trader implementation. #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As a trading analyst I want to run market simulation for a given market
data file and any trader implementation.

[MARKET DATA FILE]
{"eventType":"CREATE_MARKET","marketId":1, "marketName":"Match Odds",
"eventName":"Man Utd vs Arsenal", "numOfWinners":1, "marketTime":
"2010-04-15 14:00:00", "selections": [{"selectionId":11,
"selectionName":"Man Utd"},{"selectionId":12, "selectionName":"Arsenal"}] }

[END OF MARKET DATA FILE]

So that I can analyze market trader.

As proven by expected profit report printed to the output screen:

[BEGINNING Of THE OUTPUT]

Simulation is started.
Simulation progress: 1% 2% 3% 4% 5% 6%
.......................................................
................................................................................
.................................
..................................100%
Simulation is finished in 0 sec.

Expected profit report for trader com.dk.bettingai.trader.SimpleTraderImpl:

Man Utd vs Arsenal: Match Odds expProfit=0 expAggrProfit=0  mBets=0 uBets=0
--------------------------------------------------------------------------------
-----
TotalExpectedProfit=0 TotalMatchedBets=0 TotalUnmachedBets=0

[END Of THE OUTPUT]

Original issue reported on code.google.com by daniel.k...@gmail.com on 15 Apr 2010 at 3:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Technical notes:
- Implement MarketEventProcessor to handle CREATE_MARKET event
- Implement betex to hande createMarket.
- Implemented ExpectedProfitCalculator to handle markets but no bets and 
probabilities.

Original comment by daniel.k...@gmail.com on 15 Apr 2010 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 19 Apr 2010 at 12:55