1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
64d0e1ce32 🤖 Bumped version to 0.1.45
All checks were successful
Package Python / Package (push) Successful in 24s
Python Ruff Code Quality / ruff (push) Successful in 22s
Run Python tests (through Pytest) / Test (push) Successful in 28s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s
This commit was automatically generated by a script: https://gitfub.space/Jmaa/repo-manager
2024-11-29 00:45:59 +01:00
2aa6203898 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/repo-manager
2024-11-29 00:45:48 +01:00
3 changed files with 87 additions and 1 deletions

View File

@ -47,6 +47,49 @@ Uses their [API](https://www.nordnet.dk/externalapi/docs/api). Thanks to
utilities](https://github.com/helmstedt/nordnet-utilities), which helped with
implementing this functionality. Exposes the same data as the home page.
## Example Application
The library ships with an example application in the form of a CLI program that
can display a tree representation of assets in known depositories:
```bash
python -m fin_depo
```
Example output:
```
Aggregated
├─ Kraken
│ ├─ BTC 0.00871009
│ └─ EUR 200.5
└─ Kucoin
├─ Kucoin trade
│ ├─ BTC 0.00169297
│ └─ USDT 20
└─ Kucoin main
├─ BTC 0
└─ USDT 40
```
## Usage
Using the Kraken API as an example:
```python
depo_fetcher = fin_depo.defi_kraken.KrakenDepoFetcher(
KRAKEN_KEY, KRAKEN_SECRET,
)
depo = depo_fetcher.get_depo()
depo.assets()
> [BTC, USDT]
depo.get_amount_of_asset(BTC)
> 0.1
```
## Future extension
- [ ] Investment Bank: Saxo Bank OpenAPI

View File

@ -1 +1 @@
__version__ = '0.1.44'
__version__ = '0.1.45'

View File

@ -52,6 +52,49 @@ Uses their [API](https://www.nordnet.dk/externalapi/docs/api). Thanks to
utilities](https://github.com/helmstedt/nordnet-utilities), which helped with
implementing this functionality. Exposes the same data as the home page.
## Example Application
The library ships with an example application in the form of a CLI program that
can display a tree representation of assets in known depositories:
```bash
python -m fin_depo
```
Example output:
```
Aggregated
Kraken
BTC 0.00871009
EUR 200.5
Kucoin
Kucoin trade
BTC 0.00169297
USDT 20
Kucoin main
BTC 0
USDT 40
```
## Usage
Using the Kraken API as an example:
```python
depo_fetcher = fin_depo.defi_kraken.KrakenDepoFetcher(
KRAKEN_KEY, KRAKEN_SECRET,
)
depo = depo_fetcher.get_depo()
depo.assets()
> [BTC, USDT]
depo.get_amount_of_asset(BTC)
> 0.1
```
## Future extension
- [ ] Investment Bank: Saxo Bank OpenAPI