Wrapper for financial database APIs
Project description
HongXiongMao Refuel
Toolbox for importing data from various financial sources; for a personal project so if you are here by accident I highly advise you look elsewhere.
Bloomberg API
In order to make calls to Bloomberg we must have the blpapi
installed.
We then extend the excellent xbbg
package.
One complication is the installation of blpapi
which is a bit of a pain in the backside.
According to the Bloomberg website one can install using pip with:
python -m pip install --index-url=https://bcms.bloomberg.com/pip/simple blpapi
For Poetry there are 2 steps required: Setting up Bloomberg as a source & then installing; This is FYI because the pyproject.toml file should take care of this.
poetry source add --priority bloomberg https://bcms.bloomberg.com/pip/simple
poetry add --source bloomberg blpapi
Publishing to PyPi
I'm no pro at deploying packages to PyPi, so have been following
this tutorial
Key points:
- (PyPi account is required)[https://pypi.org/manage/account/#account-emails]
- (Configure Poetry)[https://python-poetry.org/docs/repositories/#configuring-credentials]
- poetry build
- poetry publish
# configure API key
poetry config pypi-token.pypi <pypi-reallyREALLYllongKEY...>
# The build bit
(base) (hxm-refuel-py3.10) PS C:\Users\XXX\Documents\GitHub\hxm-refuel> poetry build
Building hxm-refuel (0.1.0)
- Building sdist
- Built hxm_refuel-0.1.0.tar.gz
- Building wheel
- Built hxm_refuel-0.1.0-py3-none-any.whl
# publishing bit
(base) (hxm-refuel-py3.10) PS C:\Users\T333208\Documents\GitHub\hxm-refuel> poetry publish
Publishing hxm-refuel (0.1.0) to PyPI
- Uploading hxm_refuel-0.1.0-py3-none-any.whl 0%
- Uploading hxm_refuel-0.1.0-py3-none-any.whl 85%
- Uploading hxm_refuel-0.1.0-py3-none-any.whl 100%
- Uploading hxm_refuel-0.1.0.tar.gz 0%
- Uploading hxm_refuel-0.1.0.tar.gz 100%
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hxm_refuel-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e57d43b220b538b2bb4f2cd29d3efc9a596a0010cc978cbc0070be2ec93abe6 |
|
MD5 | 04f37b20b02671b346961f047b5c7278 |
|
BLAKE2b-256 | 7e868d7550592d808ff1b439690852416d37522d41cc89789fa1a0e3d2fed44d |