Author

Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread - page 523. (Read 1276923 times)

sr. member
Activity: 335
Merit: 255
Counterparty Developer

Im not getting this running!

I have counterpartyd and counterpartyws cloned and counterpartyd installed, I try running the GUI but it says:

Code:
Traceback (most recent call last):
  File "counterpartyws.py", line 5, in
    import cherrypy
ImportError: No module named cherrypy

Do not clone counterpartyd but :

1) install countepartyd as explained here: http://counterpartyd-build.readthedocs.org/en/latest/

2) launch counterpartyd

3) clone countepartygui and type "bower install" to install the dependencies (see http://bower.io/)

4) clone counterpartyws and type
Code:
counterpartyws --counterpartyd-dir=/path/to/counterpartyd --counterpartygui-dir=/path/to/counterpartygui


P.S: cherrypy is missing: pip install cheerypy
full member
Activity: 214
Merit: 101
Are you on Windows or Linux?
newbie
Activity: 17
Merit: 0
So if my eyes are not deceiving me... there is a GUI out now ? lol. I know I'm impatient.

In fact, there's already a GUI available :
https://github.com/JahPowerBit/counterpartyws

But I don't know yet the best way to package the GUI with counterpartyd. Suggestions are welcomes.

If you are on Linux and counterpartyd already installed, it's very easy to install and use it.




Im not getting this running!

I have counterpartyd and counterpartyws cloned and counterpartyd installed, I try running the GUI but it says:

Code:
Traceback (most recent call last):
  File "counterpartyws.py", line 5, in
    import cherrypy
ImportError: No module named cherrypy

You have some hints plz? Example how to run it?


2nd Question:
Is there a way to update couterpartyd without reinstalling and reindexing from scratch?
hero member
Activity: 644
Merit: 500
Will there be a GUI for Mac? Sad

Wow, sellers are lining up in the order book.  The price of XCP is waiting to get slaughtered.
sr. member
Activity: 335
Merit: 255
Counterparty Developer
So if my eyes are not deceiving me... there is a GUI out now ? lol. I know I'm impatient.

In fact, there's already a GUI available :
https://github.com/JahPowerBit/counterpartyws

But I don't know yet the best way to package the GUI with counterpartyd. Suggestions are welcomes.

If you are on Linux and counterpartyd already installed, it's very easy to install and use it.


full member
Activity: 224
Merit: 100
CabTrader v2 | crypto-folio.com
well I set my config to just any old RPC password and its reindexing.. This is my 3rd attempt. how long should I wait before its too long ? Is 72 hours normal ?
full member
Activity: 224
Merit: 100
CabTrader v2 | crypto-folio.com
Hey so Patel can you explain just a little more what's the bitcoin.conf settings supposed to be.

I understand the reindex I tried it twice took over two days so I cut it off

Bitcoind -reindex

I'm assuming I can just use the counterparty
Exe installer and that's all I need ?

And then rebuild counterpartyd database ?
How ? Ha.

If you could just explain that I think it might click for me


Bitcoin.conf located in C:\Users\Owner\AppData\Roaming\Bitcoin should be set to:

rpcuser=rpc
rpcpassword=rpcpw1234


server=1
daemon=1
txindex=1

Save the file.

Click start, type cmd, press enter.

type: cd C:\Program Files (x86)\Bitcoin

press enter

type: bitcoin.exe -reindex

press enter

And wait like 6 hours for it to finish.


Can I set RPC username and RPC password to whatever ? Does it matter ?
full member
Activity: 224
Merit: 100
CabTrader v2 | crypto-folio.com
So if my eyes are not deceiving me... there is a GUI out now ? lol. I know I'm impatient.
full member
Activity: 210
Merit: 100
Are you, guys, still interested in a centralized exchange?

If so, I am selling my NXT/BTC exchange: https://nxtchg.com/sale.php



Might be worth it from a community standpoint and as an initial marketing vehicle to turn this into a dedicated market place for XCP with various other coins until the project is stable and is in an advanced beta stage. both decentralized alpha and the above can run in parallel at first until such time that "we" are ready. this way a market can get created with XCP based management

A committee can be created to which an investment is given and proceeds can be distributed back to investors all as a temporary market making vehicle.

just an idea....  Wink
full member
Activity: 216
Merit: 100
Are you, guys, still interested in a centralized exchange?

