Commit graph

37 commits

Author SHA1 Message Date
serkixenos
c888274846 Merge beatrice to master 2021-12 2021-12-15 16:36:40 +00:00
Bobinson K B
dc04759686 Revert "Merge branch 'merge-beatrice-to-master-2021-11' into 'master'" 2021-12-10 06:18:51 +00:00
serkixenos
9955b390ee Merge Beatrice to Master 2021-11 2021-12-01 07:54:19 +00:00
Fabian Schuh
fc21e79206
Fix rebase 2018-10-11 13:36:49 +02:00
Peter Conrad
2428383466
Fixed bookie payout 2018-10-10 14:26:21 +02:00
Peter Conrad
517c86c60f
Refactored handling of asset_id 2018-10-10 14:25:57 +02:00
Peter Conrad
fdd7c193a6
Implemented affiliate payouts 2018-10-10 14:25:56 +02:00
Andrew Moore
da799f84b0 Updating licensing 2018-10-09 11:33:31 -03:00
Peter Conrad
b0afddaa6b Move new chain parameters into extensions 2018-09-05 16:43:35 +02:00
Eric Frias
ef369658ea Restore the original bet matching for back taker bets 2018-05-30 18:22:10 -07:00
Eric Frias
a4dd00ab8e Change how we redirect log messages in the betting code to the
"betting" logger so that it doesn't interfere with logging in
other database implementation files
2018-05-09 15:41:48 -04:00
Eric Frias
70e47a74dd Change bet matching algorithm to limit the amount matched by the
taker's odds, instead of buying as much as the taker's bet_amount
allowed at the maker's odds
2018-05-02 19:19:01 -04:00
Eric Frias
440fdb566b Fix bug causing a cancel of one event in an event group to cancel
other events
2018-04-29 18:59:15 -04:00
Eric Frias
5343c073bd Delay deletion of completed/canceled events to avoid an error producing
blocks when a betting market group with no betting markets is canceled.
2018-04-17 13:17:38 -04:00
Eric Frias
3b3a0905ff Change the behavior of the betting markets from being controlled by
a collection of flags (is_live, is_closed) to a single status field.
The status changes in an event can trickle down to the market groups,
and the status changes in market groups can bubble up to events.
2018-02-07 10:16:30 -05:00
Eric Frias
b83dea821e Fix a case where neither the taker nor maker bet was able to fully match. When this
happens, cancel the remainder of the taker bet.
2017-08-30 17:18:58 -04:00
Eric Frias
b505c375af Finish delayed (live) betting.
Remove the ability to change the event of a betting market group after creation.
2017-08-15 18:44:09 -04:00
Eric Frias
a8d5fded26 Remove the code for charging beting fees up-front now that rake fees are taken from your net winnings.
Change the bet matching algorithm to only match at exactly the maker's odds, no rounding.
Implement binned order books in the betting market plugin.  Keep betting market groups,
betting markets, and bet objects around forever in the plugin (not yet exposed to the api).
2017-08-09 11:15:12 -04:00
Eric Frias
93088a204d Change the rounding used when matching bets to never round, bets are always matched at
exactly the maker's odds.
2017-08-01 15:42:52 -04:00
Roman Olearski
b96459045b added get_total_matched_bet_amount_for_betting_market_group to bookie_plugin 2017-07-28 18:23:57 +02:00
Roman Olearski
9ab4d7049a added betting wimbledon test, improving database::resolve_betting_market_group . 2017-07-26 22:23:49 +02:00
Roman Olearski
67c134a138 changed cancel_all_bets to cancel_unmatched_bets 2017-07-19 10:29:51 +02:00
Roman Olearski
04985c2624 improving cancel_all_bets operation 2017-07-18 19:17:13 +02:00
Eric Frias
790bfe3704 WIP Force all betting markets in a group to use the same asset_id for betting 2017-07-09 18:41:26 -04:00
Roman Olearski
c18094abd8 implementing rake fee in resolve_betting_market_group #1
improving net profit calculation
2017-07-08 18:30:23 +02:00
Roman Olearski
9b08b502be implementing betting_market_resolve_group_operation (3) #1 2017-07-06 12:56:32 +02:00
Eric Frias
672fad6d40 Start of a plugin to track deleted events (and other deleted objects) needed by the
bookie ui
2017-04-04 17:02:19 -04:00
Eric Frias
6045b8b096 Add a simple test fixture to verify a bet plays out correctly in all three
outcomes.
Fix refunding fees on market cancelation
2017-03-31 17:56:00 -04:00
Eric Frias
39093df26c Create a bunch of utility functions to make writing betting market tests easier 2017-03-31 11:10:37 -04:00
Eric Frias
69192a889d Generate a virtual op when a market is resolved 2017-03-24 11:51:35 -04:00
SynaptiCAD User
e609764df3 cancel all the betting markets of a canceled event 2017-03-24 11:04:35 -04:00
Eric Frias
e74a505622 Fix missing const qualifier, payouts for betting market wins 2017-03-24 10:40:53 -04:00
SynaptiCAD User
c8a9c86ca6 cancel all unmatched bets on betting market when it is resolved 2017-03-24 00:09:43 -04:00
Eric Frias
784b11059f Start implementing bettimg_market_resolve op 2017-03-23 19:35:10 -04:00
Eric Frias
9f6edc649d Sort bets by odds for use in an order book 2017-03-23 16:24:47 -04:00
Eric Frias
4cdcbe32da Validate the fee paid when placing a bet. Add virtual op for canceling bet 2017-03-22 15:04:11 -04:00
SynaptiCAD User
c42a56d332 implement bet_cancel_operation 2017-03-22 12:06:08 -04:00