BitShares Forum

Main => General Discussion => Topic started by: bytemaster on September 30, 2014, 09:28:05 pm

Title: Short Rules for Wiki -> Please Update
Post by: bytemaster on September 30, 2014, 09:28:05 pm
Short orders can only get filled under these conditions:

1) There is someone willing to buy BitUSD at the price feed
2) AND Your short order is the highest collateral ratio order
3) AND Your price limit is lower than the feed  (BTSX per USD) or you didn't specify a price limit.
4) AND You have enough collateral to provide 2x backing at the trade price and quantity
5) OR Your price limit is higher than the feed (BTSX per USD) and someone is willing to buy at your price limit.

Short orders are forced to cover after 30 days by taking the best offers at the time.  No fee is charged.
Short orders are forced to cover when 75% of their collateral is required to cover, leaving the short with 25% of the collateral minus a 5% fee. 
The 5% fee is assessed as a percent of the collateral left over after covering.





Title: Re: Short Rules for Wiki -> Please Update
Post by: Method-X on September 30, 2014, 09:32:39 pm
 +5% +5% +5%
Title: Re: Short Rules for Wiki -> Please Update
Post by: xeroc on September 30, 2014, 09:36:59 pm
http://www.reddit.com/r/BitShares/comments/2hxhgk/rules_shorting_bitassets_in_short/

I'd like to add this to the wiki, but I am afraid my understanding of the economics is not sufficient at this stage .. but I am sure some smart guys around can help out here :)

@BM: Much appreciated - Thx
+5%
Title: Re: Short Rules for Wiki -> Please Update
Post by: tonyk on September 30, 2014, 09:53:19 pm
http://www.reddit.com/r/BitShares/comments/2hxhgk/rules_shorting_bitassets_in_short/

I'd like to add this to the wiki, but I am afraid my understanding of the economics is not sufficient at this stage .. but I am sure some smart guys around can help out here :)

@BM: Much appreciated - Thx
+5%

Do not worry, just throw the following in the second or third line...

"Matched short orders are recorded in BTSX blockchain using 'elliptic curves' especially Secp256k1"

 and no one will dare to read what you have written after that !

Seriously...short orders are 4th grade math compared to that so it should work fine.
Title: Re: Short Rules for Wiki -> Please Update
Post by: xeroc on September 30, 2014, 10:09:15 pm
Lol .. you made my day .. i will get started tomorrow and collect some related threads first. ...

If someone else were to already have written something during my night .. that would be also ok .. can iterate and contribute ..

Till then .. reading you tomorrow

//edit: need more time .. couldn't get started today :(
will have some time when in plane back to Germany for the weekend
Title: Re: Short Rules for Wiki -> Please Update
Post by: pariah99 on October 02, 2014, 01:00:05 am
Are these conditions live in the current v0.4.18, or are they going to be added in the client?  I have an order that I believe which meets the conditions which is not executing.

Also, in order for you to be able to execute reasonably soon, wouldn't you need to put up at least 2x the price feed as collateral?  I ask because the GUI client currently puts the price feed (1x) as collateral when you click the feed price limit, implying that it won't execute until the price goes below half the price feed at time of order entry.  I don't think a lot of users realize that their orders are not executing because they don't meet the required collateral.

Also, not to be too pedantic, does the logic of the rules apply in the order that was spelled out by bytemaster?  i.e., if somebody had a sufficiently high collateral ratio but did not have the HIGHEST ratio, but they had a lower price limit, should that order execute?
Title: Re: Short Rules for Wiki -> Please Update
Post by: Method-X on October 02, 2014, 01:02:52 am
Are these conditions live in the current v0.4.18, or are they going to be added in the client?  I have an order that I believe which meets the conditions which is not executing.

Rules 1-5 are live but the rule about shorts being forced to cover after 30 days will be in 0.4.19
Title: Re: Short Rules for Wiki -> Please Update
Post by: pariah99 on October 02, 2014, 01:16:04 am
I'm concerned that if the rules are applied in series, then somebody could potentially put in a short order for a very small amount of bitUSD with a ridiculously high collateral ratio and a similarly high price limit, and that would prevent all shorts from executing.

I tried two orders:

Initial conditions: The price feed is at 30.8290 BTSX/BitUSD, there is a buy order for 0.7009 BitUSD at a price of 30.2029BTSX/BitUSD, the lowest sell order is at 30.2777 BTSX/BitUSD

Order 1: I put in a short for 0.7009 BitUSD at a price limit of 30.2029BTSX/BitUSD with a collateral ratio of 75 BTSX/BitUSD (which was not the highest collateral ratio on the books).  It didn't execute.

Order 2: I put in the same order, but this time I made sure it had the highest collateral ratio.  It didn't execute either.
Title: Re: Short Rules for Wiki -> Please Update
Post by: bytemaster on October 02, 2014, 03:26:08 am
Neither order will match because the buys are not at the feed price or above.
Title: Re: Short Rules for Wiki -> Please Update
Post by: pariah99 on October 02, 2014, 04:22:08 am
Sorry, I realized that I misread the first condition as being at the short price.  Makes perfect sense now.
Title: Re: Short Rules for Wiki -> Please Update
Post by: xeroc on October 03, 2014, 03:59:53 am
I just started writing some few lines into the wiki.
http://wiki.bitshares.org/index.php/Bitshares-x-Short

I will be offline for the weekend .. so you guys can take the freedom and continue on that ..
Title: Re: Short Rules for Wiki -> Please Update
Post by: bytemaster on October 03, 2014, 01:00:43 pm
I just started writing some few lines into the wiki.
http://wiki.bitshares.org/index.php/Bitshares-x-Short

I will be offline for the weekend .. so you guys can take the freedom and continue on that ..

Great work.. there are many typos (probably from my own writing)... it would be great to have someone proof read it all.
Title: Re: Short Rules for Wiki -> Please Update
Post by: xeroc on October 03, 2014, 03:12:35 pm
Was typing most parts in a plane :) .. cannot do it until tuesday ..