Metadata-Version: 2.1
Name: disentpy
Version: 0.0.22
Summary: Disent API caller
Home-page: https://github.com/disentcorp/disentpy
Author: Niels lauritzen
Author-email: niels.lauritzen@disent.com
License: UNKNOWN
Description: # disentpy
        
        Python client for Disent's API framework.
        
        ## Installation
        
        Install using `pip`
        
        ```shell
        pip install disentpy
        ```
        
        ## Usage
        
        ```python
        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](https://disentpy.readthedocs.io/en/latest/).
        
        ### Requirements
        
        Using disentpy requires the following packages:
        
        - pandas>=1.0
        - requests>=2.19.0
        
        ### Install latest development version
        
        ```shell
        pip install git+http://github.com/disentcorp/disent_pip.git
        ```
        
        or
        
        ```shell
        git clone pip install https://github.com/disentcorp/disent_pip.git
        cd disentpy
        python setup.py install
        ```
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
