BitShares Forum

Main => General Discussion => Topic started by: profitofthegods on August 25, 2014, 06:11:16 pm

Title: Confused by market order, please help
Post by: profitofthegods on August 25, 2014, 06:11:16 pm
I've just been playing with the new functionality making small test orders, and I am quite confused how it actually works.

I started off by shorting USD.

I couldn't see this left as an open position anywhere with information about collatoral and margin requirement, but I had thought the idea was I then needed to buy USD to cancel out this 'loan', so I bought the same amount of USD. But those USD were just added to my balance - so what happened to the loan? Do I still need to repay USD at some point, and if so when?
Title: Re: Confused by market order, please help
Post by: profitofthegods on August 25, 2014, 06:27:03 pm
Oh, sorry, so the system doesn't automatically sell the USD for you when you short? I was told by someone that it did. So can someone explain to me how this thing is actually supposed to work please.
Title: Re: Confused by market order, please help
Post by: patrickb323 on August 25, 2014, 07:50:51 pm
I have the same confusion.   I do some test shorts and try to figure out what is happening but it not clear in the UI.

when is the collateral taken? 
Title: Re: Confused by market order, please help
Post by: bytemaster on August 25, 2014, 07:54:28 pm
Short USD Wallet   BTSX -> Short Order
Sell BTSX Wallet BTSX -> Ask Order

On Match:

Short Order BTSX -> Cover Order
Ask BTSX -> Cover Order
Cover Order USD -> Ask Owner

On Cover:
Wallet USD -> Cover Order
Cover Order Collateral XTS -> Wallet XTS

The transaction history in your account shows how funds are flowing.
Title: Re: Confused by market order, please help
Post by: bernard on August 26, 2014, 10:21:32 am
Maybe i'm doing something wrong.. I cant even get the simplest market order working.

I have some BTSX, I go to BitUSD/BTSX market and say short BitUSD.. I click on the highest bid price and put in a low qty like 1 BitUSD.

The GUI comes back with a red error box in the top right corner saying something about order price < max bid price or something, then my order disappears.

What am I doing wrong?

Also, what are the Margin orders? How do they relate? I cant see any way to buy/sell them.
Title: Re: Confused by market order, please help
Post by: puppies on August 26, 2014, 10:34:10 am
Maybe i'm doing something wrong.. I cant even get the simplest market order working.

I have some BTSX, I go to BitUSD/BTSX market and say short BitUSD.. I click on the highest bid price and put in a low qty like 1 BitUSD.

The GUI comes back with a red error box in the top right corner saying something about order price < max bid price or something, then my order disappears.

What am I doing wrong?

Also, what are the Margin orders? How do they relate? I cant see any way to buy/sell them.

There is a 1 hour moving average that limits the price swings of the shorts. 
Quote
The limiting algorithm is   average price * 10 / 9... average price gets updated every time a trade occurs...  this limits new shorts, but strait up USD vs BTSX can trade at any price.   This is a birthing problem... working to increase the average price.

The margin orders are short orders that others have created, organized by the price at which their margin will be called.

Title: Re: Confused by market order, please help
Post by: jakub on August 26, 2014, 08:14:46 pm
Also, what are the Margin orders? How do they relate? I cant see any way to buy/sell them.

Can anyone answer this? I wish I could but I don't know myself.
Title: Re: Confused by market order, please help
Post by: bytemaster on August 26, 2014, 08:18:20 pm
Also, what are the Margin orders? How do they relate? I cant see any way to buy/sell them.

Can anyone answer this? I wish I could but I don't know myself.

Margin orders will execute automatically when the highest bid falls below the call price and is within 10% of the 24h moving average.
Title: Re: Confused by market order, please help
Post by: jakub on August 26, 2014, 08:33:26 pm
Also, what are the Margin orders? How do they relate? I cant see any way to buy/sell them.

Can anyone answer this? I wish I could but I don't know myself.

Margin orders will execute automatically when the highest bid falls below the call price and is within 10% of the 24h moving average.

So what is the purpose of the "Margin orders" table in the GUI? What kind of information does it give me?
"Buy orders" show me at what prices I can sell, "Sell Orders" show me at what prices I can buy, and what does the "Margin orders" table tell me?
Title: Re: Confused by market order, please help
Post by: bytemaster on August 26, 2014, 08:39:07 pm
It tells you at what price others are forced to buy.  Ie... how close to a short squeeze the market is :)
Title: Re: Confused by market order, please help
Post by: jakub on August 26, 2014, 08:48:23 pm
It tells you at what price others are forced to buy.  Ie... how close to a short squeeze the market is :)
So why is it sorted from the highest price (33.998933) to the lowest (30.296) and not the other way round?
If the current price is around 23.50 surely the 30.296 short will be forced to cover first and before the 33.998933 one.
Title: Re: Confused by market order, please help
Post by: GaltReport on August 26, 2014, 08:58:03 pm
I've just been playing with the new functionality making small test orders, and I am quite confused how it actually works.

I started off by shorting USD.

I couldn't see this left as an open position anywhere with information about collatoral and margin requirement, but I had thought the idea was I then needed to buy USD to cancel out this 'loan', so I bought the same amount of USD. But those USD were just added to my balance - so what happened to the loan? Do I still need to repay USD at some point, and if so when?

It might be that you didn't use the COVER button to cover your short.  Sounds like you just bought some more BitUSD.  I believe you have to use the COVER button to actually repay the "loan".  That will payoff the bitUSD loaned to you by applying the bitUSD you bought to your bitUSD loan.  I think.... :-\

Title: Re: Confused by market order, please help
Post by: valzav on August 26, 2014, 08:59:09 pm
So why is it sorted from the highest price (33.998933) to the lowest (30.296) and not the other way round?
If the current price is around 23.50 surely the 30.296 short will be forced to cover first and before the 33.998933 one.

jakub, I think you are right, margin orders need to be sorted from lowest to highest. I've created issue for this, should be fixed in next release https://github.com/BitShares/web_wallet/issues/292
Title: Re: Confused by market order, please help
Post by: jakub on August 26, 2014, 09:00:55 pm
(http://joint.sx/Capture2.PNG)

What is the difference between row one and row three?
Both are opened shorts on bitUSD but they difffer in the first column ("Type") and only the third one has collatral column filled up. What's the difference between them?
Title: Re: Confused by market order, please help
Post by: profitofthegods on August 26, 2014, 09:07:11 pm
I've just been playing with the new functionality making small test orders, and I am quite confused how it actually works.

I started off by shorting USD.

I couldn't see this left as an open position anywhere with information about collatoral and margin requirement, but I had thought the idea was I then needed to buy USD to cancel out this 'loan', so I bought the same amount of USD. But those USD were just added to my balance - so what happened to the loan? Do I still need to repay USD at some point, and if so when?

It might be that you didn't use the COVER button to cover your short.  Sounds like you just bought some more BitUSD.  I believe you have to use the COVER button to actually repay the "loan".  That will payoff the bitUSD loaned to you by applying the bitUSD you bought to your bitUSD loan.  I think.... :-\

Yes, thanks, I think this is what happened.
Title: Re: Confused by market order, please help
Post by: puppies on August 26, 2014, 09:52:40 pm
(http://joint.sx/Capture2.PNG)

What is the difference between row one and row three?
Both are opened shorts on bitUSD but they difffer in the first column ("Type") and only the third one has collatral column filled up. What's the difference between them?
The top column just hasnt updated fully.  Go to a different tab and come back
Title: Re: Confused by market order, please help
Post by: jakub on August 26, 2014, 10:35:49 pm
The top column just hasnt updated fully.  Go to a different tab and come back
Thanks, indeed refreshing does help.
This is a very confusing bug, has it been reported?
Also, the fifth column says "XTS" instead of "BTSX". Does it matter?
Title: Re: Confused by market order, please help
Post by: puppies on August 26, 2014, 10:43:19 pm
The top column just hasnt updated fully.  Go to a different tab and come back
Thanks, indeed refreshing does help.
This is a very confusing bug, has it been reported?
Also, the fifth column says "XTS" instead of "BTSX". Does it matter?

I rarely report bugs.  I just assume that everyone else has.  I probably shouldn't do that.  The XTS is another error.
Title: Re: Confused by market order, please help
Post by: jakub on August 26, 2014, 10:56:24 pm
The top column just hasnt updated fully.  Go to a different tab and come back
Thanks, indeed refreshing does help.
This is a very confusing bug, has it been reported?
Also, the fifth column says "XTS" instead of "BTSX". Does it matter?

I rarely report bugs.  I just assume that everyone else has.  I probably shouldn't do that.  The XTS is another error.

Report posted  :)
https://github.com/BitShares/web_wallet/issues/293  (https://github.com/BitShares/web_wallet/issues/293)
Title: Re: Confused by market order, please help
Post by: jakub on August 27, 2014, 11:43:29 am
(http://joint.sx/Capture4.PNG)

I have these shorts as listed above. How can I find out how much profit/loss I have made so far on them?
Is there a way to see the initial price I sold the bitUSD at or do I have to remember it and calculate the profit/loss manually?
Title: Re: Confused by market order, please help
Post by: xeroc on August 27, 2014, 05:22:42 pm
pst ... there will be a new trading software out in a couple of weeks that will be so awesome .. and just fulfills all your wishes .. but .. pst .. it's a secret ;-)

Anyway, the devs are working on fixing that issue ... give them some time and get your calculators out on the table to do the math in the mean time ;-)
Title: Re: Confused by market order, please help
Post by: jakub on August 27, 2014, 06:13:08 pm
pst ... there will be a new trading software out in a couple of weeks that will be so awesome .. and just fulfills all your wishes .. but .. pst .. it's a secret ;-)

Anyway, the devs are working on fixing that issue ... give them some time and get your calculators out on the table to do the math in the mean time ;-)
Ok, thanks.
Just wanted to know if the information is there in the GUI and I can't find it or it is just unavailable at this stage.
Title: Re: Confused by market order, please help
Post by: xeroc on August 27, 2014, 06:30:07 pm
Ok, thanks.
Just wanted to know if the information is there in the GUI and I can't find it or it is just unavailable at this stage.
I am afraid its just unavailable at the moment :)