Bitcoin Forum
April 26, 2024, 04:01:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Discussion / How to Setup an Anaconda Project Environment on: July 05, 2018, 04:57:02 AM
One of the most interesting things about Python is its power to work hand in hand with cryptocurrencies, for this reason I was inclined to learn this fabulous language and I started looking for tutorials on the net about it.

I found a great tutorial on Patrick Triest's blog that I summarized and share with you.

In this tutorial we focus on obtaining the raw data and each one will do his own analysis of the results.

To perform this basic tutorial you will need a basic understanding of Python and knowledge of the command line to set up a project.

1 - Install Anaconda

To install the dependencies for this project from scratch we are going to use Anaconda, a pre-packaged Python data science ecosystem and a dependency manager.

To setup Anaconda, I would recommend following the official installation instructions - https://www.continuum.io/downloads.

2 - Setup an Anaconda Project Environment

To create a new Anaconda environment, run:

Quote
conda create --name cryptocurrency-analysis python=3


To activate this environment, run:

For Linux

Quote
source activate cryptocurrency-analysis

For Windows

Quote
activate cryptocurrency-analysis

To install the required dependencies in the environment, run:

Quote
conda install numpy pandas nb_conda jupyter plotly quandl

This could take a few minutes to complete.

3 - Start An Interative Jupyter Notebook

Once the environment and dependencies are all set up, run:

Quote
jupyter notebook

This will start the iPython kernel, and open your browser to

Quote

For create a new Python notebook, making sure to use the Python

Quote
[conda env:cryptocurrency-analysis]


4 - Import the Dependencies

Once you've got a blank Jupyter notebook open, the first thing we'll do is import the required dependencies:

Quote
import os
import numpy as np
import pandas as pd
import pickle
import quandl
from datetime import datetime

We'll also import Plotly and enable the offline mode:

Quote
import plotly.offline as py
import plotly.graph_objs as go
import plotly.figure_factory as ff
py.init_notebook_mode(connected=True)

With this we would have everything ready to start connecting with an API to bring data for example Bitcoin.

To test if everything is working we will start to retrieving data for analysis. First, we need to get Bitcoin pricing data using Quandl's free Bitcoin API.

For this, we will define Quandl Helper Function:

Quote
def get_quandl_data(quandl_id):
    '''Download and cache Quandl dataseries'''
    cache_path = '{}.pkl'.format(quandl_id).replace('/','-')
    try:
        f = open(cache_path, 'rb')
        df = pickle.load(f)   
        print('Loaded {} from cache'.format(quandl_id))
    except (OSError, IOError) as e:
        print('Downloading {} from Quandl'.format(quandl_id))
        df = quandl.get(quandl_id, returns="pandas")
        df.to_pickle(cache_path)
        print('Cached {} at {}'.format(quandl_id, cache_path))
    return df

For this example we are going to extract the Kraken exchange price data:

Quote
# Pull Kraken BTC price exchange data
btc_usd_price_kraken = get_quandl_data('BCHARTS/KRAKENUSD')

We can inspect the first 5 rows of the dataframe using the head() method:

Quote
btc_usd_price_kraken.head()

We should see a table like this:

Open           High                   Low                   Close           Volume (BTC)   Volume (Currency)   Weighted          Price
Date                     
2014-01-07   874.67040   892.06753   810.00000   810.00000   15.622378           13151.472844   841.835522
2014-01-08   810.00000   899.84281   788.00000   824.98287   19.182756           16097.329584   839.156269
2014-01-09   825.56345   870.00000   807.42084   841.86934   8.158335                   6784.249982   831.572913
2014-01-10   839.99000   857.34056   817.00000   857.33056   8.024510                   6780.220188   844.938794
2014-01-11   858.20000   918.05471   857.16554   899.84105   18.748285           16698.566929   890.671709

If you want to see the original tutorial, here is the link:

https://blog.patricktriest.com/analyzing-cryptocurrencies-python/



2  Alternate cryptocurrencies / Announcements (Altcoins) / [ANN][PRE-ICO]StartWaves: CrowdImpacting Investment Platform - IMPACT INVESTMENT on: July 03, 2018, 05:28:56 AM

Start Waves
Gain access to investment opportunities in social or environmental impact projects with a profitable business model


INFO




SUMMARY


Can you invest in social and environmental initiatives and make money?
This is the question that many investors ask themselves in these new times. And the answer is a great YES. The global trend of doing business and making money in balance with the environment and generating social impact has created new investment opportunities with great potential for ROI, Crowdimpacting, do not you know what it means? It is Equity Crowdfunding: a participatory financing in which a plurality of individuals join forces to invest in a market that is traditionally only available to institutions or people with a very high level of wealth.


OUR APPROACH


Social Impact Investment

Things are changing all over the world. More and more companies are seeking to have a positive impact on society and the environment. And there are more and more investors who, in addition to profitability, want to make sense of their investments. They are companies and investors with social impact. If you are one of them, we are waiting for you to work and grow together. A team of enthusiastic professionals set out to create Start Waves as an active agent of the ethical transformation of society and finance, convinced of the enormous transformative potential of participatory financing and impact investment. You want to join?


HOW IT WORKS START WAVES


Start Waves is based on the powerful Blockchain technology, uses a vast interconnected network to identify and choose, companies and Startups with a good business model and a great potential for sustainable growth. Become an investor in your growth and give value and meaning to money.

I am an investor

If you are looking for profitability by investing in companies that have a positive impact on society and the environment, welcome to Start Waves.
We analyze, study and select companies from the real economy that have a proven business model and that seek capital, from investors who want to be part of a positive and exciting business project. Start Waves is the crowdimpacting platform: social impact crowdfunding, where we want investors, companies and society to win. And because we trust companies - and their positive impact - we invest in the companies we publish on our platform.

I am an entrepreneur

Do you have a business and are you looking for more than just making money? Does your company provide innovative solutions to improve the quality of life of people, boost an economy with values or preserve the environment? Do you have a proven business model and your company is scalable? Do you need financing in the form of capital? If so, you are in the right place, because Start Waves is the participatory financing platform for companies like yours.

Fundraising Service

Start Waves makes the fundraising process easier, more efficient and more importantly, transparent. The efficiency of the service itself is the specialized
architecture of the ecosystem, which brings together all the key players (investors, entrepreneurs and experts), all connected through the unified system
of the investment platform. This allows the optimization of the marketing of the project and facilitates the search of investors, since the target audience is present in the platform.

The most important feature of Start Waves lies in the ability to democratize financial support for innovative startups, with a good sustainable business model. Start Waves is designed to minimize the number of intermediaries involved in the financing of initiatives, ideas, projects, sustainable products and services and enhances the conditions for coexistence between private and institutional investors, creating a transparent, democratic and simple and pluralistic system.

PRE-ICO BEGINS ON AUGUST 2, 2018!
DO NOT MISS THE OPPORTUNITY TO REGISTER IN START WAVES ICO WHITELIST!


For more information about Start Waves Coin please join our official Telegram channel


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!