Post
Topic
Board Announcements (Altcoins)
Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official
by
Bitye West
on 03/02/2014, 00:44:02 UTC
Install bitcoin, install the counterparty client, place an order:

C:\counterpartyd>python counterpartyd.py order
usage: counterpartyd order [-h] --from SOURCE --get-quantity GET_QUANTITY
                           --get-asset GET_ASSET --give-quantity GIVE_QUANTITY
                           --give-asset GIVE_ASSET --expiration EXPIRATION
                           [--fee_required FEE_REQUIRED]
                           [--fee_provided FEE_PROVIDED]

GET_ASSET would be XCP and GIVE_ASSET would be BTC if buying XCP. Expiration is in blocks.

Submit, and wait for an order match. Then use btcpay to pay for the order.

There, completely trustless and decentralized.



So if I want to sell 800 XCP for 8 BTC I would place the following order:

C:\counterpartyd>python counterpartyd.py order
usage: counterpartyd order [-h] --from SOURCE --get-quantity GET_QUANTITY
                           --get-asset GET_ASSET --give-quantity GIVE_QUANTITY
                           --give-asset GIVE_ASSET --expiration EXPIRATION
                           [--fee_required FEE_REQUIRED]
                           [--fee_provided FEE_PROVIDED]

GET_QUANTITY is 8
GET_ASSET is BTC
GIVE_QUANTITY is 800
GIVE_ASSET is XCP

EXPIRATION is the actual block number I want it to expire at? example: 283905

What do I input for SOURCE, FEE_REQUIRED, AND FEE_PROVIDED?

Code:
$ counterpartyd.py order --help
usage: counterpartyd order [-h] --from SOURCE --get-quantity GET_QUANTITY
                           --get-asset GET_ASSET --give-quantity GIVE_QUANTITY
                           --give-asset GIVE_ASSET --expiration EXPIRATION
                           [--fee_required FEE_REQUIRED]
                           [--fee_provided FEE_PROVIDED]

optional arguments:
  -h, --help            show this help message and exit
  --from SOURCE         the source address
  --get-quantity GET_QUANTITY
                        the quantity of GET_ASSET that you would like to
                        receive
  --get-asset GET_ASSET
                        the asset that you would like to sell
  --give-quantity GIVE_QUANTITY
                        the quantity of GIVE_ASSET that you are willing to
                        give
  --give-asset GIVE_ASSET
                        the asset that you would like to buy
  --expiration EXPIRATION
                        the number of blocks for which the order should be
                        valid
  --fee_required FEE_REQUIRED
                        the miners' fee required to be paid by orders for them
                        to match this one; in BTC; required iff buying BTC
                        (may be zero, though)
  --fee_provided FEE_PROVIDED
                        the miners' fee provided; in BTC; required iff selling
                        BTC (should not be lower than is required for
                        acceptance in a block)
$

If GET_QUANTITY is the quantity of GET_ASSET you would like to receive

Shouldn't GET_ASSET be the asset you would like to receive (buy)?


It looks to me like the words "buy" and "sell" are mixed up in the above code.