Metadata-Version: 2.1
Name: conding
Version: 0.1.1
Summary: Python library for analysing and modelling bonding curves. This library is managed using nbdev with application development in python param panel.
Home-page: https://github.com/bonding-curves/conding
Author: Shawn Anderson
Author-email: shawn@longtailfinancial.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas (>=1.5.3)
Requires-Dist: hvplot (>=0.8.3)
Requires-Dist: python-dotenv (>=1.0.0)
Requires-Dist: dune-client (>=1.0.0)
Requires-Dist: diskcache (>=5.6.1)
Requires-Dist: pyparsing (>=3.0.9)
Requires-Dist: yfinance (>=0.2.18)
Provides-Extra: dev
Requires-Dist: nbdev (>=2.3.12) ; extra == 'dev'
Requires-Dist: jupyterlab (==3.6.0) ; extra == 'dev'
Requires-Dist: ipython (>=8.12.0) ; extra == 'dev'
Requires-Dist: icecream (>=2.1.3) ; extra == 'dev'

# conding

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Usage

``` python
from conding.dune.tec import TECDashboard

tec = TECDashboard()

tec.market_information.holders_distribution()
```

    Unable to display output for mime type(s): application/javascript, application/vnd.holoviews_load.v0+json

    Unable to display output for mime type(s): application/javascript, application/vnd.holoviews_load.v0+json

<style>.bk-root, .bk-root .bk:before, .bk-root .bk:after {
  font-family: var(--jp-ui-font-size1);
  font-size: var(--jp-ui-font-size1);
  color: var(--jp-ui-font-color1);
}
</style>
<div>
<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }
&#10;    .dataframe tbody tr th {
        vertical-align: top;
    }
&#10;    .dataframe thead th {
        text-align: right;
    }
</style>

|     | rank_number | address                                            | balance      | perc         | cumulative_perc |
|-----|-------------|----------------------------------------------------|--------------|--------------|-----------------|
| 0   | 1           | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.500717e+05 | 8.264853e-02 | 0.082649        |
| 1   | 2           | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.060533e+05 | 5.840639e-02 | 0.141055        |
| 2   | 3           | \<a href="https://blockscout.com/xdai/mainnet/a... | 7.383866e+04 | 4.066494e-02 | 0.181720        |
| 3   | 4           | \<a href="https://blockscout.com/xdai/mainnet/a... | 6.933751e+04 | 3.818603e-02 | 0.219906        |
| 4   | 5           | \<a href="https://blockscout.com/xdai/mainnet/a... | 5.916598e+04 | 3.258430e-02 | 0.252490        |
| ... | ...         | ...                                                | ...          | ...          | ...             |
| 540 | 541         | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.024000e-15 | 5.639443e-22 | 1.000000        |
| 541 | 542         | \<a href="https://blockscout.com/xdai/mainnet/a... | 2.560000e-16 | 1.409861e-22 | 1.000000        |
| 542 | 543         | \<a href="https://blockscout.com/xdai/mainnet/a... | 8.000000e-17 | 4.405815e-23 | 1.000000        |
| 543 | 544         | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.600000e-17 | 8.811630e-24 | 1.000000        |
| 544 | 545         | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.000000e-18 | 5.507269e-25 | 1.000000        |

<p>545 rows × 5 columns</p>
</div>

``` python
tec.abc_tributes.tribute_distribution()
```

<div>
<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }
&#10;    .dataframe tbody tr th {
        vertical-align: top;
    }
&#10;    .dataframe thead th {
        text-align: right;
    }
</style>

|     | date                 | action | sum(tribute) | tribute_total |
|-----|----------------------|--------|--------------|---------------|
| 0   | 2022-04-01T00:00:00Z | Sell   | 364.927505   | 96097.104858  |
| 1   | 2022-05-01T00:00:00Z | Buy    | 502.690920   | 96097.104858  |
| 2   | 2022-05-01T00:00:00Z | Sell   | 27525.756009 | 96097.104858  |
| 3   | 2022-06-01T00:00:00Z | Buy    | 18.424300    | 96097.104858  |
| 4   | 2022-06-01T00:00:00Z | Sell   | 9637.008165  | 96097.104858  |
| 5   | 2022-07-01T00:00:00Z | Buy    | 46.280000    | 96097.104858  |
| 6   | 2022-07-01T00:00:00Z | Sell   | 875.231330   | 96097.104858  |
| 7   | 2022-08-01T00:00:00Z | Buy    | 84.000440    | 96097.104858  |
| 8   | 2022-08-01T00:00:00Z | Sell   | 3578.698760  | 96097.104858  |
| 9   | 2022-09-01T00:00:00Z | Buy    | 440.034000   | 96097.104858  |
| 10  | 2022-09-01T00:00:00Z | Sell   | 6524.963118  | 96097.104858  |
| 11  | 2022-10-01T00:00:00Z | Buy    | 0.448273     | 96097.104858  |
| 12  | 2022-10-01T00:00:00Z | Sell   | 7265.726778  | 96097.104858  |
| 13  | 2022-11-01T00:00:00Z | Buy    | 42.080000    | 96097.104858  |
| 14  | 2022-11-01T00:00:00Z | Sell   | 7948.406669  | 96097.104858  |
| 15  | 2022-12-01T00:00:00Z | Buy    | 1.260000     | 96097.104858  |
| 16  | 2022-12-01T00:00:00Z | Sell   | 6767.473366  | 96097.104858  |
| 17  | 2023-01-01T00:00:00Z | Buy    | 0.310000     | 96097.104858  |
| 18  | 2023-01-01T00:00:00Z | Sell   | 3886.310413  | 96097.104858  |
| 19  | 2023-02-01T00:00:00Z | Buy    | 0.100000     | 96097.104858  |
| 20  | 2023-02-01T00:00:00Z | Sell   | 4413.471438  | 96097.104858  |
| 21  | 2023-03-01T00:00:00Z | Buy    | 3.100000     | 96097.104858  |
| 22  | 2023-03-01T00:00:00Z | Sell   | 13877.419531 | 96097.104858  |
| 23  | 2023-04-01T00:00:00Z | Buy    | 460.600000   | 96097.104858  |
| 24  | 2023-04-01T00:00:00Z | Sell   | 1832.383842  | 96097.104858  |

</div>

## Installation

### Installing as a Package

pip install:

``` sh
pip install conding
```

Export your Dune API Key as an environment variable.

``` sh
export DUNE_API_KEY='<Your Key>'
```

### Local Development

Clone the repository

``` sh
git clone git@github.com:bonding-curves/conding.git
cd conding
```

Add your Dune API Key to the .env file.

``` sh
mv .env.template .env
vi .env
```

Install the requirements with poetry. For instructions on installing
poetry see: https://python-poetry.org/docs/

``` sh
poetry install --with dev
poetry shell
```

### Using NBDev

When first running the package, install git hooks and quarto

``` sh
nbdev_install_hooks
nbdev_install_quarto
```

Run tests with nbdev

``` sh
nbdev_test
```

View documentation locally

``` sh
nbdev_preview
```

Export changes made to notebooks

``` sh
nbdev_export
```

Build Documentation

``` sh
nbdev_docs
```

See more options

``` sh
nbdev_help
```

See https://nbdev.fast.ai/ for more information on Nbdev.
