Disent API caller
Project description
disentpy
Python client for Disent's API framework.
Installation
Install using pip
pip install disentpy
Usage
import disent
# get AAPL vol surface (list of dicts)
model="DEMO_EQD_VOLS"
ticker = 'AAPL'
model_args = {'ticker':ticker}
df = disent.hub(model,model_args)
print(df)
# get AAPL vol surface (pivoted on K)
model_args = {'ticker':ticker,'pivot':'T_DATE,K,IV'}
df = disent.hub(model,model_args)
print(df)
# lambdify disent call for any ticker
f_vols = lambda i: disent.hub(model,{'ticker':i})
print(f_vols('SPX'))
print(f_vols('RTY'))
Documentation
Latest documentation is hosted on read the docs.
Requirements
Using disentpy requires the following packages:
- pandas>=1.0
- requests>=2.19.0
Install latest development version
pip install git+http://github.com/disentcorp/disent_pip.git
or
git clone pip install https://github.com/disentcorp/disent_pip.git
cd disentpy
python setup.py install
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
disentpy-0.0.24.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file disentpy-0.0.24.tar.gz
.
File metadata
- Download URL: disentpy-0.0.24.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b717b0953b23826c6ab52c5f254df4902f11aa8fa6e89b35a5aeaaf3fa8b62c |
|
MD5 | ac84c117c3da719ca4dd312faab1717f |
|
BLAKE2b-256 | 8bbaf1644ca8d0da1d79b7f85275a6dfa2e203b60bab4b9a60f1f899304f558f |
File details
Details for the file disentpy-0.0.24-py3-none-any.whl
.
File metadata
- Download URL: disentpy-0.0.24-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8cef390b476d28306bcab72e0eea3aa5d71021e2235f1bc1219cfe9b831d8f8 |
|
MD5 | 41592927b0abe5cb26f22860252bd8d6 |
|
BLAKE2b-256 | e7bd83d2d76a3c41eef1021eb0e1e08718a0495c4ddd394cb37fa6554923e612 |