Author Topic: get_market_history CLI command  (Read 172 times)

0 Members and 1 Guest are viewing this topic.

Offline mostar

  • Full Member
  • ***
  • Posts: 94
    • View Profile
get_market_history CLI command
« 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

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3212
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: get_market_history CLI command
« Reply #1 on: May 09, 2018, 05:55:04 pm »
Price = base / quote, also need to check precision of both assets.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit