akfamily/akshare ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python library for pulling financial and economic data in a really easy way. I want it to feel like a one line data tool for research, where someone can import it, call a function, and get clean table shaped data back for things like stocks, futures, options, bonds, currencies, and macro or economic indicators. It should cover a lot of commonly used data sources, especially China market data, but also support some global market examples like US stocks.
Please make the package easy to install and easy to extend, with clear docs, examples, and a few tests. Include sample usage for fetching historical stock prices by symbol and date range, and another example that plots candlestick style charts from the returned data. The docs can be mainly in Chinese if that fits the project, but basic setup and usage should be obvious. Also add a clear research only disclaimer saying this is not investment advice. If you need details on live data sources or current usage patterns, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit