Commit graph

157 commits

Author SHA1 Message Date
Eric Frias
8ef5335a70 Change the bookie plugin's binned order books to more closely match the
behavior of the bet matching algorithm where the taker's bet is now
the limiting factor
2018-05-03 18:54:04 -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
69b00293d9 Only do slow replays when the bookie plugin is loaded 2017-09-07 15:55:44 -04:00
Eric Frias
d333dd3812 Track match/cancel/adjust operations related to a bet in the bookie plugin.
Create a paginated version of get_matched_bets_for_bettor()
2017-09-06 16:52:58 -04:00
Eric Frias
c8ee15df04 Fix get_matched_bets_for_bettor() that wasn't exposed to the JSON API correctly,
fix bookie api which wasn't returning deleted betting markets.
2017-09-05 11:08:55 -04:00
Roman Olearski
d63a89febf get_matched_bets_for_bettor: added to the wallet, fixed missing reflection 2017-09-04 08:44:29 +02:00
Eric Frias
eedd775405 Add get_matched_bets_for_bettor() to bookie plugin 2017-09-02 19:05:07 -04:00
Eric Frias
85e819185f Allow bookie API to return deleted betting_market, betting_market_group, and event objects 2017-08-10 15:49:53 -04:00
Eric Frias
d13783a3c4 Fix bug that prevented placing bets that were too small to stay on the books,
Add a get_objects() call to the bookie API to provide access to objects that
have been removed from the blockchain, and a few tests to verify that they
work.
2017-08-09 17:17:51 -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
6ca6413d88 bookie_plugin: added localized_event_strings .... 2017-08-01 12:26:45 +02: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
Eric Frias
c4470131ac Enable building bookie plugin, add API for bookie plugin, and implement a
function for getting binned order books (as yet untested)
2017-07-27 19:36:31 -04:00
Eric Frias
034acf7399 Replace idiosyncratic use of captures in ilog() statements with the usual mechanism 2017-07-19 14:40:43 -04:00
Roman Olearski
d3482f3a08 Merge branch 'rock-paper-scissors' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into betting-merge 2017-07-13 16:07:30 +02:00
Eric Frias
cd2940c8a8 Remove competitor and market options objects from the blockchain 2017-07-06 11:57:45 -04:00
Eric Frias
9c9af76e12 Merge commit 'd8e7c0afee573d82647018a9efd530a03274a2aa' into betting 2017-06-21 16:58:50 -04:00
Eric Frias
3238ea735f Merge commit '568ceb189eca96e77e38c4059b83a504008d7e91' into betting 2017-06-21 16:43:00 -04:00
Eric Frias
636f28eac6 Merge commit 'aa6f3e9051787bfc1b4284f1684544cca9bfc9c9' into betting 2017-06-21 16:08:58 -04:00
Eric Frias
51fb13f8ba Merge commit '9466d2096a370e15aff70842b48feeca4a941e5c' into betting 2017-06-21 14:54:05 -04:00
Eric Frias
c64d83910c Merge commit '030577f6719a483314c6de7b7e42214399704adb' into betting 2017-06-21 14:15:57 -04:00
Eric Frias
fe82e85d8d Merge commit '9bbbefd3913ccfe01b8e8ef2007ca3eb74ab9d81' into betting 2017-06-21 09:33:53 -04:00
Eric Frias
c20978bae6 Merge commit '1e80d8a01e6181711bba3d6462e64286d79935b1' into betting 2017-06-20 19:34:52 -04:00
Eric Frias
5a99abc3de Merge commit '0053613b38e81719c198f36c748e181cc44635b2' into betting 2017-06-20 18:57:23 -04:00
Eric Frias
bd525ef55d Merge commit 'c777a88649d50edf6c5e4a8c3b13dda88a66e9d0' into betting 2017-06-20 18:15:43 -04:00
Roman Olearski
eb4c8f75d1 Merge branch 'rock-paper-scissors-ro' into rock-paper-scissors
Conflicts:
	programs/witness_node/main.cpp
2017-06-09 12:17:26 +02:00
abitmore
504aa5dccd Account history: option to prune old data (#292) 2017-06-02 16:16:34 +00:00
Eric Frias
03ec007cbb Quiet unhelpful log message "Not producing block because slot has not yet arrived" 2017-06-01 16:59:40 -04:00
Eric Frias
36bcada8fa Add 'generate_uia_sharedrop_genesis_plugin' used for generating the initial PPY
balances based on the BitShares PEERPLAYS UIA.
Modify the other generate_genesis plugin to be able to run disabled.
2017-06-01 11:05:43 -04:00
Eric Frias
ceac07ed42 Improve the generate_genesis plugin to:
- exclude more exchanges
- exclude scam accounts
- credit users for any vesting balances they could have
   withdrawn at the time of the snapshot
- other minor cleanup
2017-06-01 10:02:40 -04:00
Peter Conrad
53271599a7 Call use_next_id to keep object ids consistent 2017-05-27 09:42:50 +02:00
Peter Conrad
16824f438a Added partial-operations flag to reduce operations log (1.11.x) 2017-05-25 12:31:09 +02:00
Roman Olearski
0c14896a3d done acounts_list_plugin 2017-05-22 19:49:10 +02:00
Roman Olearski
3e4d9c2aa3 added acounts_list_plugin 2017-05-22 17:57:35 +02:00
Roman Olearski
27b5c978db completing scheduled (restored) witnesses, setting as default 2017-04-21 14:24:40 +02:00
Vikram Rajkumar
8a44c6a2e6 Merge pull request #259 from bitshares/258-account-history-filter-fix
Fix account_history filtering by account #258
2017-04-10 14:54:12 -05:00
Abit
a4a8b67eba Fix account_history filtering by account #258 2017-04-09 00:57:41 +02:00
oxarbitrage
3d9ae3d86e market_history plugin fix
fix get_trade_history and calls that use it(get_ticker, get_24_volume),
2017-04-07 18:57:31 -03: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
elmato
030577f671 Fix handling of events from database_object in debug_witness_plugin 2017-03-22 20:14:53 +00:00
elmato
cff792a740 debug_witness: Handle new params in changed/remove signals from database 2017-03-22 20:14:53 +00:00
Vikram Rajkumar
8ae1f6b3a5 Remove NTP time 2017-03-16 12:53:52 -05:00
root
0703447bfd Print public key on start 2017-02-20 06:18:46 -08:00
root
f50df89826 remove log of key in witness start 2017-02-20 04:52:07 -08:00
Eric Frias
4674fc53ab Allow generate_genesis plugin to quietly do nothing when you don't specify the block number on the witness's command line. 2017-01-04 17:19:48 -05:00
Vikram Rajkumar
38e5d91355 Merge commit '7f75be5ced9bbe6c0671b3dadc46bcaecc3c1beb' into bitshares 2016-11-17 15:13:02 -06:00
Nathan Hourt
d7c51f26e3 Add more missing headers to install 2016-11-07 18:17:51 -06:00
Nathan Hourt
af6eb06a3e Add missing includes 2016-11-07 18:17:51 -06:00
Roman Olearski
41f11bd63c Merge branch 'rock-paper-scissors' into rock-paper-scissors-ro 2016-11-02 18:11:59 +01:00