Skip to content

Commit

Permalink
Merge pull request #4 from itzmestar/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
itzmestar committed Apr 28, 2024
2 parents 2f9de22 + 73ae642 commit 7ac7532
Show file tree
Hide file tree
Showing 4 changed files with 414 additions and 30 deletions.
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Token Terminal

[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)
[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

[![Build](https://github.com/itzmestar/tokenterminal/actions/workflows/python-package.yml/badge.svg?branch=main)](https://github.com/itzmestar/tokenterminal/actions/workflows/python-package.yml)

-------

### Unofficial [Token Terminal API](https://www.tokenterminal.com/) client in python
Expand Down Expand Up @@ -50,4 +47,33 @@ for project_info in projects_data:
project_metrics = token_terminal.get_historical_metrics('0x')
for metrics in project_metrics:
print(metrics)
```
# To retrieve the metric availability for a project.
reponse = token_terminal.get_metric_availability(project_id=project_id)
# To retrieve metric aggregation data for one project.
reponse = token_terminal.get_metric_aggregations(project_id=project_id)
# Get financial statement for a project
reponse = token_terminal.get_financial_statement(
project_id=project_id,
timestamp_granularity='week',
interval='1m'
)
# Get list of all available market sectors that are available
reponse = token_terminal.get_market_sectors()
# Get list of all metrics
reponse = token_terminal.get_all_metrics()
# To retrieve metric aggregations for multiple projects.
project_ids = ['aave', 'uniswap']
reponse = token_terminal.get_projects_metric_aggregations(project_ids=project_ids)
```
-------
#### Donate & Help maintain the library

[![Paypal](qrcode.png)](https://www.paypal.com/ncp/payment/KLFNJN7SH39EN)

-------
Binary file added qrcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tokenterminal/__version__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__title__ = 'tokenterminal'
__description__ = 'Unofficial Token Terminal API client.'
__url__ = 'https://github.com/itzmestar/tokenterminal'
__version__ = '1.0.1'
__version__ = '2.0.0'
__build__ = 0x010001
__author__ = 'Tarique Anwer'
__author_email__ = 'itzmetariq@gmail.com'
Expand Down
Loading

0 comments on commit 7ac7532

Please sign in to comment.