一个CLI工具,可以接近日价格和年度股息
tiingo-prices的Python项目详细描述
一个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.
学分
此包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。在
- 项目
标签: