BitShares Forum

Main => General Discussion => Topic started by: xeroc on December 16, 2014, 04:19:25 am

Title: FYI: relative asks/bids available in the CLI [update: commands available-0.4.27]
Post by: xeroc on December 16, 2014, 04:19:25 am
Code: [Select]
delegate (locked) >>> help wallet_market_submit_relative_ask
Usage:
wallet_market_submit_relative_ask <from_account_name> <sell_quantity> <sell_quantity_symbol> <relative_ask_price> <ask_price_symbol> [limit_ask_price]   Used to place a request to sell a quantity of assets at a price specified in another asset
Used to place a request to sell a quantity of assets at a price specified in another asset

Parameters:
  from_account_name (account_name, required): the account that will provide funds for the ask
  sell_quantity (string, required): the quantity of items you would like to sell
  sell_quantity_symbol (asset_symbol, required): the type of items you would like to sell
  relative_ask_price (string, required): the relative price per unit sold.
  ask_price_symbol (asset_symbol, required): the type of asset you would like to be paid
  limit_ask_price (string, optional, defaults to ""): the minimum price per unit sold.

Returns:
  transaction_record

aliases: relative_ask

and

Code: [Select]
delegate (locked) >>> help wallet_market_submit_relative_bid
Usage:
wallet_market_submit_relative_bid <from_account_name> <quantity> <quantity_symbol> <relative_price> <base_symbol> [limit_price]   Used to place a request to buy a quantity of assets at a price specified in another asset
Used to place a request to buy a quantity of assets at a price specified in another asset

Parameters:
  from_account_name (account_name, required): the account that will provide funds for the bid
  quantity (string, required): the quantity of items you would like to buy
  quantity_symbol (asset_symbol, required): the type of items you would like to buy
  relative_price (string, required): the price relative to the feed you would like to pay
  base_symbol (asset_symbol, required): the type of asset you would like to pay with
  limit_price (string, optional, defaults to ""): the limit on what you are willing to pay

Returns:
  transaction_record

aliases: relative_bid
Title: Re: FYI: relative asks/bids available in the CLI
Post by: clayop on December 16, 2014, 05:49:02 am
Probably someone is already using it in BitCNY market
Title: Re: FYI: relative asks/bids available in the CLI
Post by: Markus on December 16, 2014, 07:49:50 am
Is this not active in the current version or am I using it the wrong way?

I type this:
wallet_market_submit_relative_bid myaccountname "1" BTS "0.99" USD

and get a few pages of error messages starting with this:

Code: [Select]
10 assert_exception: Assert Exception
eval_state._current_state->get_head_block_num() >= BTS_V0_4_27_FORK_BLOCK_NUM:
{}
Title: Re: FYI: relative asks/bids available in the CLI
Post by: xeroc on December 16, 2014, 08:25:16 am
honest .. I couldn't try it yet .. but it seems that the 0.4.27 hard fork is required .. so we are not there yet :( false alarm ..
I apologize
Title: Re: FYI: relative asks/bids available in the CLI [update: commands available-0.4.27]
Post by: vikram on December 16, 2014, 05:38:36 pm
New operations such as this are still under development and not enabled in BTS. New features will be introduced in the official release notes when they are enabled.