Skip to Content

Valuation Comparison

Compare valuation metrics (PE/PB/PS/market cap/close price) across multiple stocks. When no comparison symbols are provided, the server automatically selects peers from the same industry.

CLI
longbridge compare AAPL.US
longbridge compare AAPL.US MSFT.US GOOGL.US

Parameters

SDK method parameters.

NameTypeRequiredDescription
symbolstringYESPrimary security symbol, e.g. AAPL.US
currencystringYESResult currency: USD, HKD, or CNY
comparison_symbolsstring[]NOSymbols to compare against; if omitted, the server auto-selects industry peers

Request Example

Response

Response Example

json
{
  "code": 0,
  "message": "success",
  "data": {
    "list": [
      {
        "counter_id": "ST/US/AAPL",
        "name": "Apple Inc.",
        "currency": "USD",
        "market_value": "3241500000000",
        "price_close": "213.49",
        "pe": "32.15",
        "pb": "50.21",
        "ps": "8.04",
        "roe": "136.45",
        "eps": "6.43",
        "bps": "4.38",
        "dps": "0.99",
        "div_yld": "0.46",
        "assets": "371082000000",
        "history": [
          { "date": "1622520000", "pe": "37.56", "pb": "30.16", "ps": "6.41" },
          { "date": "1625112000", "pe": "41.49", "pb": "35.64", "ps": "6.60" }
        ]
      },
      {
        "counter_id": "ST/US/MSFT",
        "name": "Microsoft",
        "currency": "USD",
        "market_value": "3085000000000",
        "price_close": "415.32",
        "pe": "35.42",
        "pb": "12.87",
        "ps": "12.61",
        "roe": "38.21",
        "eps": "11.72",
        "bps": "32.28",
        "dps": "3.32",
        "div_yld": "0.80",
        "assets": "512163000000",
        "history": [
          { "date": "1622520000", "pe": "33.12", "pb": "11.94", "ps": "11.84" }
        ]
      }
    ]
  }
}

Response Status

StatusDescriptionSchema
200SuccessValuationComparisonResponse
400Bad requestNone

Schemas

ValuationComparisonResponse

NameTypeRequiredDescription
listobject[]falseValuation comparison list
∟ counter_idstringfalseCounter ID (e.g. ST/US/AAPL)
∟ namestringfalseSecurity name
∟ currencystringfalseCurrency of the values
∟ market_valuestringfalseMarket capitalisation
∟ price_closestringfalseLatest closing price
∟ pestringfalseP/E ratio (TTM)
∟ pbstringfalseP/B ratio
∟ psstringfalseP/S ratio (TTM)
∟ roestringfalseReturn on equity (%)
∟ epsstringfalseEarnings per share (TTM)
∟ bpsstringfalseBook value per share
∟ dpsstringfalseDividends per share (TTM)
∟ div_yldstringfalseDividend yield (%)
∟ assetsstringfalseTotal assets
∟ historyobject[]falseHistorical valuation time series
∟ ∟ datestringfalseDate as Unix timestamp (seconds)
∟ ∟ pestringfalseHistorical PE
∟ ∟ pbstringfalseHistorical PB
∟ ∟ psstringfalseHistorical PS