Api Endpoint

AlphaPipeline Arb Spread

CEX-DEX arbitrage spread calculator - compares a global reference price (Coinbase spot, CoinGecko fallback) against a DEX pool price and returns gross/net spread and an is_profitable flag after an assumed gas cost. Paid in USDC on Base.

Open interactive test console

Offering

Provider
alphapipeline-eu.onrender.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://alphapipeline-eu.onrender.com/v1/arb/spread-matrix
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
Crypto, arbitrage, cex, DEX

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0x2bcfA4F7E1fA5E96934846A7dEa623398Ed7f752"
  }
]

Observed health

Status
Healthy
Latest latency
1217 ms
Average latency
408 ms
HTTP status
402
Last checked
Reachability
100% over 9 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "symbol": {
          "type": "string",
          "description": "Ticker symbol, e.g. SUI, BTC, ETH."
        },
        "network": {
          "type": "string",
          "description": "GeckoTerminal network id, e.g. base, eth. Defaults to base."
        },
        "trade_size_usd": {
          "type": "number",
          "description": "Hypothetical trade size in USD. Defaults to 1000."
        },
        "min_spread_threshold_pct": {
          "type": "number",
          "description": "Net spread threshold (%) above which is_profitable is true. Defaults to 0.8."
        },
        "pool_address": {
          "type": "string",
          "description": "Specific DEX pool contract address (optional if token_address is given)."
        },
        "token_address": {
          "type": "string",
          "description": "Token contract address - the most liquid pool is auto-selected (optional if pool_address is given)."
        }
      },
      "required": [
        "symbol"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "min_spread_threshold_pct": {
              "description": "Net spread threshold (%) above which is_profitable is true. Defaults to 0.8.",
              "type": "number"
            },
            "network": {
              "description": "GeckoTerminal network id, e.g. base, eth. Defaults to base.",
              "type": "string"
            },
            "pool_address": {
              "description": "Specific DEX pool contract address (optional if token_address is given).",
              "type": "string"
            },
            "symbol": {
              "description": "Ticker symbol, e.g. SUI, BTC, ETH.",
              "type": "string"
            },
            "token_address": {
              "description": "Token contract address - the most liquid pool is auto-selected (optional if pool_address is given).",
              "type": "string"
            },
            "trade_size_usd": {
              "description": "Hypothetical trade size in USD. Defaults to 1000.",
              "type": "number"
            }
          },
          "required": [
            "symbol"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "assumed_gas_cost_usd": {
              "title": "Assumed Gas Cost Usd",
              "type": "number"
            },
            "cex_price_usd": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Cex Price Usd"
            },
            "data_source": {
              "title": "Data Source",
              "type": "string"
            },
            "dex_price_usd": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Dex Price Usd"
            },
            "direction": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Direction"
            },
            "generated_at": {
              "properties": {
                "kst": {
                  "title": "Kst",
                  "type": "string"
                },
                "utc": {
                  "title": "Utc",
                  "type": "string"
                }
              },
              "required": [
                "utc",
                "kst"
              ],
              "title": "TimestampPair",
              "type": "object"
            },
            "gross_spread_pct": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Gross Spread Pct"
            },
            "is_profitable": {
              "title": "Is Profitable",
              "type": "boolean"
            },
            "min_spread_threshold_pct": {
              "title": "Min Spread Threshold Pct",
              "type": "number"
            },
            "net_spread_pct": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Net Spread Pct"
            },
            "network": {
              "title": "Network",
              "type": "string"
            },
            "notice": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Notice"
            },
            "pool_address": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Pool Address"
            },
            "pool_fee_pct": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "DEX pool's fee tier parsed from GeckoTerminal's pool name (e.g. 0.05 for a 0.05% pool). Informational only - net_spread_pct does NOT subtract it.",
              "title": "Pool Fee Pct"
            },
            "status_message": {
              "title": "Status Message",
              "type": "string"
            },
            "symbol": {
              "title": "Symbol",
              "type": "string"
            },
            "trade_size_usd": {
              "title": "Trade Size Usd",
              "type": "number"
            }
          },
          "required": [
            "generated_at",
            "symbol",
            "network",
            "status_message",
            "is_profitable",
            "trade_size_usd",
            "assumed_gas_cost_usd",
            "min_spread_threshold_pct",
            "data_source"
          ],
          "title": "ArbSpreadResponse",
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}