I'm using JSON and requests for getting some prices for some thresholds from an URL.
How can I get the price for a specific symbol, for instance, the price of Z1?
Here is the output of url:
[{"symbol":"E1","price":"89"},{"symbol":"E2","price":"87"},{"symbol":”Z1","price":"73"},{"symbol":"D4","price":"47"}]
My code goes like:
def prices():
priceTick = requests.get('https://www.examples/prices')
return priceTick.json()