I'm trying to get a quote in Jupyter with Python, however it keeps giving me the error: "{'error': 'The route plan does not consume all the input amount, please lower your input amount'}". I've tried a bunch of different amounts but nothings working. The idea is to get the quote of how many tokens i'd get in the desired contract/token with 0.1 SOL.
def quote():
url = "https://quote-api.jup.ag/v6/quote"
payload = {
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "tokencontractaddress",
"amount": "100000000",
"onlyDirectRoutes": "true"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.get(url, params=payload, headers=headers)