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

# List on-the-run bills

> Returns the on-the-run treasury bill for each standard maturity period of the given issuer country that currently has a matching bill. Periods with no matching bill are omitted from the response.



## OpenAPI

````yaml /openapi.json get /bills/otr
openapi: 3.1.0
info:
  title: Sophic Engine API
  version: 0.1.0
servers:
  - url: https://api.engine.usesophic.com
security: []
tags:
  - description: Retrieve accounts, statements, and account documents.
    name: accounts
    x-group: Accounts
  - description: Read the audit trail of platform activity.
    name: activity
    x-group: Activity
  - description: Obtain OAuth access tokens for the Engine API.
    name: auth
    x-group: Authentication
  - description: Inspect the authenticated user or service actor.
    name: identity
    x-group: Identity
  - description: Retrieve fee schedules and billing information.
    name: billing
    x-group: Billing
  - description: Browse instruments and tradable products.
    name: catalog
    x-group: Catalog
  - description: Track onboarding applications through completion.
    name: onboarding
    x-group: Onboarding
  - description: Manage customer records and related person data.
    name: customers
    x-group: Customers
  - description: List platform events and inspect individual occurrences.
    name: events
    x-group: Events
  - description: Read positions, transactions, and account holdings.
    name: holdings
    x-group: Holdings
  - description: Retrieve legal agreements and required disclosures.
    name: legal-documents
    x-group: Legal Documents
  - description: Access prices and market data for instruments.
    name: market-data
    x-group: Market Data
  - description: Manage deposits, withdrawals, and funding accounts.
    name: payments
    x-group: Payments
  - description: Retrieve returns, earnings, and performance metrics.
    name: performance
    x-group: Performance
  - description: Place and manage orders, quotes, and trades.
    name: trading
    x-group: Trading
  - description: Read position and account valuations over time.
    name: valuation
    x-group: Valuation
  - description: Configure webhook endpoints and inspect deliveries.
    name: webhooks
    x-group: Webhooks
  - description: Upload files and retrieve stored documents.
    name: files
    x-group: Files
paths:
  /bills/otr:
    get:
      tags:
        - catalog
      summary: List on-the-run bills
      description: >-
        Returns the on-the-run treasury bill for each standard maturity period
        of the given issuer country that currently has a matching bill. Periods
        with no matching bill are omitted from the response.
      operationId: get_on_the_run_bill_matrix_bills_otr_get
      parameters:
        - in: query
          name: issuer_country
          required: true
          schema:
            title: Issuer Country
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                default:
                  summary: EU on-the-run matrix with no 6m match
                  value:
                    12m:
                      days_to_maturity: 366
                      id: instrument_def456
                      instrument_type: bill
                      isin: EU0000000011
                      issuer: EU
                      issuer_country: EU
                      maturity_date: '2024-10-04'
                      name: EU 12M T-Bill 2024-10-04
                      symbol: EU0000000011
                      trading_currency: EUR
                    3m:
                      days_to_maturity: 92
                      id: instrument_abc123
                      instrument_type: bill
                      isin: EU0000000001
                      issuer: EU
                      issuer_country: EU
                      maturity_date: '2024-01-04'
                      name: EU 3M T-Bill 2024-01-04
                      symbol: EU0000000001
                      trading_currency: EUR
              schema:
                additionalProperties:
                  $ref: '#/components/schemas/Bill'
                title: Response Get On The Run Bill Matrix Bills Otr Get
                type: object
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad Request
      security:
        - HTTPBearer: []
