• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ellisvalentiner/AlphaVantage.jl: A Julia wrapper for the Alpha Vantage API.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ellisvalentiner/AlphaVantage.jl

开源软件地址:

https://github.com/ellisvalentiner/AlphaVantage.jl

开源编程语言:

Julia 100.0%

开源软件介绍:

AlphaVantage

Build Status codecov.io Coverage Status

A Julia wrapper for the Alpha Vantage API.

Overview

This 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.

Installation

Pkg.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

  • Intraday prices for stocks, currencies and cryptocurrencies.
  • Daily, weekly and monthly prices for stocks, currencies and cryptocurrencies.
  • Technical indicators for stock prices.
  • Crypto currency health index from Flipside Crypto.
  • Fundamental data for stocks.
  • Economic Indicators

Usage

using 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")




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap