一个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包创建可执行jar文件   使用SFDC合作伙伴API创建新的“OpportunityLineItemSchedule”时发生java错误   java如何将一些用户定义的自定义参数直接插入到动态清单中?   java确定JFrame的图形配置?   java 安卓 studio中PendingEvent中的请求代码是什么   java如何在javaFx中为多个场景创建一个菜单栏   java ListNode头。下一个next=新的ListNode(0);这个错误是什么?   javax-to-Google-text-api。网ssl。异常:管道破裂   JAVAlang.ClassCastException:org。冬眠hql。内部的阿斯特。树无法将SqlNode转换为组织。冬眠hql。内部的阿斯特。树FromReferenceNode   jxl中程序关闭时java数据损坏   在java中从arraylist获取对象字段   继承java如何在实现父方法的同时扩展类   java spring boot thin jar什么都不做   java Eclipse消息称列表无法解析为类型   Java中的swing简单动画   java将prejson编码的字符串输出到spring框架   java ExpandableListView。setOnClickListener工作不正常   java将servletinputstream转换为sequenceinputstream   用Java4th版思考(尝试使用NetBeans构建本书的项目,但没有成功)   如何使用java从PostgreSQL数据库中的现有数据库创建新的XML文件