Author Topic: example of blockchain_market_order_history  (Read 1680 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Quote
  skip_count (uint32_t, optional, defaults to "0"): Number of transactions before head block to skip in listing
  limit (uint32_t, optional, defaults to "20"): The maximum number of transactions to list
  block_limit (uint32_t, optional, defaults to "1000"): The maximum number of blocks in the past to search for orders


quick guess:

blockchain_market_order_history USD BTSX 0 10000 10000

//edit: thanks for voting :)

Offline bitwiz

  • Newbie
  • *
  • Posts: 13
    • View Profile
Quote
delegate (unlocked) >>> blockchain_market_order_history USD BTSX
   TYPE                         PRICE                     PAID                 RECEIVED                FEES              TIMESTAMP
----------------------------------------------------------------------------------------------------------------------------------
    Buy0.04415011037527594 USD / BTSX               5.1434 USD           116.50000 BTSX          0.1435 USD    2014-08-26T18:04:20
   Sell0.04291845493562231 USD / BTSX           116.50000 BTSX               4.9999 USD        0.00000 BTSX    2014-08-26T18:04:20
    Buy0.04415011037527594 USD / BTSX             294.8565 USD         6,678.49999 BTSX          0.0000 USD    2014-08-26T18:04:20
   Sell0.04415011037527594 USD / BTSX         6,678.49999 BTSX             294.8565 USD        0.00000 BTSX    2014-08-26T18:04:20
    Buy0.04166840285011876 USD / BTSX               0.4125 USD             9.90142 BTSX          0.0000 USD    2014-08-26T17:59:40
   Sell0.04166840285011876 USD / BTSX             9.90142 BTSX               0.4125 USD        0.00000 BTSX    2014-08-26T17:59:40

Almost there LOL, thanks

Is it possible also to get all the history?
I tried with
Code: [Select]
blockchain_market_order_history USD BTSX 0 0 0 and got nothing
with
Code: [Select]
blockchain_market_order_history USD BTSX 1 2 3the client crashed instantly!

Also voted for your delegate.xeroc !!
wallet_approve_delegate delegate.bitwiz
BTSX: bitwiz    | BTC: 1LW55JXXaZ9V2xjHaBvsXJ5WYv76LRnF2p
I'm running a PTS seed node on the cloud, get a 10$ bonus using this referral

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Quote
delegate (unlocked) >>> blockchain_market_order_history USD BTSX
   TYPE                         PRICE                     PAID                 RECEIVED                FEES              TIMESTAMP
----------------------------------------------------------------------------------------------------------------------------------
    Buy0.04415011037527594 USD / BTSX               5.1434 USD           116.50000 BTSX          0.1435 USD    2014-08-26T18:04:20
   Sell0.04291845493562231 USD / BTSX           116.50000 BTSX               4.9999 USD        0.00000 BTSX    2014-08-26T18:04:20
    Buy0.04415011037527594 USD / BTSX             294.8565 USD         6,678.49999 BTSX          0.0000 USD    2014-08-26T18:04:20
   Sell0.04415011037527594 USD / BTSX         6,678.49999 BTSX             294.8565 USD        0.00000 BTSX    2014-08-26T18:04:20
    Buy0.04166840285011876 USD / BTSX               0.4125 USD             9.90142 BTSX          0.0000 USD    2014-08-26T17:59:40
   Sell0.04166840285011876 USD / BTSX             9.90142 BTSX               0.4125 USD        0.00000 BTSX    2014-08-26T17:59:40

Offline bitwiz

  • Newbie
  • *
  • Posts: 13
    • View Profile
In the command:
Code: [Select]
blockchain_market_order_history <quote_symbol> <base_symbol> [skip_count] [limit] [block_limit]
what values should have the <quote_symbol> and <base_symbol> to get the data?

Tried
blockchain_market_order_history USD BitUSD:BTSX
blockchain_market_order_history USD BitUSD
blockchain_market_order_history BitUSD USD
but always got Assert Exception
wallet_approve_delegate delegate.bitwiz
BTSX: bitwiz    | BTC: 1LW55JXXaZ9V2xjHaBvsXJ5WYv76LRnF2p
I'm running a PTS seed node on the cloud, get a 10$ bonus using this referral