# AutoHedge | Swarms | Knowledge Base | Instagit

Build your autonomous hedge fund in minutes. AutoHedge harnesses the power of swarm intelligence and AI agents to automate market analysis, risk management, and trade execution.

GitHub Stars: 5.7k

Repository: https://github.com/The-Swarm-Corporation/AutoHedge

---

## Articles

### [How to Configure Output Formats (List, Dict, Str) in AutoHedge](/The-Swarm-Corporation/AutoHedge/configure-output-format-in-autohedge)

Learn how to configure AutoHedge output formats list, dict, or str. Customize conversation history returns for your Python projects effortlessly.

- Tags: how-to-guide
- Published: 2026-09-09

### [What Models Are Used by the Different Agents in AutoHedge?](/The-Swarm-Corporation/AutoHedge/models-used-by-autohedge-agents)

Discover the specific AI models powering each agent in AutoHedge. Learn which models like gpt-4o-mini and gpt-4.1 are assigned to Sentiment-Agent, Risk-Manager, and more.

- Tags: deep-dive
- Published: 2026-09-09

### [How AutoHedge Secures the Solana Private Key: Environment-Based Security Implementation](/The-Swarm-Corporation/AutoHedge/how-solana-private-key-is-secured)

Learn how AutoHedge secures your Solana private key using environment-based security. Keep sensitive credentials out of source code by leveraging .env files and Git exclusion.

- Tags: security
- Published: 2026-09-09

### [Where Are AutoHedge Outputs and Logs Stored? A Complete Guide to Artefact Locations](/The-Swarm-Corporation/AutoHedge/where-autohedge-outputs-and-logs-are-stored)

Find AutoHedge outputs and logs easily. Discover where trading cycle results and granular trade logs are stored in the AutoHedge repository for The-Swarm-Corporation.

- Tags: how-to-guide
- Published: 2026-09-09

### [AutoHedge REPL Commands: Complete Interactive Shell Reference](/The-Swarm-Corporation/AutoHedge/commands-available-in-autohedge-repl)

Explore the AutoHedge REPL commands for interactive shell access. Learn about help, quit, and how to execute financial hedging tasks directly. Master AutoHedge today.

- Tags: api-reference
- Published: 2026-09-09

### [How to Start the AutoHedge Interactive REPL: Command-Line Guide](/The-Swarm-Corporation/AutoHedge/how-to-start-autohedge-interactive-repl)

Start the AutoHedge interactive REPL easily by running the autohedge command. Analyze portfolio hedging with natural language prompts after installation.

- Tags: how-to-guide
- Published: 2026-09-09

### [How Agent Handoffs Are Managed in AutoHedge: A Technical Deep Dive](/The-Swarm-Corporation/AutoHedge/how-agent-handoffs-are-managed)

Discover how AutoHedge manages agent handoffs using the Swarms framework. Learn how the Director Agent automates output distribution to specialized downstream agents without complex routing code.

- Tags: deep-dive
- Published: 2026-09-09

### [Understanding the Structured Output from AutoHedge Agents: A Complete Schema Guide](/The-Swarm-Corporation/AutoHedge/structure-of-autohedge-agent-output)

Explore the structured output from AutoHedge agents. This guide details the JSON schema for thesis, scores, position sizing, and order objects, enabling seamless integration and analysis.

- Tags: api-reference
- Published: 2026-09-09

### [How AutoHedge Discovers Tickers Dynamically from a Task](/The-Swarm-Corporation/AutoHedge/how-autohedge-discovers-tickers-dynamically)

Learn how AutoHedge dynamically discovers stock tickers from tasks using an LLM prompt and Director Agent. Eliminate hard-coded lists for efficient trading.

- Tags: how-to-guide
- Published: 2026-09-09

### [How the AutoHedge Class Manages the End-to-End Trading Workflow](/The-Swarm-Corporation/AutoHedge/trading-workflow-managed-by-autohedge-class)

Discover how the AutoHedge class manages the end-to-end trading workflow. This class initializes context, delegates tasks to specialist agents, and returns formatted results for autonomous trading.

- Tags: how-to-guide
- Published: 2026-09-09

### [How to Get Wallet Holdings Using AutoHedge: A Complete Developer Guide](/The-Swarm-Corporation/AutoHedge/get-wallet-holdings-using-autohedge)

Learn how to get wallet holdings using AutoHedge with this developer guide. This Python wrapper for Jupiter Ultra Swap API retrieves Solana wallet balances programmatically.

