Engine

Arbitrage

Trades price gaps between the token's Montra pool and its HyperCore spot market. Idle until MOTION lists on HyperCore.

Idarb
VenuesMontra ↔ HyperCore
Tickevery 15 s
Capital5 % of NAV when enabled, otherwise 0
TodayIdle

When it is enabled

It needs ARB_HL_COIN, MOTION's HyperCore spot coin in Hyperliquid's format (like @1234), plus the MOTION-HYPE market and a live Montra feed. Without them the status is idle with the note MOTION has no HyperCore market yet. Set ARB_HL_COIN when it lists.

How it scans

Every 15 s it prices a 0.5 HYPE clip both ways:

  • on Montra, buy and sell quotes from the on-chain quoter (Montra's fee is already inside);
  • on HyperCore, the same token amount walked through the live book (skipped if the book is too thin).
text
montra → hl :  (HL sell − Montra buy) / Montra buy × 10 000 − 7 bps
hl → montra :  (Montra sell − HL buy) / HL buy × 10 000 − 7 bps

7 bps is HyperCore's spot taker fee. The better direction wins.

When it trades

Only if the edge is at least 60 bps and the inventory for that direction is already in place on both venues (for Montra → HyperCore: HYPE on Elysium and tokens on HyperCore; the other way: USDC on HyperCore and tokens on Elysium). Both legs are sent at the same time; the Montra leg uses minOut = 99 % of the quote, the HyperCore leg a limit 0.5 % through the walked price. It never bridges in the middle of a trade.

If the edge is there but the inventory is not, it writes a suggested transfer of 4 clips' worth of the token to the venue that needs it.

Each scan is saved in engine_state.arb and returned by GET /api/v1/arb: for each pair, the Montra price, the HyperCore bid and ask, the edge, whether it is executable and why not.