Documentation Index
Fetch the complete documentation index at: https://mathematicalcompany.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Composite Arbitrage Scanner
A meta-scanner that runs all configured arbitrage methods, scores opportunities, and routes capital to the best ones. The ultimate arbitrage tool for running a full arb desk.How It Works
- Configure which arb methods to run with weights and capital limits
- Each cycle, the composite scanner checks
ctx.paramsfor results from individual scanners - Score each opportunity:
score = (net_edge / cost) * confidence * weight * (1 - utilization) - Rank and execute the top-N (limited by
max_concurrentandtotal_capital)
ArbMethodConfig
| Field | Type | Default | Description |
|---|---|---|---|
method | str | required | "parity", "cross_exchange", "event", "spread", "stat", "mm", "latency" |
weight | float | 1.0 | Scoring weight multiplier |
max_capital | float | 500.0 | Max capital for this method |
enabled | bool | True | Whether to include in scans |
kwargs | dict | {} | Extra parameters |
Pipeline: composite_arb
| Parameter | Type | Default | Description |
|---|---|---|---|
methods | list[ArbMethodConfig] | required | Methods to run |
total_capital | float | 1000.0 | Total capital budget |
max_concurrent | int | 3 | Max simultaneous positions |
rebalance_interval | float | 60.0 | Seconds between rebalancing |
auto_execute | bool | False | Auto-execute top opportunities |
cooldown | float | 5.0 | Seconds between executions |
list[CompositeArbResult] in ctx.params["last_composite_arb"].
CompositeArbResult
| Field | Type | Description |
|---|---|---|
method | str | Which arb method found the opportunity |
score | float | Composite score |
net_edge | float | Expected edge |
capital_needed | float | Capital required |
details | dict | Method-specific details |
timestamp | float | Detection timestamp |
Example: Full Arb Desk
The composite scanner reads results from individual scanners via
ctx.params. Run individual scanners earlier in the pipeline so their results are available when the composite scanner runs.