{
  "x402Version": 2,
  "id": 36961,
  "slug": "36961",
  "resource": "https://api.vextorium.com/v1/apr-apy",
  "description": "Convert APR to APY or APY to APR for any compounding frequency (continuous, daily, hourly, per block...) and optionally project the final value and gain of a deposit over N days. Useful to compare DeFi yields.",
  "type": "http",
  "serviceName": "Vextorium",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:10",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "apr_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "apy_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "capital": {
            "type": [
              "number",
              "null"
            ]
          },
          "days": {
            "type": [
              "number",
              "null"
            ]
          },
          "final_value": {
            "type": [
              "number",
              "null"
            ]
          },
          "frequency": {
            "type": [
              "string",
              "null"
            ]
          },
          "gain": {
            "type": [
              "number",
              "null"
            ]
          },
          "market_caps_by_year": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": [
          "object",
          "null"
        ]
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "capital": 1000,
            "days": 365,
            "from": "apr",
            "market_caps_by_year": 365,
            "rate_pct": 10
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "apr_pct": 10,
            "apy_pct": 10.515578,
            "capital": 1000,
            "days": 365,
            "final_value": 1105.155782,
            "frequency": "diaria",
            "gain": 105.155782,
            "market_caps_by_year": 365
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "capital": {
                    "description": "Deposit to project (optional)",
                    "type": "number"
                  },
                  "days": {
                    "description": "Days to project (default 365)",
                    "type": "integer"
                  },
                  "from": {
                    "description": "What the rate is",
                    "enum": [
                      "apr",
                      "apy"
                    ],
                    "type": "string"
                  },
                  "market_caps_by_year": {
                    "description": "Compounding periods per year (0 = continuous, 365 = daily)",
                    "type": "integer"
                  },
                  "rate_pct": {
                    "description": "Rate in %",
                    "type": "number"
                  }
                },
                "required": [
                  "rate_pct"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "apr_pct": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "apy_pct": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "capital": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "days": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "final_value": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "frequency": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "gain": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "market_caps_by_year": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "apr",
    "apy",
    "yield",
    "defi",
    "compound-interest",
    "bazaar"
  ],
  "sourceHost": "api.vextorium.com",
  "lastUpdated": "2026-10-08T06:12:43.542Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:12:43.311Z"
  },
  "metadata": {
    "serviceName": "Vextorium",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "capital": 1000,
              "days": 365,
              "from": "apr",
              "market_caps_by_year": 365,
              "rate_pct": 10
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "apr_pct": 10,
              "apy_pct": 10.515578,
              "capital": 1000,
              "days": 365,
              "final_value": 1105.155782,
              "frequency": "diaria",
              "gain": 105.155782,
              "market_caps_by_year": 365
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "capital": {
                      "description": "Deposit to project (optional)",
                      "type": "number"
                    },
                    "days": {
                      "description": "Days to project (default 365)",
                      "type": "integer"
                    },
                    "from": {
                      "description": "What the rate is",
                      "enum": [
                        "apr",
                        "apy"
                      ],
                      "type": "string"
                    },
                    "market_caps_by_year": {
                      "description": "Compounding periods per year (0 = continuous, 365 = daily)",
                      "type": "integer"
                    },
                    "rate_pct": {
                      "description": "Rate in %",
                      "type": "number"
                    }
                  },
                  "required": [
                    "rate_pct"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "apr_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "apy_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "capital": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "days": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "final_value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "frequency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "gain": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "market_caps_by_year": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vextorium.com",
    "manifest_name": "api.vextorium.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": {
      "apr_pct": 0,
      "apy_pct": 0,
      "capital": 0,
      "days": 0,
      "final_value": 0,
      "frequency": "string",
      "gain": 0,
      "market_caps_by_year": 0
    },
    "type": "string"
  }
}