ROBERT OTHON: Got the linux rig watching cryptok thru a hotspot now, Heres how i did it import requests import time import os # ---

Got the linux rig watching cryptok thru a hotspot now, Heres how i did it import requests import time import os # --- SETTINGS --- TOKEN_ADDRESS = "ESsCdmGyPK9sostFbWV5iM6owxcqsGNfBQaj3xkAkREV" CHECK_INTERVAL = 10 # Seconds between checks (higher for hotspot stability) def get_cryptok_data(): url = f"https://api.dexscreener.com/latest/dex/tokens/{TOKEN_ADDRESS}" try: # 12s timeout gives the hotspot more 'breathing room' response = requests.get(url, timeout=12) if response.status_code == 200: data = response.json() # Find the most active pair (highest volume) if data.get('pairs'): # Sort pairs by 24h volume to get the 'main' pool main_pair = sorted(data['pairs'], key=lambda x: x.get('volume', {}).get('h24', 0))[-1] return { "price": main_pair.get('priceUsd'), "change5m": main_pair.get('priceChange', {}).get('m5', 0), "vol5m": main_pair.get('volume', {}).get('m5', 0), "dex": main_pair.get('dexId') } except Exception as e: return f"Error: {e}" return None def monitor(): print(f"🚀 Monitoring CrypTok Price...") print(f"Target Address: {TOKEN_ADDRESS[:6]}...{TOKEN_ADDRESS[-4:]}") print("-" * 30) while True: stats = get_cryptok_data() if isinstance(stats, dict): # Format the output for readability p = float(stats['price']) if stats['price'] else 0 c = float(stats['change5m']) # Add a 'status' emoji based on the 5-minute swing emoji = "🔥" if c > 1.0 else "📉" if c < -1.0 else "➡️" print(f"[{time.strftime('%H:%M:%S')}] {emoji} Price: ${p:.6f} | 5m: {c:+.2f}% | DEX: {stats['dex']}") else: print(f"[{time.strftime('%H:%M:%S')}] ⚠️ Connection jitter... retrying.") time.sleep(CHECK_INTERVAL) if __name__ == "__main__": monitor()

Posted by ROBERT OTHON (@othon) on .

View this post on CrypTok — the future of social media with zero-fee crypto tipping, live streaming, and DeFi powered by Solana.

Log in