Author

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

member
Activity: 86
Merit: 10
Hi guys.
Can you please explain me how to make a bet and deal with it on http://www.blockscan.com/broadcast.aspx ?
I was wondering to create some bets at oncoming winter olympic in Sochi. I'd like to get some people involved in betting that don't have a clue in all command promps.
It would be wonderful to create something with user friendly GUI similar to this table/schedule from official olympic website: http://www.sochi2014.com/en but I guess it may be to early for some advanced features  Smiley

Edit: link did't work
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Could this be a floating point issue with the division of XCP amount by BTC amount?

If so maybe it could be resolved by checking for price >= threshold instead of trying to find exact matches?

I believe it is. Thats why there is an order with a negative balance remaining.

Hmm. Maybe a better solution: instead of using --get-quantity and --give quantity and making counterpartyd do a division, what about using --give-quantity and --price, where --price is the price per unit (1) of the asset you are giving? counterpartyd can then calculate the --get-quantity by doing a multiply...no divisions required.

This way the price you submit is completely explicit instead of calculated.

Just another reminder this software is still in ALPHA...let's not get carried away speculating on aftermarket valuation while there are still floating-point bugs to iron out  Grin

I'll get into this again, and I'll solve the problem once and for all. Stay tuned.
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Hi,

Need more guidance on how to actually use the bet/feed system.

What I think I'm trying to do:
Enter a bet from 1Fz5idgemYfsszRMmaQNd2Anvm2JytAoU (my XCP account) to feed 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN (super bowl feed) to bet 1 XCP that Denver (2) will win at or before block 290000 (random estimate in future).

What I entered:

C:\counterpartyd>python counterpartyd.py bet --from 1Fz5idgemYfsszRMmaQNd2Anvm2J
ytAoU --feed-address 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN --bet-type Equal --deadl
ine 290000 --wager 1 --counterwager 1 --target-value 2 --expiration 2
Traceback (most recent call last):
  File "counterpartyd.py", line 564, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'

Don't know what to put in expiration because anything is giving me errors.

That error message sure isn't very helpful! The problem is that deadlines are specified in actual times, not block numbers, and moreover in human-readable formats, such as 'Mon Feb  3 10:00:00 UTC 2014'. (I actually haven't figured out myself exactly what datetime will accept, yet... it won't take Unix time, for no reason.)

The expiration is the maximum number of blocks that you want your bet to be available to be matched for.

What is the correct syntax?

C:\counterpartyd>python counterpartyd.py bet --from 1Fz5idgemYfsszRMmaQNd2Anvm2J
ytAoU --feed-address 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN --bet-type Equal --deadl
ine "Mon Feb 3 10:00:00 UTC 2014" --wager 1 --counterwager 1 --target-value 2 --
expiration 1000
Traceback (most recent call last):
  File "counterpartyd.py", line 564, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'

Tried ' ' (get counterpartyd: error: unrecognized arguments: Feb 3 10:00:00 UTC 2014'), " ", and "' '".

It looks like you may be having the same problem that BiggestFish was seeing: try wrapping the date in another set of single quotes.
sr. member
Activity: 364
Merit: 264
Did anyone happen to interview Satoshi? Smiley
legendary
Activity: 1320
Merit: 1007
Hey guys I'm getting ready to make  professional style interview based commercial for counterparty. I'm starting a small fund to pay the cinematographer nothing too crazy donate xcp and BTC if you can. I'm gonna have some examples of his work including my interview and writing skills

Just for my own curiosity but how do you plan to accomplish conducting a video interview of a dev team that is anon? 

Perhaps people need to spend some time researching the project. Smiley

He never said anything about interviewing the dev team..
legendary
Activity: 1666
Merit: 1010
he who has the gold makes the rules
Hey guys I'm getting ready to make  professional style interview based commercial for counterparty. I'm starting a small fund to pay the cinematographer nothing too crazy donate xcp and BTC if you can. I'm gonna have some examples of his work including my interview and writing skills

Just for my own curiosity but how do you plan to accomplish conducting a video interview of a dev team that is anon? 

Perhaps people need to spend some time researching the project. Smiley

sr. member
Activity: 364
Merit: 264
Hi,

Need more guidance on how to actually use the bet/feed system.

What I think I'm trying to do:
Enter a bet from 1Fz5idgemYfsszRMmaQNd2Anvm2JytAoU (my XCP account) to feed 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN (super bowl feed) to bet 1 XCP that Denver (2) will win at or before block 290000 (random estimate in future).

What I entered:

C:\counterpartyd>python counterpartyd.py bet --from 1Fz5idgemYfsszRMmaQNd2Anvm2J
ytAoU --feed-address 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN --bet-type Equal --deadl
ine 290000 --wager 1 --counterwager 1 --target-value 2 --expiration 2
Traceback (most recent call last):
  File "counterpartyd.py", line 564, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'

Don't know what to put in expiration because anything is giving me errors.

That error message sure isn't very helpful! The problem is that deadlines are specified in actual times, not block numbers, and moreover in human-readable formats, such as 'Mon Feb  3 10:00:00 UTC 2014'. (I actually haven't figured out myself exactly what datetime will accept, yet... it won't take Unix time, for no reason.)

The expiration is the maximum number of blocks that you want your bet to be available to be matched for.

What is the correct syntax?

C:\counterpartyd>python counterpartyd.py bet --from 1Fz5idgemYfsszRMmaQNd2Anvm2J
ytAoU --feed-address 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN --bet-type Equal --deadl
ine "Mon Feb 3 10:00:00 UTC 2014" --wager 1 --counterwager 1 --target-value 2 --
expiration 1000
Traceback (most recent call last):
  File "counterpartyd.py", line 564, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'

Tried ' ' (get counterpartyd: error: unrecognized arguments: Feb 3 10:00:00 UTC 2014'), " ", and "' '".
legendary
Activity: 1320
Merit: 1007
Could this be a floating point issue with the division of XCP amount by BTC amount?

If so maybe it could be resolved by checking for price >= threshold instead of trying to find exact matches?

I believe it is. Thats why there is an order with a negative balance remaining. Its a rounding issue.
legendary
Activity: 1320
Merit: 1007
Another rounding issue that these don't match?

Code:
        0.013        |    BTC     |     10.0     |    XCP    |         0.0013         |   BTC/XCP    | 0.0001 |    420    | dd122ee0...c74fe09c |
|        2248.0       |    XCP     |     3.0      |    BTC    |         0.0013         |   BTC/XCP    | 0.001  |    247    | aff5a8d5...311b7e46 |

Code:
2873        |	0.025 BTC        |	25 XCP        |	0.001 BTC/XCP        |	5        |	25 XCP remain

2865        | 25 XCP        | 0.025 BTC        | 1000 XCP/BTC        |      420        | 0.025 BTC remain


Same, trying to figure out why those orders didn't fill each other

newbie
Activity: 25
Merit: 0
Another rounding issue that these don't match?

Code:
        0.013        |    BTC     |     10.0     |    XCP    |         0.0013         |   BTC/XCP    | 0.0001 |    420    | dd122ee0...c74fe09c |
|        2248.0       |    XCP     |     3.0      |    BTC    |         0.0013         |   BTC/XCP    | 0.001  |    247    | aff5a8d5...311b7e46 |
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Hello XCP peoples!

I am James, active member of the NXT community and I really like what you are doing. Burned some BTC so I am also one of the XCP peoples.

I believe there is room in the growing crypto world for many different solutions to succeed. Of course, XCP must dominate mastercoin!

I just wanted to reach out and maybe there are ways we can help each other. NXT is already on many exchanges and has close to 20,000 accounts. Maybe it makes sense for XCP to be listed in NXT Asset Exchange? This would create a market for XCP and avoid all the fiat hassles as there is also a path from NXT -> ripple -> fiat.

I am busy managing the NXTcommunityfund, which just received over 2 million NXT so I personally don't have the time, but I am sure I can find somebody over in NXT community who would love to help or become an XCP gateway into the NXT Asset Exchange.

Still getting up to speed with XCP, so not sure if it is possible to get NXT listed within counterparty. If it is possible, I am interested in seeing how that can be done, etc.

James


James,

Thank you for your interest in Counterparty!

Getting NXT listed within Counterparty would be a bit tricky. Even if someone created asset REALNXT in Counterparty and sold them, he would have to 'back' REALNXT with NXT, and make a sort-of IOU out of it, such that REALNXT can be redeemed for NXT. The mechanism by which the latter happens will have to be determined by the issuer of REALNXT, of course, though I do have some ideas as to how this could be done.

It would be great if XCP could be sold on NXT Asset Exchange, though I do not know whether this is possible.

If you are interested in further discussing things further, please PM me or have someone from the NXT community PM me.
Let's do this!
It will be a huge boost for both projects, they share many things in common.

Maybe I'm wrong but I think that there is a relatively easy way to do this:

Say Alice is a Counterparty user and Bob is a NXT user. Alice and Bob want to get their respective tokens "into" each others systems. They can set up a multisig address (2 of 2) on each system to which they both have 1 of the keys. They can both add some amount (say $10,000 worth) of their tokens into the multisig addresses. So now the NXT address has say 20,000 NXT and the Counterparty address has 4,000 XCP. Both Alice and Bob can define the appropriate assets/colored coins. They are effectively performing escrow for each other. In this manner you are actually "backing" NXT assets with NXT and XCP assets with XCP.

Of course there are all sorts of potential issues with this such as - how do you know that Alice and Bob aren't the same person. In the long-term that doesn't matter because both Alice and Bob will be DACs. You could technically trade between an "XCP colored NXT" and an "NXT colored XCP" via "Alice and Bob".

So there's an answer to your earlier question James: The most valuable DACs? - How about one which facilitates interoperability between decentralized exchanges.

Another neat way of doing this would be to extend the Counterparty Protocol across both Bitcoin and NXT (using the arbitrary message system)! This would mean the NXT system could have colored coins on top of colored coins. "This coin represents a Counterparty token which represents my deeds to this house".

OK, I am in generalist mode so all these nesting of coins on assets on coins is making my head spin. However, from my ripple experience, I know that the biggest barrier to making it useful is the gateways. gateways that issue the IOU by and large suck. They are slow, or buggy or get hacked and go out of business (happened already!), etc.

Now forgive me if I am totally wrong on the details I am speaking generally.
What I would like to see is a TOTALLY automated way to make trades of the actual NXT and XCP. Within counterparty you can trade real XCP for ... not sure, but what if you could directly trade real XCP for real NXT without any actual gateway. It just automagically worked?

Similarily if in NXT if you could trade real XCP for real NXT, automagically.

If technically this is a DAC, then I think I can make executive decision and authorized 100,000 NXT bounty for a working implementation.

James

P.S. I will cross post this on NXT forum. Very cool if this is actually possible.

There aren't any gateways in Counterparty, and the issuers of assets won't every be slow, buggy or get hacked.

NXT and XCP, as far as I know, are simply not compatible. I don't think it's possible, with current technology, to trade one for the other directly. (Cross-chain atomic trades *are* possible, but the devil is in the details, there.)
legendary
Activity: 1176
Merit: 1134
Hello XCP peoples!

I am James, active member of the NXT community and I really like what you are doing. Burned some BTC so I am also one of the XCP peoples.

I believe there is room in the growing crypto world for many different solutions to succeed. Of course, XCP must dominate mastercoin!

I just wanted to reach out and maybe there are ways we can help each other. NXT is already on many exchanges and has close to 20,000 accounts. Maybe it makes sense for XCP to be listed in NXT Asset Exchange? This would create a market for XCP and avoid all the fiat hassles as there is also a path from NXT -> ripple -> fiat.

I am busy managing the NXTcommunityfund, which just received over 2 million NXT so I personally don't have the time, but I am sure I can find somebody over in NXT community who would love to help or become an XCP gateway into the NXT Asset Exchange.

Still getting up to speed with XCP, so not sure if it is possible to get NXT listed within counterparty. If it is possible, I am interested in seeing how that can be done, etc.

James


James,

Thank you for your interest in Counterparty!

Getting NXT listed within Counterparty would be a bit tricky. Even if someone created asset REALNXT in Counterparty and sold them, he would have to 'back' REALNXT with NXT, and make a sort-of IOU out of it, such that REALNXT can be redeemed for NXT. The mechanism by which the latter happens will have to be determined by the issuer of REALNXT, of course, though I do have some ideas as to how this could be done.

It would be great if XCP could be sold on NXT Asset Exchange, though I do not know whether this is possible.

If you are interested in further discussing things further, please PM me or have someone from the NXT community PM me.
Let's do this!
It will be a huge boost for both projects, they share many things in common.

Maybe I'm wrong but I think that there is a relatively easy way to do this:

Say Alice is a Counterparty user and Bob is a NXT user. Alice and Bob want to get their respective tokens "into" each others systems. They can set up a multisig address (2 of 2) on each system to which they both have 1 of the keys. They can both add some amount (say $10,000 worth) of their tokens into the multisig addresses. So now the NXT address has say 20,000 NXT and the Counterparty address has 4,000 XCP. Both Alice and Bob can define the appropriate assets/colored coins. They are effectively performing escrow for each other. In this manner you are actually "backing" NXT assets with NXT and XCP assets with XCP.

Of course there are all sorts of potential issues with this such as - how do you know that Alice and Bob aren't the same person. In the long-term that doesn't matter because both Alice and Bob will be DACs. You could technically trade between an "XCP colored NXT" and an "NXT colored XCP" via "Alice and Bob".

So there's an answer to your earlier question James: The most valuable DACs? - How about one which facilitates interoperability between decentralized exchanges.

Another neat way of doing this would be to extend the Counterparty Protocol across both Bitcoin and NXT (using the arbitrary message system)! This would mean the NXT system could have colored coins on top of colored coins. "This coin represents a Counterparty token which represents my deeds to this house".

OK, I am in generalist mode so all these nesting of coins on assets on coins is making my head spin. However, from my ripple experience, I know that the biggest barrier to making it useful is the gateways. gateways that issue the IOU by and large suck. They are slow, or buggy or get hacked and go out of business (happened already!), etc.

Now forgive me if I am totally wrong on the details I am speaking generally.
What I would like to see is a TOTALLY automated way to make trades of the actual NXT and XCP. Within counterparty you can trade real XCP for ... not sure, but what if you could directly trade real XCP for real NXT without any actual gateway. It just automagically worked?

Similarily if in NXT if you could trade real XCP for real NXT, automagically.

If technically this is a DAC, then I think I can make executive decision and authorized 100,000 NXT bounty for a working implementation.

James

P.S. I will cross post this on NXT forum. Very cool if this is actually possible.
legendary
Activity: 1320
Merit: 1007
Can someone explain how to match an order?

I placed an order for the exact opposite of someones order, but it didn't fill.


edit: also there was an order that got filled (not mine) but a negative balance remains

2872   0.5 MPTSTOCK   1014.90909091 XCP   0.000492654962378634 MPTSTOCK/XCP   10   -0.00000909 XCP remain
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
I am trying to do a broadcast but the command-line argument parser seems to be having difficulty with spaces in the --text argument.

My command:

counterpartyd broadcast --from 1LX3cVsKDBuAP19ngnqvAzMXDcWpwdjVgY --text "Super Bowl Bet Feed: 0=Incomplete 1=Seattle Win 2=Denver Win" --value 0 --fee-multiplier 0

Result:

counterpartyd: error: unrecognized arguments: Bowl Bet Feed: 0=Incomplete 1=Seattle Win 2=Denver Win

What's the format for the text argument?

EDIT: Solved. You need to put another set of quotes around the text to deal with the spaces:

for example instead of --text="Super Bowl" you use --text="'Super Bowl'"

That's funny. I'll try to fix that.


I have a question about XCP transactions. I know the minimum fee is 0.0001 BTC, but where do the BTC in the "Escrow" fields get sent to?

For example, in the Super Bowl broadcast I just published there are 3 "Escrow" receivers:
https://blockchain.info/tx/156a08f2fd5f1c0280dbe464e862948ee0d8f81c1b8cd70b622cea1f15a363a4

What is the purpose of this? Where do those 0.0001086 BTC go?


Those addresses The second two addresses in each escrow are the fake addresses in which the Counterparty data is stored. Those 0.0001086 BTC return to you in a multi-sig 1-of-3 output.

How/when do those 0.0001086 BTC get returned to me?

I'm not sure exactly which clients support spending multi-sig outputs, but the coins are definitely yours right now.
legendary
Activity: 1320
Merit: 1007
Guys, just a reminder, if anyone can contribute to our our desktop GUI bounty, please do.

The address is 12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs

We currently are up to around 6.4 BTC and ~1680 XCP.

BTC: https://blockchain.info/address/12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs
XCP: http://blockscan.com/balance.aspx?q=12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs

There is 3x 0.5 btc donations, 1btc and one about 1.5btc donation. So total 4 btc from bigger amounts and about 1-1.5btc in xcp. If look this against total burned money its look like really many people have think to join free train  Huh Total donations is about 0.28% of burned moneys, its really bad work from community...

Might be because the whole balance of donation address will go to paying the developer of the client.

The community will set up alternate donation addresses for other bounties like marketing and the commercial halfcab is working on.
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
I am trying to do a broadcast but the command-line argument parser seems to be having difficulty with spaces in the --text argument.

My command:

counterpartyd broadcast --from 1LX3cVsKDBuAP19ngnqvAzMXDcWpwdjVgY --text "Super Bowl Bet Feed: 0=Incomplete 1=Seattle Win 2=Denver Win" --value 0 --fee-multiplier 0

Result:

counterpartyd: error: unrecognized arguments: Bowl Bet Feed: 0=Incomplete 1=Seattle Win 2=Denver Win

What's the format for the text argument?

EDIT: Solved. You need to put another set of quotes around the text to deal with the spaces:

for example instead of --text="Super Bowl" you use --text="'Super Bowl'"

That's funny. I'll try to fix that.


Hmm. I'm not having that problem. Is anyone else? What platform are you on, BiggestFish?

I'm on Ubuntu 13.10. I think the 2 sets of quotes are so that bash can read it, strip the outlying set of quotes, and then pass to python?

I'm using Bash and I don't need to nest any quotes...
full member
Activity: 219
Merit: 102
Guys, just a reminder, if anyone can contribute to our our desktop GUI bounty, please do.

The address is 12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs

We currently are up to around 6.4 BTC and ~1680 XCP.

BTC: https://blockchain.info/address/12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs
XCP: http://blockscan.com/balance.aspx?q=12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs

There is 3x 0.5 btc donations, 1btc and one about 1.5btc donation. So total 4 btc from bigger amounts and about 1-1.5btc in xcp. If look this against total burned money its look like really many people have think to join free train  Huh Total donations is about 0.28% of burned moneys, its really bad work from community...
full member
Activity: 224
Merit: 100
CabTrader v2 | crypto-folio.com
Hey guys I'm getting ready to make  professional style interview based commercial for counterparty. I'm starting a small fund to pay the cinematographer nothing too crazy donate xcp and BTC if you can. I'm gonna have some examples of his work including my interview and writing skills
sr. member
Activity: 390
Merit: 254
Counterparty Developer
Guys, just a reminder, if anyone can contribute to our our desktop GUI bounty, please do.

The address is 12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs

We currently are up to around 6.4 BTC and ~1680 XCP.

BTC: https://blockchain.info/address/12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs
XCP: http://blockscan.com/balance.aspx?q=12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Hi,

Need more guidance on how to actually use the bet/feed system.

What I think I'm trying to do:
Enter a bet from 1Fz5idgemYfsszRMmaQNd2Anvm2JytAoU (my XCP account) to feed 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN (super bowl feed) to bet 1 XCP that Denver (2) will win at or before block 290000 (random estimate in future).

What I entered:

C:\counterpartyd>python counterpartyd.py bet --from 1Fz5idgemYfsszRMmaQNd2Anvm2J
ytAoU --feed-address 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN --bet-type Equal --deadl
ine 290000 --wager 1 --counterwager 1 --target-value 2 --expiration 2
Traceback (most recent call last):
  File "counterpartyd.py", line 564, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'

Don't know what to put in expiration because anything is giving me errors.

In addition, what command would I need to enter to take the other side of jimhsu's bet?

You'll want to pick exactly the same date and time that he does, and then you want to change 'Equal' to 'NotEqual'. That's it.
Jump to: