Prices
Get real-time SmartMid midpoint prices for one or more stocks — a lightweight alternative to a full quote when only a single price per symbol is needed.
Making Requests
Both call styles live on the Stocks service (client.Stocks). Use GetPrices for the simplest call, or Prices when you need functional options or the raw response and rate-limit metadata.
| Method | Return | Description |
|---|---|---|
GetPrices(symbols...) | ([]Price, error) | Convenience wrapper; takes symbols variadically, uses context.Background(), and does not accept options. |
Prices(ctx, symbols, opts...) | ([]Price, *response.Response, error) | Context-aware; accepts options and also returns the raw response + rate-limit metadata. |