Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: example of blockchain_market_order_history  (Read 314 times)

0 Members and 1 Guest are viewing this topic.

Offline bitwiz

  • Newbie
  • *
  • Posts: 13
    • View Profile
example of blockchain_market_order_history
« 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
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: 12336
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: example of blockchain_market_order_history
« Reply #1 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
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline bitwiz

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: example of blockchain_market_order_history
« Reply #2 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 !!
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: 12336
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: example of blockchain_market_order_history
« Reply #3 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 :)
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

 

Google+