#BitcoinDipsBelow$81K# Captain MF7866 - Simple BTC Alert Bot
import time
import requests

# Config
SYMBOL = "BTCUSDT"
BUY_PRICE = 83000 # Jab isse neeche aaye to buy signal
SELL_PRICE = 85000 # Jab isse upar jaye to sell signal
CAPTAIN_CODE = "MF7866"

def get_btc_price():
url = f"https://api.binance.com/api/v3/ticker/price?symbol={SYMBOL}"
data = requests.get(url).json()
return float(data['price'])

print(f"Captain {CAPTAIN_CODE} Bot Started...")

while True:
try:
price = get_btc_price()
print(f"BTC Price: ${price}")

if price <= BUY_PRICE:
print(f"🚀 BUY SIGNAL by Captain {CAPTAIN_CODE}: BTC ${price} is LOW!")
elif price >= SELL_PRICE:
print(f"💰 SELL SIGNAL by Captain {CAPTAIN_CODE}: BTC ${price} is HIGH!")

time.sleep(60) # Har 1 minute check karega
except Exception as e:
print(f"Error: {e}")
time.sleep(10)