没有项目描述

stockAnalysis的Python项目详细描述


该软件包包括库存分析工具和数据提取器,使用 雅虎金融..

安装

  • pip install stockanalysis

雅虎金融S&P500 Extrator

  • 方法和参数:yahoofinance(符号、范围/持续时间、间隔)
  • symbol是股票代码,例如apple的“aapl”或“goog” 为谷歌。
  • 范围/持续时间是查询的所需范围,允许的参数 分别是[1D、5D、1MO、3MO、6MO、1Y、2Y、5Y、10Y、YTD、MAX]。
  • 间隔是报价的期望间隔,例如每5分钟, 允许参数为[1m、2m、5m、15m、30m、60m、90m、1h、1d、5d, 1周,1个月,3个月]。

用法

'''Create an instance of yahoo finance class and pass the parameters as string '''yf=YahooFinance('AAPL','6mo','1d')'''Gets all the prices within given time frame'''get_quotes=yf.CompanyQuotes()'''Populates the output data as a json file '''write_data=yf.writeOutput()'''Reads from the output file. Takes only two parameter Path and Data Series
   Parameter string should be [High, Low, Open , Close] '''r_data=yf.readOutput('output.json','close')'''SMA and EMA methods takes two parameters first param is Data and second is the time frame. '''get_sma=yf.sma(r_data,14)get_ema=yf.ema(r_data,14)'''RSI method takes two parameters first param is Data and second is the time frame. '''get_rsi=yf.RSI(r_data,14)'''MACD method takes three parameters first param is Data, second is the slows  and third one is the fast'''get_macd=yf.macd(r_data,25,14)

联系人

这个包是由sadik erisen创建的。如果您有任何疑问或意见,请发送电子邮件至fserisen@gmail.com

许可证

麻省理工学院

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何在Java中扩展工厂方法模式中的类   在Java中,什么更适合于网络?UDP还是TCP?   java onJsAlert返回消息是对象而不是字符串   音频用Java调高/调低电脑音量?   java将JTextField添加到JOptionPane中:ShowOptionDialog   java合并对来自的行进行排序。txt文件   在Java库Android Studio 1.0.1中找不到本地路径   java如何从序列中删除最后一个数字?   netty简单Java api,用于形成和发送ntp数据包   java装饰器模式问题   Java复制数组引用   在SpringBootApplication类中使用服务的java抛出NullPointerException   在Struts 2中使用拦截器进行身份验证后的java登录重定向   java@SpringBootApplication ComponentScan在新的Eclipse项目中无法正常工作   如何从Android中的java代码中删除任何xml属性   java为什么我的JUnit错误收集器不报告错误?