- Tags: how-to-guide
- Published: 2026-09-09

### [How AutoHedge Performs Token Discovery with Jupiter: API Integration Guide](/The-Swarm-Corporation/AutoHedge/how-autohedge-performs-token-discovery)

Learn how AutoHedge performs token discovery using the Jupiter API. This guide details symbol searches, mint address lookups, and batch queries for Solana tokens. Explore the AutoHedge repository for code.

- Tags: how-to-guide
- Published: 2026-09-09

### [How to Get Token Prices Using AutoHedge’s Jupiter Integration](/The-Swarm-Corporation/AutoHedge/get-token-prices-using-autohedge-jupiter-integration)

Learn to get token prices with AutoHedge's Jupiter integration. Use the get_token_price function with Solana mint addresses for USD prices via Jupiter's Price API V3.

- Tags: how-to-guide
- Published: 2026-09-09

### [How AutoHedge Integrates with Jupiter APIs for Solana Trading](/The-Swarm-Corporation/AutoHedge/how-autohedge-integrates-with-jupiter-apis)

Learn how AutoHedge integrates with Jupiter APIs to find optimal Solana trading routes and execute transactions efficiently. Discover the Python tools powering this integration.

- Tags: how-to-guide
- Published: 2026-09-09

### [What Is the Sentiment Agent's Function in AutoHedge?](/The-Swarm-Corporation/AutoHedge/sentiment-agent-function-in-autohedge)

Discover the Sentiment Agent's role in AutoHedge. This LLM transforms market text into quantitative sentiment scores for smarter algorithmic trading. Learn how it works.

- Tags: deep-dive
- Published: 2026-09-09

### [How the AutoHedge Execution Agent Generates and Executes Trades on Solana](/The-Swarm-Corporation/AutoHedge/how-execution-agent-generates-trades)

Learn how the AutoHedge Execution Agent generates and executes trades on Solana. It converts trading theses into signed blockchain transactions via LLM prompts and Jupiter Ultra.

- Tags: how-to-guide
- Published: 2026-09-09

### [AutoHedge Risk Manager Agent: Quantitative Risk Management for Algorithmic Trading](/The-Swarm-Corporation/AutoHedge/risk-management-provided-by-risk-manager-agent)

AutoHedge Risk Manager Agent provides quantitative risk management for algorithmic trading. Get position sizing, drawdown calculations, market risk exposure, and risk scoring.

- Tags: deep-dive
- Published: 2026-09-09

### [How the Quant Agent Performs Technical Analysis in AutoHedge: LLM-Driven Quantitative Workflows](/The-Swarm-Corporation/AutoHedge/how-quant-agent-performs-technical-analysis)

Discover how the Quant Agent performs technical analysis in AutoHedge. It uses LLM-driven workflows to convert qualitative theses into structured JSON for risk assessment. Learn more now.

- Tags: deep-dive
- Published: 2026-09-09

### [What Is the Role of the Director Agent in AutoHedge? A Technical Deep Dive](/The-Swarm-Corporation/AutoHedge/role-of-director-agent-in-autohedge)

Discover the Director Agent's role in AutoHedge. This technical deep dive explains how it orchestrates market analysis and synthesizes sub-agent outputs for actionable trading.

- Tags: deep-dive
- Published: 2026-09-09

### [How the AutoHedge Multi-Agent Pipeline Works: From Market Analysis to Trade Execution](/The-Swarm-Corporation/AutoHedge/how-autohedge-multi-agent-pipeline-works)

Discover how the AutoHedge multi-agent pipeline streamlines trading. Learn how specialized agents collaborate for market analysis, risk management, and efficient trade execution from The Swarm Corporation.

- Tags: deep-dive
- Published: 2026-09-09

### [AutoHedge Environment Variables: Required Keys and Configuration Guide](/The-Swarm-Corporation/AutoHedge/required-environment-variables-for-autohedge)

Discover the essential AutoHedge environment variables required for setup. Learn how to configure OPENAI_API_KEY, JUPITER_API_KEY, SOLANA_PRIVATE_KEY, MASSIVE_API_KEY, and EXA_API_KEY for seamless operation.

- Tags: configuration-guide
- Published: 2026-09-09

### [How to Set Up AutoHedge with Your API Keys](/The-Swarm-Corporation/AutoHedge/how-to-set-up-autohedge-with-api-keys)

Easily set up AutoHedge using your API keys. Learn how to configure your environment variables and start automating your hedging strategies effectively.

