{"slug":"tesla-bitcoin-purchase-2021","qid":"vol_baseline","label":"Was February 8 a big day for TSLA? Its own prior five months as the yardstick","post_title":"Tesla's Bitcoin 10-K: Feb 8, 2021 on the Tape","post_url":"/blog/tesla-bitcoin-purchase-2021#q-vol_baseline","columns":["baseline_sessions","median_abs_move_pct","sessions_moving_more","feb8_change_pct"],"rows":[{"baseline_sessions":109,"median_abs_move_pct":2.5,"sessions_moving_more":80,"feb8_change_pct":1.3}],"shape":"scalar","sql":"WITH daily AS (\n    SELECT\n        toDate(toTimeZone(window_start, 'America/New_York')) AS et_date,\n        argMaxIf(toFloat64(close), window_start, (toHour(toTimeZone(window_start, 'America/New_York')) * 60 + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959) AS close_usd\n    FROM global_markets.delayed_stocks_minute_aggs\n    WHERE ticker = 'TSLA'\n      AND window_start >= toDateTime('2020-08-31 00:00:00') AND window_start < toDateTime('2021-02-09 01:00:00')\n    GROUP BY et_date\n),\nchg AS (\n    SELECT\n        et_date,\n        close_usd,\n        lagInFrame(close_usd) OVER (ORDER BY et_date ASC ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) AS prev_close\n    FROM daily\n)\nSELECT\n    countIf(et_date >= toDate('2020-09-01') AND et_date < toDate('2021-02-08') AND prev_close > 0) AS baseline_sessions,\n    round(quantileDeterministicIf(0.5)(abs(close_usd / prev_close - 1) * 100, toUInt32(et_date), et_date >= toDate('2020-09-01') AND et_date < toDate('2021-02-08') AND prev_close > 0), 1) AS median_abs_move_pct,\n    countIf(et_date >= toDate('2020-09-01') AND et_date < toDate('2021-02-08') AND prev_close > 0 AND abs(close_usd / prev_close - 1) > abs((SELECT close_usd / prev_close - 1 FROM chg WHERE et_date = toDate('2021-02-08')))) AS sessions_moving_more,\n    round(anyIf((close_usd / prev_close - 1) * 100, et_date = toDate('2021-02-08')), 1) AS feb8_change_pct\nFROM chg\nHAVING countIf(et_date >= toDate('2020-09-01') AND et_date < toDate('2021-02-08') AND prev_close > 0) > 0","computed_at":"2026-07-26T06:14:46.217367+00:00","elapsed":0.416881824}