If so, I am selling my NXT/BTC exchange: https://nxtchg.com/sale.php



The bounty is specifically for adding XCP<->BTC exchange on an existing bounty or for creating an XCP<->BTC exchange. If you added XCP<->BTC to Nxtchg, you would be eligible for the bounty.
hero member
Activity: 756
Merit: 502
Following the excellent kanzure, xnova and phantomphreak suggestions, I separated GUI into two repositories:

The Webserver serving GUI: https://github.com/JahPowerBit/counterpartyws
The GUI: https://github.com/JahPowerBit/counterpartygui

Dependencies are exactly the same as counterpartyd, it should be easy to install if counterpartyd is already installed.

Any quick steps how to launch with source-compiled version of official counterpartyd?

Thanks!
hero member
Activity: 840
Merit: 1002
Simcoin Developer
Are you, guys, still interested in a centralized exchange?

If so, I am selling my NXT/BTC exchange: https://nxtchg.com/sale.php

hero member
Activity: 756
Merit: 502
I received a reply from btc-e about my inquiry regarding Counterparty.

Code:
Hello 

no planed

As Counterparty gets more traction I hope they will reconsider.

It worth pinging them after March, AFAIK they currently do not accept any new pairs.
It will also give XCP ample chance to growth.
sr. member
Activity: 262
Merit: 250
I received a reply from btc-e about my inquiry regarding Counterparty.

Code:
Hello 

no planed

As Counterparty gets more traction I hope they will reconsider.
legendary
Activity: 1176
Merit: 1134
A few years ago I did a study of the history of the stock exchanges. My emphasis was on the shift that occurred in the 1980s from member-based systems to fully electronic systems provided as a market-based service by a third party such as NASDAQ.  Although it was not my focus, I vaguely recall from my research reading about the problem of "backing away" as a long-standing and difficult problem faced by the stock exchange developers. Just as the name implies, "backing away" is the problem of a buyer placing an order and then not settling it within the settlement period, which is the same problem being discussed now amongst ourselves in the context of Counterparty.

While purpose of this post is not to offer a solution, I thought it was worthwhile to flag the fact that this "backing away" problem is not new in the world of exchanges and that it has a name and a history. While offhand I do not recall solutions that were ultimately tried and / or adopted, I shall try to dig thru my archives later today to see if I can uncover any insights from the early systems such as Instinet, Archipelago, etc

Ok, I just did a few quick searches, see page 32 and 42 of this report:
http://www.sec.gov/litigation/investreport/nd21a-report.txt

Looks like the term "firm order" is the antonym of "backing away" and is another keyword for community members to search in an effort to find historical solutions to this problem.


See: http://www.investopedia.com/terms/b/backingaway.asp

Definition of 'Backing Away'

Failure by a market maker in a security to honor the quoted bid and ask prices for a minimum quantity. Backing away constitutes a serious violation of industry regulations. NASD Regulation Inc uses an automated market surveillance system to enable the resolution of backing-away complaints in real time.
   
Investopedia explains 'Backing Away'

Backing away constitutes a breach of SEC Rule 11Ac1-1 or the firm quote rule, which requires a market maker to execute an order presented to it at a price at least as favorable as its published quotation, up to its published quotation size. A potential backing-away complaint has to be brought to the attention of the Market Regulation Department within five minutes of the alleged offense. Otherwise, it may be difficult for department staff to obtain a contemporaneous trade execution from the market maker.

NASD Regulation does not pursue immediate disciplinary action for an individual backing-away complaint where a contemporaneous trade execution from the market maker is obtained or offered. However, department staff keep a record of such transgressions, and repeated non-compliance with the firm quote rule could result in disciplinary action.

This definition of "Backing Away" is inapplicable to Counterparty's distributed exchange: The distributed exchange consists of peer-to-peer buying and selling assets, there is no market maker.
While there is no market maker, it sure has the same effect. Somebody says they will trade at a price and then they back away. I think we need some solution that doesnt increase the trading friction, but also doesnt let one side of the trade get such a large advantage. It is basically giving a free call option to one side, isn't it?
full member
Activity: 216
Merit: 100
A few years ago I did a study of the history of the stock exchanges. My emphasis was on the shift that occurred in the 1980s from member-based systems to fully electronic systems provided as a market-based service by a third party such as NASDAQ.  Although it was not my focus, I vaguely recall from my research reading about the problem of "backing away" as a long-standing and difficult problem faced by the stock exchange developers. Just as the name implies, "backing away" is the problem of a buyer placing an order and then not settling it within the settlement period, which is the same problem being discussed now amongst ourselves in the context of Counterparty.

