{"slug":"us-premarket-and-after-hours-in-beijing-time","qid":"spread_by_hour","label":"spread_by_hour","post_title":"us-premarket-and-after-hours-in-beijing-time","post_url":"/blog/lang/zh-hans/us-premarket-and-after-hours-in-beijing-time#q-spread_by_hour","columns":["et_hour","avg_spread_bps","quote_count"],"rows":[{"et_hour":"04:00","avg_spread_bps":19,"quote_count":150},{"et_hour":"05:00","avg_spread_bps":19.74,"quote_count":219},{"et_hour":"06:00","avg_spread_bps":23.95,"quote_count":195},{"et_hour":"07:00","avg_spread_bps":14.29,"quote_count":237},{"et_hour":"08:00","avg_spread_bps":14.82,"quote_count":835},{"et_hour":"09:00","avg_spread_bps":2.43,"quote_count":100405},{"et_hour":"10:00","avg_spread_bps":1.48,"quote_count":151094},{"et_hour":"11:00","avg_spread_bps":1.42,"quote_count":115311},{"et_hour":"12:00","avg_spread_bps":1.43,"quote_count":59105},{"et_hour":"13:00","avg_spread_bps":1.4,"quote_count":55371},{"et_hour":"14:00","avg_spread_bps":1.35,"quote_count":46091},{"et_hour":"15:00","avg_spread_bps":1.27,"quote_count":66892},{"et_hour":"16:00","avg_spread_bps":38.89,"quote_count":260},{"et_hour":"17:00","avg_spread_bps":38.66,"quote_count":196},{"et_hour":"18:00","avg_spread_bps":11.43,"quote_count":171},{"et_hour":"19:00","avg_spread_bps":9.18,"quote_count":278}],"shape":"ranking","sql":"SELECT\n    concat(leftPad(toString(et_h), 2, '0'), ':00') AS et_hour,\n    round(avg(\n        (toFloat64(ask_price) - toFloat64(bid_price))\n        / ((toFloat64(ask_price) + toFloat64(bid_price)) / 2) * 10000\n    ), 2)                                          AS avg_spread_bps,\n    count()                                        AS quote_count\nFROM\n(\n    SELECT\n        toHour(toTimeZone(sip_timestamp, 'America/New_York')) AS et_h,\n        ask_price,\n        bid_price\n    FROM global_markets.cache_stocks_quotes\n    WHERE ticker = 'KO'\n      AND sip_timestamp >= toDateTime('2026-06-10 04:00:00', 'America/New_York')\n      AND sip_timestamp <  toDateTime('2026-06-10 20:00:00', 'America/New_York')\n      AND bid_price > 0\n      AND ask_price > bid_price\n)\nGROUP BY et_h\nHAVING count() >= 20\nORDER BY et_h","computed_at":"2026-09-27T15:47:23.397849+00:00","elapsed":0.002507048}