Agentic Finance <> @almanak /\ class TradingAgent: def __init__(self): self.wallet = connect_wallet() self.strategy = "arbitrage" def perceive(self): # Verkrijg prijzen van DEX's uniswap_price = get_price("uniswap", "ETH/USDC") sushiswap_price = get_price("sushiswap", "ETH/USDC") return {"uni": uniswap_price, "sushi": sushiswap_price} def decide(self, prices): # Vind arbitragekans if abs(prices["uni"] - prices["sushi"]) > threshold: return "execute_arb" return "wait" def act(self, decision): if decision == "execute_arb": # Voer handel uit swap_eth_for_usdc_on_uniswap() swap_usdc_for_eth_on_sushiswap()