components:
  schemas:
    Bill:
      properties:
        about:
          anyOf:
            - type: string
            - type: 'null'
          description: Summary of the instrument.
          examples:
            - Common stock listed on the Nasdaq Global Select Market.
          title: About
        days_to_maturity:
          description: Calendar days remaining until maturity.
          examples:
            - 182
          title: Days To Maturity
          type: integer
        decimal_precision:
          description: Decimal places used by the trading increment.
          examples:
            - 2
          title: Decimal Precision
          type: integer
        enforce_trading_rules:
          description: Whether order amounts must satisfy the instrument trading rules.
          title: Enforce Trading Rules
          type: boolean
        exchange:
          anyOf:
            - type: string
            - type: 'null'
          description: MIC of the listing venue.
          examples:
            - XNAS
          title: Exchange
        icon_url:
          anyOf:
            - type: string
            - type: 'null'
          description: Public CDN URL of the instrument's icon.
          examples:
            - >-
              https://storage.googleapis.com/sophic-assets/instrument-icons/in_x7GqT.png
          title: Icon Url
        id:
          description: Unique resource identifier.
          title: Id
          type: string
        initial_auction_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: Date of the first auction.
          examples:
            - '2024-12-30'
          title: Initial Auction Date
        initial_issue_date:
          description: Date the instrument was first issued.
          examples:
            - '2025-01-02'
          format: date
          title: Initial Issue Date
          type: string
        instrument_type:
          const: bill
          description: Instrument type.
          title: Instrument Type
        isin:
          description: International Securities Identification Number.
          examples:
            - US5949181045
          title: Isin
          type: string
        issuer:
          description: Name of the issuer.
          examples:
            - United States Department of the Treasury
          title: Issuer
          type: string
        issuer_country:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 3166-1 alpha-2 country code of the issuer.
          examples:
            - US
          title: Issuer Country
        issuer_credit_rating:
          description: Issuer credit rating.
          examples:
            - AA+
          title: Issuer Credit Rating
          type: string
        latest_auction_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: Date of the latest auction, including tap issues.
          examples:
            - '2025-01-27'
          title: Latest Auction Date
        latest_issue_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: Date of the latest issue, including tap issues.
          examples:
            - '2025-01-30'
          title: Latest Issue Date
        maturity_date:
          description: Date the instrument matures.
          examples:
            - '2025-07-03'
          format: date
          title: Maturity Date
          type: string
        minimum_initial_cash_investment:
          description: Minimum cash amount accepted for an initial investment.
          examples:
            - '1000.00'
          title: Minimum Initial Cash Investment
          type: string
        minimum_trading_quantity:
          description: Smallest quantity accepted for an order.
          examples:
            - '1.00'
          title: Minimum Trading Quantity
          type: string
        name:
          description: Display name of the instrument.
          examples:
            - Apple Inc.
          title: Name
          type: string
        price_type:
          allOf:
            - $ref: '#/components/schemas/PriceType'
          description: Price quotation type.
        pro_traders_only:
          description: Whether the instrument is restricted to professional investors.
          title: Pro Traders Only
          type: boolean
        required_cash_increment:
          description: Cash increment accepted above the minimum investment.
          examples:
            - 100
          title: Required Cash Increment
          type: integer
        rollout_stage:
          anyOf:
            - $ref: '#/components/schemas/InstrumentRolloutStage'
            - type: 'null'
          description: Availability stage of the instrument.
        supports_automatic_rollover:
          description: Whether positions can roll over automatically at maturity.
          title: Supports Automatic Rollover
          type: boolean
        symbol:
          description: Market identifier, such as an ISIN or currency pair.
          examples:
            - US5949181045
          title: Symbol
          type: string
        ticker:
          anyOf:
            - type: string
            - type: 'null'
          description: Ticker symbol of the security.
          examples:
            - AAPL
          title: Ticker
        trading_currency:
          allOf:
            - $ref: '#/components/schemas/Currency'
          description: Currency used to trade the instrument.
          examples:
            - USD
        trading_increment:
          description: Smallest quantity increment accepted for orders.
          examples:
            - '0.01'
          title: Trading Increment
          type: string
        trading_status:
          allOf:
            - $ref: '#/components/schemas/InstrumentTradingStatus'
          description: Current trading status.
      required:
        - id
        - name
        - symbol
        - instrument_type
        - trading_status
        - rollout_stage
        - trading_increment
        - decimal_precision
        - pro_traders_only
        - price_type
        - isin
        - issuer
        - issuer_country
        - minimum_trading_quantity
        - trading_currency
        - initial_issue_date
        - enforce_trading_rules
        - minimum_initial_cash_investment
        - required_cash_increment
        - maturity_date
        - days_to_maturity
        - supports_automatic_rollover
        - issuer_credit_rating
        - initial_auction_date
        - latest_auction_date
        - latest_issue_date
      title: Bill
      type: object
    Error:
      properties:
        code:
          description: A machine-readable error code.
          title: Code
          type: string
        context:
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
          description: An optional object for adding extra context to the error.
          title: Context
          type: object
          x-remove-null-from-type-union: true
        detail:
          description: A human-readable description of the error.
          title: Detail
          type: string
        docs:
          description: A URL to documentation about this error code.
          title: Docs
          type: string
          x-remove-null-from-type-union: true
        params:
          description: An optional list of params that failed validation.
          items:
            $ref: '#/components/schemas/InvalidParam'
          title: Params
          type: array
          x-remove-null-from-type-union: true
      required:
        - detail
        - code
      title: Error
      type: object
    PriceType:
      enum:
        - percent
        - money
      properties: {}
      title: PriceType
      type: string
    InstrumentRolloutStage:
      enum:
        - ga
        - beta
        - provisional
      properties: {}
      title: InstrumentRolloutStage
      type: string
    Currency:
      enum:
        - EUR
        - USD
        - GBP
      properties: {}
      title: Currency
      type: string
    InstrumentTradingStatus:
      enum:
        - buy_sell
        - buy_only
        - sell_only
        - not_trading
      properties: {}
      title: InstrumentTradingStatus
      type: string
    InvalidParam:
      properties:
        code:
          description: A machine-readable error code.
          title: Code
          type: string
        detail:
          description: Human-readable detail for error.
          title: Detail
          type: string
        path:
          description: Path to the field name (or index if a list) that errored.
          items:
            anyOf:
              - type: integer
              - type: string
          title: Path
          type: array
      required:
        - path
        - detail
        - code
      title: InvalidParam
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````