"AI-Trader: 100% Fully-Automated Agent-Native Trading"
531 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | research/scripts/analyze_experiments.py | 233 | def _legacy_treatment_effect_rows(rows: list[dict], metric: str, family: str) -> list[dict]: |
| LOW | research/scripts/research_common.py | 30 | def add_common_export_filters(parser: argparse.ArgumentParser) -> None: |
| LOW | service/frontend/src/appShared.tsx | 121 | export function buildLeaderboardChartData(profitHistory: any[], chartRange: LeaderboardChartRange, language: Language) { |
| LOW | service/frontend/src/appShared.tsx | 188 | function getPolymarketDisplayTitle(item: any) { |
| LOW | service/frontend/src/appCommunityPages.tsx | 78 | async function fetchActiveChallengeOptions() { |
| LOW | service/frontend/src/appCommunityPages.tsx | 90 | async function fetchMyTeamMissionOptions(token: string | null) { |
| LOW | service/server/experiment_metrics.py | 25 | def _max_drawdown_from_history(rows: list[dict[str, Any]]) -> float: |
| LOW | service/server/experiment_metrics.py | 36 | def refresh_agent_metric_snapshots(window_days: int = 7, window_key: str | None = None) -> dict[str, Any]: |
| LOW | service/server/routes_signals.py | 58 | def _agent_experiment_context(agent_id: int) -> list[dict[str, Any]]: |
| LOW | service/server/routes_signals.py | 98 | def _primary_experiment_context(agent_id: int) -> dict[str, Any] | None: |
| LOW | service/server/routes_shared.py | 107 | def allow_sync_price_fetch_in_api() -> bool: |
| LOW | service/server/routes_shared.py | 115 | def should_fetch_server_trade_price(market: str) -> bool: |
| LOW | service/server/routes_shared.py | 141 | def format_polymarket_reference(reference: str) -> str: |
| LOW | service/server/routes_shared.py | 194 | def check_price_api_rate_limit(ctx: RouteContext, agent_id: int) -> bool: |
| LOW | service/server/routes_shared.py | 242 | def invalidate_agent_message_caches(ctx: RouteContext, agent_id: int) -> None: |
| LOW | service/server/routes_shared.py | 686 | def invalidate_agent_signal_caches(ctx: RouteContext) -> None: |
| LOW | service/server/routes_shared.py | 693 | def invalidate_signal_list_caches(ctx: RouteContext) -> None: |
| LOW | service/server/routes_shared.py | 703 | def invalidate_leaderboard_caches(ctx: RouteContext) -> None: |
| LOW | service/server/routes_shared.py | 710 | def invalidate_trending_caches() -> None: |
| LOW | service/server/routes_shared.py | 718 | def invalidate_signal_read_caches(ctx: RouteContext, refresh_trending: bool = False) -> None: |
| LOW | service/server/routes_shared.py | 725 | def invalidate_position_cache(ctx: RouteContext, agent_id: int | None = None) -> None: |
| LOW | service/server/routes_shared.py | 393 | def _record_experiment_notice_exposed(agent_id: int, notice: dict[str, Any], *, surface: str) -> None: |
| LOW | service/server/routes_shared.py | 467 | def attach_experiment_unread_notice( |
| LOW | service/server/routes_shared.py | 561 | def normalize_content_fingerprint(content: str) -> str: |
| LOW | service/server/routes_shared.py | 565 | def enforce_content_rate_limit( |
| LOW | service/server/experiment_notifications.py | 159 | def resolve_experiment_notification_targets( |
| LOW | service/server/experiment_notifications.py | 198 | def resolve_recent_active_experiment_targets( |
| LOW | service/server/experiment_notifications.py | 241 | def resolve_unread_active_experiment_targets( |
| LOW | service/server/experiment_notifications.py | 358 | def resolve_challenge_notification_targets( |
| LOW | service/server/experiment_notifications.py | 395 | def resolve_team_mission_notification_targets( |
| LOW | service/server/experiment_notifications.py | 493 | def _validate_notification_payload(message_type: str, title: str, content: str) -> None: |
| LOW | service/server/experiment_notifications.py | 509 | def validate_notification_request(message_type: str, title: str, content: str) -> None: |
| LOW | service/server/experiment_notifications.py | 728 | def build_experiment_target_rule( |
| LOW | service/server/services.py | 74 | def _get_or_issue_agent_token(agent: Dict) -> str: |
| LOW | service/server/services.py | 190 | def _update_position_from_signal( |
| LOW | service/server/services.py | 347 | async def _broadcast_signal_to_followers(leader_id: int, signal_data: dict) -> int: |
| LOW | service/server/research_exports.py | 345 | def fetch_challenge_export_rows( |
| LOW | service/server/research_exports.py | 391 | def fetch_research_export_rows( |
| LOW | service/server/research_exports.py | 1109 | def get_research_dataset_names(primary_only: bool = False) -> list[str]: |
| LOW | service/server/research_exports.py | 1113 | def get_research_export_columns(dataset_name: str) -> list[str]: |
| LOW | service/server/research_exports.py | 1197 | def _append_agent_filter_templates( |
| LOW | service/server/research_exports.py | 1264 | def fetch_research_export_rows( |
| LOW | service/server/research_exports.py | 1321 | def research_schema_for_dataset(dataset_name: str) -> dict[str, Any]: |
| LOW | service/server/research_exports.py | 1429 | def _export_single_research_file(output_dir: str | Path, filename: str, **filters: Any) -> str: |
| LOW | service/server/research_exports.py | 1452 | def fetch_challenge_export_rows(filename: str, **filters: Any) -> tuple[list[str], list[dict[str, Any]]]: |
| LOW | service/server/tasks.py | 130 | def _polymarket_updown_expired_seconds(symbol: str | None, now_ts: float) -> Optional[float]: |
| LOW | service/server/tasks.py | 141 | def _backfill_polymarket_position_metadata() -> None: |
| LOW | service/server/tasks.py | 63 | def _price_failure_retry_after(key: tuple[str, str, str, str], now_ts: float) -> float: |
| LOW | service/server/tasks.py | 679 | async def refresh_macro_signal_snapshots_loop(): |
| LOW | service/server/tasks.py | 702 | async def refresh_etf_flow_snapshots_loop(): |
| LOW | service/server/tasks.py | 725 | async def refresh_stock_analysis_snapshots_loop(): |
| LOW | service/server/tasks.py | 762 | def _record_profit_history_once() -> int: |
| LOW | service/server/tasks.py | 928 | async def settle_polymarket_positions(): |
| LOW | service/server/tasks.py | 1137 | async def score_team_contributions_loop(): |
| LOW | service/server/tasks.py | 1155 | async def settle_team_missions_loop(): |
| LOW | service/server/tasks.py | 1173 | async def score_signal_quality_loop(): |
| LOW | service/server/tasks.py | 1191 | async def refresh_agent_metric_snapshots_loop(): |
| LOW | service/server/tasks.py | 1247 | def background_tasks_enabled_for_api() -> bool: |
| LOW | service/server/tasks.py | 1252 | def get_enabled_background_task_names() -> list[str]: |
| LOW | service/server/tasks.py | 436 | def _profit_history_prune_done(task: asyncio.Task) -> None: |
| 192 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | research/scripts/research_common.py | 77 | except Exception: |
| LOW | research/scripts/research_common.py | 89 | except Exception: |
| LOW | research/scripts/research_common.py | 98 | except Exception: |
| LOW | skills/heartbeat/SKILL.md | 84 | except Exception as e: |
| MEDIUM | skills/heartbeat/SKILL.md | 85 | print(f"Error: {e}") |
| LOW | service/server/experiment_metrics.py | 164 | except Exception: |
| LOW | service/server/experiment_metrics.py | 327 | except Exception: |
| LOW | service/server/worker.py | 33 | except Exception as exc: |
| LOW | service/server/worker.py | 67 | except Exception: |
| LOW | service/server/worker.py | 71 | except Exception: |
| LOW | service/server/worker.py | 85 | except Exception: |
| LOW | service/server/worker.py | 110 | except Exception: |
| LOW | service/server/routes_signals.py | 70 | except Exception as exc: |
| LOW | service/server/routes_signals.py | 130 | except Exception: |
| LOW | service/server/routes_signals.py | 225 | except Exception: |
| LOW | service/server/routes_signals.py | 383 | except Exception as exc: |
| LOW | service/server/routes_signals.py | 539 | except Exception: |
| LOW | service/server/routes_signals.py | 542 | except Exception: |
| LOW | service/server/routes_signals.py | 547 | except Exception: |
| LOW | service/server/routes_signals.py | 551 | except Exception: |
| LOW | service/server/routes_signals.py | 673 | except Exception as exc: |
| LOW | service/server/routes_signals.py | 813 | except Exception as exc: |
| LOW | service/server/routes_signals.py | 1201 | except Exception: |
| LOW | service/server/routes_shared.py | 164 | except Exception: |
| LOW | service/server/routes_shared.py | 682 | except Exception as exc: |
| LOW | service/server/routes_shared.py | 311 | except Exception: |
| LOW | service/server/routes_shared.py | 511 | except Exception: |
| LOW | service/server/routes_shared.py | 781 | except Exception: |
| LOW | service/server/experiment_notifications.py | 53 | except Exception: |
| LOW | service/server/experiment_notifications.py | 63 | except Exception: |
| LOW | service/server/experiment_notifications.py | 83 | except Exception: |
| LOW | service/server/experiment_notifications.py | 569 | except Exception as exc: |
| LOW | service/server/experiment_notifications.py | 677 | except Exception as exc: |
| LOW | service/server/experiment_notifications.py | 711 | except Exception: |
| LOW | service/server/services.py | 151 | except Exception as e: |
| LOW | service/server/research_exports.py | 1158 | except Exception: |
| LOW | service/server/tasks.py | 136 | except Exception: |
| LOW | service/server/tasks.py | 42 | except Exception: |
| LOW | service/server/tasks.py | 59 | except Exception: |
| LOW | service/server/tasks.py | 78 | except Exception: |
| LOW | service/server/tasks.py | 107 | except Exception: |
| LOW | service/server/tasks.py | 118 | except Exception: |
| LOW | service/server/tasks.py | 672 | except Exception as e: |
| LOW | service/server/tasks.py | 695 | except Exception as e: |
| LOW | service/server/tasks.py | 718 | except Exception as e: |
| LOW | service/server/tasks.py | 741 | except Exception as e: |
| LOW | service/server/tasks.py | 758 | except Exception as e: |
| LOW | service/server/tasks.py | 920 | except Exception as e: |
| LOW | service/server/tasks.py | 949 | except Exception: |
| LOW | service/server/tasks.py | 1113 | except Exception as e: |
| LOW | service/server/tasks.py | 1131 | except Exception as e: |
| LOW | service/server/tasks.py | 1149 | except Exception as e: |
| LOW | service/server/tasks.py | 1167 | except Exception as e: |
| LOW | service/server/tasks.py | 1185 | except Exception as e: |
| LOW | service/server/tasks.py | 1203 | except Exception as e: |
| LOW | service/server/tasks.py | 1220 | except Exception as e: |
| LOW | service/server/tasks.py | 441 | except Exception as exc: |
| LOW | service/server/tasks.py | 644 | except Exception as e: |
| LOW | service/server/tasks.py | 897 | except Exception: |
| LOW | service/server/tasks.py | 1095 | except Exception as e: |
| 122 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | service/server/routes_signals.py | 0 | select follower_id from subscriptions where leader_id = ? and status = 'active' |
| HIGH | service/server/routes_shared.py | 0 | select follower_id from subscriptions where leader_id = ? and status = 'active' |
| HIGH | service/server/services.py | 0 | select follower_id from subscriptions where leader_id = ? and status = 'active' |
| HIGH | service/server/team_missions.py | 0 | insert into team_mission_participants (mission_id, agent_id, status, variant_key, joined_at) values (?, ?, 'joined', ?, |
| HIGH | service/server/team_missions.py | 0 | insert into team_mission_participants (mission_id, agent_id, status, variant_key, joined_at) values (?, ?, 'joined', ?, |
| HIGH | service/server/team_missions.py | 0 | insert into team_mission_participants (mission_id, agent_id, status, variant_key, joined_at) values (?, ?, 'joined', ?, |
| HIGH | service/server/tests/test_team_missions.py | 0 | insert into agents (name, token, role, points, cash, created_at, updated_at) values (?, ?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_admin_permissions.py | 0 | insert into agents (name, token, role, points, cash, created_at, updated_at) values (?, ?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_research_exports.py | 0 | insert into agents (name, token, role, points, cash, created_at, updated_at) values (?, ?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_routes_shared.py | 0 | insert into agents (name, token, points, cash, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_challenges.py | 0 | insert into agents (name, token, points, cash, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_experiment_assignments.py | 0 | insert into agents (name, token, points, cash, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_rewards.py | 0 | insert into agents (name, token, points, cash, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?) |
| HIGH | service/server/tests/test_experiment_events.py | 0 | insert into agents (name, token, points, cash, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | research/scripts/build_network_edges.py | 3 | |
| LOW | research/scripts/generate_figures.py | 3 | |
| LOW | research/scripts/build_agent_features.py | 3 | |
| LOW | research/scripts/compute_metrics.py | 3 | |
| LOW | research/scripts/analyze_experiments.py | 3 | |
| LOW | research/scripts/research_common.py | 3 | |
| LOW | research/scripts/export_research_dataset.py | 3 | |
| LOW | service/server/experiment_metrics.py | 3 | |
| LOW | service/server/routes_signals.py | 4 | |
| LOW | service/server/routes_signals.py | 19 | |
| LOW | service/server/experiment_notifications.py | 3 | |
| LOW | service/server/services.py | 7 | |
| LOW | service/server/services.py | 11 | |
| LOW | service/server/research_exports.py | 3 | |
| LOW | service/server/team_missions.py | 3 | |
| LOW | service/server/routes_research.py | 3 | |
| LOW | service/server/database.py | 7 | |
| LOW | service/server/challenge_scoring.py | 3 | |
| LOW | service/server/cache.py | 7 | |
| LOW | service/server/experiment_events.py | 3 | |
| LOW | service/server/signal_quality.py | 3 | |
| LOW | service/server/routes_agent.py | 22 | |
| LOW | service/server/routes_experiments.py | 3 | |
| LOW | service/server/team_scoring.py | 3 | |
| LOW | service/server/experiments.py | 3 | |
| LOW | service/server/utils.py | 10 | |
| LOW | service/server/utils.py | 12 | |
| LOW | service/server/utils.py | 12 | |
| LOW | service/server/permissions.py | 3 | |
| LOW | service/server/rewards.py | 3 | |
| LOW | service/server/main.py | 14 | |
| LOW | service/server/routes_challenges.py | 3 | |
| LOW | service/server/routes_team_missions.py | 3 | |
| LOW | service/server/market_intel.py | 10 | |
| LOW | service/server/team_matching.py | 3 | |
| LOW | service/server/challenges.py | 3 | |
| LOW | service/server/tests/test_user_auth_security.py | 3 | |
| LOW | service/server/tests/test_user_auth_security.py | 4 | |
| LOW | service/server/scripts/migrate_sqlite_to_postgres.py | 9 | |
| LOW | service/server/scripts/cleanup_dirty_trade_data.py | 18 | |
| LOW | service/server/scripts/cleanup_dirty_trade_data.py | 23 | |
| LOW | service/server/scripts/repair_market_alias_positions.py | 11 | |
| LOW | service/server/scripts/repair_market_alias_positions.py | 17 | |
| LOW | …rvice/server/scripts/send_read_conversion_reminders.py | 4 | |
| LOW | service/server/scripts/manage_leaderboard_exclusions.py | 15 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | service/server/experiment_metrics.py | 171 | |
| LOW | service/server/routes_signals.py | 103 | |
| LOW | service/server/routes_signals.py | 105 | |
| LOW | service/server/routes_signals.py | 849 | |
| LOW | service/server/routes_shared.py | 251 | |
| LOW | service/server/routes_shared.py | 635 | |
| LOW | service/server/experiment_notifications.py | 621 | |
| LOW | service/server/services.py | 190 | |
| LOW | service/server/research_exports.py | 227 | |
| LOW | service/server/research_exports.py | 1164 | |
| LOW | service/server/tasks.py | 63 | |
| LOW | service/server/tasks.py | 239 | |
| LOW | service/server/tasks.py | 468 | |
| LOW | service/server/tasks.py | 928 | |
| LOW | service/server/team_missions.py | 1152 | |
| LOW | service/server/challenge_scoring.py | 51 | |
| LOW | service/server/routes_trading.py | 45 | |
| LOW | service/server/routes_trading.py | 56 | |
| LOW | service/server/routes_trading.py | 377 | |
| LOW | service/server/routes_agent.py | 78 | |
| LOW | service/server/routes_agent.py | 552 | |
| LOW | service/server/routes_experiments.py | 52 | |
| LOW | service/server/price_fetcher.py | 110 | |
| LOW | service/server/price_fetcher.py | 292 | |
| LOW | service/server/price_fetcher.py | 461 | |
| LOW | service/server/price_fetcher.py | 668 | |
| LOW | service/server/price_fetcher.py | 722 | |
| LOW | service/server/rewards.py | 19 | |
| LOW | service/server/market_intel.py | 473 | |
| LOW | service/server/market_intel.py | 731 | |
| LOW | service/server/market_intel.py | 802 | |
| LOW | service/server/market_intel.py | 823 | |
| LOW | service/server/scripts/migrate_sqlite_to_postgres.py | 132 | |
| LOW | service/server/scripts/cleanup_dirty_trade_data.py | 308 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | service/server/scripts/fix_agent_profit.py | 6 | cd service/server && python -c " |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/README_AGENT.md | 16 | -d '{"name": "MyTradingBot", "email": "user@example.com"}' |
| LOW | docs/README_AGENT_ZH.md | 16 | -d '{"name": "MyTradingBot", "email": "user@example.com"}' |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | service/server/services.py | 360 | # For now, we just return the count |