- Tags: how-to-guide
- Published: 2026-09-09

### [What Are the Default Settings for output_dir and output_file_path in AutoHedge?](/The-Swarm-Corporation/AutoHedge/what-are-the-default-settings-for-output_dir-and-output_file_path-in-autohedge)

Discover the default settings for output_dir and output_file_path in AutoHedge. Learn how AutoHedge automatically creates timestamped files in the outputs folder.

- Tags: api-reference
- Published: 2026-09-08

### [How the Director Agent Discovers Tickers in AutoHedge: Implementation and Code Analysis](/The-Swarm-Corporation/AutoHedge/how-does-the-director-agent-discover-tickers-based-on-the-users-task)

Discover how AutoHedge's Director Agent uses LLM prompts to extract stock tickers from user tasks into a JSON array for precise analysis. Learn the implementation and code.

- Tags: internals
- Published: 2026-09-08

### [How to Format the Execution Order Prompt for an AutoHedge Agent](/The-Swarm-Corporation/AutoHedge/how-to-format-the-execution-order-prompt-for-an-agent)

Learn to format the AutoHedge Execution Order Prompt to ensure machine-parseable trade instructions like BUY NVDA 150 @ MARKET, converting plans into actionable broker commands.

- Tags: how-to-guide
- Published: 2026-09-08

### [How to Format the Risk Assessment Prompt for an AutoHedge Agent](/The-Swarm-Corporation/AutoHedge/how-to-format-the-risk-assessment-prompt-for-an-agent)

Learn how to format the Risk Assessment Prompt for an AutoHedge agent. Use Python's str.format() to populate the RISK_ASSESSMENT_PROMPT template with your stock data.

- Tags: how-to-guide
- Published: 2026-09-08

### [Where Are the Prompt Templates in AutoHedge and How to Use Them](/The-Swarm-Corporation/AutoHedge/where-are-the-prompt-templates-located-in-the-autohedge-project-and-how-can-they-be-used)

Find AutoHedge prompt templates in prompts.py and learn how to use them with workers.py to configure your autonomous trading agents.

- Tags: how-to-guide
- Published: 2026-09-08

### [AutoHedge Environment Variables: Required Keys and Configuration](/The-Swarm-Corporation/AutoHedge/what-environment-variables-are-required-to-run-autohedge-and-how-are-they-loaded)

Learn the five essential AutoHedge environment variables, including API keys and private keys, and discover how they are loaded using python-dotenv for seamless startup and configuration.

- Tags: api-reference
- Published: 2026-09-08

### [How to Generate a Swap Quote and Execute a Trade Using AutoHedge's UltraTools](/The-Swarm-Corporation/AutoHedge/how-to-generate-a-swap-quote-and-execute-a-trade-using-autohedges-ultra_tools)

Learn to generate swap quotes and execute trades with AutoHedge's UltraTools. This guide covers using get_order() for quotes and execute_trade() for signed transactions via the Jupiter Ultra API.

- Tags: how-to-guide
- Published: 2026-09-08

### [AutoHedge Wrapped SOL and USDC Mint Addresses: A Complete Guide](/The-Swarm-Corporation/AutoHedge/what-are-the-mint-addresses-for-wrapped-sol-and-usdc-in-the-context-of-autohedge)

Find the official Wrapped SOL and USDC mint addresses for AutoHedge. Get the precise contract addresses directly from the AutoHedge repository to ensure secure integration.

- Tags: api-reference
- Published: 2026-09-08

### [How to Fetch Real-Time Token Prices Using AutoHedge's `get_token_price` Function](/The-Swarm-Corporation/AutoHedge/how-to-fetch-real-time-token-prices-using-autohedges-get-token_price-function)

Learn how to fetch real-time token prices with AutoHedge's get_token_price function. Get live USD prices for Solana tokens using Python and Jupiter's Price API V3.

- Tags: how-to-guide
- Published: 2026-09-08

### [Available Trading Tools in the AutoHedge Tools Registry: A Complete Guide](/The-Swarm-Corporation/AutoHedge/what-are-the-available-trading-tools-in-the-autohedge-tools-registry)

Discover the five essential trading tools in the AutoHedge tools registry including search_tokens, get_token_price, execute_trade, get_holdings, and get_order. Access them all via get_tools().

- Tags: api-reference
- Published: 2026-09-08

### [How AutoHedge Integrates with the Jupiter Ultra API for Solana Trading](/The-Swarm-Corporation/AutoHedge/how-does-autohedge-integrate-with-the-jupiter-ultra-api-for-solana-trading)

