Is there a guide to get token price with Python?
i try this but no response
chain = "bsc"
network = 'https://speedy-nodes-nyc.moralis.io/88f9e10ecc7056e5ba53e173/' + chain + '/mainnet'
web3find = Web3(Web3.HTTPProvider(network))
print(web3find.isConnected())
tokenAddress = web3.toChecksumAddress(input( pairaddress))
erc20balance = 'https://deep-index.moralis.io/api/v2/erc20?chain=' + chain +"/"+ tokenAddress + "/price"
headers = {
'x-api-key': '...........'
}
response = requests.request("GET", erc20balance, headers=headers)
resp = response.json()
You can do it, you will find a python example on forum in another thread