Autonomous Execution
Autonomous Trading Agents
Use Case: Deploy agents that execute market strategies across Solana, Ethereum, and other chains. How Treza Helps: Agents run in secure enclaves, use delegated keys to sign transactions, and receive real-time data to act on signals — all without human intervention.
Examples:
Momentum-based trading strategies
MEV-aware arbitrage across DEXs
Stop-loss / take-profit logic on-chain
import { TrezaClient } from '@treza/sdk'
const client = new TrezaClient({
apiKey: process.env.TREZA_API_KEY,
})
// Example: Run a momentum-based strategy on Solana
const task = {
taskName: '0xmomentum_strategy_001', // pre-uploaded agent logic
inputs: {
pair: 'SOL/USDC',
timeframe: '5m',
threshold: 0.015, // Trigger on >1.5% price move
slippage: 0.005,
wallet: 'delegated', // uses scoped delegated keys
},
}
async function executeTrade() {
const result = await client.submitTask(task)
console.log('Trade executed:', result)
}
executeTrade()
🧠 Tip: Task hashes represent specific agent strategies you've uploaded or registered. Inputs are customizable per execution.
Last updated