Hello there, I'm trying to figure out exactly how to use the 'get_trade_history' database API call. The documentation seems to be a bit off for this one, since the order of the arguments displayed here
http://docs.bitshares.org/api/database.html seems to be wrong.
Taking a look at the graphene code itself, I can find at /libraries/app/database_api.cpp:110 the following:
vector<market_trade> get_trade_history( const string& base, const string& quote, fc::time_point_sec start, fc::time_point_sec stop, unsigned limit = 100 )const;
But this is kind of at odds with what I actually find when querying the API, since it seems to be expecting a date format.
Connecting directly to a via wscat I get the following:
> {"id":1,"method":"call","params":[0,"get_trade_history",["BTS","EUR","20161215T0130000","20161212T233000", 100]],"jsonrpc":"2.0"}
< {"id":1,"result":[]}
And no, reverting the start and stop values doesn't seem to change anything either. Same result. Can anyone give me a hand with this?
Nelson