Title: Simple BTC-E question Post by: winsucker on May 19, 2013, 11:55:50 AM Hi.
I have a simple mathematical problem to solve about BTC-E. Let's say, you buy 1 BTC with a value of 100 USD. After that, you would like to know, what should be the minimum value, that you need to resell it, without any losses. Transactions fees are 0.2%. What should be the minimal value to resell my 1 BTC, so I can cover all my fees?
To give something back to you, for reading my post - here is an simple PHP snippet, that will read your "give-me-ltc" pool stats and btc-e's LTC values. It should be easly modified to your needs. Code: <?php Title: Re: Simple BTC-E question Post by: Shutz on May 19, 2013, 01:10:23 PM You need to sell your Bitcoins again for the buying price plus ~0,4004008% to not lose any money. So bougth @113,4 Dollar per Bitcoin, sell it for 113,855 Dollar (+0,454..)(113,4 * 1,004004008).
Title: Re: Simple BTC-E question Post by: keatonatron on May 19, 2013, 01:18:02 PM I believe BTC-E takes their cut out of the BTC you receive, so:
You would sell your 100 USD and receive 1 BTC minus 0.2% (0.998 BTC). We want that 0.998BTC to be worth 100 USD, after the fee--which means 100USD is 99.8% of the sale price. 100 / .998 will give us the total sales price: 100.2004008... So you would need to sell your .998BTC for roughly 100.2004USD, but we measure price in the 1 BTC = x USD format, so: 0.998 BTC is 99.8% of the ideal price of 1 BTC, which means 100.2004 is 99.8% of the price of 1 BTC. 100.2004 / .998 = 100.4012 So you would need to sell when the price is 100.4012 USD per bitcoin. To test this: .998 BTC * 100.4012USD = 100.2003976USD, minus .2% (100.2003976 * .998 = 99.999996... USD) Of course it doesn't add up to exactly 100USD, because I truncated a few decimal places ;D You were very close in your original thinking ((100 * 1.002) * 1.002), but to be precise you have to look at it the way I outlined it above. Alright class, if anyone has a question please raise your hand :D Title: Re: Simple BTC-E question Post by: winsucker on May 19, 2013, 01:52:20 PM I believe BTC-E takes their cut out of the BTC you receive, so: You would sell your 100 USD and receive 1 BTC minus 0.2% (0.998 BTC). We want that 0.998BTC to be worth 100 USD, after the fee--which means 100USD is 99.8% of the sale price. 100 / .998 will give us the total sales price: 100.2004008... So you would need to sell your .998BTC for roughly 100.2004USD, but we measure price in the 1 BTC = x USD format, so: 0.998 BTC is 99.8% of the ideal price of 1 BTC, which means 100.2004 is 99.8% of the price of 1 BTC. 100.2004 / .998 = 100.4012 So you would need to sell when the price is 100.4012 USD per bitcoin. To test this: .998 BTC * 100.4012USD = 100.2003976USD, minus .2% (100.2003976 * .998 = 99.999996... USD) Of course it doesn't add up to exactly 100USD, because I truncated a few decimal places ;D You were very close in your original thinking ((100 * 1.002) * 1.002), but to be precise you have to look at it the way I outlined it above. Alright class, if anyone has a question please raise your hand :D T-thanks http://img.pandawhale.com/42255-Im-not-a-smart-man-Forrest-Gum-W2X0.jpeg Title: Re: Simple BTC-E question Post by: tysat on May 19, 2013, 01:54:59 PM @OP
Don't bump your post 10 minutes after you make it. Title: Re: Simple BTC-E question Post by: winsucker on May 19, 2013, 01:59:55 PM @OP Don't bump your post 10 minutes after you make it. I'm sorry - will not happened again. |