price

Get price of token from pancakeswap (python) no longer working

Get price of token from pancakeswap (python) no longer working Question: This URL used to work nicely to get a coins price from pancakeswap: https://api.pancakeswap.info/api/v2/tokens/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3 …but it appears to no longer work. I assume that pancakeswap has changed their code, and stack overflow questions like this one are outdated. So how do I get the …

Total answers: 1

Bitcoin Chart with log scale Python

Bitcoin Chart with log scale Python Question: I’m using Python (beginner) and I want to plot the Bitcoin price in log scale but without seeing the log price, I want to see the linear price. import pandas as pd import matplotlib.pyplot as plt import numpy as np from cryptocmd import CmcScraper from math import e …

Total answers: 1

Django – Python: 'int' object has no attribute 'get'

Django – Python: 'int' object has no attribute 'get' Question: I am setting up a Django project to allow tickets to be sold for various theatre dates with a price for adults and a price for children. I have created a models.py and ticket_details.html. I am unfortunately receiving the following error: ‘int’ object has no …

Total answers: 1