{
  "id": 10754293,
  "title": "Simulating Last Look: The Broker's Hold Window in 50 Lines of Python",
  "url": "https://urgent.news/2026/09/29/simulating-last-look-the-brokers-hold-window-in-50-lines-of-python",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-29T18:34:49.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/bjftradinggroup/simulating-last-look-the-brokers-hold-window-in-50-lines-of-python-505"
  },
  "original_language": "en",
  "account": "This article demonstrates how to model a broker's \"last look\" hold window in Python, showing the difference between symmetric and asymmetric versions. The \"last look\" is a brief window where the counterparty decides whether to accept, reject, or re-price an order after it has been sent. The simulation shows how the fill rate and realized slippage differ between symmetric and asymmetric last look.\n\nIn symmetric last look, the same tolerance is applied to both price movements, resulting in a fill rate close to 100% and minimal client slippage. However, in asymmetric last look, only orders that favor the other side are accepted, leading to a significantly lower fill rate and negative client slippage.\n\nBy comparing the simulated results to real logs, one can determine if the broker is treating fills fairly or selectively accepting/rejecting orders based on their potential impact on the broker's bottom line. This toy model helps uncover hidden asymmetries in the execution process, providing valuable insights for traders and regulators alike.",
  "summary": "Last look is a short window where the other side can accept or reject your order after seeing it. Here is a tiny simulation that shows how symmetric and asymmetric versions differ. tags: python, trading, finance, simulation series: The Execution Layer cover_image: canonical_url: In the last post I showed how to detect one-sided slippage in your own fill log. This time I want to build…",
  "key_points": [
    "Simulates broker's last look hold window in Python",
    "Compares symmetric and asymmetric last look scenarios",
    "Reveals hidden asymmetries in execution process"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}