Beispiel #1
0
                 'itbitEUR','krakenEUR','itbitSGD','anxhkHKD',
                 'okcoinCNY', 'btcnCNY']
compositor = PriceCompositor(all_exchanges)
compositor.reload()

# <codecell>

from datetime import datetime
from dateutil.relativedelta import relativedelta
import pytz
hkg_time = pytz.timezone("Asia/Hong_Kong")
start_time = hkg_time.localize(datetime(2015,1,1,6,0,0))
period = relativedelta(minutes=1)
intervals = 60 * 24*90
compositor = PriceCompositor(['bitfinexUSD'], base_currency='USD')
data = compositor.composite_table(start_time, period, intervals)
data

# <codecell>

averagers = {}
exchanges = ["anxhkHKD", "bitfinexUSD", "bitstampUSD", "btceUSD", "itbitEUR", "itbitSGD", "itbitUSD", \
             "krakenEUR", "krakenUSD", "okcoinCNY", "btcnCNY"]

for e in exchanges:
    averagers[e] = BitcoinAverager(e)

averager = averagers["bitfinexUSD"]

# <codecell>
Beispiel #2
0
compositor.currency_table(start_date, period, intervals)

# <codecell>

import datetime
import time
import pytz
from dateutil.relativedelta import relativedelta

hkg_time = pytz.timezone("Asia/Hong_Kong")
start_date = hkg_time.localize(datetime.datetime(2014,2,1,7,0,0))
period = relativedelta(hours=1)
intervals = 200

compositor = PriceCompositor()
composite = compositor.composite_table(start_date, period, intervals)
composite

# <codecell>

composite[["price"]].plot()

# <codecell>

import datetime
import time
import pytz
from dateutil.relativedelta import relativedelta
hkg_time = pytz.timezone("Asia/Hong_Kong")
start_date = hkg_time.localize(datetime.datetime(2014,2,1,7,0,0))
period = relativedelta(hours=1)
Beispiel #3
0
                 'okcoinCNY', 'btcnCNY']
compositor = PriceCompositor(all_exchanges)
compositor.reload()


# In[ ]:

from datetime import datetime
from dateutil.relativedelta import relativedelta
import pytz
hkg_time = pytz.timezone("Asia/Hong_Kong")
start_time = hkg_time.localize(datetime(2015,1,1,6,0,0))
period = relativedelta(minutes=1)
intervals = 60 * 24*90
compositor = PriceCompositor(['bitfinexUSD'], base_currency='USD')
data = compositor.composite_table(start_time, period, intervals)
data


# In[ ]:

averagers = {}
exchanges = ["anxhkHKD", "bitfinexUSD", "bitstampUSD", "btceUSD", "itbitEUR", "itbitSGD", "itbitUSD",              "krakenEUR", "krakenUSD", "okcoinCNY", "btcnCNY"]

for e in exchanges:
    averagers[e] = BitcoinAverager(e)

averager = averagers["bitfinexUSD"]


# In[ ]:
compositor.currency_table(start_date, period, intervals)

# <codecell>

import datetime
import time
import pytz
from dateutil.relativedelta import relativedelta

hkg_time = pytz.timezone("Asia/Hong_Kong")
start_date = hkg_time.localize(datetime.datetime(2014,2,1,7,0,0))
period = relativedelta(hours=1)
intervals = 200

compositor = PriceCompositor()
composite = compositor.composite_table(start_date, period, intervals)
composite

# <codecell>

composite[["price"]].plot()

# <codecell>

import datetime
import time
import pytz
from dateutil.relativedelta import relativedelta
hkg_time = pytz.timezone("Asia/Hong_Kong")
start_date = hkg_time.localize(datetime.datetime(2014,2,1,7,0,0))
period = relativedelta(hours=1)