BitShares Forum

Main => Technical Support => Topic started by: mostar on May 09, 2018, 12:15:11 pm

Title: get_market_history CLI command
Post by: mostar on May 09, 2018, 12:15:11 pm
The output of get_market_history is not clear to me

Code: [Select]
get_market_history CNY USD 3600 "2018-05-01T00:00:00" "2018-05-01T01:00:00"

Code: [Select]
[{
    "id": "5.1.12235694",
    "key": {
      "base": "1.3.113",
      "quote": "1.3.121",
      "seconds": 3600,
      "open": "2018-05-01T00:00:00"
    },
    "high_base": 64338003,
    "high_quote": 9944051,
    "low_base": 406092085,
    "low_quote": 64255065,
    "open_base": 28323635,
    "open_quote": 4453332,
    "close_base": 26721873,
    "close_quote": 4172033,
    "base_volume": "7940343294",
    "quote_volume": 1243728680

for exampe how can

Code: [Select]
   "high_quote": 9944051
    "low_quote": 64255065
    "open_quote": 4453332

be so far way from each other for this pair in one hour?

Do you have other idea to get historical data?
I tried uptick trades but got only few last trades.

Thank you
Title: Re: get_market_history CLI command
Post by: abit on May 09, 2018, 05:55:04 pm
Price = base / quote, also need to check precision of both assets.