async_blp
Overview
The goal of async_blp is to create simple and fast Bloomberg Open API wrapper that can be used in highload environments.
It allows asynchronous processing of hundreds of
Bloomberg request simultaneously. Currently async_blp provides support for reference and historical data,
instruments lookup and field search, as well as subscriptions.
More request types will be added in the future.
Features
- Fast. Using
asyncioallows to process Bloomberg requests simultaneously while creating little overhead - Simple.
async_blptakes care of creating and managing Bloomberg sessions as well as of parsing responses - User-friendly output. Data is returned as a
pandas.DataFrameobject - Error handling. Security and field errors are returned in a separate object that can be easily inspected
Installation
You can install async_blp from PyPI using
pip install async_blp
Requirements
-
Bloomberg API for Python (more info here: https://www.bloomberg.com/professional/support/api-library/)
python -m pip install --index-url=https://bloomberg.bintray.com/pip/simple blpapi
Documentation
https://async-blp.readthedocs.io/en/latest/
Examples
Before using async_blp, install blpapi from the link above and login in the Bloomberg Terminal.
import async_blp
async def blp_example(loop):
bloomberg = async_blp.AsyncBloomberg(loop=loop)
data, _ = await bloomberg.get_reference_data(['F US Equity'], ['LAST_PRICE'])
# it is important to wait until Bloomberg successfully closes all the sessions
await bloomberg.stop()
return data
More examples can be found here: https://github.com/rockscie/async_blp/tree/master/examples
Metadata
Release files for async-blp 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| async_blp-0.0.1.tar.gz | 18.0 kB | Without provenance | Details for async_blp-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| async_blp-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for async_blp-0.0.1-py3-none-any.whl |
Total release size: 42.1 kB
Release files / async_blp-0.0.1.tar.gz
| Download URL | async_blp-0.0.1.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e81df81c0d5082a2e62f49732f07a878567029c33eb14e7776712f3bd41b4c1
|
|
BLAKE2b-256 checksum How to use checksums |
2a1229ec96b16689d7e93e01bb5db1831096823d2970199493137a205b7bc479
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Release files / async_blp-0.0.1-py3-none-any.whl
| Download URL | async_blp-0.0.1-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7db44e461c7b2cae627a5f3b8df7015aecb3058fbfaa38ed757863bf7ed6dda8
|
|
BLAKE2b-256 checksum How to use checksums |
e7aa653727fb97b0856496be418974a4cb6e6dd02b97f824fc319b6047f41560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Security for async-blp 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.