Title: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: Sukrim on June 05, 2012, 09:07:40 AM I wrote a script that does the following:
Take last trade price (as not all assets always have a 24h or 5d average price and spread between bids/asks is sometimes high), multiply by the amount of shares that were paid in the latest dividend payment and by the MH/s that the bond claims to pay out. Then calculate the average out of this. Result (unordered): Code: YABMC GH/s: 47.278 market value (in BTC): 13705.8922 average value of 1 MH/s (in Satoshis): 28990000 Weighing the average above means for example, that the price of the 100 GH/s of gigamining have a much higher influence than the 2.5 GH/s of JAH Some bonds haven't paid any dividends (or even shares - CANMINE...) yet, so it's impossible to see how many shares really have been distributed already there. These are excluded. OBSI.1MHS is not part of this, as their payout formula is not comparable to real PPS shares. For MOORE I'd need a bit of code still to calculate how many weeks have passed since they issued to get their current hash rate. Mining "companies" are next on the list, they might require some different measurements though and some important numbers are not available on GLBSE, like how much the assets of the company are worth, how high their income/expenses are... so I likely can only compare dividend payouts. This is fully automated, all you need to do is run the script again and (if a new mining bond shows up) eventually add a line with ticker symbol + hash rate per bond. Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: Sukrim on June 05, 2012, 09:19:34 AM Forgot to include the script...
It uses eventlet (with 2 worker threads, until GLBSE gets more stable please don't push these to the limit!) and is written in an ugly style of Python2. Code: import json Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: EskimoBob on June 05, 2012, 04:00:43 PM Thanx for the script.
Any plans to publish the results on a public web page? It requires a Eventlet ibrary and this can be installed: Code: $ easy_install eventlet Here is the result: Code: Error on JLP market data I have a feature request too :) 1) Format output to a "table" with a header row Code: SYMBOL GH/s market cap BTC 1 MH/s in BTC Code: SYMBOL;GH/s;market cap BTC;1 MH/s in BTC 2) Sort result by "1 MH/s in BTC" (or make it configurable?) Cheers! Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: Sukrim on June 05, 2012, 06:02:04 PM Thanx for the script. Glad it's of some use. Unfortunately I don't own any web server and I dont plan on renting and paying for one, so if someone wants to host an online version of this - go ahead! I probably won't do it myself, as I doubt the costs would be paid by donations.Any plans to publish the results on a public web page? I have a feature request too :) 1) Should be easy as it's only formatting (I have to look into some nicer options than hardcoding tabs in there)1) Format output to a "table" with a header row Code: SYMBOL GH/s market cap BTC 1 MH/s in BTC Code: SYMBOL;GH/s;market cap BTC;1 MH/s in BTC 2) Sort result by "1 MH/s in BTC" (or make it configurable?) 2) Would be a tiny bit harder, but I really don't see a benefit as there are less than 10 bonds anyways and the number I personally was looking for was anyways the big average over all bonds in total (which oscillates between ~29 and ~29.5 bitcents atm.). Also it's relatively easy to come up with that number by just looking at trade prices and dividing by hash rate in a google spreadsheet. It's just a bit hard to import JSON there, otherwise I'd already done it there. Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: PatrickHarnett on June 06, 2012, 04:56:33 AM Interesting and a subject dear to my heart. Probably the prices should be below 30 bitcents as we have moved away from the stable $5 prices.
Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: BinaryMage on June 06, 2012, 05:00:15 AM Interesting and a subject dear to my heart. Probably the prices should be below 30 bitcents as we have moved away from the stable $5 prices. And about time. I was getting rather bored with all the stagnancy. Need some high derivatives of the price graph to liven up my day. Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: FreeMoney on June 06, 2012, 05:55:17 PM Interesting and a subject dear to my heart. Probably the prices should be below 30 bitcents as we have moved away from the stable $5 prices. All that matters is difficulty. If BTC price goes up then the output of a mining stock is worth more, it cancels. Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: area on June 06, 2012, 08:29:37 PM Interesting and a subject dear to my heart. Probably the prices should be below 30 bitcents as we have moved away from the stable $5 prices. All that matters is difficulty. If BTC price goes up then the output of a mining stock is worth more, it cancels. But the value (in BTC) of the bond you are holding goes down, which may concern some people. Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: BinaryMage on June 07, 2012, 12:26:54 AM Interesting and a subject dear to my heart. Probably the prices should be below 30 bitcents as we have moved away from the stable $5 prices. All that matters is difficulty. If BTC price goes up then the output of a mining stock is worth more, it cancels. Yes, but the price you would pay for equivalent mining hardware (in BTC) goes down, devaluing the bond in a certain sense. Title: Re: [GLBSE] Weighted average price for a 1 MH/s bond is below 30 bitcents Post by: DiabloD3 on June 07, 2012, 07:24:02 AM Since we're posting tables of information: http://caspar.adterrasperaspera.com/dmc/trade/
|