{
  "x402Version": 2,
  "id": 28720,
  "slug": "28720",
  "resource": "https://stablefinance.dev/api/prices",
  "description": "Historical OHLCV bars for a US stock. Required: ticker, interval (day|week|month|year), start_date (YYYY-MM-DD), end_date (YYYY-MM-DD).",
  "type": "http",
  "serviceName": "StableFinance",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xBD17480bf6ff056f7b91d9AdC9DfDa001eb7283D",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "D6GAZpvvLe8aUi9qZEDTXPERHpP3pwAgaeucp9ib1fW",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "prices": {
            "description": "OHLCV bars: open, close, high, low, volume, time.",
            "items": {},
            "type": "array"
          },
          "ticker": {
            "type": "string"
          }
        },
        "required": [
          "ticker",
          "prices"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "end_date": "2024-01-31",
            "interval": "day",
            "start_date": "2024-01-02",
            "ticker": "AAPL"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "prices": [
              {
                "close": 185.64,
                "high": 188.44,
                "low": 183.89,
                "open": 187.15,
                "time": "2024-01-02",
                "volume": 82488700
              }
            ],
            "ticker": "AAPL"
          },
          "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": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "end_date": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "interval": {
                    "enum": [
                      "day",
                      "week",
                      "month",
                      "year"
                    ],
                    "type": "string"
                  },
                  "start_date": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "ticker": {
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "ticker",
                  "interval",
                  "start_date",
                  "end_date"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "prices": {
                    "description": "OHLCV bars: open, close, high, low, volume, time.",
                    "items": {},
                    "type": "array"
                  },
                  "ticker": {
                    "type": "string"
                  }
                },
                "required": [
                  "ticker",
                  "prices"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "Prices",
    "bazaar"
  ],
  "sourceHost": "stablefinance.dev",
  "lastUpdated": "2026-10-06T04:31:31.754Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-06T04:31:31.497Z"
  },
  "metadata": {
    "serviceName": "StableFinance",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "end_date": "2024-01-31",
              "interval": "day",
              "start_date": "2024-01-02",
              "ticker": "AAPL"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "prices": [
                {
                  "close": 185.64,
                  "high": 188.44,
                  "low": 183.89,
                  "open": 187.15,
                  "time": "2024-01-02",
                  "volume": 82488700
                }
              ],
              "ticker": "AAPL"
            },
            "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": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "additionalProperties": false,
                  "properties": {
                    "end_date": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "interval": {
                      "enum": [
                        "day",
                        "week",
                        "month",
                        "year"
                      ],
                      "type": "string"
                    },
                    "start_date": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "ticker": {
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "ticker",
                    "interval",
                    "start_date",
                    "end_date"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "additionalProperties": false,
                  "properties": {
                    "prices": {
                      "description": "OHLCV bars: open, close, high, low, volume, time.",
                      "items": {},
                      "type": "array"
                    },
                    "ticker": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ticker",
                    "prices"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "stablefinance.dev",
    "manifest_name": "stablefinance.dev",
    "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": {
      "prices": [
        "value"
      ],
      "ticker": "string"
    },
    "type": "string"
  }
}