DeDust - DeDust v2 API for Python.
Project description
DeDust API for Python
Library for connecting DeDust API to Python apps.
Description
You can get token prices, volumes and liquidity.
Getting Started
Dependencies
- aiohttp
Installing
pip install dedust
Using
Example of getting data about token.
import asyncio
from dedust.api import API
from dedust.tokens import Token
TOKEN = 'EQBlqsm144Dq6SjbPI4jjZvA1hqTIP3CvHovbIfW_t-SCALE'
async def main():
api = API()
token = Token(api, TOKEN)
print(f'$SCALE price: {await token.get_price()} TON')
print(f'Volume: {(await token.get_volume())[0]} TON')
print(f'Liquidity: {(await token.get_liquidity())[0]} TON')
print(f'$LP token: {await token.get_lp_token_address()}')
if __name__ == '__main__':
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(main())
Authors
Version History
- 0.0.5
- License change
- 0.0.4
- Dependecies fix
- 0.0.3
- Examples fix
- 0.0.2
- LP token address getting
- 0.0.1
- Initial Beta
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Donate
If you like the bot, I will be glad to accept donations.
- TON: EQCgphx8rTI0PukwmgpVqiPgqguTujhQscg2h7jgc4U0t347
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dedust-0.0.5.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for dedust-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f21c38a3f9fbc8cffb3476ebe6259dfdfb2c185f601d1356c29953c1f3233135 |
|
MD5 | bb48a090162ab33d453c20251719e3ed |
|
BLAKE2b-256 | 906b384107ab33f5296753c51a6808aa69301f0651240328fc3ac727bd24a0bc |