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,env='disent-cloud')
print(df)
# get AAPL vol surface (pivoted on K)
model_args = {'ticker':ticker,'pivot':'T_DATE,K,IV'}
df = disent.hub(model,model_args,env='disent-cloud')
print(df)
# lambdify disent call for any ticker
f_vols = lambda i: disent.hub(model,{'ticker':i},env='disent-cloud')
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.10.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for disentpy-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f1ee838b98832df0af0448593b67cb65fb9b8c6d59ec58cd5103a10faa5a1e |
|
MD5 | 716d738987b5ea62cd6bc0f6fa32c922 |
|
BLAKE2b-256 | c46f68f26e643b7e7fef2ee92b52fd91426b4d5f653c03ca24110f4cc74d5d69 |