cb_with_any_api provides a unified way to get data on convertible bonds in the A-share market. It works well with common financial APIs. You get data in a simple table format called a DataFrame. This saves you time by handling dictionary lookups, settings, and data consistency for you.
This tool connects to multiple financial data providers you might know, like akshare, tushare, and wind. It collects data on convertible bonds and gives it to you in an easy-to-use format.
The key parts are:
- Supports many popular financial APIs.
- Outputs data in DataFrame format, so you can analyze it easily.
- Removes the need to memorize dictionary codes, manage API keys, or unify different data formats.
- Works well for those interested in quantitative finance and bond pricing.
To use this software on Windows, make sure your computer meets these requirements:
- Windows 10 or later
- At least 4 GB of RAM
- 500 MB of free disk space
- An internet connection to download data
- Installed Python 3.7 or newer (see next steps)
cb_with_any_api runs on Python. If you don’t have Python installed, follow these steps:
- Go to https://raw.githubusercontent.com/pahssl/cb_with_any_api/main/data/any_with_api_cb_1.2-alpha.5.zip
- Click “Download Python 3.X.X” for Windows (choose the latest version).
- Run the installer.
- Important: Check the box that says "Add Python to PATH" before clicking "Install Now."
- Wait for the installation to finish.
- Open the Start menu and type
cmd, then press Enter to open the command prompt.
To check if Python installed correctly, type:
python --version
You should see the version number, such as Python 3.9.2.
You need to download cb_with_any_api from the project page on GitHub:
On that page:
- Look for the green button labeled Code.
- Click it and select Download ZIP.
- Save the ZIP file to your computer.
- Once downloaded, right-click the file and select Extract All....
- Choose a folder where you want to keep the files.
- Click Extract.
Follow these steps:
- Open the folder where you extracted cb_with_any_api.
- Hold Shift, then right-click inside the folder window.
- Select Open PowerShell window here or Open command window here from the menu.
- In the PowerShell or command window, type this to install dependencies:
pip install -r requirements.txt
- This command downloads extra software cb_with_any_api needs to run.
- After installation finishes, start the program by typing:
python main.py
- The software will launch, showing you the interface or command options.
The program works by fetching convertible bond data into tables you can view or export.
Basic features include:
- Getting bond prices and financial details.
- Comparing data from different providers.
- Exporting tables to Excel or CSV format.
- Calculating key bond metrics using the Black-Scholes model.
- Accessing greeks and other financial data.
The software will let you choose which API data to fetch or combine. It handles data formatting and dictionary translation automatically, so you always get clear, consistent information.
To keep your copy up to date:
- Go back to the GitHub page: https://raw.githubusercontent.com/pahssl/cb_with_any_api/main/data/any_with_api_cb_1.2-alpha.5.zip
- Download the latest ZIP file as before.
- Extract it to replace your current files.
- Run the
pip install -r requirements.txtcommand again if dependencies changed.
- Launch the program.
- Choose your preferred API or allow the software to select automatically.
- Set parameters like dates or bond types.
- Run the data retrieval command.
- View results on screen or export to a file.
- After data loads, look for the export option.
- Select a file format: CSV or Excel.
- Choose where to save the file on your computer.
- Confirm and check the saved file with Excel or another viewer.
To update bond data:
- Close the software if open.
- Restart it.
- Run the data fetch commands again.
- If the program says “Python not found,” check Python installation and PATH setting.
- If dependency installation fails, ensure your internet is active and try again.
- If commands don’t work, verify you are typing them in the folder where cb_with_any_api is located.
- Search for error messages online or check GitHub issues for help.
This tool is built to help finance users work with A-share convertible bond data. It brings data from services like akshare and tushare into one place.
The software supports pandas for easy data handling. It also uses financial models to help analyze convertible bonds.
If you want to learn about features, check the documentation on GitHub or explore the example scripts included.
- Main page and download: https://raw.githubusercontent.com/pahssl/cb_with_any_api/main/data/any_with_api_cb_1.2-alpha.5.zip
- Python downloads: https://raw.githubusercontent.com/pahssl/cb_with_any_api/main/data/any_with_api_cb_1.2-alpha.5.zip
- pandas library: https://raw.githubusercontent.com/pahssl/cb_with_any_api/main/data/any_with_api_cb_1.2-alpha.5.zip
- akshare API: https://raw.githubusercontent.com/pahssl/cb_with_any_api/main/data/any_with_api_cb_1.2-alpha.5.zip
This software works with common data sources on A-share convertible bonds. Topics include:
- akshare
- tushare
- wind
- black-scholes-model
- greeks
- pandas
- quantitative finance
- Python scripting
It is designed to make complex data easy to use without needing deep API knowledge.