Taketrung / betting-ai

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

Bets matching ordering rules. #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As a trader
I want to place bets and get them matched in order they have been placed
So that I can know which order bets are matched

As proven by:
All tests for acceptance criteria pass.

Acceptance criteria:
The stake money that you see available in the market view at each odds 
increment can be a combination of one or more different users' unmatched bets. 
When you match a bet you will always be matched with the first bet that was 
placed at those particular odds i.e. first come first served. There is 
therefore an incentive for users to offer odds early or to offer better odds 
than those currently available.

You can bet all or part of the total stake amount shown. If the required stake 
is not available at the best odds, you can adjust your odds to the second- or 
third-best and place the full stake amount. The system will automatically match 
the stake available at the best odds first and then the stake at the 2nd best 
odds and so on down to the minimum odds acceptable to you.

Blocked on:
none

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

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 24 Aug 2010 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 28 Aug 2010 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 24 Nov 2010 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 2 Dec 2010 at 4:57

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 16 Feb 2011 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 4 Mar 2011 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by daniel.k...@gmail.com on 4 Mar 2011 at 6:06

GoogleCodeExporter commented 9 years ago
Duplicate of http://code.google.com/p/betting-exchange/issues/detail?id=3

Original comment by daniel.k...@gmail.com on 30 May 2011 at 10:46

GoogleCodeExporter commented 9 years ago
Duplicate of http://code.google.com/p/betting-exchange/issues/detail?id=3

Original comment by daniel.k...@gmail.com on 30 May 2011 at 10:46