在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ellisvalentiner/AlphaVantage.jl开源软件地址:https://github.com/ellisvalentiner/AlphaVantage.jl开源编程语言:Julia 100.0%开源软件介绍:AlphaVantageA Julia wrapper for the Alpha Vantage API. OverviewThis package is a Julia wrapper for the Alpha Vantage API. Alpha Vantage provides free realtime and historical data for equities, physical currencies, digital currencies (i.e. cryptocurrencies), and more than 50 technical indicators (e.g. SMA, EMA, WMA, etc.). The Alpha Vantage API requires a free API key. InstallationPkg.add("AlphaVantage") and once you have obtained your API key pass it to the client as follows:. using AlphaVantage
client = AlphaVantage.GLOBAL[]
client.key = "YOURKEY" or set it as an environment variable export ALPHA_VANTAGE_API_KEY=YOURKEY and check that it is set using: using AlphaVantage
AlphaVantage.GLOBAL[] If you encounter a clear bug, please file a minimal reproducible example on GitHub. Features
Usageusing AlphaVantage
using DataFrames, StatsPlots, Dates
gr(size=(800,470))
# Get daily S&P 500 data
spy = time_series_daily("SPY");
# Convert to a DataFrame
data = DataFrame(spy);
# Convert timestamp column to Date type
data[!, :timestamp] = Dates.Date.(data[!, :timestamp]);
data[!, :open] = Float64.(data[!, :open])
# Plot the timeseries
plot(data[!, :timestamp], data[!, :open], label=["Open"])
savefig("sp500.png") |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论