{"slug":"us-premarket-and-after-hours-japan-time","qid":"spread_jst","label":"spread_jst","post_title":"us-premarket-and-after-hours-japan-time","post_url":"/blog/lang/ja/us-premarket-and-after-hours-japan-time#q-spread_jst","columns":["jst_hour","spread_bps","quote_count"],"rows":[{"jst_hour":"17:00","spread_bps":8.46,"quote_count":1238},{"jst_hour":"18:00","spread_bps":10.27,"quote_count":514},{"jst_hour":"19:00","spread_bps":8.15,"quote_count":377},{"jst_hour":"20:00","spread_bps":6.64,"quote_count":1341},{"jst_hour":"21:00","spread_bps":4.23,"quote_count":652},{"jst_hour":"22:00","spread_bps":2.09,"quote_count":103597},{"jst_hour":"23:00","spread_bps":1.2,"quote_count":79653},{"jst_hour":"00:00","spread_bps":1.2,"quote_count":68686},{"jst_hour":"01:00","spread_bps":0.9,"quote_count":43372},{"jst_hour":"02:00","spread_bps":0.9,"quote_count":43248},{"jst_hour":"03:00","spread_bps":1.2,"quote_count":121565},{"jst_hour":"04:00","spread_bps":0.91,"quote_count":163432},{"jst_hour":"05:00","spread_bps":3.91,"quote_count":935},{"jst_hour":"06:00","spread_bps":2.71,"quote_count":325},{"jst_hour":"07:00","spread_bps":8.12,"quote_count":810},{"jst_hour":"08:00","spread_bps":6.92,"quote_count":6702}],"shape":"ranking","sql":"SELECT\n    jst_hour,\n    spread_bps,\n    quote_count\nFROM\n(\n    SELECT\n        formatDateTime(toStartOfHour(toTimeZone(sip_timestamp, 'Asia/Tokyo')), '%H:%i') AS jst_hour,\n        (toHour(toTimeZone(sip_timestamp, 'Asia/Tokyo')) + 7) % 24                      AS session_order,\n        round(quantileDeterministic(0.5)(\n            10000 * (toFloat64(ask_price) - toFloat64(bid_price)) / toFloat64(bid_price),\n            toUInt64(sequence_number)), 2)                                              AS spread_bps,\n        count()                                                                         AS quote_count\n    FROM global_markets.cache_stocks_quotes\n    WHERE ticker = 'AAPL'\n      AND sip_timestamp >= toDateTime('2026-09-16 08:00:00')\n      AND sip_timestamp <  toDateTime('2026-09-17 00:00:00')\n      AND bid_price > 0\n      AND ask_price > bid_price\n    GROUP BY jst_hour, session_order\n)\nORDER BY session_order","computed_at":"2026-10-03T15:30:33.440726+00:00","elapsed":0.003022626}