From e9f1788eae81458fdb708087baeb97f5b74f45dc Mon Sep 17 00:00:00 2001 From: Roman Olearski Date: Tue, 8 Aug 2017 12:12:55 +0200 Subject: [PATCH] added get_binned_order_book to wallet --- libraries/wallet/include/graphene/wallet/wallet.hpp | 2 ++ libraries/wallet/wallet.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 0d2a4c19..88e4422b 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -1573,6 +1573,7 @@ class wallet_api asset get_total_matched_bet_amount_for_betting_market_group(betting_market_group_id_type group_id); std::vector get_events_containing_sub_string(const std::string& sub_string, const std::string& language); + binned_order_book get_binned_order_book(graphene::chain::betting_market_id_type betting_market_id, int32_t precision); vector list_sports() const; vector list_event_groups(sport_id_type sport_id) const; @@ -1993,4 +1994,5 @@ FC_API( graphene::wallet::wallet_api, (get_order_book) (get_total_matched_bet_amount_for_betting_market_group) (get_events_containing_sub_string) + (get_binned_order_book) ) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 0ab4719b..e4f508d4 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -5642,6 +5642,11 @@ std::vector wallet_api::get_events_containing_sub_string(const std return( my->_remote_bookie->get_events_containing_sub_string(sub_string, language) ); } +binned_order_book wallet_api::get_binned_order_book(graphene::chain::betting_market_id_type betting_market_id, int32_t precision) +{ + return( my->_remote_bookie->get_binned_order_book(betting_market_id, precision) ); +} + // default ctor necessary for FC_REFLECT signed_block_with_info::signed_block_with_info( const signed_block& block ) : signed_block( block )