Compare commits
No commits in common. "64d0e1ce320475f2fbf662d488a35bd029a83158" and "ba988fed6c266dcfc795c25dfb8e47afa984b7d5" have entirely different histories.
64d0e1ce32
...
ba988fed6c
43
README.md
43
README.md
|
@ -47,49 +47,6 @@ Uses their [API](https://www.nordnet.dk/externalapi/docs/api). Thanks to
|
||||||
utilities](https://github.com/helmstedt/nordnet-utilities), which helped with
|
utilities](https://github.com/helmstedt/nordnet-utilities), which helped with
|
||||||
implementing this functionality. Exposes the same data as the home page.
|
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
|
## Future extension
|
||||||
|
|
||||||
- [ ] Investment Bank: Saxo Bank OpenAPI
|
- [ ] Investment Bank: Saxo Bank OpenAPI
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.45'
|
__version__ = '0.1.44'
|
||||||
|
|
43
setup.py
43
setup.py
|
@ -52,49 +52,6 @@ Uses their [API](https://www.nordnet.dk/externalapi/docs/api). Thanks to
|
||||||
utilities](https://github.com/helmstedt/nordnet-utilities), which helped with
|
utilities](https://github.com/helmstedt/nordnet-utilities), which helped with
|
||||||
implementing this functionality. Exposes the same data as the home page.
|
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
|
## Future extension
|
||||||
|
|
||||||
- [ ] Investment Bank: Saxo Bank OpenAPI
|
- [ ] Investment Bank: Saxo Bank OpenAPI
|
||||||
|
|
Loading…
Reference in New Issue
Block a user