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

# Config
SYMBOL = "BTCUSDT"
BUY_PRICE = 83000 # Send a buy signal when it falls below this price
SELL_PRICE = 85000 # Send a sell signal when it rises above this price
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 \u003c= BUY_PRICE:
print(f"🚀 BUY SIGNAL by Captain {CAPTAIN_CODE}: BTC ${price} is LOW!")
elif price \u003e= SELL_PRICE:
print(f"💰 SELL SIGNAL by Captain {CAPTAIN_CODE}: BTC ${price} is HIGH!")

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