Why this 2 order didn't match?

For this url:
http://blockscan.com/order.aspx


There are 2 orders which txid are 5445 & 5433.

[font=verdana]Why these 2 orders didn’t matched. Thanks.[/font]

I made new order for 100XCP/1BTC. It’s matched to the [font=verdana]5433 which is 64.14XCP/0.5965BTC.[/font]

[font=verdana]Is there anybody can explain the match priciple? The protocol specs is not so clear to understand. [/font]

[font=verdana]For example, if I want match this order, what’s command for it? [/font]
[font=verdana][color=rgb(51, 51, 51)][/color][/font][color=rgb(66, 139, 202)]5374[/color][color=rgb(66, 139, 202)]1HCPCB8HkeTZ1xWbdDjqciJ2cSk83zho22[/color][color=rgb(51, 51, 51)]4.5 BTC477.65 XCP0.00942112 BTC/XCP(204|500)0.042750.0001[/color][color=blue]477.65 XCP remain[/color]

[font=verdana]I tried "counterpartyd order --source xxx --[/font][font=verdana]get-quantity 477 --get-asset XCP --give-quantity[/font][font=verdana] 4.5 --give-asset BTC --expiration 100 --fee-fraction-required 0.04275 --fee-fract[/font][font=verdana]ion-provided 0.0001[/font]
[font=verdana]But it can not match those order[/font]
[font=verdana]
Thanks a lot.
[/font]

[quote author=amy link=topic=169.msg1161#msg1161 date=1394384619]
[font=verdana]For example, if I want match this order, what’s command for it? [/font]
[color=rgb(66, 139, 202)]5374[/color][color=rgb(66, 139, 202)]1HCPCB8HkeTZ1xWbdDjqciJ2cSk83zho22 [/color][color=rgb(51, 51, 51)]4.5 BTC 477.65 XCP 0.00942112 BTC/XCP (204|500) 0.04275 0.0001 [/color][color=blue]477.65 XCP remain[/color]

[font=verdana]I tried "counterpartyd order --source xxx --[/font][font=verdana]get-quantity 477 --get-asset XCP --give-quantity[/font][font=verdana] 4.5 --give-asset BTC --expiration 100 --fee-fraction-required 0.04275 --fee-fract[/font][font=verdana]ion-provided 0.0001[/font]
[font=verdana]But it can not match those order[/font]
[font=verdana]
Thanks a lot.
[/font]
[/quote]


I believe you should reverse the provided and required vice versa? (so when the other order requires something, the other should provide something accordingly). But the fees don’t have to match exactly. The BTC-fee-provided just has to be more than BTC-fee-required. And if I’m getting this right, the XCP-fee-provided is the fee (in BTC?) you pay when placing the buy-BTC-order? Seems the XCP-fee-required can be zero, but don’t know what’s the meaning of it, if it isn’t?


And also note that fees are fractional on command line but absolute amounts on blockscan.


Here’s a simple description:
https://www.counterparty.co/faqs/how-does-counterparty-handle-btc-payment-btcpay/


But that too doesn’t mention “the other way around”, meaning what happens if both orders have fee-required AND fee-provided?

I also post at bitcointalk. The right anwser is :


Since you are "giving" BTC, you need to switch your fee-fraction-provided and fee-fraction-required.



[quote author=amy link=topic=169.msg1192#msg1192 date=1394510653]
I also post at bitcointalk. The right anwser is :


Since you are "giving" BTC, you need to switch your fee-fraction-provided and fee-fraction-required.
[/quote]


Can you quote the answer in the OP and change the title of your thread to reflect that it has been answered ?  :wink: