{
  "x402Version": 2,
  "id": 30146,
  "slug": "30146",
  "resource": "https://alphapipeline-eu.onrender.com/v1/derivatives/funding-apr-matrix",
  "description": "Annualizes the current perpetual funding rate into an APR, flags which side (SHORT or LONG perp) currently collects funding, and computes carry-trade breakeven days against an assumed round-trip trading cost. Pure calculation on top of funding-rate data. Paid in USDC on Base.",
  "type": "http",
  "serviceName": "AlphaPipeline Funding APR Matrix",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2bcfA4F7E1fA5E96934846A7dEa623398Ed7f752",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "annualized_rate_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Annualized Rate Pct"
          },
          "assumed_round_trip_cost_pct": {
            "title": "Assumed Round Trip Cost Pct",
            "type": "number"
          },
          "breakeven_days": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Breakeven Days"
          },
          "daily_funding_income_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Daily Funding Income Pct"
          },
          "data_source": {
            "title": "Data Source",
            "type": "string"
          },
          "funding_collector_side": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Funding Collector Side"
          },
          "funding_interval_hours": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Funding Interval Hours"
          },
          "funding_rate_percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Funding Rate Percentage"
          },
          "generated_at": {
            "properties": {
              "kst": {
                "title": "Kst",
                "type": "string"
              },
              "utc": {
                "title": "Utc",
                "type": "string"
              }
            },
            "required": [
              "utc",
              "kst"
            ],
            "title": "TimestampPair",
            "type": "object"
          },
          "notice": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Notice"
          },
          "periods_per_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Periods Per Year"
          },
          "symbol": {
            "title": "Symbol",
            "type": "string"
          }
        },
        "required": [
          "generated_at",
          "symbol",
          "assumed_round_trip_cost_pct",
          "data_source"
        ],
        "title": "FundingAprMatrixResponse",
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "assumed_round_trip_cost_pct": 0.2,
            "symbol": "BTC"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "annualized_rate_pct": 10.95,
            "assumed_round_trip_cost_pct": 0.2,
            "breakeven_days": 6.67,
            "daily_funding_income_pct": 0.03,
            "data_source": "bybit",
            "funding_collector_side": "SHORT",
            "funding_interval_hours": 8,
            "funding_rate_percentage": 0.01,
            "generated_at": {
              "kst": "2026-09-07 21:00:00 KST",
              "utc": "2026-09-07T12:00:00Z"
            },
            "notice": "annualized_rate_pct is a flat extrapolation of the CURRENT funding rate (periods_per_year x current rate) - it assumes the rate stays constant, which funding rates rarely do over a full year. breakeven_days assumes a constant funding_collector_side position and a flat assumed_round_trip_cost_pct covering entry+exit trading fees on both the spot and perpetual legs - it excludes margin borrow cost, spot-perp basis risk, and perp liquidation risk. Re-verify with your actual exchange fee tier before sizing a real carry trade.",
            "periods_per_year": 1095,
            "symbol": "BTCUSDT"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "assumed_round_trip_cost_pct": {
                    "description": "Combined entry+exit trading fee percentage across both the spot and perpetual legs. Defaults to 0.2.",
                    "type": "number"
                  },
                  "symbol": {
                    "description": "Ticker symbol, e.g. BTC, ETH, or BTCUSDT.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "annualized_rate_pct": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Annualized Rate Pct"
                  },
                  "assumed_round_trip_cost_pct": {
                    "title": "Assumed Round Trip Cost Pct",
                    "type": "number"
                  },
                  "breakeven_days": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Breakeven Days"
                  },
                  "daily_funding_income_pct": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Daily Funding Income Pct"
                  },
                  "data_source": {
                    "title": "Data Source",
                    "type": "string"
                  },
                  "funding_collector_side": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Funding Collector Side"
                  },
                  "funding_interval_hours": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Funding Interval Hours"
                  },
                  "funding_rate_percentage": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Funding Rate Percentage"
                  },
                  "generated_at": {
                    "properties": {
                      "kst": {
                        "title": "Kst",
                        "type": "string"
                      },
                      "utc": {
                        "title": "Utc",
                        "type": "string"
                      }
                    },
                    "required": [
                      "utc",
                      "kst"
                    ],
                    "title": "TimestampPair",
                    "type": "object"
                  },
                  "notice": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Notice"
                  },
                  "periods_per_year": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Periods Per Year"
                  },
                  "symbol": {
                    "title": "Symbol",
                    "type": "string"
                  }
                },
                "required": [
                  "generated_at",
                  "symbol",
                  "assumed_round_trip_cost_pct",
                  "data_source"
                ],
                "title": "FundingAprMatrixResponse",
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "crypto",
    "derivatives",
    "funding-rate",
    "carry-trade",
    "bazaar"
  ],
  "sourceHost": "alphapipeline-eu.onrender.com",
  "lastUpdated": "2026-10-08T06:14:07.749Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:14:07.539Z"
  },
  "metadata": {
    "serviceName": "AlphaPipeline Funding APR Matrix",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "assumed_round_trip_cost_pct": 0.2,
              "symbol": "BTC"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "annualized_rate_pct": 10.95,
              "assumed_round_trip_cost_pct": 0.2,
              "breakeven_days": 6.67,
              "daily_funding_income_pct": 0.03,
              "data_source": "bybit",
              "funding_collector_side": "SHORT",
              "funding_interval_hours": 8,
              "funding_rate_percentage": 0.01,
              "generated_at": {
                "kst": "2026-09-07 21:00:00 KST",
                "utc": "2026-09-07T12:00:00Z"
              },
              "notice": "annualized_rate_pct is a flat extrapolation of the CURRENT funding rate (periods_per_year x current rate) - it assumes the rate stays constant, which funding rates rarely do over a full year. breakeven_days assumes a constant funding_collector_side position and a flat assumed_round_trip_cost_pct covering entry+exit trading fees on both the spot and perpetual legs - it excludes margin borrow cost, spot-perp basis risk, and perp liquidation risk. Re-verify with your actual exchange fee tier before sizing a real carry trade.",
              "periods_per_year": 1095,
              "symbol": "BTCUSDT"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "assumed_round_trip_cost_pct": {
                      "description": "Combined entry+exit trading fee percentage across both the spot and perpetual legs. Defaults to 0.2.",
                      "type": "number"
                    },
                    "symbol": {
                      "description": "Ticker symbol, e.g. BTC, ETH, or BTCUSDT.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "symbol"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "annualized_rate_pct": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Annualized Rate Pct"
                    },
                    "assumed_round_trip_cost_pct": {
                      "title": "Assumed Round Trip Cost Pct",
                      "type": "number"
                    },
                    "breakeven_days": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Breakeven Days"
                    },
                    "daily_funding_income_pct": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Daily Funding Income Pct"
                    },
                    "data_source": {
                      "title": "Data Source",
                      "type": "string"
                    },
                    "funding_collector_side": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Funding Collector Side"
                    },
                    "funding_interval_hours": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Funding Interval Hours"
                    },
                    "funding_rate_percentage": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Funding Rate Percentage"
                    },
                    "generated_at": {
                      "properties": {
                        "kst": {
                          "title": "Kst",
                          "type": "string"
                        },
                        "utc": {
                          "title": "Utc",
                          "type": "string"
                        }
                      },
                      "required": [
                        "utc",
                        "kst"
                      ],
                      "title": "TimestampPair",
                      "type": "object"
                    },
                    "notice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Notice"
                    },
                    "periods_per_year": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "title": "Periods Per Year"
                    },
                    "symbol": {
                      "title": "Symbol",
                      "type": "string"
                    }
                  },
                  "required": [
                    "generated_at",
                    "symbol",
                    "assumed_round_trip_cost_pct",
                    "data_source"
                  ],
                  "title": "FundingAprMatrixResponse",
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "alphapipeline-eu.onrender.com",
    "manifest_name": "alphapipeline-eu.onrender.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "annualized_rate_pct": null,
      "assumed_round_trip_cost_pct": 0,
      "breakeven_days": null,
      "daily_funding_income_pct": null,
      "data_source": "string",
      "funding_collector_side": null,
      "funding_interval_hours": null,
      "funding_rate_percentage": null,
      "generated_at": {
        "kst": "string",
        "utc": "string"
      },
      "notice": null,
      "periods_per_year": null,
      "symbol": "string"
    },
    "type": "string"
  }
}