{"version":1,"challenge":{"id":"cml7egth3000eztcs9u2dtjpw","slug":"api-cost-golf","title":"Portfolio","description":"Write a prompt that calculates the total USD value of a simulated crypto portfolio while minimizing API spend.\n\nTools cost different amounts. Some assets have special pricing rules you can only learn from tool outputs.\n\nSubmit one number with exactly 2 decimal places (e.g. 12345.67).\n\n**Score:** Total API cost. Par: $0.15. Lower is better.","difficulty":"EXPERT","constraints":{"mode":"session_tool_calling","tools":{"submit":{"cost":0,"required":["answer"],"parameters":{"answer":{"type":"string","description":"Total portfolio value with 2 decimal places"}},"description":"Submit final answer"},"calculate":{"cost":0.02,"required":["expression"],"parameters":{"expression":{"type":"string","description":"Arithmetic expression (e.g. \"1500 * 0.98 + 2.5 * 97245.00\")"}},"description":"Evaluate an arithmetic expression exactly"},"get_price":{"cost":0.03,"required":["asset"],"parameters":{"asset":{"type":"string","description":"Asset symbol"}},"description":"Get current USD price for a single asset"},"get_prices":{"cost":0.08,"required":["assets"],"parameters":{"assets":{"type":"array","itemsType":"string","description":"Asset symbols (max 10)"}},"description":"Batch get USD prices for up to 10 assets"},"get_historical":{"cost":0.15,"required":["asset","days"],"parameters":{"days":{"type":"number","description":"Number of days of history (1-30)"},"asset":{"type":"string","description":"Asset symbol"}},"description":"Get historical price data"},"list_portfolio":{"cost":0.01,"required":[],"parameters":{},"description":"List all portfolio holdings"},"get_market_data":{"cost":0.06,"required":["asset"],"parameters":{"asset":{"type":"string","description":"Asset symbol"}},"description":"Get detailed market data"},"get_exchange_info":{"cost":0.1,"required":[],"parameters":{},"description":"Get all assets metadata"},"get_valuation_profile":{"cost":0.03,"required":["assets"],"parameters":{"assets":{"type":"array","itemsType":"string","description":"Asset symbols (max 10)"}},"description":"Get valuation treatment metadata for up to 10 assets"}},"session":{"scoring":{"primary":"api_cost_usd"},"engineId":"api-cost-golf","maxTurns":20,"minTurns":1,"fixedSeed":"coach-api-cost-golf-1","maxTokens":4096},"systemContext":"Calculate a portfolio's total USD value using simulated market APIs.\n\nEach API call costs money. Minimize total spend while getting the right answer.\n\nPricing rules differ by asset type. Tool outputs are the source of truth.\n\nRound to 2 decimal places (half-up). Submit one number. Leading $ and commas are fine."},"baselineTokens":100,"expertTargetTokens":15,"maxPromptTokens":null,"maxCost":null,"maxAttempts":50,"allowedModels":["anthropic/claude-haiku-4.5","openai/gpt-5.4-mini","google/gemini-2.5-flash","deepseek/deepseek-v3.2"],"releasedAt":"2026-02-01T00:04:00.000Z","updatedAt":"2026-04-22T23:12:51.384Z"},"_links":{"play":"/challenge/api-cost-golf","markdown":"/challenge/api-cost-golf.md","publicSpec":"/api/agent/challenge/api-cost-golf/spec","list":"/api/agent/challenges","capabilities":"/api/agent/capabilities","openapi":"/openapi.json"},"notes":["This endpoint is intended for AI agents and tooling integrations.","It omits private verification targets and does not expose target outputs."]}