Bitcoin Forum
June 21, 2024, 11:38:02 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2]
21  Economy / Economics / Re: Monthly average USD/bitcoin price & trend on: November 19, 2013, 02:09:16 PM
This script calulates rpietila's trendline for any given date >= 2009-01. I hope it works as expected   Grin

Price for today:

    $ python -m btctrend
    336.00


Price for Christmas:

    $ python -m btctrend 2013-12-25
    430.83


Typical price 2014:

    $ python -m btctrend 2014
    1605.46


Code:
import argparse
from calendar import monthrange
from datetime import date, datetime

a = 0.092
b = -2.9124

def get_x(year, month=None, day=None):
    assert(2009 <= year)
    if month is None:
        assert(day is None)
        month = 6.5

    numof_months = (year - 2009) * 12 + month

    if day is None:
        return numof_months

    numof_days = monthrange(year, month)[1]
    return numof_months + (day - 0.5) / numof_days - 0.5

def price(dt):
    x = get_x(*dt)
    return 10 ** (a * x + b)

def date_tuple(str):
    month, day = None, None
    try:
        dt = datetime.strptime(str, '%Y-%m-%d')
        year, month, day = dt.year, dt.month, dt.day
    except ValueError:
        try:
            dt = datetime.strptime(str, '%Y-%m')
            year, month = dt.year, dt.month
        except ValueError:
            dt = datetime.strptime(str, '%Y')
            year = dt.year
    return year, month, day

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('date', type=date_tuple, nargs='?',
                        help='YYYY-MM-DD or YYYY-MM or YYYY')
    args = parser.parse_args()
    if args.date is None:
        dt = date.today()
        args.date = (dt.year, dt.month, dt.day)
    print '{:.2f}'.format(price(args.date))

if __name__ == '__main__':
    main()
22  Economy / Speculation / Re: Wall Observer BTC/USD - Bitcoin price movement tracking & discussion on: November 05, 2013, 07:47:12 PM


https://www.youtube.com/watch?v=cak1xly8oUM
23  Bitcoin / Hardware / Re: [Work in progess] Burnins Avalon Chip to mining board service on: November 05, 2013, 08:10:50 AM
WHAT'S WITH THE REFUNDS?

+1
24  Economy / Speculation / Re: BITSTAMP eXchange wall Observer. second biggest and best exchange on: October 24, 2013, 11:00:57 AM
My SEPA just arrived. Can we have that 160 again, please?

Oh, and I think 200 will be tested again in the coming minutes...

FTFY
25  Economy / Speculation / Re: Memespeculation on: October 10, 2013, 07:22:08 PM
today action @ 96 wall
fuck... imagine this gif with Harlem Shake music  Grin

https://www.youtube.com/watch?v=phnv3qwZKAo  Cheesy
26  Bitcoin / Hardware / Re: Bitburner Fury - Hashrate Protection on: September 20, 2013, 10:08:21 AM
Some images of the board:
Very nice, pity about the commercial price of what once started as a great DIY project.

+1
27  Bitcoin / Hardware / Re: [Work in progess] Burnins Avalon Chip to mining board service on: September 11, 2013, 11:38:52 AM

1. You convert existing orders that have not been refunded yet to Bitfury product orders.
The 70% partial refund will be deducted from your final order price.
2. You choose to get the 50%, later hopefully 70% partial refund.

What's the difference between 1 and 2?

my interpretation:

1 ← if you want hardware
2 ← if you want money
28  Bitcoin / Hardware / Re: [CLOSED] Avalon ASIC chip distribution on: June 28, 2013, 12:22:53 PM
tonico; 100; 8.6; 1ChoHXUKSkhYfTo17LNPKZK3St9NWSrSrf
29  Bitcoin / Hardware / Re: [CLOSED] Avalon ASIC chip distribution on: May 20, 2013, 09:14:06 PM
SUP;burnin;tonico
30  Other / Off-topic / Re: Let's Count to 21 Million with Images on: May 07, 2013, 07:53:34 PM


31  Other / Off-topic / Re: Let's Count to 21 Million with Images on: May 06, 2013, 05:40:49 PM
32  Other / Off-topic / Re: Let's Count to 21 Million with Images on: May 02, 2013, 04:35:50 PM
Synchronizing to number of postings...

33  Bitcoin / Hardware / Re: [Work in progess] Burnins Avalon Chip to mining board service on: May 01, 2013, 09:17:40 AM
tonico; 200; 17.2; 1ChoHXUKSkhYfTo17LNPKZK3St9NWSrSrf

My chips are in batch 7. If one batch has 10k chips and one module has max. 20 chips and burnin produces 1000 modules per week, should I expect my modules ~4 weeks later?

Thanks for this great project!
34  Other / Beginners & Help / Re: Caught up - new user but long time lurker on: April 30, 2013, 03:21:06 PM
I'm in the same boat, I ordered chips from zefir and now I'm waiting for burnin to start accepting orders. I think it would be great if burnin delivers in July. But I wonder how it is possible for one person to develop, test and deliver a mining board in just two months.
35  Other / Beginners & Help / Re: Caught up - new user but long time lurker on: April 30, 2013, 03:05:48 PM
Try PM.

"you need 1 post to be able to send a PM"
https://bitcointalk.org/index.php?topic=177133.0
36  Other / Off-topic / Re: Let's Count to 21 Million with Images on: April 30, 2013, 01:59:20 PM

37  Other / Beginners & Help / Re: what about ripples? on: April 30, 2013, 10:53:47 AM
The Ripple network also works with Bitcoin IOUs. Since the Ripple network relies on ripples (XRP) for transactions they will exist as long as the Ripple network exists.
38  Other / Off-topic / Re: Let's Count to 21 Million with Images on: April 29, 2013, 11:35:59 AM
39  Other / Beginners & Help / Re: Introduce yourself :) on: April 28, 2013, 10:36:37 PM
Springtime is a good time to say hello!
Pages: « 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!