# Arbitrage betting bot: build one for Novig, FanDuel and DraftKings

> Independent. Not affiliated with, endorsed by or sponsored by Novig.

Canonical: https://novigapi.com/uses/arbitrage-betting-bot
Facts checked: 2026-11-22

An arbitrage betting bot needs both legs priced on the same line. GET /v1/arbitrage on novigapi.com returns two-way arbitrage across Novig, FanDuel and DraftKings with the stake split for 100 units and the guaranteed margin, recomputed every 60 seconds, with Novig legs priced at the ask plus any taker fee. (Source: [novigapi.com: GET /v1/arbitrage reference](https://novigapi.com/docs/endpoints/arbitrage?ref=ai-md))

```python
import os, requests

def nv(path, **params):
    r = requests.get("https://novigapi.com/api/v1/" + path, params=params, timeout=30,
                     headers={"Authorization": "Bearer " + os.environ["NOVIGAPI_KEY"]})
    r.raise_for_status()
    return r.json()

import time

BANKROLL = 500  # total you will put on both legs
seen = set()
while True:
    for a in nv("arbitrage", min_profit=0.5)["data"]:
        if a["confidence"] != "high" or a["id"] in seen:
            continue
        seen.add(a["id"])
        legs = [f'{l["book_name"]} {l["side"]} {l["american_text"]} stake {BANKROLL * l["stake"] / 100:.2f}'
                for l in a["legs"]]
        print(f'{a["profit_pct"]}% guaranteed:', " | ".join(legs))
    time.sleep(60)
```

Each row's leg stakes add up to 100, so scaling to your bankroll is one multiplication. The bot alerts once per arb and skips rows with a stale leg.

## The math

```
margin = 1 - (1 / decimal_a + 1 / decimal_b)
```
stake_a = 100 x (1 / decimal_a) / (1 / decimal_a + 1 / decimal_b). A Novig leg uses the ask plus 0.06 x P x (1 - P) when the fee applies.

Rework any split by hand in the [arbitrage calculator](https://novigapi.com/arbitrage-calculator?ref=ai-md).

## What to expect

- Real two-way arbs between these venues are rare and short-lived. Most passes find none, so the bot spends most of its time waiting.
- A Novig leg fills only up to the size on the other side's best bid. Check the [order book](https://novigapi.com/docs/endpoints/orderbook-snapshot?ref=ai-md) before you size up.
- Place the leg on the slower venue first and confirm both prices before committing.
- `type=middles` returns middles instead: two lines that leave a window where both legs win. Those are not risk-free.

## Alerts to Telegram or Discord

Replace the print with a POST to a Telegram bot or a Discord channel webhook. The [Discord bot guide](https://novigapi.com/uses/novig-odds-discord-bot?ref=ai-md) has a working relay you can reuse.

## Plans

Arbitrage is on Production and Scale. Other plans get 403 UPGRADE_REQUIRED, which costs nothing, so you can wire the bot up first. Today's rows are on [arbitrage bets](https://novigapi.com/arbitrage-bets?ref=ai-md), and the API is compared on [arbitrage betting API](https://novigapi.com/answers/arbitrage-api?ref=ai-md). [Get a free API key](https://novigapi.com/sign-up?ref=ai-md). No card, no Novig account.

## Questions

### Which venues does the arbitrage bot cover?

Novig, FanDuel and DraftKings, on exactly matching lines.

### Is the arbitrage margin after fees?

Yes for Novig legs: they are priced at the ask plus any taker fee due at that moment.

### Can the bot place both legs?

No. The API is read-only. It finds and sizes the arb; you place the bets.

## Sources

- [novigapi.com: GET /v1/arbitrage reference](https://novigapi.com/docs/endpoints/arbitrage?ref=ai-md)
- [Novig API docs: Trading fees](https://docs.novig.com/api/concepts/fees.md)
- [novigapi.com pricing](https://novigapi.com/pricing?ref=ai-md)

---

Get a free API key: https://novigapi.com/sign-up?ref=ai-md . Docs: https://novigapi.com/docs?ref=ai-md . MCP: https://novigapi.com/api/mcp . Operated by Stunning Couches LLC. Independent. Not affiliated with, endorsed by or sponsored by Novig.
