BitShares Forum

Main => Technical Support => Topic started by: lil_jay890 on June 27, 2015, 11:29:14 pm

Title: How to calculate profits from
Post by: lil_jay890 on June 27, 2015, 11:29:14 pm
Kind of a Newb question here... but how do I calculate the profits I made from a short.  Looking in the wallet the I have the following from a recent cover

Margin-24e07010-->Market  sell collateral @ .00654194769      5,999.98682 BTS
Market-->Margin-24e07010  payoff debt @ .0065419476992     39.2516 USD

I know that my trade was profitable, but how much bts did I make off it?  5,999.98682?

Title: Re: How to calculate profits from
Post by: bitmeat on June 27, 2015, 11:40:16 pm
Start by asking the UX/UI experts on the team the very important question: WTF?

That said - if you go to the console and list the transactions you may be able to get a much more reasonable answer.

If not - find reciprocal values i.e. divide 1 by 0.00654194769
Title: Re: How to calculate profits from
Post by: Riverhead on June 28, 2015, 03:12:22 am

To cover you had to provide USD. Since USD is fungible the client can't know the price you paid for the USD you're using to cover. So the profit or loss is the difference between whatever you had to pay for the USD vs what it cost you to short it.

So an example using easier to read numbers.

BTS peg is at 0.005 BTS/USD. You short $1 and someone takes the opposite side. So you have 200 BTS for the short , 200 BTS collateral and about 200 BTS from the sale oft the minted USD when someone took the other side.

Now weeks later BTS is selling for 0.008 BTS/USD. You buy $1 of bitUSD for 125 BTS and cover. You get your 200 BTS back for your short, your 200 collateral, and the roughly 200 BTS you made from selling the USD. So your profit is about 75 BTS.

So in your case you need to look at what you put up to short the bitUSD and then what you paid for the bitUSD to cover.
Title: Re: How to calculate profits from
Post by: liondani on June 28, 2015, 04:50:34 am
Is it so difficult to implement a % indicator that shows how much the price has changed from the time  the short order was placed?
Title: Re: How to calculate profits from
Post by: xeroc on June 28, 2015, 09:01:03 am
Is it so difficult to implement a % indicator that shows how much the price has changed from the time  the short order was placed?
Good idea ... could you create a github issue?
Title: Re: How to calculate profits from
Post by: xeroc on June 28, 2015, 09:01:21 am
Is it so difficult to implement a % indicator that shows how much the price has changed from the time  the short order was placed?
Good idea ... could you create a github issue?
Title: Re: How to calculate profits from
Post by: liondani on June 28, 2015, 02:06:44 pm
Is it so difficult to implement a % indicator that shows how much the price has changed from the time  the short order was placed?
Good idea ... could you create a github issue?

is this the right place to do it now?   https://github.com/cryptonomex/graphene/issues
because on bitshares I see no activity....
Title: Re: How to calculate profits from
Post by: xeroc on June 28, 2015, 03:08:58 pm
I think it should be graphene-ui ..
Title: Re: How to calculate profits from
Post by: cass on June 28, 2015, 03:10:20 pm
https://github.com/cryptonomex/graphene-ui/issues