{"id":4308,"date":"2026-11-22T18:02:21","date_gmt":"2026-11-22T23:02:21","guid":{"rendered":"https:\/\/hftarbitrageplatform.com\/?p=4308"},"modified":"2026-11-22T18:02:24","modified_gmt":"2026-11-22T23:02:24","slug":"legging-risk-arbitrage","status":"publish","type":"post","link":"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/","title":{"rendered":"Legging Risk in Arbitrage: What to Do When Only One Leg Fills"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The spread is there, the signal fires, and your software sends two orders at once: buy EUR\/USD at the slow broker, sell it at the fast one. The buy fills at 1.08512. The sell comes back <em>rejected<\/em>. For the next few hundred milliseconds you are not running an arbitrage at all &#8211; you are holding a plain, unhedged long position that you never intended to open. That gap between &#8220;one leg done&#8221; and &#8220;the trade is actually hedged&#8221; is called <strong>legging risk<\/strong>, and in every multi-leg arbitrage strategy it is the quiet cost that decides whether a good-looking edge survives contact with real execution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains what legging risk is, where it shows up (two-broker hedge arbitrage, triangular arbitrage, crypto cross-exchange and basis trades), why legs fail, how to put a number on it, and &#8211; the part most traders improvise &#8211; exactly what to do in the seconds after only one leg fills.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What legging risk is (and what it is not)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An arbitrage with two or more legs is only risk-free when <em>all<\/em> legs are on. Each leg is a separate order, usually at a separate venue, so they never fill at exactly the same instant. Legging risk is the exposure you carry between the first fill and the last one &#8211; plus the case where the last one never fills at all.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is worth separating from two neighbours it is often confused with:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Slippage<\/strong> is getting a worse price than you asked for on a leg that <em>does<\/em> fill. It shrinks the profit. (We cover it in detail in <a href=\"https:\/\/hftarbitrageplatform.com\/en\/beating-slippage-latency-arbitrage\/\">our guide to beating slippage<\/a>.)<\/li>\n<li><strong>Legging risk<\/strong> is a leg that fills late, partially, or not at all, leaving the other leg naked. It does not just shrink the profit &#8211; it can turn a 0.5-pip edge into a 10-pip loss.<\/li>\n<li><strong>Market risk in one-leg strategies<\/strong> is different again. A one-leg latency trade is deliberately a single directional position; it has no second leg to fail. If you are deciding between the two models, see <a href=\"https:\/\/hftarbitrageplatform.com\/en\/one-leg-vs-two-leg-latency-arbitrage\/\">one-leg vs two-leg latency arbitrage<\/a>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"hft-figure\" style=\"margin:28px 0;text-align:center\">\n<svg viewBox=\"0 0 760 300\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"Timeline of a legged arbitrage trade: leg A fills, leg B is rejected, the position is unhedged until a retry or unwind\" style=\"max-width:100%;height:auto;font-family:Arial,Helvetica,sans-serif\">\n<rect x=\"0\" y=\"0\" width=\"760\" height=\"300\" rx=\"14\" fill=\"#0f2947\"\/>\n<text x=\"380\" y=\"34\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"bold\">Anatomy of a legged trade<\/text>\n<line x1=\"60\" y1=\"150\" x2=\"720\" y2=\"150\" stroke=\"#8fa6c4\" stroke-width=\"2\"\/>\n<text x=\"60\" y=\"176\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">0 ms<\/text>\n<text x=\"200\" y=\"176\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">40 ms<\/text>\n<text x=\"400\" y=\"176\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">300 ms<\/text>\n<text x=\"600\" y=\"176\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">700 ms<\/text>\n<circle cx=\"60\" cy=\"150\" r=\"7\" fill=\"#ffffff\"\/>\n<text x=\"60\" y=\"106\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">Signal<\/text>\n<text x=\"60\" y=\"122\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">both orders sent<\/text>\n<circle cx=\"200\" cy=\"150\" r=\"7\" fill=\"#22c55e\"\/>\n<text x=\"200\" y=\"106\" fill=\"#22c55e\" font-size=\"13\" text-anchor=\"middle\">Leg A filled<\/text>\n<text x=\"200\" y=\"122\" fill=\"#22c55e\" font-size=\"13\" text-anchor=\"middle\">buy 1.08512<\/text>\n<circle cx=\"250\" cy=\"150\" r=\"7\" fill=\"#ef4444\"\/>\n<text x=\"268\" y=\"210\" fill=\"#ef4444\" font-size=\"13\" text-anchor=\"middle\">Leg B rejected<\/text>\n<rect x=\"200\" y=\"140\" width=\"400\" height=\"20\" fill=\"#ef4444\" opacity=\"0.35\"\/>\n<text x=\"400\" y=\"244\" fill=\"#fca5a5\" font-size=\"14\" text-anchor=\"middle\" font-weight=\"bold\">Unhedged window &#8211; pure directional risk<\/text>\n<circle cx=\"400\" cy=\"150\" r=\"7\" fill=\"#f59e0b\"\/>\n<text x=\"400\" y=\"106\" fill=\"#f59e0b\" font-size=\"13\" text-anchor=\"middle\">Retry leg B<\/text>\n<text x=\"400\" y=\"122\" fill=\"#f59e0b\" font-size=\"13\" text-anchor=\"middle\">within tolerance?<\/text>\n<circle cx=\"600\" cy=\"150\" r=\"7\" fill=\"#ffffff\"\/>\n<text x=\"600\" y=\"106\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">Hedged &#8211; or<\/text>\n<text x=\"600\" y=\"122\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">leg A unwound<\/text>\n<text x=\"380\" y=\"280\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">Illustrative timings. The red window is where the strategy stops being arbitrage.<\/text>\n<\/svg>\n<figcaption style=\"font-size:14px;color:#64748b;margin-top:8px\">The legging window: from the first fill until the last leg is on (or the first leg is closed again).<\/figcaption>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Where legging risk shows up<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every strategy with more than one order has it. What changes is how many legs there are, how far apart the venues are, and how fast the price can run away from you.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"width:100%;border-collapse:collapse;font-size:15px\">\n<thead><tr style=\"background:#0f2947;color:#fff\"><th style=\"padding:10px;text-align:left\">Strategy<\/th><th style=\"padding:10px;text-align:left\">Legs<\/th><th style=\"padding:10px;text-align:left\">Typical failure<\/th><th style=\"padding:10px;text-align:left\">How bad it gets<\/th><\/tr><\/thead>\n<tbody>\n<tr><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Two-broker hedge arbitrage (forex)<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">2, different brokers<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Requote or reject on the slow broker, last-look delay<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">High around news: the price that created the gap is moving<\/td><\/tr>\n<tr><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Triangular arbitrage<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">3, often one venue<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Third leg priced away after the first two fill<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Usually small per trade, but frequent &#8211; the edge is tiny<\/td><\/tr>\n<tr><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Crypto cross-exchange<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">2, different exchanges<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Rate limit, API timeout, thin book, insufficient balance<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">High: 24\/7 volatility, and an exchange outage can last minutes<\/td><\/tr>\n<tr><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Spot vs perp \/ dated futures basis<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">2, spot and derivatives<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Partial fill on the spot side, margin check on the futures side<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Moderate: positions are larger and held longer, so a gap of seconds matters less than size<\/td><\/tr>\n<tr><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Statistical arbitrage pairs<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">2, often one broker<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">One leg fills, the other hits a spread widening<\/td><td style=\"padding:10px;border-bottom:1px solid #e2e8f0\">Low to moderate: the edge is measured over days, not milliseconds<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The rule of thumb: the shorter the strategy&#8217;s holding time, the more legging risk dominates its results. A two-broker forex trade targeting under a pip lives or dies on how cleanly both legs fill. A basis trade held for 60 days barely notices a two-second delay between legs &#8211; but it does notice a half-filled spot order. (For the strategy mechanics themselves, see <a href=\"https:\/\/hftarbitrageplatform.com\/en\/hedge-arbitrage\/\">hedge arbitrage explained<\/a> and our <a href=\"https:\/\/hftarbitrageplatform.com\/en\/triangular-arbitrage-forex\/\">triangular arbitrage guide<\/a>.)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why legs fail<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you look through the logs of a strategy that legs too often, the causes repeat. Roughly in order of how often we see them:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Requote or reject.<\/strong> The venue will not fill at your price because it has already moved &#8211; which, in arbitrage, is exactly when you are trading. Brokers that hold orders for a &#8220;last look&#8221; make this worse.<\/li>\n<li><strong>Partial fill.<\/strong> You wanted 2.00 lots or 1 BTC; the book had half of that at your price. Now one leg is twice the size of the other.<\/li>\n<li><strong>Limit price no longer reachable.<\/strong> A limit or IOC order on the second leg is correct risk control, but it means the leg simply does not fill if the price ran.<\/li>\n<li><strong>Technical failure.<\/strong> API timeout, dropped connection, rate-limit error, a session that silently logged out. In crypto this is the most common cause of <em>long<\/em> legging windows.<\/li>\n<li><strong>Account constraints.<\/strong> Not enough free margin or balance on one side, a minimum notional or minimum lot you did not check, trading disabled on the instrument.<\/li>\n<li><strong>Deliberate execution changes.<\/strong> If a broker has profiled the account as arbitrage, it may add delays or reject more often on that account only. A rising reject rate on one venue is often the first sign, and one of the signals brokers use when they profile toxic flow.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Putting a number on legging risk<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Legging risk feels random, but it has an expected cost you can estimate from your own logs. The simple version:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Expected legging cost per trade = leg-failure rate x average loss on a legged trade<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An illustrative example for a two-broker EUR\/USD strategy trading 1 lot (about $10 per pip):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Average net profit when both legs fill: <strong>0.5 pip = $5.00<\/strong><\/li>\n<li>Share of trades where the second leg fails first time: <strong>4%<\/strong><\/li>\n<li>Average loss on those trades after retry or unwind: <strong>6 pips = $60<\/strong> (the price usually moved against you &#8211; that is why the leg failed)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Expected legging cost = 0.04 x $60 = <strong>$2.40 per trade<\/strong>. The real expectancy is 0.96 x $5.00 &#8211; $2.40 = <strong>$2.40<\/strong>, less than half of what the clean fills suggest. Double the failure rate to 8% and the expectancy is roughly <strong>zero<\/strong>. This is why two strategies with the same average gap can produce completely different monthly results.<\/p>\n\n\n\n<figure class=\"hft-figure\" style=\"margin:28px 0;text-align:center\">\n<svg viewBox=\"0 0 760 340\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"Bar chart: expected profit per trade falls from 5 dollars at 0 percent leg failures to about zero at 8 percent and negative at 10 percent\" style=\"max-width:100%;height:auto;font-family:Arial,Helvetica,sans-serif\">\n<rect x=\"0\" y=\"0\" width=\"760\" height=\"340\" rx=\"14\" fill=\"#0f2947\"\/>\n<text x=\"380\" y=\"32\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"bold\">Expected profit per trade vs leg-failure rate<\/text>\n<text x=\"380\" y=\"54\" text-anchor=\"middle\" fill=\"#8fa6c4\" font-size=\"12\">Illustrative: $5 net per clean trade, $60 average loss per legged trade, 1 lot EUR\/USD<\/text>\n<line x1=\"90\" y1=\"250\" x2=\"710\" y2=\"250\" stroke=\"#8fa6c4\" stroke-width=\"1.5\"\/>\n<line x1=\"90\" y1=\"80\" x2=\"90\" y2=\"300\" stroke=\"#8fa6c4\" stroke-width=\"1\"\/>\n<text x=\"80\" y=\"104\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"end\">$5<\/text>\n<text x=\"80\" y=\"254\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"end\">$0<\/text>\n<text x=\"80\" y=\"299\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"end\">-$1.5<\/text>\n<line x1=\"90\" y1=\"100\" x2=\"710\" y2=\"100\" stroke=\"#8fa6c4\" stroke-width=\"0.5\" stroke-dasharray=\"4 4\"\/>\n<rect x=\"120\" y=\"100\" width=\"70\" height=\"150\" fill=\"#22c55e\"\/>\n<text x=\"155\" y=\"92\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">$5.00<\/text>\n<text x=\"155\" y=\"272\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">0%<\/text>\n<rect x=\"240\" y=\"139\" width=\"70\" height=\"111\" fill=\"#22c55e\"\/>\n<text x=\"275\" y=\"131\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">$3.70<\/text>\n<text x=\"275\" y=\"272\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">2%<\/text>\n<rect x=\"360\" y=\"178\" width=\"70\" height=\"72\" fill=\"#84cc16\"\/>\n<text x=\"395\" y=\"170\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">$2.40<\/text>\n<text x=\"395\" y=\"272\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">4%<\/text>\n<rect x=\"480\" y=\"217\" width=\"70\" height=\"33\" fill=\"#f59e0b\"\/>\n<text x=\"515\" y=\"210\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">$1.10<\/text>\n<text x=\"515\" y=\"272\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">6%<\/text>\n<rect x=\"600\" y=\"250\" width=\"70\" height=\"45\" fill=\"#ef4444\"\/>\n<text x=\"635\" y=\"240\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">-$1.50<\/text>\n<text x=\"635\" y=\"312\" fill=\"#ffffff\" font-size=\"13\" text-anchor=\"middle\">10%<\/text>\n<text x=\"400\" y=\"332\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">Leg-failure rate (share of trades where the second leg does not fill first time)<\/text>\n<\/svg>\n<figcaption style=\"font-size:14px;color:#64748b;margin-top:8px\">A few percent of failed legs can remove most of the edge. Measure this number before you trust a backtest.<\/figcaption>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Two other figures belong in your monitoring alongside the failure rate: the <strong>time to complete<\/strong> (median and worst case between first and last fill) and the <strong>maximum naked exposure<\/strong> you held at any moment during the month. A strategy that legs rarely but once sat unhedged for four minutes during an exchange outage has a risk its average numbers hide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What to do when only one leg fills<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are only three real responses, and the worst outcome is choosing between them by hand while the price moves. Decide the rules in advance and let the software apply them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Complete: retry the missing leg within a tolerance<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Re-send the failed leg at the current price, but only if that price still leaves the combined trade within a set tolerance &#8211; for example &#8220;no worse than break-even&#8221; or &#8220;no more than 1 pip of loss&#8221;. Cap the number of retries and the time allowed. Chasing a leg without a limit is how a small miss becomes a large one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Unwind: close the leg that did fill<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the second leg cannot be completed inside the tolerance or the time budget, close the first leg and take the small loss. It feels wrong to pay a spread to get out of a trade you just entered, but a known 1-2 pip loss is better than an open-ended directional position you did not plan.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Hedge elsewhere: use a proxy venue<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you run several venues, the missing leg can sometimes be placed at a third broker or exchange that quotes the same instrument. This keeps the trade alive, but it adds a new position to manage later. Use it only when the proxy is reliable and the size is small relative to its book.<\/p>\n\n\n\n<figure class=\"hft-figure\" style=\"margin:28px 0;text-align:center\">\n<svg viewBox=\"0 0 760 380\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"Decision flow after one leg fills: retry within tolerance and time budget, otherwise hedge at a proxy if available, otherwise unwind the filled leg\" style=\"max-width:100%;height:auto;font-family:Arial,Helvetica,sans-serif\">\n<rect x=\"0\" y=\"0\" width=\"760\" height=\"380\" rx=\"14\" fill=\"#0f2947\"\/>\n<text x=\"380\" y=\"32\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"bold\">One leg filled &#8211; the decision rule<\/text>\n<rect x=\"260\" y=\"50\" width=\"240\" height=\"44\" rx=\"8\" fill=\"#ef4444\"\/>\n<text x=\"380\" y=\"77\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"14\" font-weight=\"bold\">Leg A filled, leg B failed<\/text>\n<line x1=\"380\" y1=\"94\" x2=\"380\" y2=\"118\" stroke=\"#ffffff\" stroke-width=\"2\"\/>\n<rect x=\"200\" y=\"118\" width=\"360\" height=\"52\" rx=\"8\" fill=\"#1e3a5f\" stroke=\"#8fa6c4\"\/>\n<text x=\"380\" y=\"140\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"13\">Current price for leg B still inside tolerance<\/text>\n<text x=\"380\" y=\"158\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"13\">and time \/ retry budget not used up?<\/text>\n<line x1=\"200\" y1=\"144\" x2=\"120\" y2=\"144\" stroke=\"#22c55e\" stroke-width=\"2\"\/>\n<line x1=\"120\" y1=\"144\" x2=\"120\" y2=\"200\" stroke=\"#22c55e\" stroke-width=\"2\"\/>\n<text x=\"150\" y=\"136\" fill=\"#22c55e\" font-size=\"13\" text-anchor=\"middle\">Yes<\/text>\n<rect x=\"30\" y=\"200\" width=\"180\" height=\"56\" rx=\"8\" fill=\"#22c55e\"\/>\n<text x=\"120\" y=\"224\" text-anchor=\"middle\" fill=\"#071523\" font-size=\"14\" font-weight=\"bold\">Retry leg B<\/text>\n<text x=\"120\" y=\"242\" text-anchor=\"middle\" fill=\"#071523\" font-size=\"12\">IOC at limit price<\/text>\n<line x1=\"380\" y1=\"170\" x2=\"380\" y2=\"200\" stroke=\"#f59e0b\" stroke-width=\"2\"\/>\n<text x=\"398\" y=\"190\" fill=\"#f59e0b\" font-size=\"13\">No<\/text>\n<rect x=\"230\" y=\"200\" width=\"300\" height=\"52\" rx=\"8\" fill=\"#1e3a5f\" stroke=\"#8fa6c4\"\/>\n<text x=\"380\" y=\"222\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"13\">Reliable proxy venue with enough<\/text>\n<text x=\"380\" y=\"240\" text-anchor=\"middle\" fill=\"#ffffff\" font-size=\"13\">liquidity for this size?<\/text>\n<line x1=\"530\" y1=\"226\" x2=\"640\" y2=\"226\" stroke=\"#22c55e\" stroke-width=\"2\"\/>\n<line x1=\"640\" y1=\"226\" x2=\"640\" y2=\"280\" stroke=\"#22c55e\" stroke-width=\"2\"\/>\n<text x=\"585\" y=\"218\" fill=\"#22c55e\" font-size=\"13\" text-anchor=\"middle\">Yes<\/text>\n<rect x=\"550\" y=\"280\" width=\"180\" height=\"56\" rx=\"8\" fill=\"#f59e0b\"\/>\n<text x=\"640\" y=\"304\" text-anchor=\"middle\" fill=\"#071523\" font-size=\"14\" font-weight=\"bold\">Hedge at proxy<\/text>\n<text x=\"640\" y=\"322\" text-anchor=\"middle\" fill=\"#071523\" font-size=\"12\">flag for later clean-up<\/text>\n<line x1=\"380\" y1=\"252\" x2=\"380\" y2=\"280\" stroke=\"#ef4444\" stroke-width=\"2\"\/>\n<text x=\"398\" y=\"272\" fill=\"#ef4444\" font-size=\"13\">No<\/text>\n<rect x=\"290\" y=\"280\" width=\"180\" height=\"56\" rx=\"8\" fill=\"#ffffff\"\/>\n<text x=\"380\" y=\"304\" text-anchor=\"middle\" fill=\"#071523\" font-size=\"14\" font-weight=\"bold\">Unwind leg A<\/text>\n<text x=\"380\" y=\"322\" text-anchor=\"middle\" fill=\"#071523\" font-size=\"12\">take the small known loss<\/text>\n<text x=\"380\" y=\"364\" fill=\"#8fa6c4\" font-size=\"12\" text-anchor=\"middle\">Every branch is decided before the trade &#8211; never by hand mid-trade.<\/text>\n<\/svg>\n<figcaption style=\"font-size:14px;color:#64748b;margin-top:8px\">A simple, pre-agreed rule beats improvising. If the retry fails again, fall through to unwind.<\/figcaption>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">How long is &#8220;the time budget&#8221;? It depends on the strategy&#8217;s own speed. For a forex two-broker trade, a few hundred milliseconds to one or two seconds is typical; after that the gap you were trading is gone and you are simply speculating. For a crypto basis or funding trade held for weeks, a budget of tens of seconds is reasonable, but the size check matters more than the clock.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to reduce legging risk before it happens<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Send the harder leg first.<\/strong> If one venue rejects or partially fills more often, send that order first and only fire the easy leg once it is filled. You give up a little speed, but a failure now costs nothing because nothing is open yet. Firing both at once is faster, but it is only the right choice when both sides fill reliably.<\/li>\n<li><strong>Size to the thinner side.<\/strong> Check the visible depth on both books and trade the smaller of the two, with a margin. Half of all partial fills are simply orders that were larger than the book.<\/li>\n<li><strong>Use IOC or FOK orders with a limit.<\/strong> A market order on the second leg removes the reject but swaps it for unlimited slippage. A limit with immediate-or-cancel gives you a clean &#8220;filled \/ not filled&#8221; answer you can act on.<\/li>\n<li><strong>Pre-check the boring things.<\/strong> Free margin and balance on both sides, minimum lot or minimum notional, trading hours, rate-limit headroom. In crypto, keep a reserve of the API request budget for cancels and retries &#8211; see <a href=\"https:\/\/hftarbitrageplatform.com\/en\/crypto-exchange-api-arbitrage-guide\/\">connecting to crypto exchange APIs for arbitrage<\/a>.<\/li>\n<li><strong>Pre-fund both venues.<\/strong> A cross-exchange trade that waits for a transfer is not an arbitrage. Balances must already be on both sides.<\/li>\n<li><strong>Track rejects per venue.<\/strong> If one broker&#8217;s reject rate doubles over a week, reduce size there or stop &#8211; it is usually a change on their side, not bad luck.<\/li>\n<li><strong>Have a kill switch.<\/strong> If a venue disconnects, stop opening new trades on every venue that pairs with it until it is back and its positions are reconciled.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What your software should handle for you<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Legging decisions happen too fast for manual control, so they belong in the execution software. Whatever tool you use, check that it can do the following &#8211; and test each point on a demo account by deliberately forcing a failed leg:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Track every multi-leg trade as one unit with a state (pending, partly filled, hedged, unwinding, closed), not as unrelated orders.<\/li>\n<li>Retry the missing leg automatically within a price tolerance and a maximum number of attempts.<\/li>\n<li>Unwind the filled leg automatically when the tolerance or time budget is exceeded.<\/li>\n<li>Adjust the second leg&#8217;s size to match a partial fill on the first.<\/li>\n<li>Enforce a cap on total unhedged exposure across all trades.<\/li>\n<li>Log the time between legs and the outcome of every legged trade, so you can calculate the cost shown above.<\/li>\n<li>Alert you when a venue&#8217;s reject rate or legging time jumps.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If a tool cannot show you how often its trades legged last month and what that cost, you are judging the strategy on its clean fills only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The takeaway<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Legging risk is the price of trading across more than one order. You cannot remove it, but you can measure it, set rules for it and keep it small: send the harder leg first, size to the thinner book, use limit IOC orders, retry inside a tolerance, and unwind without hesitation when the tolerance is gone. Most of the difference between an arbitrage strategy that works on paper and one that works in a live account comes from these few rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is legging risk in arbitrage?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is the risk that one leg of a multi-leg arbitrage fills while another fills late, only partly, or not at all. Until every leg is on, you hold an unhedged directional position, so the trade is exposed to normal market moves.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is legging risk the same as slippage?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Slippage is a worse price on a leg that does fill, which reduces profit. Legging risk is a leg that does not fill in time, which leaves the other leg naked and can create a loss many times larger than the expected profit.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which leg should I send first?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If both venues fill reliably, sending both at once is fastest. If one venue rejects or partially fills more often, send that leg first and fire the second only after it fills &#8211; a failure on the first leg then costs nothing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How long should I wait before unwinding a single filled leg?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As long as the original price gap could still exist. For fast forex two-broker trades that is usually a few hundred milliseconds to a couple of seconds; for crypto basis or funding trades held for weeks it can be longer. Set the limit in advance and let the software enforce it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does one-leg latency arbitrage have legging risk?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not in this sense &#8211; it has only one order, so there is no second leg to fail. It carries a different risk instead: the single position is directional and depends on the price moving the way the faster feed predicted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can legging risk be eliminated completely?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Only where a venue executes all legs as one atomic order, which is rare in retail forex and crypto arbitrage across venues. Elsewhere you can reduce it &#8211; order sequencing, sizing, limit IOC orders, pre-checks and automatic retry\/unwind rules &#8211; but not remove it.<\/p>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"What is legging risk in arbitrage?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It is the risk that one leg of a multi-leg arbitrage fills while another fills late, only partly, or not at all. Until every leg is on, you hold an unhedged directional position, so the trade is exposed to normal market moves.\"}},{\"@type\":\"Question\",\"name\":\"Is legging risk the same as slippage?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Slippage is a worse price on a leg that does fill, which reduces profit. Legging risk is a leg that does not fill in time, which leaves the other leg naked and can create a loss many times larger than the expected profit.\"}},{\"@type\":\"Question\",\"name\":\"Which leg should I send first?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"If both venues fill reliably, sending both at once is fastest. If one venue rejects or partially fills more often, send that leg first and fire the second only after it fills - a failure on the first leg then costs nothing.\"}},{\"@type\":\"Question\",\"name\":\"How long should I wait before unwinding a single filled leg?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"As long as the original price gap could still exist. For fast forex two-broker trades that is usually a few hundred milliseconds to a couple of seconds; for crypto basis or funding trades held for weeks it can be longer. Set the limit in advance and let the software enforce it.\"}},{\"@type\":\"Question\",\"name\":\"Does one-leg latency arbitrage have legging risk?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Not in this sense - it has only one order, so there is no second leg to fail. It carries a different risk instead: the single position is directional and depends on the price moving the way the faster feed predicted.\"}},{\"@type\":\"Question\",\"name\":\"Can legging risk be eliminated completely?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Only where a venue executes all legs as one atomic order, which is rare in retail forex and crypto arbitrage across venues. Elsewhere you can reduce it - order sequencing, sizing, limit IOC orders, pre-checks and automatic retry\/unwind rules - but not remove it.\"}}]}<\/script>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"How to handle an arbitrage trade when only one leg fills\",\"step\":[{\"@type\":\"HowToStep\",\"name\":\"Set the rules in advance\",\"text\":\"Define a price tolerance, a time budget and a maximum number of retries for the missing leg before you trade.\"},{\"@type\":\"HowToStep\",\"name\":\"Retry the missing leg\",\"text\":\"Re-send the failed leg as a limit IOC order only if the combined trade stays inside the tolerance.\"},{\"@type\":\"HowToStep\",\"name\":\"Hedge at a proxy venue if available\",\"text\":\"If the retry fails and a reliable third venue has enough liquidity, place the missing leg there and flag it for clean-up.\"},{\"@type\":\"HowToStep\",\"name\":\"Unwind the filled leg\",\"text\":\"If no retry or proxy works within the budget, close the leg that filled and accept the small known loss.\"},{\"@type\":\"HowToStep\",\"name\":\"Log and review\",\"text\":\"Record the time between legs and the result of every legged trade, and track the failure rate per venue to estimate legging cost.\"}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Legging risk is the exposure between the first and last fill of a multi-leg arbitrage. Why legs fail, how to estimate the cost from your own logs, and the retry \/ hedge \/ unwind rule for when only one leg fills. [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary conversions-read-more-link\" href=\"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4309,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[95,94],"tags":[],"class_list":["post-4308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arbitrage-software-for-cryptocurrencies","category-arbitrage-software-for-forex"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Legging Risk in Arbitrage: When Only One Leg Fills<\/title>\n<meta name=\"description\" content=\"What legging risk is, why arbitrage legs fail, how to measure its cost and what to do when only one leg fills: retry, hedge or unwind. With worked numbers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Legging Risk in Arbitrage: When Only One Leg Fills\" \/>\n<meta property=\"og:description\" content=\"What legging risk is, why arbitrage legs fail, how to measure its cost and what to do when only one leg fills: retry, hedge or unwind. With worked numbers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/\" \/>\n<meta property=\"og:site_name\" content=\"HFT Arbitrage Platform\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/hftarbitrage\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-22T23:02:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T23:02:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Luts Sergey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Luts Sergey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/\"},\"author\":{\"name\":\"Luts Sergey\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#\\\/schema\\\/person\\\/14bd6bb2810e2b03fa9bc4f1a2a46f42\"},\"headline\":\"Legging Risk in Arbitrage: What to Do When Only One Leg Fills\",\"datePublished\":\"2026-11-22T23:02:21+00:00\",\"dateModified\":\"2026-11-22T23:02:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/\"},\"wordCount\":2391,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/hftarbitrageplatform.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1\",\"articleSection\":[\"Arbitrage software for cryptocurrencies\",\"Arbitrage software for forex\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#respond\"]}],\"name\":\"Legging Risk in Arbitrage: What to Do When Only One Leg Fills\",\"description\":\"Legging risk is the exposure between the first and last fill of a multi-leg arbitrage. Why legs fail, how to estimate the cost from your own logs, and the retry \\\/ hedge \\\/ unwind rule for when only one leg fills. [...]<p><a class=\\\"btn btn-secondary conversions-read-more-link\\\" href=\\\"https:\\\/\\\/hftarbitrageplatform.com\\\/en\\\/legging-risk-arbitrage\\\/\\\">Read More...<\\\/a><\\\/p>\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/\",\"url\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/\",\"name\":\"Legging Risk in Arbitrage: What to Do When Only One Leg Fills\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/hftarbitrageplatform.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1\",\"datePublished\":\"2026-11-22T23:02:21+00:00\",\"dateModified\":\"2026-11-22T23:02:24+00:00\",\"description\":\"Legging risk is the exposure between the first and last fill of a multi-leg arbitrage. Why legs fail, how to estimate the cost from your own logs, and the retry \\\/ hedge \\\/ unwind rule for when only one leg fills. [...]<p><a class=\\\"btn btn-secondary conversions-read-more-link\\\" href=\\\"https:\\\/\\\/hftarbitrageplatform.com\\\/en\\\/legging-risk-arbitrage\\\/\\\">Read More...<\\\/a><\\\/p>\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/hftarbitrageplatform.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/hftarbitrageplatform.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1\",\"width\":1200,\"height\":630,\"caption\":\"Legging risk in arbitrage - what to do when only one leg fills\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/legging-risk-arbitrage\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Legging Risk in Arbitrage: What to Do When Only One Leg Fills\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#website\",\"url\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/\",\"name\":\"HFT Arbitrage Platform\",\"description\":\"Multi-platforms and Multi-Strategies HFT Arbitrage Bot\",\"publisher\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#organization\",\"name\":\"HFT Arbitrage Platform\",\"url\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/hftarbitrageplatform.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/cropped-hft-arbitrage-platfromLogo.png?fit=500%2C93&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/hftarbitrageplatform.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/cropped-hft-arbitrage-platfromLogo.png?fit=500%2C93&ssl=1\",\"width\":500,\"height\":93,\"caption\":\"HFT Arbitrage Platform\"},\"image\":{\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/#\\\/schema\\\/person\\\/14bd6bb2810e2b03fa9bc4f1a2a46f42\",\"name\":\"Luts Sergey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d1a628d861d2f56d655471dafeb18444a5e03a089f1ebf09567848d8f8020e8a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d1a628d861d2f56d655471dafeb18444a5e03a089f1ebf09567848d8f8020e8a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d1a628d861d2f56d655471dafeb18444a5e03a089f1ebf09567848d8f8020e8a?s=96&d=mm&r=g\",\"caption\":\"Luts Sergey\"},\"description\":\"Sergey Luts is a highly experienced developer of high-frequency trading systems with more than 20 years of expertise in financial technology and advanced trading infrastructure. Born in Dnipropetrovsk, Ukraine, he graduated from Dnipropetrovsk State Technical University in 1999 and has been specializing in HFT system development since 2000. Throughout his career, Sergey has developed sophisticated solutions for professional trading environments, including work for a hedge fund where he created a successful trading system. Five years ago, he chose to pursue his own path, assembling a team of mathematicians and traders and founding HFT Software to develop next-generation trading technologies. Over the years, Sergey has contributed to the development of hundreds of trading strategies, all thoroughly tested and refined, with only the most effective solutions selected for sale and real-world application. His portfolio includes dozens of arbitrage strategies, high-performance execution tools, and an exceptionally fast Forex trade copier built for demanding HFT infrastructure. With strong expertise in Python, C#, and C++, Sergey is known as an experienced programmer and a skilled architect of advanced trading systems. His work is defined by speed, precision, technical depth, and a practical understanding of what professional traders require in highly competitive markets.\",\"sameAs\":[\"https:\\\/\\\/hftarbitrageplatform.com\\\/sergey-luts-high-frequency-trading-systems-developer\\\/\",\"https:\\\/\\\/www.facebook.com\\\/hftarbitrage\"],\"url\":\"https:\\\/\\\/hftarbitrageplatform.com\\\/en\\\/author\\\/hft\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Legging Risk in Arbitrage: When Only One Leg Fills","description":"What legging risk is, why arbitrage legs fail, how to measure its cost and what to do when only one leg fills: retry, hedge or unwind. With worked numbers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/","og_locale":"en_US","og_type":"article","og_title":"Legging Risk in Arbitrage: When Only One Leg Fills","og_description":"What legging risk is, why arbitrage legs fail, how to measure its cost and what to do when only one leg fills: retry, hedge or unwind. With worked numbers.","og_url":"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/","og_site_name":"HFT Arbitrage Platform","article_author":"https:\/\/www.facebook.com\/hftarbitrage","article_published_time":"2026-11-22T23:02:21+00:00","article_modified_time":"2026-11-22T23:02:24+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg","type":"image\/jpeg"}],"author":"Luts Sergey","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Luts Sergey","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#article","isPartOf":{"@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/"},"author":{"name":"Luts Sergey","@id":"https:\/\/hftarbitrageplatform.com\/#\/schema\/person\/14bd6bb2810e2b03fa9bc4f1a2a46f42"},"headline":"Legging Risk in Arbitrage: What to Do When Only One Leg Fills","datePublished":"2026-11-22T23:02:21+00:00","dateModified":"2026-11-22T23:02:24+00:00","mainEntityOfPage":{"@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/"},"wordCount":2391,"commentCount":0,"publisher":{"@id":"https:\/\/hftarbitrageplatform.com\/#organization"},"image":{"@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1","articleSection":["Arbitrage software for cryptocurrencies","Arbitrage software for forex"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#respond"]}],"name":"Legging Risk in Arbitrage: What to Do When Only One Leg Fills","description":"Legging risk is the exposure between the first and last fill of a multi-leg arbitrage. Why legs fail, how to estimate the cost from your own logs, and the retry \/ hedge \/ unwind rule for when only one leg fills. [...]<p><a class=\"btn btn-secondary conversions-read-more-link\" href=\"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/\">Read More...<\/a><\/p>"},{"@type":"WebPage","@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/","url":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/","name":"Legging Risk in Arbitrage: What to Do When Only One Leg Fills","isPartOf":{"@id":"https:\/\/hftarbitrageplatform.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#primaryimage"},"image":{"@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1","datePublished":"2026-11-22T23:02:21+00:00","dateModified":"2026-11-22T23:02:24+00:00","description":"Legging risk is the exposure between the first and last fill of a multi-leg arbitrage. Why legs fail, how to estimate the cost from your own logs, and the retry \/ hedge \/ unwind rule for when only one leg fills. [...]<p><a class=\"btn btn-secondary conversions-read-more-link\" href=\"https:\/\/hftarbitrageplatform.com\/en\/legging-risk-arbitrage\/\">Read More...<\/a><\/p>","breadcrumb":{"@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#primaryimage","url":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1","contentUrl":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1","width":1200,"height":630,"caption":"Legging risk in arbitrage - what to do when only one leg fills"},{"@type":"BreadcrumbList","@id":"https:\/\/hftarbitrageplatform.com\/legging-risk-arbitrage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hftarbitrageplatform.com\/"},{"@type":"ListItem","position":2,"name":"Legging Risk in Arbitrage: What to Do When Only One Leg Fills"}]},{"@type":"WebSite","@id":"https:\/\/hftarbitrageplatform.com\/#website","url":"https:\/\/hftarbitrageplatform.com\/","name":"HFT Arbitrage Platform","description":"Multi-platforms and Multi-Strategies HFT Arbitrage Bot","publisher":{"@id":"https:\/\/hftarbitrageplatform.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hftarbitrageplatform.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hftarbitrageplatform.com\/#organization","name":"HFT Arbitrage Platform","url":"https:\/\/hftarbitrageplatform.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hftarbitrageplatform.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2022\/06\/cropped-hft-arbitrage-platfromLogo.png?fit=500%2C93&ssl=1","contentUrl":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2022\/06\/cropped-hft-arbitrage-platfromLogo.png?fit=500%2C93&ssl=1","width":500,"height":93,"caption":"HFT Arbitrage Platform"},"image":{"@id":"https:\/\/hftarbitrageplatform.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hftarbitrageplatform.com\/#\/schema\/person\/14bd6bb2810e2b03fa9bc4f1a2a46f42","name":"Luts Sergey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d1a628d861d2f56d655471dafeb18444a5e03a089f1ebf09567848d8f8020e8a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d1a628d861d2f56d655471dafeb18444a5e03a089f1ebf09567848d8f8020e8a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d1a628d861d2f56d655471dafeb18444a5e03a089f1ebf09567848d8f8020e8a?s=96&d=mm&r=g","caption":"Luts Sergey"},"description":"Sergey Luts is a highly experienced developer of high-frequency trading systems with more than 20 years of expertise in financial technology and advanced trading infrastructure. Born in Dnipropetrovsk, Ukraine, he graduated from Dnipropetrovsk State Technical University in 1999 and has been specializing in HFT system development since 2000. Throughout his career, Sergey has developed sophisticated solutions for professional trading environments, including work for a hedge fund where he created a successful trading system. Five years ago, he chose to pursue his own path, assembling a team of mathematicians and traders and founding HFT Software to develop next-generation trading technologies. Over the years, Sergey has contributed to the development of hundreds of trading strategies, all thoroughly tested and refined, with only the most effective solutions selected for sale and real-world application. His portfolio includes dozens of arbitrage strategies, high-performance execution tools, and an exceptionally fast Forex trade copier built for demanding HFT infrastructure. With strong expertise in Python, C#, and C++, Sergey is known as an experienced programmer and a skilled architect of advanced trading systems. His work is defined by speed, precision, technical depth, and a practical understanding of what professional traders require in highly competitive markets.","sameAs":["https:\/\/hftarbitrageplatform.com\/sergey-luts-high-frequency-trading-systems-developer\/","https:\/\/www.facebook.com\/hftarbitrage"],"url":"https:\/\/hftarbitrageplatform.com\/en\/author\/hft\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/hftarbitrageplatform.com\/wp-content\/uploads\/2026\/11\/legging-risk-arbitrage-banner.jpg?fit=1200%2C630&ssl=1","_links":{"self":[{"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/posts\/4308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/comments?post=4308"}],"version-history":[{"count":3,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/posts\/4308\/revisions"}],"predecessor-version":[{"id":4314,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/posts\/4308\/revisions\/4314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/media\/4309"}],"wp:attachment":[{"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/media?parent=4308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/categories?post=4308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hftarbitrageplatform.com\/en\/wp-json\/wp\/v2\/tags?post=4308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}