> ## Documentation Index
> Fetch the complete documentation index at: https://finance.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Market Data

> Get real-time quotes and equity details with the Go SDK

## Overview

The Market Data API provides access to real-time stock quotes and comprehensive equity details.

## Methods

### GetEquityDetails(symbols \[]string)

```go theme={null}
details, err := client.MarketData.GetEquityDetails([]string{"AAPL"})
if err != nil {
    log.Fatal(err)
}

for _, equity := range details {
    fmt.Printf("%s: $%.2f\n", equity.Symbol, equity.Price)
    fmt.Printf("  Market Cap: $%.0f\n", equity.MarketCap)
    fmt.Printf("  P/E Ratio: %.2f\n", equity.PERatio)
}
```

### Search(query string)

```go theme={null}
results, err := client.MarketData.Search("Apple")
if err != nil {
    log.Fatal(err)
}
```

## Examples

```go theme={null}
symbols := []string{"AAPL", "GOOGL", "MSFT"}
details, err := client.MarketData.GetEquityDetails(symbols)
if err != nil {
    log.Fatal(err)
}

for _, equity := range details {
    fmt.Printf("%s: $%.2f (P/E: %.2f)\n",
        equity.Symbol, equity.Price, equity.PERatio)
}
```
