Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AgriQuantAI/AgriQuant-AI
/ functions
Functions
214 in github.com/AgriQuantAI/AgriQuant-AI
⨍
Functions
214
◇
Types & classes
32
↳
Endpoints
8
↓ 1 callers
Method
get_orng_quote
Get quote for swapping USDC to $AGQNT via Uniswap Args: usdc_amount: Amount of USDC to swap
crypto_fundraise.py:54
↓ 1 callers
Method
get_prediction_performance
Calculate overall prediction performance metrics
database.py:302
↓ 1 callers
Method
get_recent_predictions
Get predictions from last N days
database.py:366
↓ 1 callers
Method
get_sentinel2_ndvi
Fetch Sentinel-2 NDVI via Sentinel Hub API. 10m resolution, 5-day revisit. Best for field-level analysis.
satellite_ndvi_processor.py:60
↓ 1 callers
Method
get_smap_soil_moisture
NASA SMAP (Soil Moisture Active Passive) soil moisture. Critical for drought detection 2-4 weeks before visible crop stress.
satellite_ndvi_processor.py:173
↓ 1 callers
Method
get_token_holders
Fetch all $AGQNT token holders and their balances Returns: List of {address: str, balance: int, percentage: floa
investor_distribution.py:57
↓ 1 callers
Method
initialize
Initialize system components
main.py:43
↓ 1 callers
Method
load_historical_events
Load all historical freeze/hurricane events in date range
backtest.py:46
↓ 1 callers
Function
main
Test database operations
database.py:507
↓ 1 callers
Function
main
Test the Claude analysis engine
claude_engine.py:490
↓ 1 callers
Function
main
Run backtest from command line
backtest.py:404
↓ 1 callers
Function
main
Main entry point
main.py:371
↓ 1 callers
Method
process_sentinel2_scene
Process complete Sentinel-2 scene for grove health Args: red_band: Red band data (Band 4) nir_band:
satellite_data_processor.py:165
↓ 1 callers
Method
record_trade
Record a trade in the history Args: prediction_id: Link to weather prediction entry_date: Trade entr
performance_tracker.py:34
↓ 1 callers
Method
run
Full ENSO monitoring cycle
el_nino_monitor.py:148
↓ 1 callers
Method
run_backtest
Execute full backtest
backtest.py:209
↓ 1 callers
Method
run_continuous_monitoring
Run continuous monitoring on schedule
main.py:338
↓ 1 callers
Method
save_model
Save model and normalization parameters
lstm_predictor.py:381
↓ 1 callers
Method
save_models
Save trained models to disk
ensemble_predictor.py:357
↓ 1 callers
Method
save_results
Save backtest results to JSON file
backtest.py:392
↓ 1 callers
Method
simulate_forecast
Simulate what the forecast would have looked like N days before event In production, would use archived NOAA forecasts
backtest.py:64
↓ 1 callers
Method
store_ai_prediction
Store AI-generated prediction
database.py:209
↓ 1 callers
Method
store_weather_forecast
Store weather forecast
database.py:187
↓ 1 callers
Method
train
Train the LSTM model Args: train_data: Training dataset val_data: Validation dataset epo
lstm_predictor.py:213
↓ 1 callers
Method
update_quote
Record new quote
microstructure_analyzer.py:46
↓ 1 callers
Method
update_trade
Record new trade
microstructure_analyzer.py:31
↓ 1 callers
Method
validate_prediction_quality
Meta-analysis: Have Claude validate its own prediction quality
claude_engine.py:340
↓ 1 callers
Method
verify_prediction
Verify a prediction against actual USDA report
database.py:266
↓ 1 callers
Method
verify_predictions
Check if any predictions can now be verified against USDA data This would run daily to check for new USDA reports
main.py:261
↓ 1 callers
Method
weather_price_correlation
Analyze correlation between weather variables and OJ returns Args: temperature: Daily temperature series
correlation_analyzer.py:51
Method
__getitem__
(self, idx)
lstm_predictor.py:36
Method
__init__
(self, connection_string: str = None)
database.py:22
Method
__init__
(self)
volatility_forecaster.py:27
Method
__init__
(self)
risk_analyzer.py:58
Method
__init__
(self)
risk_analyzer.py:143
Method
__init__
(self)
icco_usda_scraper.py:48
Method
__init__
(self)
claude_engine.py:22
Method
__init__
(self, rpc_url: str = "https://api.mainnet-beta.base.com")
investor_distribution.py:33
Method
__init__
(self)
multi_commodity_engine.py:43
Method
__init__
(self)
grains_collector.py:85
Method
__init__
( self, input_size: int = 50, hidden_size: int = 128, num_layers: int = 3,
lstm_predictor.py:46
Method
__init__
( self, sequence_length: int = 30, input_features: int = 50, model_path: str =
lstm_predictor.py:121
Method
__init__
(self)
satellite_data_processor.py:41
Method
__init__
(self)
satellite_data_processor.py:362
Method
__init__
(self, lookback_days: int = 252)
correlation_analyzer.py:26
Method
__init__
(self, database_path: str = "trading_history.json")
performance_tracker.py:22
Method
__init__
(self)
coffee_brazil_collector.py:91
Method
__init__
(self, models_path: str = "models/")
ensemble_predictor.py:26
Method
__init__
(self, lookback_window: int = 100)
microstructure_analyzer.py:26
Method
__init__
(self)
el_nino_monitor.py:58
Method
__init__
(self, rpc_url: str = "https://api.mainnet-beta.base.com")
crypto_fundraise.py:30
Method
__init__
(self)
sugar_collector.py:54
Method
__init__
(self)
market_impact_analyzer.py:42
Method
__init__
(self)
cocoa_westafrica_collector.py:89
Method
__init__
(self, planet_api_key: Optional[str] = None)
satellite_ndvi_processor.py:54
Method
__init__
(self, start_date: str, end_date: str)
backtest.py:26
Method
__init__
(self)
main.py:32
Method
__len__
(self)
lstm_predictor.py:33
Method
analyze_disease_pressure
Analyze weather patterns for crop disease disease pressure Based on Li et al. (2020) research on psyllid population dynamics
claude_engine.py:275
Method
analyze_volume_profile
Create volume profile analysis (Volume-at-Price) Args: price_bins: Number of price levels to analyze
microstructure_analyzer.py:231
Method
analyze_weather_event
Generalized weather event analysis for any commodity/region. Wraps commodity-specific methods (analyze_freeze_event, analyze_
claude_engine.py:27
Method
assess_disease_risk
Assess crop disease disease risk Asian citrus psyllid (disease vector) thrives in: - Warm temps (75-85°F) -
risk_analyzer.py:377
Method
assess_hurricane_risk
Assess crop damage from hurricane Factors: - Wind damage (fruit drop, tree damage) - Flooding risk -
risk_analyzer.py:270
Method
assess_revision_impact
Assess price impact of a supply revision. Larger revisions in tighter markets = larger price moves.
icco_usda_scraper.py:148
Method
calculate_beta
Calculate beta (systematic risk) of OJ vs broader market Args: asset_returns: OJ returns market_retu
correlation_analyzer.py:201
Function
calculate_supply_demand_balance
Calculate overall supply/demand balance Returns market tightness indicators
market_impact_analyzer.py:292
Method
calculate_temperature_anomaly
Calculate temperature anomaly from thermal infrared Used to detect heat/cold stress
satellite_data_processor.py:149
Method
calculate_trading_signal
Convert price prediction into trading signal Args: prediction: Output from predict_price_movement()
ensemble_predictor.py:290
Method
calculate_volatility_adjustment
Calculate market volatility to adjust confidence High volatility → lower confidence in predictions
market_impact_analyzer.py:191
Method
collect_all_regions
Collect all US grain region data
grains_collector.py:225
Method
collect_all_regions
Collect weather data for all Brazilian coffee regions. Called every 15 minutes by main orchestrator.
coffee_brazil_collector.py:254
Method
collect_all_regions
Collect all West Africa cocoa region data
cocoa_westafrica_collector.py:251
Method
cross_commodity_correlation
Analyze correlations with related soft commodities Args: oj_prices: ag commodity futures prices suga
correlation_analyzer.py:106
Method
detect_aggressive_flow
Detect unusually aggressive buying or selling Args: sensitivity: Standard deviations for threshold
microstructure_analyzer.py:306
Method
detect_freeze_damage
Detect freeze damage by comparing pre/post imagery Args: pre_freeze_ndvi: NDVI before freeze post_fr
satellite_data_processor.py:241
Method
detect_stress_areas
Identify areas with significant vegetation stress Compares current NDVI to historical baseline Returns:
satellite_data_processor.py:118
Method
download_planet_labs
Download Planet Labs daily imagery Requires subscription (~$500/month)
satellite_data_processor.py:384
Method
download_sentinel2
Download Sentinel-2 imagery Args: bbox: Bounding box (min_lon, min_lat, max_lon, max_lat) date_range
satellite_data_processor.py:366
Method
estimate_timeline_to_peak
Estimate days until price impact peaks Different events have different timelines: - Freeze: 3-7 days (quick reaction
market_impact_analyzer.py:214
Method
export_for_audit
Export all trades in CSV format for CPA audit
performance_tracker.py:239
Method
export_health_map
Export NDVI as color-coded health map For visualization and reporting
satellite_data_processor.py:330
Method
forward
(self, x)
lstm_predictor.py:89
Method
garch_11_likelihood
Negative log-likelihood for GARCH(1,1) estimation Args: params: [omega, alpha, beta] returns: Return
volatility_forecaster.py:94
Method
generate_comprehensive_analysis
Generate complete multi-factor analysis Checks for freeze, hurricane, disease, drought simultaneously
claude_engine.py:408
Method
generate_time_series
Generate time series of grove health metrics For trend analysis and anomaly detection
satellite_data_processor.py:291
Function
get_airdrop_history
Get USDT airdrop distribution history
dashboard_api.py:134
Function
get_buyback_history
Get token buyback history
dashboard_api.py:151
Method
get_correlation_report
Generate cross-commodity correlation report for dashboard. Returns the full matrix + highest/lowest pairs.
multi_commodity_engine.py:242
Method
get_feature_importance
Estimate feature importance using gradient analysis Returns: Feature importance scores
lstm_predictor.py:405
Method
get_holder_history
Get airdrop history for a specific holder Args: wallet_address: Base wallet address Returns
investor_distribution.py:212
Method
get_monthly_summary
Get summary of buybacks for a specific month Args: year: Year (e.g., 2026) month: Month (1-12)
crypto_fundraise.py:148
Method
get_open_positions
Get all currently open positions
performance_tracker.py:235
Function
get_overall_stats
Get overall platform statistics
dashboard_api.py:57
Method
get_performance_over_time
Get performance trend over time
database.py:430
Method
get_price_history
Get historical price data
database.py:403
Function
get_recent_predictions
Get recent weather predictions
dashboard_api.py:88
Function
get_token_supply
Get current token supply data
dashboard_api.py:121
Function
get_trading_performance
Get trading performance metrics
dashboard_api.py:106
Function
health_check
System health check
dashboard_api.py:42
Method
load_model
Load pre-trained model
lstm_predictor.py:394
← previous
next →
101–200 of 214, ranked by callers