Naas Documentation
Naas.ai
GitHub
Slack Community
What's new?
Search…
Welcome to Naas
😎
Templates
AWS
Airtable
AlphaVantage
Bazimo
Boursorama
Bubble
CCXT
CSV
Canny
Celestrak
Cityfalcon
D-Tale
Dask
Data.gouv.fr
Draft Kings
EM-DAT
Elasticsearch
Excel
FAO
FEC
FTP
GitHub
Gmail
Google Analytics
Google Drive
Google Search
Google Sheets
HTML
Healthchecks
HubSpot
Hugging Face
IFTTT
IMDB
INPI
IUCN
Insee
Instagram
Integromat
Johns Hopkins
Jupyter
Jupyter Notebooks
LinkedIn
Matplotlib
Metrics Store
Microsoft Teams
Microsoft Word
MongoDB
MySQL
NASA
Naas
Naas Auth
Neo
Newsapi
Notion
OpenWeatherMap
OwnCloud
PDF
Pandas
Pillow
Pipedrive
Plaid
Plotly
PostgresSQL
PyPI
Python
Qonto
Quandl
Reddit
Redshift
Remoteok
Remotive
SAP-HANA
SendGrid
Slack
Snowflake
Societe.com
Spotify
Streamlit
Stripe
Telegram
Thinkific
TikTok
Trello
Twilio
Twitter
WSR
WorldBank
Worldometer
XML
YahooFinance
Get data from ticker
Send daily prediction to Email
Cryptocurrencies heatmap correlation graph
Get USDEUR data and chart
Send daily prediction to Slack
Display chart from ticker
Get Stock Update
Send daily prediction to Notion
Candlestick chart
YouTube
Youtube
ZIP
Zapier
spaCy
Google Analytics
Google Drive
Google Search
Google Sheets
Hugging Face
Johns Hopkins
Jupyter Notebooks
Metrics Store
Microsoft Teams
Microsoft Word
Naas Auth
Elastic Search
Excel 365
🔄
Low-code features
🏎
Low-code drivers
🌎
Community
Essentials
Advanced
Best Practices
FAQ
⚡
Naas manager
🔐
Security
Powered By
GitBook
Candlestick chart
Tags:
#yahoofinance #trading #yfin
Author:
Carlo Occhiena
Input
Install and import libraries
1
import
datetime
as
dt
2
import
pandas_datareader
as
pdr
3
try
:
4
import
mplfinance
as
mpf
5
except
:
6
!pip install mplfinance
7
import
mplfinance
as
mpf
8
try
:
9
import
yfinance
as
yfin
10
except
:
11
!pip install yfinance
12
import
yfinance
as
yfin
Copied!
Variables
datefrom, dateto, the list of cryptocurrencies you need.
1
# update date range "start" as desired
2
start
=
dt
.
datetime
(
2021
,
1
,
1
)
3
end
=
dt
.
datetime
.
now
()
4
ticker
=
"ETH-USD"
Copied!
Model
candlestick chart, correlation heatmap, visual chart for all the currencies.
1
# insert cryptoasset (in Yahoo format "NNN-CCC" es BTC-EUR or ETH-USD) here
2
yfin
.
pdr_override
()
3
data
=
yfin
.
download
(
ticker
,
start
,
end
)
4
data
Copied!
Output
Create a candlestick chart for a given asset
👉 Completely customize the timeframe and asset you need
1
mpf
.
plot
(
data
,
title
=
f"
{
ticker
}
trend"
,
2
type
=
"candle"
,
3
volume
=
True
,
4
style
=
"yahoo"
)
Copied!
1
Copied!
Previous
Send daily prediction to Notion
Next
YouTube
Last modified
2mo ago
Copy link
Edit on GitHub
Contents
Input
Model
Output