BitShares Forum

Main => Technical Support => Topic started by: bitwiz on August 26, 2014, 04:56:25 pm

Title: example of blockchain_market_order_history
Post by: bitwiz on August 26, 2014, 04:56:25 pm
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
Title: Re: example of blockchain_market_order_history
Post by: xeroc on August 26, 2014, 06:05:21 pm
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
Title: Re: example of blockchain_market_order_history
Post by: bitwiz on August 26, 2014, 06:28:56 pm
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 !!
Title: Re: example of blockchain_market_order_history
Post by: xeroc on August 26, 2014, 06:34:14 pm
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 :)