BitShares Forum

Main => General Discussion => Topic started by: sudo on July 31, 2015, 08:21:51 am

Title: first expiration and then Forced to cover BUG!!!!
Post by: sudo on July 31, 2015, 08:21:51 am
call price 210.xxx  > margin call orders(expiration  )
still at  call price 210.xxx  not  110% call price
big bug

(https://cloud.githubusercontent.com/assets/10720816/9003376/2085fd8e-37a0-11e5-9d42-98cfed2f18d1.png)
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: svk on July 31, 2015, 08:30:48 am
I don't get it, what's the bug?

Expired shorts cover at call price, margin called shorts cover at 110%
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on July 31, 2015, 08:42:40 am
Expired shorts cover at call price, margin called shorts cover at 110%
yes

but  when Expired shorts turn to margin called shorts,it didn't move  from  call price to 110%
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: xeroc on July 31, 2015, 08:48:54 am
but  when Expired shorts turn to margin called shorts,it didn't move  from  call price to 110%
Not sure it is supposed to ... @pc @bytemaster
Should an expired short be called?
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: svk on July 31, 2015, 09:34:48 am
Expired shorts cover at call price, margin called shorts cover at 110%
yes

but  when Expired shorts turn to margin called shorts,it didn't move  from  call price to 110%

OK I understand, but do keep in mind that what you see in the web wallet may not exactly correspond to what happens on the blockchain. Currently the expired shorts take precedence over margin called shorts in the web wallet, meaning if a short is both expired and margin called, it will be treated as expired only.

I actually asked for clarification on this quite some time ago but never got an answer:

https://bitsharestalk.org/index.php/topic,15668.msg201803.html#msg201803
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on July 31, 2015, 09:36:52 am
but  when Expired shorts turn to margin called shorts,it didn't move  from  call price to 110%
Not sure it is supposed to ... @pc @bytemaster
Should an expired short be called?

all orders  should  be  treated under the same standard &rules

now  bitUSD is more expensive than USD
0 interest short orders Expired serveral  months (about 50k bitUSD)

now  call price orders is safe  a little of them is covered

Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on July 31, 2015, 09:40:49 am
a short is both expired and margin called, it will be treated as expired only.
it's dangerous
margin called ,margin is not enough
when price continue to down,system failure risk maybe happen
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: svk on July 31, 2015, 09:44:57 am
Here's what it looks like right now if I switch around the logic:

(http://i.imgur.com/y0el4Rl.png) (http://imgur.com/y0el4Rl)
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on July 31, 2015, 09:48:29 am
Here's what it looks like right now if I switch around the logic:

(http://i.imgur.com/y0el4Rl.png) (http://imgur.com/y0el4Rl)

so it's GUI bug?
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on July 31, 2015, 09:52:04 am
I can't find  230.4598 orders

http://bitsharesblocks.com/asset/orderbook?asset=USD
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: svk on July 31, 2015, 11:20:35 am
I can't find  230.4598 orders

http://bitsharesblocks.com/asset/orderbook?asset=USD

bitsharesblocks handles this the same way as the wallet.

If we can get confirmation from bm or someone else of how it actually works I can change the logic behind it.
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: EstefanTT on July 31, 2015, 12:30:05 pm
We had some weird behaviour of the platform lately with CyclonMaker when shorting or trying to roll over our shorts.

I started a thread to gather some answers.

We had almost all the answers we needed here ;

https://bitsharestalk.org/index.php/topic,17588.0.htm  (https://bitsharestalk.org/index.php/topic,17588.0.htm)

As you'll see, there one last unsolved mystery. Sometimes, you short bitxxx or you sell bitxxx above the highest buyer and it get bought instantaneously by an "invisible" buyer. That happens without any margin call shorts being there or even above 10% the price of the margin call when there is some.

Nobody answers that. It would be great if someone could clarify the situation.



Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: arhag on July 31, 2015, 01:57:41 pm
If we can get confirmation from bm or someone else of how it actually works I can change the logic behind it.

Should be simple enough to test. Someone sell a small amount of BitUSD at a price of 230 BTS/BitUSD and see if it gets filled and causes the amount of the cover order at the 230.4598 BTS/BitUSD price to decrease by the corresponding amount. Obviously adjust the numbers to reflect whatever they happen to be at the present time (I haven't checked if they changed).
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: EstefanTT on July 31, 2015, 02:36:58 pm
I tried it. I did snapshops (3) during the process.

You can see them in the link I gave in my previous comment.

I sold 1bitusd above the margin call and it get bought instantaneously.

The 3 snapshots have been taken in less then 10 sec. As soon as the order hit the blockchain, it got fill.

The margin call short sum didn't change after the bitusd has been sold. So it doesn't seem that is the margin call shorts.

Is it possible that someone is running a bot that place order as soon as it find a price that interest it ?
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on August 05, 2015, 05:37:02 am
(https://cloud.githubusercontent.com/assets/10720816/9078922/eaa4cf3a-3b76-11e5-88b1-adec1e61ed95.png)
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: cylonmaker2053 on August 05, 2015, 02:24:39 pm
I tried it. I did snapshops (3) during the process.

You can see them in the link I gave in my previous comment.

I sold 1bitusd above the margin call and it get bought instantaneously.

The 3 snapshots have been taken in less then 10 sec. As soon as the order hit the blockchain, it got fill.

The margin call short sum didn't change after the bitusd has been sold. So it doesn't seem that is the margin call shorts.

Is it possible that someone is running a bot that place order as soon as it find a price that interest it ?

it still feels like there might be a bot with priority access to trades.
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: EstefanTT on August 05, 2015, 03:47:38 pm
I had the same yesterday. I sold a BitUSD and it has been bought instantaneously. This time, I observed the expired short and they are the ones buying my sell order.

I did some checking with some BitUSD, the "wall" is probably composed of expired and margin call shorts.

If you want to short and don't be bought directly so you have time to buy your own short order and roll over, you have to place it 10 % above the wall or above the highest margin call if there are.

In fact you can see more or less where is the 10% limit looking at the selling orders column. The cheaper one is above the limit (obviously, if not it would have been bought), so if you short slightly cheaper than it, you shouldn't have any problem.

You can also calculate the 10% and short above.

I use to sell 1 BitUSD as a test before roll over my shorts. If the BitUSD remain there unsold, you're good to go ! As long as the wall price/ price feed don't change, you can roll over the other shorts you have without having to use the 1 BitUSD test.

I understand it better when looking the order book on bitshgares blocks ;)



Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: cylonmaker2053 on August 07, 2015, 05:11:34 pm
I had the same yesterday. I sold a BitUSD and it has been bought instantaneously. This time, I observed the expired short and they are the ones buying my sell order.

I did some checking with some BitUSD, the "wall" is probably composed of expired and margin call shorts.

If you want to short and don't be bought directly so you have time to buy your own short order and roll over, you have to place it 10 % above the wall or above the highest margin call if there are.

In fact you can see more or less where is the 10% limit looking at the selling orders column. The cheaper one is above the limit (obviously, if not it would have been bought), so if you short slightly cheaper than it, you shouldn't have any problem.

You can also calculate the 10% and short above.

I use to sell 1 BitUSD as a test before roll over my shorts. If the BitUSD remain there unsold, you're good to go ! As long as the wall price/ price feed don't change, you can roll over the other shorts you have without having to use the 1 BitUSD test.

I understand it better when looking the order book on bitshgares blocks ;)

cool, thx for the update. i've actually been doing the exact same thing rolling over some of my short positions. i first test with a 1 bitUSD order, which i sometimes still sloppily mess up, but the consequence are small; if it sits on the order book without executing, then i'll put in my actual order by simultaneously submitting the buy and short.
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on August 08, 2015, 02:19:21 pm
why not fix it?

expiration & margin call orders  didn't  at 110% price feed

if price still going down  some orders  will not  have  enough collateral!!!!!!!!!!!!!!!!!!!!!!
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: cylonmaker2053 on August 08, 2015, 11:09:08 pm
why not fix it?

expiration & margin call orders  didn't  at 110% price feed

if price still going down  some orders  will not  have  enough collateral!!!!!!!!!!!!!!!!!!!!!!

yeah the market's a mess right now with the bitUSD cover backlog and BTS price crashing seemingly nonstop. collateral is being wiped out and part of that margin call / expired position buy wall could be evidence of overall market insufficient collateral to cover positions. if you opened a short and ended up getting wiped out it's possible your funds got tied up indefinitely and you won't have sufficient BTS to ever reverse the position. i'm not sure how this plays out for the market, as a whole?
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: svk on August 09, 2015, 03:24:07 pm
Keep in mind this is only a GUI bug. I've changed Bitsharesblocks so it shows orders that are expired AND margin called as buys at +10% of the call price. You probably need to force a refresh of Bitsharesblocks to get the changes, shift+F5 should do it.
Title: Re: first expiration and then Forced to cover BUG!!!!
Post by: sudo on August 09, 2015, 04:00:31 pm
Keep in mind this is only a GUI bug. I've changed Bitsharesblocks so it shows orders that are expired AND margin called as buys at +10% of the call price. You probably need to force a refresh of Bitsharesblocks to get the changes, shift+F5 should do it.

ok , thank you

but
37,087.465 bitUSD  @ 110% feed price?