While purpose of this post is not to offer a solution, I thought it was worthwhile to flag the fact that this "backing away" problem is not new in the world of exchanges and that it has a name and a history. While offhand I do not recall solutions that were ultimately tried and / or adopted, I shall try to dig thru my archives later today to see if I can uncover any insights from the early systems such as Instinet, Archipelago, etc

Ok, I just did a few quick searches, see page 32 and 42 of this report:
http://www.sec.gov/litigation/investreport/nd21a-report.txt

Looks like the term "firm order" is the antonym of "backing away" and is another keyword for community members to search in an effort to find historical solutions to this problem.


See: http://www.investopedia.com/terms/b/backingaway.asp

Definition of 'Backing Away'

Failure by a market maker in a security to honor the quoted bid and ask prices for a minimum quantity. Backing away constitutes a serious violation of industry regulations. NASD Regulation Inc uses an automated market surveillance system to enable the resolution of backing-away complaints in real time.
   
Investopedia explains 'Backing Away'

Backing away constitutes a breach of SEC Rule 11Ac1-1 or the firm quote rule, which requires a market maker to execute an order presented to it at a price at least as favorable as its published quotation, up to its published quotation size. A potential backing-away complaint has to be brought to the attention of the Market Regulation Department within five minutes of the alleged offense. Otherwise, it may be difficult for department staff to obtain a contemporaneous trade execution from the market maker.

NASD Regulation does not pursue immediate disciplinary action for an individual backing-away complaint where a contemporaneous trade execution from the market maker is obtained or offered. However, department staff keep a record of such transgressions, and repeated non-compliance with the firm quote rule could result in disciplinary action.

This definition of "Backing Away" is inapplicable to Counterparty's distributed exchange: The distributed exchange consists of peer-to-peer buying and selling assets, there is no market maker.
sr. member
Activity: 335
Merit: 255
Counterparty Developer
Following the excellent kanzure, xnova and phantomphreak suggestions, I separated GUI into two repositories:

The Webserver serving GUI: https://github.com/JahPowerBit/counterpartyws
The GUI: https://github.com/JahPowerBit/counterpartygui

Dependencies are exactly the same as counterpartyd, it should be easy to install if counterpartyd is already installed.

Code:
counterpartyws [-h] [--data-dir DATA_DIR]
               [--counterpartyd-dir COUNTERPARTYD_DIR]
               [--counterpartygui-dir COUNTERPARTYGUI_DIR]
               [--gui-host GUI_HOST] [--gui-port GUI_PORT]
               [--gui-user GUI_USER] [--gui-password GUI_PASSWORD]

Web server for Counterparty GUI

optional arguments:
  -h, --help            show this help message and exit
  --data-dir DATA_DIR   the directory in which to keep the config file
  --counterpartyd-dir COUNTERPARTYD_DIR
                        the directory in which counterpartyd is installed
  --counterpartygui-dir COUNTERPARTYGUI_DIR
                        the directory in which counterpartygui is installed
  --gui-host GUI_HOST   the host to provide the counterpartyd GUI
  --gui-port GUI_PORT   port on which to provide the counterpartyd GUI
  --gui-user GUI_USER   required username to use the counterpartyd GUI (via
                        HTTP basic auth)
  --gui-password GUI_PASSWORD
                        required password (for gui-user) to use the
                        counterpartyd GUI (via HTTP basic auth)
member
Activity: 82
Merit: 10
A few years ago I did a study of the history of the stock exchanges. My emphasis was on the shift that occurred in the 1980s from member-based systems to fully electronic systems provided as a market-based service by a third party such as NASDAQ.  Although it was not my focus, I vaguely recall from my research reading about the problem of "backing away" as a long-standing and difficult problem faced by the stock exchange developers. Just as the name implies, "backing away" is the problem of a buyer placing an order and then not settling it within the settlement period, which is the same problem being discussed now amongst ourselves in the context of Counterparty.

While purpose of this post is not to offer a solution, I thought it was worthwhile to flag the fact that this "backing away" problem is not new in the world of exchanges and that it has a name and a history. While offhand I do not recall solutions that were ultimately tried and / or adopted, I shall try to dig thru my archives later today to see if I can uncover any insights from the early systems such as Instinet, Archipelago, etc

Ok, I just did a few quick searches, see page 32 and 42 of this report:
http://www.sec.gov/litigation/investreport/nd21a-report.txt

Looks like the term "firm order" is the antonym of "backing away" and is another keyword for community members to search in an effort to find historical solutions to this problem.


See: http://www.investopedia.com/terms/b/backingaway.asp

Definition of 'Backing Away'

Failure by a market maker in a security to honor the quoted bid and ask prices for a minimum quantity. Backing away constitutes a serious violation of industry regulations. NASD Regulation Inc uses an automated market surveillance system to enable the resolution of backing-away complaints in real time.
   
Investopedia explains 'Backing Away'

Backing away constitutes a breach of SEC Rule 11Ac1-1 or the firm quote rule, which requires a market maker to execute an order presented to it at a price at least as favorable as its published quotation, up to its published quotation size. A potential backing-away complaint has to be brought to the attention of the Market Regulation Department within five minutes of the alleged offense. Otherwise, it may be difficult for department staff to obtain a contemporaneous trade execution from the market maker.

NASD Regulation does not pursue immediate disciplinary action for an individual backing-away complaint where a contemporaneous trade execution from the market maker is obtained or offered. However, department staff keep a record of such transgressions, and repeated non-compliance with the firm quote rule could result in disciplinary action.
full member
Activity: 214
Merit: 101
The thing I don't like about XCP escrow is the added complexity to what should really be a very simple function.

Agree. Having more than one mechanism to penalise BTCpay defaulters adds unnecessary complexity. Plus it damages order fungibility (the idea that any order can be matched against any other without the user having to jump through hoops.)

On the otherhand I don't see how to make large BTC Sell / XCP Buy orders reliable (troll prohibitive) but not fee inefficient without the escrow mechanism.

This is exactly what I'm attempting to address here:
https://forums.counterparty.co/index.php/topic,69.msg340.html#msg340

* the fee mechanism/concept kept simple - an XCP sell order always specifies his fee_required as a simple number (ideally proportional to the size of his order)
* the ability of an XCP buy order to match any sell order, providing the required fee as any combination of XCP and BTC he prefers
* the automatic refund of XCP fees upon BTCpay settlement

If implemented, this would result in:
* the vast majority of fees being paid in XCP (any sensible client would do this automatically where ever possible,) massively improving fee efficiency.
* serious troll deterrence, as matching any appreciably large sum of XCP and failing to BTCpay would cost you heavily (but it'd be free if you utilised the XCP fee and did BTCpay.)
* retained simplicity of the fee mechanism. XCP sellers just specify a single fee. XCP buyers can match any order on the book, paying the fee with whatever they have available. Software could automatically default optimal values very easily so that the user need never even think about fees.


I was thinking something similar - but a few questions.
Quote
* the fee mechanism/concept kept simple - an XCP sell order always specifies his fee_required as a simple number (ideally proportional to the size of his order)
* the ability of an XCP buy order to match any sell order, providing the required fee as any combination of XCP and BTC he prefers
Why do you think the fee should be specified as a number and not a percentage?  It already seems somewhat annoying that one has to think of how to set Give/Get Asset to try and get a certain proportion; plus this the pick a number would lead to greater incongruity in order matching (as opposed to everyone using say .5%).

I was going to suggest the protocol checking if the Sell BTC Address has a positive XCP balance > the required fee, and automatically escrowing the fee in XCP, unless they do not have enough, otherwise BTC. And then a minor prompt for the GUI to inform users i.e.


One more thing - if such a solution were to be implemented - the percentage of XCP returned / debited from the escrow based on insolvency should be matched order size based; for example if a user is matched for a 1000 XCP buy, and has .5% - 5 XCP in escrow, and he is insolvent, those 5XCP are burned/used as miners fees, but if he has an order for 1000 XCP matched and is matched for 10 XCP which he fails to resolve, it should only debit him for the 10/1000 proportion *5XCP in escrow and the rest should be returned on expiration. Otherwise it will be possible for unresolved dust or near-dust sized transactions to eat away at his escrow balance.


hero member
Activity: 588
Merit: 504
good proposal gacrux. agree with enforcement on client level rather than hardcoded protocol
Jump to: