80trust / 100

Financial Metrics

by StableFinance in Markets & finance

x402 APIPassing, checked 5 h ago

Valuation, profitability, liquidity, leverage, efficiency, growth, and per-share ratios over history.

GET https://stablefinance.dev/api/financial-metrics

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
220 ms typical, 220 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://stablefinance.dev/api/financial-metrics?limit=1&period=ttm&ticker=AAPL"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fstablefinance.dev%2Fapi%2Ffinancial-metrics
const res = await pay("https://stablefinance.dev/api/financial-metrics?limit=1&period=ttm&ticker=AAPL");
console.log(await res.json());

Example input

{
  "limit": 1,
  "period": "ttm",
  "ticker": "AAPL"
}

Example output

{
  "financial_metrics": [
    {
      "currency": "USD",
      "debt_to_equity": 2.07,
      "fiscal_period": "FY2024",
      "gross_margin": 0.46,
      "period": "ttm",
      "price_to_earnings_ratio": 38.58,
      "report_period": "2024-09-28",
      "return_on_equity": 1.66,
      "revenue_growth": 0.02,
      "ticker": "AAPL"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402220 ms$0.02