Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 973 Bytes
# PyAlgoSamples
# Examples using the PyAlgoTrade Library
#
# Copyright 2015-2017 Isaac de la Pena
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
.. moduleauthor:: Isaac de la Pena <isaacdlp@agoraeafi.com>
"""
import pandas as pd
import plotly.offline as py
import plotly.graph_objs as go
df = pd.read_csv("data/BTC_ETH.csv")
df.set_index("Date", inplace=True)
viz = go.Scatter(x=df.index, y=df['Adj Close'])
py.plot([viz], filename="../store/btc-eth-poloniex.html")
You can’t perform that action at this time.