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
Display chart from ticker
With this template, you can get data from any ticker available in
Yahoo finance
.
Tags:
#yahoofinance #trading #plotly #naas_drivers
Author:
Florent Ravenel
Input
Import libraries
1
from
naas_drivers
import
yahoofinance
,
plotly
Copied!
Input parameters
👉 Here you can change the ticker, timeframe and add moving averages analysiss
1
ticker
=
"TSLA"
2
date_from
=
-
365
3
date_to
=
"today"
4
interval
=
'1d'
5
moving_averages
=
[
20
,
50
]
Copied!
Model
Get dataset from Yahoo Finance
1
df_yahoo
=
yahoofinance
.
get
(
ticker
,
2
date_from
=
date_from
,
3
date_to
=
date_to
,
4
interval
=
interval
,
5
moving_averages
=
moving_averages
)
Copied!
Output
Display chart
1
chart
=
plotly
.
linechart
(
df_yahoo
,
2
x
=
"Date"
,
3
y
=
[
"Close"
,
"MA20"
,
"MA50"
],
4
showlegend
=
True
,
5
title
=
f"
{
ticker
}
stock as of today"
)
Copied!
Previous
Send daily prediction to Slack
Next
Get Stock Update
Last modified
2mo ago
Copy link
Edit on GitHub
Contents
Input
Model
Output