Python SunSwap Demo
some examples of interact with sunswap using python
demo1.py
check the USDT balance on the account
monitor the price of SUN, if the price of SUN is lower than 0.0054 USDT/SUN, buy 1 USDT of SUN.
References
tron explorer:
tron developers docs:
https://developers.tron.network/docs
tron api key
https://developers.tron.network/reference/select-network
tronpy: