Scorum
|
Betting API. More...
Betting API.
This api does not require plugins
betting_property_api_object scorum::app::betting_api::get_betting_properties | ( | ) | const |
Return betting properties.
Definition at line 80 of file betting_api.cpp.
std::vector< matched_bet_api_object > scorum::app::betting_api::get_game_matched_bets | ( | const uuid_type & | uuid | ) | const |
Returns matched bets for game.
uuid | Game uuid |
Definition at line 70 of file betting_api.cpp.
std::vector< pending_bet_api_object > scorum::app::betting_api::get_game_pending_bets | ( | const uuid_type & | uuid | ) | const |
Return pending bets for game.
uuid | Game uuid |
Definition at line 75 of file betting_api.cpp.
std::vector< matched_bet_api_object > scorum::app::betting_api::get_game_returns | ( | const uuid_type & | game_uuid | ) | const |
Returns bets with draw status.
game_uuid | Game UUID |
Definition at line 25 of file betting_api.cpp.
std::vector< winner_api_object > scorum::app::betting_api::get_game_winners | ( | const uuid_type & | game_uuid | ) | const |
Returns all winners for particular game.
game_uuid | Game UUID |
Definition at line 30 of file betting_api.cpp.
std::vector< game_api_object > scorum::app::betting_api::get_games_by_status | ( | const fc::flat_set< chain::game_status > & | filter | ) | const |
Returns games.
filter | [created, started, finished, resolved, expired, cancelled] |
Definition at line 35 of file betting_api.cpp.
std::vector< game_api_object > scorum::app::betting_api::get_games_by_uuids | ( | const std::vector< uuid_type > & | uuids | ) | const |
Returns games.
UUIDs | of games to return |
Definition at line 40 of file betting_api.cpp.
std::vector< matched_bet_api_object > scorum::app::betting_api::get_matched_bets | ( | const std::vector< uuid_type > & | uuids | ) | const |
Returns matched bets.
uuids | The vector of UUIDs of pending bets which form matched bets |
Definition at line 60 of file betting_api.cpp.
std::vector< pending_bet_api_object > scorum::app::betting_api::get_pending_bets | ( | const std::vector< uuid_type > & | uuids | ) | const |
Return pending bets.
uuids | The vector of UUIDs of pending bets which should be returned |
Definition at line 65 of file betting_api.cpp.
std::vector< game_api_object > scorum::app::betting_api::lookup_games_by_id | ( | chain::game_id_type | from, |
uint32_t | limit | ||
) | const |
Returns games.
from | lower bound game id |
limit | query limit |
Definition at line 45 of file betting_api.cpp.
std::vector< matched_bet_api_object > scorum::app::betting_api::lookup_matched_bets | ( | chain::matched_bet_id_type | from, |
uint32_t | limit | ||
) | const |
Returns matched bets.
from | lower bound bet id |
limit | query limit |
Definition at line 50 of file betting_api.cpp.
std::vector< pending_bet_api_object > scorum::app::betting_api::lookup_pending_bets | ( | chain::pending_bet_id_type | from, |
uint32_t | limit | ||
) | const |
Return pending bets.
from | lower bound bet id |
limit | query limit |
Definition at line 55 of file betting_api.cpp.