Main Menu

Short Order Refactoring

Started by bytemaster, June 16, 2015, 03:12:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ander

I think this means....essentially all shorts will be 'shorting to yourself'.  But done in a way that is easier to understand, and requires 1 order instead of 2?  This is pretty much what was happening anyway already, so this just makes it easier.  No more people complaining about not being able to short, or cover, hopefully.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

oldman

I support the OP - go for it!

merivercap

Quote from: bytemaster on June 16, 2015, 03:12:17 PM
Under BitAssets 2.0 all that matters is that you maintain sufficient collateral.  Initial collateral is effectively meaningless.   Users could at any time short to themselves and then manually reduce their collateral.   

In the interest of simplifying the protocol and the user experience I propose the following:

1. Get rid of "short orders" entirely
2. Allow users to borrow any amount of BitUSD by locking up collateral.
3. Margin call the positions like always
4. Users can adjust their debt and collateral at any time provided the ratio between the two is sufficient.

To "short" you would first borrow the BitUSD and then place a standard limit order.   

This would greatly simplify all market operations and history and result in fewer potential bugs. 

I wanted to run the concept by everyone before committing to the approach.

Yes!  Thought along the same lines too before!

You can create BitUSD & BitAssets by simply posting the sufficient matching value in collateral!  That's pretty much it!
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

Xeldal

#14
Quote from: monsterer on June 16, 2015, 04:17:45 PM
Doesn't this mean there is infinite bitUSD liquidity available at the feed price?

It still requires you to lock up collateral to borrow these bitUSD, and you will be subject to the same margin requirements. 

The same conditions exist now.  I can short to myself with 'infinite liquidity' as long as I have more BTS to lock up.

This new process just breaks up 1 step (shorting) into 2 steps (borrowing & selling) ... same end result, but much easier to work with and understand.   

In addition it removes a step if you just want to borrow.  currently 2 steps (short & buy from yourself)  changed to 1 step (just borrow).  I like it.

bytemaster

Quote from: monsterer on June 16, 2015, 04:17:45 PM
Doesn't this mean there is infinite bitUSD liquidity available at the feed price?

no... this changes nothing with respect to liquidity.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

monsterer

Doesn't this mean there is infinite bitUSD liquidity available at the feed price?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

ag

this does mean users can more easily effectively short below the peg. I think it's generally a good idea.

Bitcoinfan

#10
Quote from: bytemaster on June 16, 2015, 03:30:57 PM
Quote from: Bitcoinfan on June 16, 2015, 03:26:58 PM
Quote from: bytemaster on June 16, 2015, 03:12:17 PM

1. Get rid of "short orders" entirely
2. Allow users to borrow any amount of BitUSD by locking up collateral.
3. Margin call the positions like always
4. Users can adjust their debt and collateral at any time provided the ratio between the two is sufficient.

To "short" you would first borrow the BitUSD and then place a standard limit order.   

This would greatly simplify all market operations and history and result in fewer potential bugs. 

I wanted to run the concept by everyone before committing to the approach.

1. How would then longs be collateralized?  Who's providing the upside gains if shorts are no longer doing that?  How will Smartcoins come into existence then?
3. Why reintroduce margin positions again?  Will this margin call be separate from a forced settlement, so they are only applied to shorts and not to long positions?

When you borrow you put up the collateral and the end result is that you are "short" and "long" at the same time. 
Then you place a limit order and sell on the market.

The peg works like always.  Margin calls are unchanged.

I'll need help trying to understand this.  How does a Bitasset come into existence?  Is it still when both a long bettor and a short bettor have a matched trade?  If not, and a long is just stand-alone, what happens when the price of a bitasset rises?  Where does that gains come from, if there is no opposite side of the bet (since shorts are getting removed entirely)?

Chronos

I've been campaigning (rather silently, to myself) for this idea for a while now. Here's one of my earlier posts:

Quote from: Chronos on April 17, 2015, 04:37:18 AM
What if shorting were a single button "short x of BTS" that automatically shorted at feed price to yourself?

I think this is a great move. Simpler, easier to understand, easier to teach, easier to use, same market result.

bytemaster

Margin calls due to insufficient collateral will execute up to the "call limit" which is a second price provided in the feed.   This allows each BitAsset (Smartcoin) to define how much the book may be walked when executing a margin call.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

arhag

#7
Quote from: bytemaster on June 16, 2015, 03:12:17 PM
4. Users can adjust their debt and collateral at any time provided the ratio between the two is sufficient.

To "short" you would first borrow the BitUSD and then place a standard limit order.   

