From 2c473285b65b3a63aa1d966f63df4d3925321609 Mon Sep 17 00:00:00 2001 From: oxarbitrage Date: Wed, 1 Mar 2017 12:02:28 -0300 Subject: [PATCH 1/2] issue191 Adding date parameters to cli wallet function get_market_history --- libraries/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 553a0ded..16a30893 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -2819,9 +2819,9 @@ vector wallet_api::get_account_history(string name, int limit) } -vector wallet_api::get_market_history( string symbol1, string symbol2, uint32_t bucket )const +vector wallet_api::get_market_history( string symbol1, string symbol2, uint32_t bucket , fc::time_point_sec start, fc::time_point_sec end )const { - return my->_remote_hist->get_market_history( get_asset_id(symbol1), get_asset_id(symbol2), bucket, fc::time_point_sec(), fc::time_point::now() ); + return my->_remote_hist->get_market_history( get_asset_id(symbol1), get_asset_id(symbol2), bucket, start, end ); } vector wallet_api::get_limit_orders(string a, string b, uint32_t limit)const From b6cb3eeeb916234b21b32c19cfef004b35d803c8 Mon Sep 17 00:00:00 2001 From: oxarbitrage Date: Wed, 1 Mar 2017 12:07:33 -0300 Subject: [PATCH 2/2] Update wallet.hpp --- libraries/wallet/include/graphene/wallet/wallet.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 591394d0..aaa93e0e 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -357,7 +357,7 @@ class wallet_api vector get_account_history(string name, int limit)const; - vector get_market_history(string symbol, string symbol2, uint32_t bucket)const; + vector get_market_history(string symbol, string symbol2, uint32_t bucket, fc::time_point_sec start, fc::time_point_sec end)const; vector get_limit_orders(string a, string b, uint32_t limit)const; vector get_call_orders(string a, uint32_t limit)const; vector get_settle_orders(string a, uint32_t limit)const;