一个CLI工具,可以接近日价格和年度股息

tiingo-prices的Python项目详细描述


https://img.shields.io/pypi/v/tiingo_prices.svghttps://img.shields.io/travis/robren/tiingo_prices.svgDocumentation StatusUpdates

一个CLI工具,用于获取一组 股票行情。使用tiingo python API。在

  • 免费软件:麻省理工学院许可证

特点

  • 使用tiingo python API获取某个数字的最新收盘价 股票行情。在文本文件中指定的滴答器,每行一个滴答器。在
  • 过去几年,每只股票也会获得和计算股息。在
  • 输出被写入stdout或指定的文件。输出以CSV格式写入 格式与股票,价格,股息在文件的每一行。在

安装

pip install tiingo_prices

使用

将环境变量TIINGO_API_KEY设置为与 tiingo帐户。在

^{pr2}$

对于这些收盘价和股息的API密钥 提供免费的“初学者”帐户将工作。在

$ tiingo_prices -h
usage: tiingo_prices [-h][--output_file OUTPUT_FILE][--nyse_pref][--version] ticker_file

Returns the most recent closing prices and last years dividends for stocks

positional arguments:
ticker_file           Ticker file name: One ticker per line

optional arguments:
-h, --help            Show this help message and exit.
--output_file OUTPUT_FILE
                      Output file name: Default writes to stdout.
--nyse_pref           Attempt to recognize NYSE Preferred ticker symbols
                      and convert to tiingo friendly format. Warning may
                      produce incorrect results for non NYSE stocks with PR
                      in their ticker name.
--version             Show program's version number and exit.

学分

此包是用Cookiecutteraudreyr/cookiecutter-pypackage项目模板创建的。在

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

推荐PyPI第三方库


热门话题
java如何使用数据库中的值填充p:selectOneMenu   Java/Junit中的异步单元测试一个非常简单但不成功的例子   在Debian上使用Java连接到MySQL   java测试时如何恢复表中的一条记录/行?   java如何将重点放在jbutton上而不是放在另一个jbutton上?   java我可以从HPROF文件中获取JVM标志吗?   java如何使用自定义比较器在2个集合上保留   java让stringTokenizer将一行文本拆分为预定义变量的最佳方法是什么   Kotlin Android/Java字符串日期时间格式,API21   exchange server EWS Java Api自动发现不工作   netbeans是Java新手,似乎无法修复错误;应为类、接口或枚举。274062   我正在尝试将一些scala代码转换为Java8,以创建新的Lambda和并行集合   流中的分配api(java)   用于串行通信的java Python字节数组