Great. This makes it easy (and cheaper) to better simulate a short sell order without excessive soft-collateral funds. You can put up nearly all of the BTS (excluding some to pay for fees) into a short position and get a good amount of BitUSD out of it (not too much to have a high enough collateral value to debt value ratio that makes it unlikely to be margin called or force called from redemption). Then you can sell the BitUSD for more BTS which is then moved back into the short position to increase the debt and then take that extra BitUSD and sell it again. If we assume the value of the initial debt is 50% of the value of the initial collateral and the prices don't change much during this process, then the BitUSD amount will halve with each round. In just a few rounds, it becomes negligible to extract and sell any more debt from the short position. Furthermore, adjusting the ratio at a later point only requires transactions dealing with one short position rather than multiple ones (for example, a new short position created with each round in the process described earlier).

Obviously, this multiple round process is more hands-on and uses more transaction fees than just placing a single short sell order. But the cost and inconvenience shouldn't be much and it greatly simplifies the code so it seems worth it.

Also, a similar (but reversed) process could be used to simulate a cover process by starting with a small amount of the collateral asset outside of the short position.


Quote from: bytemaster on June 16, 2015, 03:12:17 PM
3. Margin call the positions like always

Do margin calls still buy up any BitAsset sell orders up to 10% above (in collateral asset per BitAsset price) the feed price? What if there are not enough sell orders to meet the margin call demand. Do the remaining amounts sit as an order that is 10% offset from the price feed (even as the price feed changes)? What do you think about adjusting the limit price offset from the feed price of the margin call order as a function of the collateral value to debt value ratio? So if that ratio is above the maintenance threshold, no margin call occurs. But as the ratio drops below the maintenance threshold and approaches 1, the maximum offset from the feed price that the margin call is willing to sell the collateral asset for BitAssets to cover the debt increases according to some monotonic function.

tonyk

OP is fine with me.

What about the other odd order - the cover order?

Are those just gonna buy @ feed price? Maybe ordered by the smallest collateral first? Or is it still too much to ask for  "Ordered by A then ordered by B"?
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Erlich Bachman

#5
Quote from: Bitcoinfan on June 16, 2015, 03:26:58 PM
1. How would then longs be collateralized? 

Their investment plus the collateral put up by the shorts

Quote from: Bitcoinfan on June 16, 2015, 03:26:58 PM
Who's providing the upside gains if shorts are no longer doing that?
gains by whom?

Quote from: Bitcoinfan on June 16, 2015, 03:26:58 PM
How will Smartcoins come into existence then?

Shorts borrow any amount by locking up collateral (remember that least collateralized shorts get called first during arbitration).  Actually, there would probably be a leverage limit here based on the feed price to total amount requested to borrow ratio, eh BM?
Quote from: Akado on December 14, 2015, 10:34:48 AM
You own the network, but who pays for development?

bytemaster

Quote from: Bitcoinfan on June 16, 2015, 03:26:58 PM
Quote from: bytemaster on June 16, 2015, 03:12:17 PM

1. Get rid of "short orders" entirely
2. Allow users to borrow any amount of BitUSD by locking up collateral.
3. Margin call the positions like always
4. Users can adjust their debt and collateral at any time provided the ratio between the two is sufficient.

To "short" you would first borrow the BitUSD and then place a standard limit order.   

This would greatly simplify all market operations and history and result in fewer potential bugs. 

I wanted to run the concept by everyone before committing to the approach.

1. How would then longs be collateralized?  Who's providing the upside gains if shorts are no longer doing that?  How will Smartcoins come into existence then?
3. Why reintroduce margin positions again?  Will this margin call be separate from a forced settlement, so they are only applied to shorts and not to long positions?

When you borrow you put up the collateral and the end result is that you are "short" and "long" at the same time. 
Then you place a limit order and sell on the market.

The peg works like always.  Margin calls are unchanged.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Bitcoinfan

Quote from: bytemaster on June 16, 2015, 03:12:17 PM

1. Get rid of "short orders" entirely
2. Allow users to borrow any amount of BitUSD by locking up collateral.
3. Margin call the positions like always
4. Users can adjust their debt and collateral at any time provided the ratio between the two is sufficient.

To "short" you would first borrow the BitUSD and then place a standard limit order.   

This would greatly simplify all market operations and history and result in fewer potential bugs. 

I wanted to run the concept by everyone before committing to the approach.

1. How would then longs be collateralized?  Who's providing the upside gains if shorts are no longer doing that?  How will Smartcoins come into existence then?
3. Why reintroduce margin positions again?  Will this margin call be separate from a forced settlement, so they are only applied to shorts and not to long positions?