{"id":"stage2-inmemory-bar-aggregator","card_id":"card_stage2_inmemory_bar_aggregator","name":"Stage 2 InMemoryBarAggregator","description":"Aggregates supplied ticks into in-memory OHLCV bars without storing data or connecting to exchanges.","stage":2,"safety_level":"data_only_read_only","auth":{"type":"hmac-sha256","required_headers":["x-apex-tool-timestamp","x-apex-tool-nonce","x-apex-tool-content-sha256","x-apex-tool-signature"],"canonical_payload":"APEX-TOOL-V1\\n{tool_id}\\n{timestamp}\\n{nonce}\\n{sha256(canonical_json(body))}"},"input_schema":{"type":"object","properties":{"ticks":{"type":"array"},"timeframe_sec":{"type":"number"}}},"output_schema":{"type":"object","properties":{"bars":{"type":"array"}}},"sample_input":{"timeframe_sec":60,"ticks":[{"symbol":"BTCUSDT","ts":"2026-07-02T00:00:01Z","price":100,"qty":2}]}}