Discover how AutoHedge integrates with the Jupiter Ultra API for efficient Solana trading. Explore Python tools for optimal swap routes, real-time pricing, and transaction execution.

- Tags: how-to-guide
- Published: 2026-09-08

### [How to Run AutoHedge Using the Command-Line Interface (CLI)](/The-Swarm-Corporation/AutoHedge/how-to-run-autohedge-using-the-command-line-interface-cli)

Learn to run AutoHedge using the command-line interface (CLI). Access its interactive REPL via the autohedge command or python -m autohedge for seamless execution.

- Tags: how-to-guide
- Published: 2026-09-08

### [AutoHedge Class Output Formats: List, Dict, and String Explained](/The-Swarm-Corporation/AutoHedge/what-are-the-different-output-formats-supported-by-the-autohedge-class)

Explore AutoHedge class output formats list, dict, and string. Learn how to control data representation with the output_type parameter for seamless integration.

- Tags: api-reference
- Published: 2026-09-08

### [How to Initialize the AutoHedge System with Custom Parameters](/The-Swarm-Corporation/AutoHedge/how-to-initialize-the-autohedge-system-with-custom-parameters)

Learn to initialize the AutoHedge system with custom parameters like name, description, and output settings. Tailor your autonomous trading experience effortlessly.

- Tags: how-to-guide
- Published: 2026-09-08

### [AutoHedge Sentiment Agent: Social Media Platforms and Scoring Explained](/The-Swarm-Corporation/AutoHedge/which-social-media-platforms-does-the-sentiment-agent-monitor-and-how-are-sentiment-scores-calculated)

Discover how the AutoHedge Sentiment Agent analyzes Reddit, Twitter, and StockTwits, and understand its 0-to-1 sentiment scoring system for actionable market insights.

- Tags: deep-dive
- Published: 2026-09-08

### [How Trade Orders Are Generated in AutoHedge: Execution Agent Parameters Explained](/The-Swarm-Corporation/AutoHedge/how-are-trade-orders-generated-and-what-parameters-does-the-execution-agent-determine)

Learn how AutoHedge's Execution Agent generates trade orders using GPT-4.1 to determine order type, quantity, entry price, stop-loss, take-profit, and time-in-force.

- Tags: internals
- Published: 2026-09-08

### [What Risk Assessments Does the Risk Manager Agent Perform in AutoHedge?](/The-Swarm-Corporation/AutoHedge/what-kind-of-risk-assessments-does-the-risk-manager-agent-perform)

Discover the four risk assessments the Risk Manager agent performs in AutoHedge. Evaluate trade safety and capital allocation effectively for smarter trading decisions.

- Tags: deep-dive
- Published: 2026-09-08

### [How Does the Quant Agent Perform Technical and Statistical Analysis in AutoHedge?](/The-Swarm-Corporation/AutoHedge/how-does-the-quant-agent-perform-technical-and-statistical-analysis)

Discover how the Quant Agent in AutoHedge uses GPT-4.1 for technical and statistical analysis. Get structured numerical scores for smart trading decisions.

- Tags: deep-dive
- Published: 2026-09-08

### [How the Director Agent Orchestrates Trading and Coordinates Agents in AutoHedge](/The-Swarm-Corporation/AutoHedge/how-does-the-director-agent-orchestrate-the-trading-process-and-coordinate-other-agents)

Learn how the AutoHedge Director Agent orchestrates trading, coordinating Quant, Risk, and Execution agents to turn ideas into broker orders. Discover its central role in the multi-agent system.

- Tags: internals
- Published: 2026-09-08

### [AutoHedge Architecture: The 5 Specialized Trading Agents Explained](/The-Swarm-Corporation/AutoHedge/what-are-the-specific-roles-of-each-agent-in-the-autohedge-architecture)

Discover the AutoHedge architecture's 5 specialized trading agents. Learn how the Trading Director, Sentiment Agent, Quant Analyst, Risk Manager, and Execution Agent collaborate to execute trades.

- Tags: architecture
- Published: 2026-09-08

### [How to Integrate AutoHedge with Custom Trading Strategies: 3 Proven Methods](/The-Swarm-Corporation/AutoHedge/how-to-integrate-autohedge-with-custom-trading-strategies)

Learn how to integrate AutoHedge with custom trading strategies using three proven methods. Enhance your trading with custom Director prompts, Agent additions, or class subclassing.

- Tags: how-to-guide
- Published: 2026-09-08

