MCPcopy Create free account

hub / github.com/The-Swarm-Corporation/AutoHedge / functions

Functions57 in github.com/The-Swarm-Corporation/AutoHedge

↓ 4 callersFunction_df_to_json_serializable
Convert DataFrame to a JSON-serializable structure (handles NaN/dates).
autohedge/tools/yahoo_api.py:28
↓ 3 callersFunction_get
( path: str, *, params: Optional[dict[str, Any]] = None, )
autohedge/tools/polygon_api.py:25
↓ 3 callersFunction_headers
Construct headers for requests to the Jupiter Ultra API. Reads the API key from the JUPITER_API_KEY environment variable (in .env). If p
autohedge/tools/ultra_tools.py:20
↓ 3 callersFunction_safe_info
Get ticker.info; on 429/JSON error return {} and an error message. Returns (info_dict, error_message_or_None).
autohedge/tools/yahoo_api.py:44
↓ 3 callersMethodrun
Execute one complete trading cycle for all stocks. Args: task (str): The task to be executed. *args: Variabl
autohedge/main.py:33
↓ 3 callersMethodrun
Main execution method to start market making process.
experimental/market_making.py:296
↓ 2 callersMethod_connect_websocket
Establish WebSocket connection
experimental/btc_agent.py:159
↓ 2 callersFunction_get_keypair
Load the Solana wallet keypair from environment. Reads the base58-encoded private key from the SOLANA_PRIVATE_KEY environment variable (
autohedge/tools/ultra_tools.py:39
↓ 2 callersFunction_get_recent_tasks
()
autohedge/cli.py:51
↓ 2 callersFunction_safe_financials
Get balance_sheet, income_stmt, cashflow, etc.; on failure return dict with only keys that succeeded and an optional _error key.
autohedge/tools/yahoo_api.py:68
↓ 2 callersFunctionload_env
Load .env from project root; fall back to cwd. Does not override existing env.
autohedge/env_loader.py:21
↓ 2 callersFunctionmain
Entry point for the AutoHedge CLI.
autohedge/cli.py:217
↓ 2 callersMethodsimulate_order
Simulate an order execution without actual trading. Args: order_type (str): 'buy' or 'sell' price (float): O
experimental/market_making.py:185
↓ 2 callersMethodstop
Stop the monitoring process
experimental/btc_agent.py:219
↓ 1 callersFunction_append_recent
(task: str)
autohedge/cli.py:63
↓ 1 callersFunction_build_parser
()
autohedge/cli.py:189
↓ 1 callersFunction_get_headers
()
autohedge/tools/polygon_api.py:17
↓ 1 callersFunction_get_wallet_pubkey
Get the wallet's public key (base58). Derives the public key from the private key found in SOLANA_PRIVATE_KEY in .env. Returns
autohedge/tools/ultra_tools.py:70
↓ 1 callersMethod_store_analysis
Store transaction analysis results Args: tx_hash: Transaction hash analysis: Analysis results to store
experimental/btc_agent.py:169
↓ 1 callersFunction_welcome
()
autohedge/cli.py:75
↓ 1 callersMethodanalyze_transaction
Use the swarms agent to analyze a transaction Args: tx_data: Transaction data to analyze Returns: A
experimental/btc_agent.py:58
↓ 1 callersFunctionbacktest_market_maker
Backtest the market making strategy on historical data. Args: historical_data_path (str): Path to CSV with historical price data
experimental/market_making.py:333
↓ 1 callersMethodcalculate_order_size
Calculate appropriate order size based on current strategy and inventory. Returns: float: Order size in base asset
experimental/market_making.py:157
↓ 1 callersMethodfetch_market_data
Fetch real-time market data from multiple free sources. Returns: MarketData: Current market data snapshot
experimental/market_making.py:89
↓ 1 callersFunctionfind_project_env
Find .env by walking up from cwd (so CLI/scripts work from any subdir).
autohedge/env_loader.py:11
↓ 1 callersFunctionget_all_stock_data
Get all main data for a stock: current quote (info), historical OHLC, and quote summary. Fetches history first (chart API); if Yahoo rate
autohedge/tools/yahoo_api.py:200
↓ 1 callersMethodinitialize_csv_log
Initialize CSV log with headers.
experimental/market_making.py:74
↓ 1 callersFunctionmain
()
experimental/btc_agent.py:227
↓ 1 callersFunctionmain
Main entry point for the market making algorithm. Allows configuration of trading pairs and capital.
experimental/market_making.py:306
↓ 1 callersMethodmarket_making_strategy
Core market making strategy implementation. Continuously fetches market data and places orders.
experimental/market_making.py:262
↓ 1 callersMethodmonitor_address
Start monitoring a Bitcoin address Args: address: Bitcoin address to monitor
experimental/btc_agent.py:185
↓ 1 callersFunctionrequire_openai_key
Return True if OPENAI_API_KEY is set (required for swarms gpt-4.x).
autohedge/env_loader.py:30
↓ 1 callersFunctionrun_market_makers
()
experimental/market_making.py:321
↓ 1 callersFunctionrun_repl
()
autohedge/cli.py:144
Method__init__
( self, name: str = "autohedge", description: str = "fully autonomous hedgefund",
autohedge/main.py:15
Method__init__
Initialize the BTC transaction monitor with swarms Agent
experimental/btc_agent.py:37
Method__init__
Initialize the market maker with given configuration. Args: config (MarketMakingConfig): Configuration for market making
experimental/market_making.py:48
Method__init__
(self)
experimental/crypto_agent_wrapper.py:11
Method_handle_shutdown
Handle shutdown signals
experimental/btc_agent.py:213
Method_on_close
Handle websocket connection closing
experimental/btc_agent.py:142
Method_on_error
Handle websocket errors
experimental/btc_agent.py:138
Method_on_message
Handle incoming websocket messages
experimental/btc_agent.py:93
Method_on_open
Handle websocket connection opening
experimental/btc_agent.py:149
Functionexa_search
Exa Web Search Tool This function provides advanced, natural language web search capabilities using the Exa.ai API. It is designed for u
autohedge/tools/exa_search_tool.py:8
Functionexecute_trade
Sign the transaction with the wallet private key from .env and execute it (Jupiter Ultra). The unsigned transaction (base64) from the `/orde
autohedge/tools/ultra_tools.py:158
Functionget_balance_sheets
Get balance sheet data for public companies (quarterly/annual). Returns asset, liability, and equity positions as of period end. Paramet
autohedge/tools/polygon_api.py:75
Functionget_daily_ticker_summary
Get daily open/close (OHLC) and volume for a stock ticker on a given date. Optionally includes pre-market and after-hours prices. Parame
autohedge/tools/polygon_api.py:152
Functionget_historical_prices
Get historical OHLCV for a ticker. Parameters ---------- ticker : str Ticker symbol (e.g. AAPL). interval : str, optiona
autohedge/tools/yahoo_api.py:128
Functionget_holdings
Get token balances and SOL balance for a wallet address (Jupiter Ultra). Parameters ---------- address : str The wallet addr
autohedge/tools/ultra_tools.py:241
Functionget_order
Request a base64-encoded unsigned swap transaction for use with execute_trade (Jupiter Ultra). Taker, receiver, and payer are always the wal
autohedge/tools/ultra_tools.py:85
Functionget_quote_summary
Get quote summary (fundamentals, financials, profile, balance sheet, income, cashflow). The modules argument is ignored. Uses safe fetchers
autohedge/tools/yahoo_api.py:169
Functionget_stock_quote
Get current quote for a symbol (price, volume, day range, etc.). Fetches history first (chart API); info (quoteSummary) may be empty if Y
autohedge/tools/yahoo_api.py:99
Functionget_ticker_overview
Get comprehensive details for a single ticker (company fundamentals, exchange, identifiers, market cap, branding, etc.). Parameters
autohedge/tools/polygon_api.py:45
Functionget_token_price
Get USD prices for one or more Solana token mint addresses via Jupiter Price API V3. Parameters ---------- ids : str or list of str
autohedge/tools/jupiter_price.py:16
Functionget_tools
()
autohedge/tools/tools_registry.py:7
Methodrun
(self, coin_id: str, analysis_prompt: str)
experimental/crypto_agent_wrapper.py:36
Functionsearch_tokens
Search for Solana tokens by symbol, name, or mint address via Jupiter Tokens API V2. API key is read from JUPITER_API_KEY in .env (https://po
autohedge/tools/jupiter_search.py:15