Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CurvedLightGroup/MoonDev-Trading-Ai-Agents
/ functions
Functions
284 in github.com/CurvedLightGroup/MoonDev-Trading-Ai-Agents
⨍
Functions
284
◇
Types & classes
36
↳
Endpoints
5
↓ 21 callers
Method
run
Run the risk agent (implements BaseAgent interface)
src/agents/risk_agent.py:568
↓ 16 callers
Function
get_position
Fetches the balance of a specific token given its mint address from a DataFrame. Parameters: - dataframe: A pandas DataFrame containing
src/nice_funcs.py:472
↓ 16 callers
Function
token_price
(address)
src/nice_funcs.py:454
↓ 10 callers
Method
_make_request
Make API request with rate limiting and error handling
src/agents/coingecko_agent.py:398
↓ 10 callers
Function
market_sell
(QUOTE_TOKEN, amount, slippage)
src/nice_funcs.py:268
↓ 7 callers
Function
print_section
Print a section header
src/agents/coingecko_agent.py:241
↓ 6 callers
Method
get_portfolio_value
Calculate total portfolio value in USD
src/agents/risk_agent.py:118
↓ 6 callers
Method
handle_limit_breach
Handle breached risk limits with AI consultation if enabled
src/agents/risk_agent.py:453
↓ 6 callers
Function
market_buy
(token, amount, slippage)
src/nice_funcs.py:225
↓ 5 callers
Method
_format_number_for_speech
Convert numbers to speech-friendly format
src/agents/whale_agent.py:250
↓ 4 callers
Method
_fetch_csv
Fetch CSV data from the API
src/agents/api.py:109
↓ 4 callers
Function
fetch_wallet_token_single
(address, token_mint_address)
src/nice_funcs.py:444
↓ 4 callers
Function
get_decimals
(token_mint_address)
src/nice_funcs.py:512
↓ 4 callers
Function
handlePollingError
(message = "Processing is taking longer than expected...")
src/frontend/static/js/main.js:294
↓ 4 callers
Function
run_with_animation
Run a function with a fun loading animation
src/agents/rbi_agent.py:394
↓ 3 callers
Method
_announce
Announce a message, only use voice for whale alerts
src/agents/whale_agent.py:555
↓ 3 callers
Method
close_all_positions
Close all monitored positions except USDC and SOL
src/agents/risk_agent.py:376
↓ 3 callers
Function
collect_token_data
Collect OHLCV data for a single token
src/data/ohlcv_collector.py:15
↓ 3 callers
Function
processPhase
(phaseElement, messages, timing)
src/frontend/static/js/main.js:84
↓ 2 callers
Method
_check_schedule
Check if current time is within scheduled hours
src/agents/focus_agent.py:137
↓ 2 callers
Method
_get_current_oi
Get current open interest data from API
src/agents/whale_agent.py:258
↓ 2 callers
Method
_make_request
Make API request with rate limiting and error handling
src/scripts/coingecko_exchangeless_tokens.py:55
↓ 2 callers
Method
analyze
Analyze a token and provide insights
src/agents/listingarb_agent.py:181
↓ 2 callers
Function
collect_all_tokens
Collect OHLCV data for all monitored tokens
src/data/ohlcv_collector.py:48
↓ 2 callers
Function
fetch_wallet_holdings_og
(address)
src/nice_funcs.py:404
↓ 2 callers
Method
get_coin_market_data
Get current market data for a coin Args: id: Coin ID (e.g. 'bitcoin')
src/agents/coingecko_agent.py:444
↓ 2 callers
Method
get_current_pnl
Calculate current PnL based on start balance
src/agents/risk_agent.py:553
↓ 2 callers
Method
get_funding_data
Get funding data from API
src/agents/api.py:138
↓ 2 callers
Function
get_funding_rates
Get current funding rate for a specific coin on Hyperliquid Args: symbol (str): Trading pair symbol (e.g., 'BTC', 'ETH', 'FART')
src/nice_funcs_hl.py:264
↓ 2 callers
Method
get_liquidation_data
Get liquidation data from API, limited to last N rows by default
src/agents/api.py:134
↓ 2 callers
Method
get_oi_data
Get detailed open interest data from API
src/agents/api.py:150
↓ 2 callers
Function
get_time_range
()
src/nice_funcs.py:313
↓ 2 callers
Method
init_sentiment_model
Initialize the BERT model for sentiment analysis
src/agents/sentiment_agent.py:116
↓ 2 callers
Function
prepare_data
(filepath)
src/data/rbi/backtests/VengeanceTrender_BT.py:14
↓ 2 callers
Function
print_banner
Print a fun colorful banner
src/agents/coingecko_agent.py:235
↓ 2 callers
Function
print_pretty_json
(data)
src/nice_funcs.py:48
↓ 2 callers
Function
process_trading_idea
Process a single trading idea completely independently
src/agents/rbi_agent.py:552
↓ 2 callers
Function
round_down
(value, decimals)
src/nice_funcs.py:324
↓ 2 callers
Method
run_analysis_cycle
Run a complete portfolio analysis cycle
src/agents/copybot_agent.py:277
↓ 2 callers
Method
run_trading_cycle
Run one complete trading cycle
src/agents/trading_agent.py:382
↓ 2 callers
Method
save_memory
Save agent's memory to file
src/agents/coingecko_agent.py:291
↓ 2 callers
Method
save_memory
Save agent memory
src/agents/listingarb_agent.py:175
↓ 2 callers
Method
think
Process market data and other agent's message to make decisions
src/agents/coingecko_agent.py:296
↓ 2 callers
Function
updatePhase
(phaseElement, status = 'active')
src/frontend/static/js/main.js:72
↓ 1 callers
Method
_analyze_chart
Analyze chart data using Claude
src/agents/chartanalysis_agent.py:157
↓ 1 callers
Method
_analyze_opportunity
Get AI analysis of the whale movement
src/agents/whale_agent.py:373
↓ 1 callers
Method
_analyze_opportunity
Analyze a funding opportunity with AI
src/agents/fundingarb_agent.py:135
↓ 1 callers
Method
_analyze_opportunity
Get AI analysis of the opportunity
src/agents/funding_agent.py:150
↓ 1 callers
Method
_analyze_opportunity
Get AI analysis of the liquidation event
src/agents/liquidation_agent.py:284
↓ 1 callers
Method
_announce
Announce a message using text-to-speech
src/agents/sentiment_agent.py:150
↓ 1 callers
Method
_announce
Announce message using OpenAI TTS
src/agents/fundingarb_agent.py:246
↓ 1 callers
Method
_announce
Announce message with optional voice
src/agents/focus_agent.py:201
↓ 1 callers
Method
_announce
Announce message using OpenAI TTS
src/agents/chartanalysis_agent.py:282
↓ 1 callers
Method
_announce
Announce message using OpenAI TTS
src/agents/funding_agent.py:348
↓ 1 callers
Method
_announce
Announce message using OpenAI TTS
src/agents/liquidation_agent.py:435
↓ 1 callers
Method
_calculate_changes
Calculate OI changes for the configured interval
src/agents/whale_agent.py:310
↓ 1 callers
Method
_chunk_text
Split text into chunks of MAX_CHUNK_SIZE characters
src/agents/tweet_agent.py:134
↓ 1 callers
Method
_cleanup_old_charts
Remove all existing charts from the charts directory
src/agents/chartanalysis_agent.py:389
↓ 1 callers
Method
_create_focus_log
Create empty focus history CSV
src/agents/focus_agent.py:288
↓ 1 callers
Method
_detect_significant_changes
Detect extreme funding rates and analyze opportunities
src/agents/funding_agent.py:272
↓ 1 callers
Method
_detect_whale_activity
Detect if current change is significantly above rolling average
src/agents/whale_agent.py:636
↓ 1 callers
Method
_format_announcement
Format OI changes into a speech-friendly message with whale detection and AI analysis
src/agents/whale_agent.py:487
↓ 1 callers
Method
_format_announcement
Format the voice announcement
src/agents/fundingarb_agent.py:228
↓ 1 callers
Method
_format_announcement
Format analysis into speech-friendly message
src/agents/chartanalysis_agent.py:261
↓ 1 callers
Method
_format_announcement
Format funding rate changes and analysis into a speech-friendly message
src/agents/funding_agent.py:314
↓ 1 callers
Method
_format_announcement
Format liquidation analysis into a speech-friendly message
src/agents/liquidation_agent.py:404
↓ 1 callers
Method
_generate_chart
Generate a chart using mplfinance
src/agents/chartanalysis_agent.py:110
↓ 1 callers
Method
_get_current_funding
Get current funding rate data
src/agents/funding_agent.py:393
↓ 1 callers
Method
_get_current_liquidations
Get current liquidation data
src/agents/liquidation_agent.py:179
↓ 1 callers
Method
_get_historical_oi
Get OI data from X minutes ago
src/agents/whale_agent.py:294
↓ 1 callers
Method
_get_input_text
Get input text from either file or direct input
src/agents/tweet_agent.py:139
↓ 1 callers
Function
_get_ohlcv
Internal function to fetch OHLCV data from Hyperliquid
src/nice_funcs_hl.py:32
↓ 1 callers
Method
_get_random_interval
Get random interval between MIN and MAX minutes
src/agents/focus_agent.py:145
↓ 1 callers
Method
_load_analysis_log
Load or create AI analysis log
src/agents/listingarb_agent.py:296
↓ 1 callers
Method
_load_token_history
Load or create token history DataFrame
src/agents/coingecko_agent.py:523
↓ 1 callers
Method
_log_focus_data
Log focus data to CSV
src/agents/focus_agent.py:294
↓ 1 callers
Method
_print_colored_tweet
Print tweet with color based on its position
src/agents/tweet_agent.py:151
↓ 1 callers
Function
_process_data_to_df
Convert raw API data to DataFrame
src/nice_funcs_hl.py:92
↓ 1 callers
Method
_save_oi_data
Save new OI data point with change percentages
src/agents/whale_agent.py:187
↓ 1 callers
Method
_save_to_history
Save current funding data to history
src/agents/funding_agent.py:418
↓ 1 callers
Method
_save_to_history
Save current liquidation data to history
src/agents/liquidation_agent.py:463
↓ 1 callers
Method
_should_analyze_token
Check if token needs analysis based on last analysis time
src/agents/listingarb_agent.py:413
↓ 1 callers
Function
add_technical_indicators
Add technical indicators to the dataframe
src/nice_funcs_hl.py:120
↓ 1 callers
Function
adjust_timestamp
Adjust API timestamps by subtracting the timestamp offset.
src/nice_funcs_hl.py:25
↓ 1 callers
Method
allocate_portfolio
Get AI-recommended portfolio allocation
src/agents/trading_agent.py:165
↓ 1 callers
Method
analyze_and_announce_sentiment
Analyze sentiment of tweets and announce results
src/agents/sentiment_agent.py:253
↓ 1 callers
Method
analyze_focus
Analyze focus level from transcript
src/agents/focus_agent.py:236
↓ 1 callers
Method
analyze_market_data
Analyze market data using Claude
src/agents/trading_agent.py:84
↓ 1 callers
Method
analyze_position
Analyze a single portfolio position
src/agents/copybot_agent.py:90
↓ 1 callers
Method
analyze_sentiment
Analyze sentiment of a batch of texts
src/agents/sentiment_agent.py:123
↓ 1 callers
Method
analyze_symbol
Analyze a single symbol on a specific timeframe
src/agents/chartanalysis_agent.py:310
↓ 1 callers
Method
analyze_tokens_parallel
Analyze a batch of tokens in parallel
src/agents/listingarb_agent.py:425
↓ 1 callers
Function
bot
()
src/ezbot.py:32
↓ 1 callers
Method
check_pnl_limits
Check if PnL limits have been hit
src/agents/risk_agent.py:337
↓ 1 callers
Method
check_token_exchanges
Get exchanges where a token is listed
src/scripts/coingecko_exchangeless_tokens.py:103
↓ 1 callers
Function
cleanup_old_memory_files
Clean up old memory files from previous naming conventions
src/agents/coingecko_agent.py:251
↓ 1 callers
Function
create_backtest
Backtest Agent: Creates backtest implementation
src/agents/rbi_agent.py:438
↓ 1 callers
Function
debug_backtest
Debug Agent: Fixes technical issues in backtest code
src/agents/rbi_agent.py:459
↓ 1 callers
Method
evaluate_signals
Have LLM evaluate strategy signals
src/agents/strategy_agent.py:78
↓ 1 callers
Method
execute_allocations
Execute the allocations using AI entry for each position
src/agents/trading_agent.py:230
next →
1–100 of 284, ranked by callers