> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slate-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Prices

> Return latest cached prices from Redis for multiple symbols.

Falls back to the authoritative last_ticks table for any symbol whose
Redis entry is missing — the price:{symbol} key has a 60 s TTL and
low-volume symbols (e.g. IBM / F after hours) disappear from cache if
they don't tick often enough. The DB fallback keeps those rows visible
in the webtrader with their last-known price.

When called with ?login= (or with X-Customer-Login set by the gateway)
the response carries the same per-group spread markup the /ws/prices
fan-out applies, so REST hydration on subscribe matches the live tick.



## OpenAPI

````yaml /openapi.json get /market-prices
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /market-prices:
    get:
      tags:
        - Instruments & Groups
      summary: Batch Prices
      description: |-
        Return latest cached prices from Redis for multiple symbols.

        Falls back to the authoritative last_ticks table for any symbol whose
        Redis entry is missing — the price:{symbol} key has a 60 s TTL and
        low-volume symbols (e.g. IBM / F after hours) disappear from cache if
        they don't tick often enough. The DB fallback keeps those rows visible
        in the webtrader with their last-known price.

        When called with ?login= (or with X-Customer-Login set by the gateway)
        the response carries the same per-group spread markup the /ws/prices
        fan-out applies, so REST hydration on subscribe matches the live tick.
      operationId: batch_prices_market_prices_get
      parameters:
        - name: symbols
          in: query
          required: true
          schema:
            type: string
            description: Comma-separated symbols
            title: Symbols
          description: Comma-separated symbols
        - name: login
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Trading account login — applies its group spread markup
            title: Login
          description: Trading account login — applies its group spread markup
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````