Bitcoin price alerting system

import conf

import time

import json

import requests

from boltiot import Bolt,Sms

bolt=Bolt(conf.API_KEY,conf.DEVICE_ID)

sms=Sms(conf.SID,conf.AUTH_TOKEN,conf.TO_NUMBER,conf.FROM_NUMBER)

print(“Select any one of the following currency input\nINR\nUSD\nJPY\nEUR”)

currency=input(“Enter the above Currency from which you have to invest in:”)

sell_price=float(input(“Enter Your Selling Price:”))

def price_check():

url=("https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms={}".forma>

response=requests.request("GET",url)

response=json.loads(response.text)

current_price=response[currency.upper()]

return current_price 

while True:

market_price=price_check()

print("Market price of Bitcoin is:",market_price)

print("Selling Price is:",sell_price)

try:

     if market_price < sell_price:      

         bolt.digitalWrite("0","HIGH")

         response1=sms.send_sms("The Bitcoins are at price ={} You can Inve>

         print("Status of Sms at Twilo:"+str(response1.status))





     elif market_price > sell_price:

          bolt.digitalWrite("1","HIGH")#BUZZER gets "ON

          response1=sms.send_sms("The Bitcoins are at price ={} You need to>

          print("Status of Sms at Twilo:"+str(response1.status))



except Exception as e:

    print("An error occured\n")

    print(e)

time.sleep(5)

bolt.digitalWrite("0","LOW")#led gets off

bolt.digitalWrite("1","LOW")#buzzer gets off

time.sleep(30)

this is my complete code and i am having this error help me fast plss tommorow is my project review

I believe your query is resolved in another post - What to write in product code for making alert sound in buzzer when price of bitcoin exceeds the selling price - #2 by himanshu.arya

It looks like you’re working in an interesting project with Bitcoin price alerts. The error you’re encountering might be due to an issue in your code. It seems to be related to a missing ‘}’ at the end of your URL string.

Double-check your URL string construction and make sure it’s correctly formatted with the curly braces {}. Also, ensure that you’ve imported the necessary libraries and configured your API keys and other credentials correctly.

Please check your URL string looks like its missing ‘}’.Also make sure you have imported necessary library