{"slug":"us-premarket-and-after-hours-vietnam-time","qid":"spread_aapl","label":"spread_aapl","post_title":"us-premarket-and-after-hours-vietnam-time","post_url":"/blog/lang/vi/us-premarket-and-after-hours-vietnam-time#q-spread_aapl","columns":["ict_time","et_time","avg_spread_bps","quote_count_thousands"],"rows":[{"ict_time":"15:00","et_time":"04:00","avg_spread_bps":7.42,"quote_count_thousands":2},{"ict_time":"16:00","et_time":"05:00","avg_spread_bps":5.93,"quote_count_thousands":0},{"ict_time":"17:00","et_time":"06:00","avg_spread_bps":7.2,"quote_count_thousands":1},{"ict_time":"18:00","et_time":"07:00","avg_spread_bps":5.39,"quote_count_thousands":1},{"ict_time":"19:00","et_time":"08:00","avg_spread_bps":5.25,"quote_count_thousands":1},{"ict_time":"20:00","et_time":"09:00","avg_spread_bps":2.03,"quote_count_thousands":101},{"ict_time":"21:00","et_time":"10:00","avg_spread_bps":1.22,"quote_count_thousands":135},{"ict_time":"22:00","et_time":"11:00","avg_spread_bps":0.98,"quote_count_thousands":104},{"ict_time":"23:00","et_time":"12:00","avg_spread_bps":0.81,"quote_count_thousands":82},{"ict_time":"00:00","et_time":"13:00","avg_spread_bps":0.69,"quote_count_thousands":66},{"ict_time":"01:00","et_time":"14:00","avg_spread_bps":0.61,"quote_count_thousands":71},{"ict_time":"02:00","et_time":"15:00","avg_spread_bps":0.65,"quote_count_thousands":113},{"ict_time":"03:00","et_time":"16:00","avg_spread_bps":4.46,"quote_count_thousands":1},{"ict_time":"04:00","et_time":"17:00","avg_spread_bps":3.24,"quote_count_thousands":0},{"ict_time":"05:00","et_time":"18:00","avg_spread_bps":3.87,"quote_count_thousands":1},{"ict_time":"06:00","et_time":"19:00","avg_spread_bps":3.11,"quote_count_thousands":0}],"shape":"series","sql":"WITH quotes AS\n(\n    SELECT\n        toTimeZone(sip_timestamp, 'America/New_York') AS et,\n        toTimeZone(sip_timestamp, 'Asia/Ho_Chi_Minh') AS ict,\n        10000 * toFloat64(ask_price - bid_price)\n              / toFloat64((ask_price + bid_price) / 2) AS spread_bps\n    FROM global_markets.cache_stocks_quotes\n    WHERE ticker = 'AAPL'\n      AND sip_timestamp >= toDateTime('2026-09-15 08:00:00')\n      AND sip_timestamp <  toDateTime('2026-09-16 00:00:00')\n      AND bid_price > 0\n      AND ask_price > bid_price\n      AND toFloat64(ask_price - bid_price) / toFloat64(bid_price) < 0.05\n)\nSELECT\n    formatDateTime(ict, '%H:00')    AS ict_time,\n    formatDateTime(et, '%H:00')     AS et_time,\n    round(avg(spread_bps), 2)       AS avg_spread_bps,\n    round(count() / 1000)           AS quote_count_thousands\nFROM quotes\nGROUP BY ict_time, et_time\nORDER BY et_time","computed_at":"2026-10-07T15:41:08.042369+00:00","elapsed":0.003281429}