{"slug":"what-does-cross-mean-in-trading","qid":"quote_states","label":"quote_states","post_title":"what-does-cross-mean-in-trading","post_url":"/blog/what-does-cross-mean-in-trading#q-quote_states","columns":["quote_state","quotes","share_pct","all_quotes_thousands"],"rows":[{"quote_state":"normal (bid below ask)","quotes":38410,"share_pct":99.595,"all_quotes_thousands":38.6},{"quote_state":"locked (bid equals ask)","quotes":102,"share_pct":0.264,"all_quotes_thousands":38.6},{"quote_state":"crossed (bid above ask)","quotes":54,"share_pct":0.14,"all_quotes_thousands":38.6}],"shape":"ranking","sql":"SELECT\n    multiIf(bid_price > ask_price, 'crossed (bid above ask)',\n            bid_price = ask_price, 'locked (bid equals ask)',\n            'normal (bid below ask)')                       AS quote_state,\n    count()                                                 AS quotes,\n    round(100 * count() / sum(count()) OVER (), 3)          AS share_pct,\n    round(sum(count()) OVER () / 1000, 1)                   AS all_quotes_thousands\nFROM global_markets.cache_stocks_quotes\nWHERE ticker = 'AAPL'\n  AND sip_timestamp >= toDateTime('2026-06-18 13:30:00', 'UTC')\n  AND sip_timestamp <  toDateTime('2026-06-18 13:35:00', 'UTC')\n  AND bid_price > 0\n  AND ask_price > 0\nGROUP BY quote_state\nORDER BY quotes DESC","computed_at":"2026-09-17T15:58:12.080354+00:00","elapsed":0.002706974}