{"slug":"self-help-declarations-in-reg-nms","qid":"best_bid_venues","label":"best_bid_venues","post_title":"self-help-declarations-in-reg-nms","post_url":"/blog/self-help-declarations-in-reg-nms#q-best_bid_venues","columns":["venue","mic","best_bid_share_pct"],"rows":[{"venue":"Nasdaq","mic":"XNAS","best_bid_share_pct":37.11},{"venue":"Investors Exchange","mic":"IEXG","best_bid_share_pct":24.54},{"venue":"NYSE Arca, Inc.","mic":"ARCX","best_bid_share_pct":21.32},{"venue":"Cboe BZX","mic":"BATS","best_bid_share_pct":7.31},{"venue":"Members Exchange","mic":"MEMX","best_bid_share_pct":3.44},{"venue":"Cboe EDGX","mic":"EDGX","best_bid_share_pct":2.68},{"venue":"Binance","mic":"","best_bid_share_pct":1.5},{"venue":"New York Stock Exchange","mic":"XNYS","best_bid_share_pct":1.5},{"venue":"NYSE Texas, Inc.","mic":"XCHI","best_bid_share_pct":0.51},{"venue":"MIAX Pearl","mic":"EPRL","best_bid_share_pct":0.37},{"venue":"Cboe EDGA","mic":"EDGA","best_bid_share_pct":0.35},{"venue":"Cboe BYX","mic":"BATY","best_bid_share_pct":0.33}],"shape":"ranking","sql":"SELECT\n    ex.name AS venue,\n    ex.mic  AS mic,\n    round(100 * count() / (\n        SELECT count()\n        FROM global_markets.cache_stocks_quotes\n        WHERE ticker = 'AAPL'\n          AND sip_timestamp >= toDateTime('2026-06-10 08:00:00', 'UTC')\n          AND sip_timestamp <  toDateTime('2026-06-11 00:00:00', 'UTC')\n          AND bid_price > 0\n    ), 2) AS best_bid_share_pct\nFROM global_markets.cache_stocks_quotes AS q\nINNER JOIN global_markets.stocks_exchanges AS ex ON ex.id = q.bid_exchange\nWHERE q.ticker = 'AAPL'\n  AND q.sip_timestamp >= toDateTime('2026-06-10 08:00:00', 'UTC')\n  AND q.sip_timestamp <  toDateTime('2026-06-11 00:00:00', 'UTC')\n  AND q.bid_price > 0\nGROUP BY venue, mic\nORDER BY best_bid_share_pct DESC\nLIMIT 12","computed_at":"2026-09-30T15:14:44.048922+00:00","elapsed":0.0029377}