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

# Reference Data

> Get full US municipal bond reference data for given ISINs.



## OpenAPI

````yaml post /api/v1/muni_reference
openapi: 3.0.0
info:
  title: Terrapin API
  version: 1.0.0
servers:
  - url: https://terrapinfinance.com
    variables: {}
security:
  - authorization: []
tags: []
paths:
  /api/v1/muni_reference:
    post:
      tags: []
      summary: US municipal bond reference
      description: Get full US municipal bond reference data for given ISINs.
      operationId: post_muni_reference
      parameters: []
      requestBody:
        content:
          application/json:
            example:
              isins:
                - US005824LP01
            schema:
              additionalProperties: false
              properties:
                isins:
                  description: >-
                    International Securities Identification Number (ISIN),
                    unique 12-character code for the security.
                  items:
                    example: US64966HW301
                    maxLength: 12
                    minLength: 12
                    nullable: false
                    type: string
                  type: array
                  x-check: valid_check_digit
                  x-check-error: Invalid ISIN check digit
                  x-transform: upcase
              required:
                - isins
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  - advisors:
                      - PMA Securities, Inc
                    award_date: '2024-01-30'
                    award_time: '14:57:00'
                    bond_counsel:
                      - Chapman and Cutler, LLP
                    capital_purpose: new money
                    closing_date: '2024-02-20'
                    composite_rating: AA-
                    counties:
                      - Adams
                    country: United States of America
                    country_code: US
                    coupon_frequency: 2
                    coupon_payment_day: 1
                    coupon_payment_months:
                      - 2
                      - 8
                    credit_enhancement_type:
                      - bond_insurance
                    currency: USD
                    dated_date: '2024-02-20'
                    disclosure_counsel:
                      - Chapman and Cutler, LLP
                    escrowed_amount: 0
                    event_call: []
                    event_consolidation: []
                    event_creation:
                      amount: 240000
                      date: '2024-01-30'
                      description: Primary issuance [negotiated_sale]
                      history: []
                      publish_date: '2024-02-05'
                    event_defeasance: []
                    event_exchange_offer: []
                    event_identifier_relabel: []
                    event_split: []
                    event_split_and_suspend: []
                    event_tender_offer_invitation: []
                    event_tender_offer_result: []
                    extraordinary_optional_redemption: null
                    figi: BBG01L7LZSL5
                    figi_name: 'ADAMS CO SD #172'
                    first_call_date: '2032-02-01'
                    first_execution_date: '2024-01-31'
                    first_execution_time: '10:30:00'
                    first_interest_payment_date: '2024-08-01'
                    first_trade_date: '2024-01-31'
                    gas_prepay_guarantor: null
                    guarantee: unsecured
                    has_mandatory_redemption: false
                    has_official_statement: true
                    instrument_form: bond
                    insurers:
                      - Assured Guaranty Municipal Corporation
                    integral_multiple: 5000
                    interest_accrual_convention: 30/360
                    interest_accrual_date: '2024-02-20'
                    interest_maximum_rate: null
                    interest_minimum_rate: null
                    interest_payment_schedule:
                      - interest_type: regular
                        payment_date:
                          day: 1
                          month: 8
                          year: 2024
                        periodic_schedule:
                          period_amount: 6
                          period_type: month
                          until: null
                    interest_rate: 5
                    interest_rate_schedule:
                      - determination_period: null
                        from_date: null
                        interest_rate: 5
                        interest_type: fixed
                        rate_mode_name: null
                        until_date: null
                    interest_type: fixed rate
                    is_144a: false
                    is_amt: false
                    is_bab: false
                    is_bank_qualified: true
                    is_callable: true
                    is_credit_enhanced: true
                    is_defeased: false
                    is_federally_taxable: false
                    is_green: false
                    is_insured: true
                    is_outstanding: true
                    is_pac: false
                    is_regs: false
                    is_social: false
                    is_state_enhanced: false
                    is_state_taxable: true
                    is_sustainable: false
                    isin: US005824LP01
                    issue_date: '2024-01-30'
                    issue_price: 111.945
                    issue_yield: 3.28
                    issued_amount: 240000
                    issuer_canonical_id: 50926
                    issuer_name: School District Number 172
                    liquidity_facility: null
                    mandatory_redemption_schedule: []
                    mandatory_redemption_type: null
                    maturity_amount: 240000
                    maturity_date: '2035-02-01'
                    minimum_denomination: 5000
                    next_call_date: '2032-02-01'
                    next_call_price: 100
                    next_coupon_date: '2027-02-01'
                    next_sink_amount: null
                    next_sink_date: null
                    next_sink_price: null
                    obligation_types:
                      - unlimited_tax_go
                    obligor: School District Number 172
                    obligor_canonical_id: 50926
                    odd_first_coupon: short
                    odd_last_coupon: regular
                    optional_redemption_max_notice: 60
                    optional_redemption_min_notice: 30
                    optional_redemption_schedule:
                      - call_date: '2032-02-01'
                        call_price:
                          spread_in_bps: 0
                          type: principal
                        includes_accrued_interest: true
                        is_periodic: true
                        period_amount: 1
                        period_type: day
                        until: null
                    outstanding_amount: 240000
                    parent_isin: null
                    previous_coupon_date: '2026-08-01'
                    provider_expiration_date: null
                    provider_identity: null
                    rating_group: investment_grade
                    remarketing_agents: []
                    reserve_fund: false
                    retired_amount_attribution: {}
                    sale_type: negotiated_sale
                    sector: education
                    sector_level1: education
                    sector_level2: public_school_district
                    seniority: senior
                    series: General Obligation School Bonds, Series 2024
                    series_issued_amount: 6770000
                    source_of_repayment: General Obligation
                    state: IL
                    tender_agents: []
                    tender_schedule: null
                    ticker: IL ADASCD 5 02/01/2035
                    trustees: []
                    underwriters:
                      - STIFEL
                    upcoming_corporate_action: null
                    use_categories:
                      - primary and secondary education
                    use_sectors:
                      - education
                    uses_of_proceeds:
                      - public school district
                    validation_errors: []
                    variable_rate_adjustment_schedule: null
                    variable_rate_mode: null
                total: 1
              schema:
                additionalProperties: false
                properties:
                  data:
                    description: >-
                      All results, in one response: this endpoint isn't
                      paginated.
                    items:
                      additionalProperties: false
                      properties:
                        advisors:
                          description: >-
                            Financial advisors who provide advice on bond
                            issuance and investment.
                          items:
                            nullable: false
                            type: string
                          type: array
                        award_date:
                          description: >-
                            Date the bond was awarded to the underwriter in
                            ISO-8601 format (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        award_time:
                          description: >-
                            Time the bond was awarded to the underwriter, in US
                            Eastern Time, in ISO-8601 format (HH:MM:SS).
                          nullable: true
                          type: string
                        bond_counsel:
                          description: >-
                            Legal representatives retained by the issuer that
                            provide tax opinions, ensure compliance with federal
                            tax law, and verify the legal validity of the bond
                            issuance.
                          items:
                            nullable: false
                            type: string
                          type: array
                        capital_purpose:
                          description: >-
                            Indicates the capital purpose depending on whether
                            the bond proceeds are used for new projects, to pay
                            off prior bonds, or both.
                          enum:
                            - mixed
                            - new money
                            - refunding
                          nullable: true
                          type: string
                        closing_date:
                          description: >-
                            Date the bond transaction closed in ISO-8601 format
                            (YYYY-MM-DD).
                          format: date
                          nullable: false
                          type: string
                        composite_rating:
                          description: Composite rating of the bond.
                          nullable: true
                          type: string
                        counties:
                          description: Counties of issuing entity, if applicable.
                          example:
                            - Adams
                          items:
                            nullable: false
                            type: string
                          nullable: true
                          type: array
                        country:
                          description: >
                            Country of issuing entity:


                            - `United States of America`: Country of issue is
                            United States of America.
                          enum:
                            - United States of America
                          nullable: false
                          type: string
                        country_code:
                          description: >-
                            ISO 3166-1 alpha-2 country code (2-letter code) of
                            the country of issue.
                          maxLength: 2
                          minLength: 2
                          nullable: false
                          type: string
                        coupon_frequency:
                          description: |
                            Number of coupon payments per year.
                          minimum: 0
                          nullable: true
                          type: integer
                        coupon_payment_day:
                          description: Day of the month when coupon payments are made.
                          nullable: true
                          type: integer
                        coupon_payment_months:
                          description: >
                            Months when coupon payments are made (1-12).


                            **Examples:**

                            - `[2, 8]`: Coupon payments are made on February and
                            August.
                          items:
                            maximum: 12
                            minimum: 1
                            nullable: true
                            type: integer
                          type: array
                        credit_enhancement_type:
                          description: >-
                            Types of credit enhancement that provide additional
                            security for the bond.
                          items:
                            description: >-
                              Specifies the specific type of the credit
                              enhancement. Set to `[]` if is_credit_enhanced is
                              false
                            enum:
                              - appropriations_program
                              - bond_insurance
                              - capital_reserve_fund
                              - debt_service_reserve_fund
                              - federal_agency_guarantee
                              - federal_guarantee
                              - federal_mortgage_insurance
                              - letter_of_credit
                              - liquidity_facility
                              - moral_obligation
                              - pledged_assets
                              - pledged_revenues
                              - private_mortgage_insurance
                              - state_aid_intercept_program
                              - state_guarantee_program
                              - state_mortgage_insurance
                              - state_permanent_fund_program
                              - surety_bond
                              - third_party_guarantee
                            nullable: false
                            type: string
                          type: array
                        currency:
                          description: >
                            Currency in which the bond is denominated (3-letter
                            ISO 4217 code).
                          example: USD
                          nullable: false
                          type: string
                        dated_date:
                          description: >-
                            Date from which interest starts accruing in ISO-8601
                            format (YYYY-MM-DD).
                          format: date
                          nullable: false
                          type: string
                        disclosure_counsel:
                          description: >-
                            Legal representatives retained by the issuer to
                            provide advice on issuer disclosure obligations.
                          items:
                            nullable: false
                            type: string
                          type: array
                        escrowed_amount:
                          description: >
                            Principal that has been defeased but not yet
                            redeemed, being the escrowed portion of
                            `outstanding_amount`.


                            `outstanding_amount - escrowed_amount` is therefore
                            the issuer's remaining liability, and
                            `outstanding_amount` is the amount still in the
                            hands of holders.


                            A single bond can carry both, which is generally a
                            sign of incomplete disclosure. A partial defeasance
                            is almost always allocated its own CUSIP; where that
                            split has not been published, the defeased and
                            outstanding portions stay together on the original
                            identifier.
                          nullable: true
                          type: number
                        event_call:
                          description: >-
                            The issuer exercises its right to retire some or all
                            of the bond issue before maturity. Same entries as
                            the `call` events of the muni events endpoint, with
                            their details flattened next to `date` and
                            `publish_date`.
                          items:
                            properties:
                              amount:
                                nullable: true
                                type: number
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                              redemption_price:
                                description: >-
                                  The call price may also appear as redemption
                                  price, and appears as percentage of 100
                                nullable: true
                                oneOf:
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      premium_in_pct:
                                        maximum: 1000
                                        minimum: -1000
                                        nullable: false
                                        type: number
                                      type:
                                        enum:
                                          - accreted-value
                                          - par
                                        nullable: false
                                        type: string
                                    required:
                                      - premium_in_pct
                                      - type
                                    type: object
                                  - additionalProperties: false
                                    properties:
                                      benchmark:
                                        enum:
                                          - blended-treasury-yield
                                          - mmd
                                          - treasury
                                          - usd-isdaswap
                                        nullable: true
                                        type: string
                                      premium_in_pct:
                                        maximum: 1000
                                        minimum: -1000
                                        nullable: true
                                        type: number
                                      type:
                                        enum:
                                          - make-whole
                                        nullable: false
                                        type: string
                                    required:
                                      - benchmark
                                      - premium_in_pct
                                      - type
                                    type: object
                              type:
                                enum:
                                  - mandatory_full
                                  - mandatory_partial
                                  - optional_full
                                  - optional_partial
                                nullable: false
                                type: string
                            required:
                              - date
                              - type
                            type: object
                          nullable: true
                          type: array
                        event_consolidation:
                          description: >-
                            Principal consolidation of another bond with this
                            bond. This would typically only happen for the
                            defeased portion of a bond resulting from a partial
                            defeasance. Same entries as the `consolidation`
                            events of the muni events endpoint, with their
                            details flattened next to `date` and `publish_date`.
                          items:
                            properties:
                              amount:
                                nullable: true
                                type: number
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              description:
                                nullable: false
                                type: string
                              parent_isin:
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                            required:
                              - date
                              - description
                              - parent_isin
                            type: object
                          nullable: true
                          type: array
                        event_creation:
                          description: >-
                            Information about how the bond was brought to
                            market. Same entries as the `creation` events of the
                            muni events endpoint, with their details flattened
                            next to `date` and `publish_date`.
                          nullable: true
                          properties:
                            amount:
                              nullable: true
                              type: number
                            date:
                              description: >-
                                Date the event occurred in ISO-8601 format
                                (YYYY-MM-DD).
                              format: date
                              nullable: false
                              type: string
                            description:
                              nullable: false
                              type: string
                            exchange_parents:
                              description: >-
                                Present when the bond was created by an exchange
                                offer that merged one or more securities into
                                it; lists every constituent security.
                              items:
                                properties:
                                  amount:
                                    nullable: true
                                    type: number
                                  description:
                                    nullable: true
                                    type: string
                                  isin:
                                    nullable: false
                                    type: string
                                required:
                                  - isin
                                type: object
                              nullable: true
                              type: array
                            history:
                              items:
                                properties:
                                  amount:
                                    nullable: true
                                    type: number
                                  date:
                                    format: date
                                    nullable: false
                                    type: string
                                  description:
                                    nullable: false
                                    type: string
                                  isin:
                                    nullable: false
                                    type: string
                                required:
                                  - date
                                  - description
                                  - isin
                                type: object
                              nullable: false
                              type: array
                            parent_isin:
                              nullable: true
                              type: string
                            publish_date:
                              description: >-
                                Date the event was published in ISO-8601 format
                                (YYYY-MM-DD).
                              format: date
                              nullable: true
                              type: string
                          required:
                            - date
                            - description
                            - history
                          type: object
                        event_defeasance:
                          description: >-
                            The issuer sets aside funds (usually US Treasuries)
                            in escrow to pay off the bonds, effectively removing
                            the debt from their balance sheet. Same entries as
                            the `defeasance` events of the muni events endpoint,
                            with their details flattened next to `date` and
                            `publish_date`.
                          items:
                            properties:
                              amount:
                                nullable: false
                                type: number
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                            required:
                              - date
                            type: object
                          nullable: true
                          type: array
                        event_exchange_offer:
                          description: >-
                            The bond is exchanged for a new security. When
                            several securities are exchanged into the same new
                            security, the merge is recorded on that new
                            security's creation event (see `exchange_parents`).
                            Same entries as the `exchange_offer` events of the
                            muni events endpoint, with their details flattened
                            next to `date` and `publish_date`.
                          items:
                            properties:
                              child_amount:
                                nullable: true
                                type: number
                              child_description:
                                nullable: false
                                type: string
                              child_isin:
                                nullable: false
                                type: string
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                            required:
                              - child_description
                              - child_isin
                              - date
                            type: object
                          nullable: true
                          type: array
                        event_identifier_relabel:
                          description: >-
                            The assignment of a new identifier due to a
                            structural change, such as adding insurance or
                            becoming 'pre-refunded'. Same entries as the
                            `identifier_relabel` events of the muni events
                            endpoint, with their details flattened next to
                            `date` and `publish_date`.
                          items:
                            properties:
                              child_amount:
                                nullable: false
                                type: number
                              child_description:
                                nullable: false
                                type: string
                              child_isin:
                                nullable: false
                                type: string
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                            required:
                              - child_amount
                              - child_description
                              - child_isin
                              - date
                            type: object
                          nullable: true
                          type: array
                        event_split:
                          description: >-
                            A portion of the bond is split into a new identifier
                            while the remaining portion continues to use the
                            current identifier. Same entries as the `split`
                            events of the muni events endpoint, with their
                            details flattened next to `date` and `publish_date`.
                          items:
                            properties:
                              child_amount:
                                nullable: false
                                type: number
                              child_description:
                                nullable: false
                                type: string
                              child_isin:
                                nullable: false
                                type: string
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                            required:
                              - child_amount
                              - child_description
                              - child_isin
                              - date
                            type: object
                          nullable: true
                          type: array
                        event_split_and_suspend:
                          description: >-
                            The bond is split into two new identifiers and the
                            current identifier is suspended. Same entries as the
                            `split_and_suspend` events of the muni events
                            endpoint, with their details flattened next to
                            `date` and `publish_date`.
                          items:
                            properties:
                              child_1_amount:
                                nullable: false
                                type: number
                              child_1_description:
                                nullable: false
                                type: string
                              child_1_isin:
                                nullable: false
                                type: string
                              child_2_amount:
                                nullable: false
                                type: number
                              child_2_description:
                                nullable: false
                                type: string
                              child_2_isin:
                                nullable: false
                                type: string
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                            required:
                              - child_1_amount
                              - child_1_description
                              - child_1_isin
                              - child_2_amount
                              - child_2_description
                              - child_2_isin
                              - date
                            type: object
                          nullable: true
                          type: array
                        event_tender_offer_invitation:
                          description: >-
                            The issuer invites holders to tender this bond for
                            cash purchase, on the terms given here. The event
                            date is the date of the invitation;
                            `tender_offer_result` reports what was actually
                            bought. Same entries as the
                            `tender_offer_invitation` events of the muni events
                            endpoint, with their details flattened next to
                            `date` and `publish_date`.
                          items:
                            properties:
                              acceptance_date:
                                format: date
                                nullable: true
                                type: string
                              contingent_on_new_issue:
                                nullable: true
                                type: boolean
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              expiration_date:
                                format: date
                                nullable: true
                                type: string
                              maximum_amount_accepted:
                                nullable: true
                                type: number
                              outstanding_amount:
                                nullable: true
                                type: number
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                              purchase_price:
                                description: >-
                                  The price the issuer offers or pays per bond
                                  tendered. Documents state this in one of
                                  several mutually exclusive units, so use the
                                  `type` that matches how the document expresses
                                  it and never convert between units. For
                                  capital appreciation bonds (CABs) the price is
                                  a percentage of the accreted value at maturity
                                  rather than of principal. Do not confuse the
                                  purchase price with a solicitation fee paid to
                                  brokers (e.g. '$1.25 per $1,000'), which must
                                  never be extracted here.
                                nullable: true
                                oneOf:
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      benchmark:
                                        enum:
                                          - blended-treasury-yield
                                          - mmd
                                          - treasury
                                          - usd-isdaswap
                                        nullable: true
                                        type: string
                                      spread_in_bps:
                                        maximum: 1000
                                        minimum: -1000
                                        nullable: true
                                        type: number
                                      type:
                                        description: >-
                                          Use when the document only sets a spread
                                          to a benchmark security, so no price is
                                          known yet, e.g. 'Fixed Spread: +95.0
                                          bps' over a Reference Treasury Security.
                                        enum:
                                          - fixed-spread
                                        nullable: false
                                        type: string
                                    required:
                                      - benchmark
                                      - spread_in_bps
                                      - type
                                    type: object
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      type:
                                        description: >-
                                          Use when the price is quoted in dollars
                                          per unit of par, e.g. 'expressed in
                                          dollars per $1,000 in principal amount:
                                          $970'.
                                        enum:
                                          - dollars-per-100
                                          - dollars-per-1000
                                        nullable: false
                                        type: string
                                      value_in_dollars:
                                        minimum: 0
                                        nullable: false
                                        type: number
                                    required:
                                      - type
                                      - value_in_dollars
                                    type: object
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      type:
                                        description: >-
                                          Use when the price is a percentage, e.g.
                                          'Purchase Price as a Percentage of
                                          Principal Amount: 110.043'.
                                        enum:
                                          - percent-of-accreted-value
                                          - percent-of-principal
                                        nullable: false
                                        type: string
                                      value_in_pct:
                                        maximum: 1000
                                        minimum: 0
                                        nullable: false
                                        type: number
                                    required:
                                      - type
                                      - value_in_pct
                                    type: object
                              settlement_date:
                                format: date
                                nullable: true
                                type: string
                            required:
                              - date
                            type: object
                          nullable: true
                          type: array
                        event_tender_offer_result:
                          description: >-
                            The outcome of a tender offer for this bond: how
                            much holders tendered and how much the issuer
                            bought. The event date is the settlement date, and
                            `amount_accepted` reduces the outstanding amount.
                            `invitation_date` links the outcome back to its
                            `tender_offer_invitation`. Same entries as the
                            `tender_offer_result` events of the muni events
                            endpoint, with their details flattened next to
                            `date` and `publish_date`.
                          items:
                            properties:
                              amount_accepted:
                                nullable: true
                                type: number
                              amount_rejected:
                                nullable: true
                                type: number
                              amount_tendered:
                                nullable: true
                                type: number
                              date:
                                description: >-
                                  Date the event occurred in ISO-8601 format
                                  (YYYY-MM-DD).
                                format: date
                                nullable: false
                                type: string
                              invitation_date:
                                format: date
                                nullable: true
                                type: string
                              pro_rata_acceptance_ratio:
                                nullable: true
                                type: number
                              publish_date:
                                description: >-
                                  Date the event was published in ISO-8601
                                  format (YYYY-MM-DD).
                                format: date
                                nullable: true
                                type: string
                              purchase_price:
                                description: >-
                                  The price the issuer offers or pays per bond
                                  tendered. Documents state this in one of
                                  several mutually exclusive units, so use the
                                  `type` that matches how the document expresses
                                  it and never convert between units. For
                                  capital appreciation bonds (CABs) the price is
                                  a percentage of the accreted value at maturity
                                  rather than of principal. Do not confuse the
                                  purchase price with a solicitation fee paid to
                                  brokers (e.g. '$1.25 per $1,000'), which must
                                  never be extracted here.
                                nullable: true
                                oneOf:
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      benchmark:
                                        enum:
                                          - blended-treasury-yield
                                          - mmd
                                          - treasury
                                          - usd-isdaswap
                                        nullable: true
                                        type: string
                                      spread_in_bps:
                                        maximum: 1000
                                        minimum: -1000
                                        nullable: true
                                        type: number
                                      type:
                                        description: >-
                                          Use when the document only sets a spread
                                          to a benchmark security, so no price is
                                          known yet, e.g. 'Fixed Spread: +95.0
                                          bps' over a Reference Treasury Security.
                                        enum:
                                          - fixed-spread
                                        nullable: false
                                        type: string
                                    required:
                                      - benchmark
                                      - spread_in_bps
                                      - type
                                    type: object
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      type:
                                        description: >-
                                          Use when the price is quoted in dollars
                                          per unit of par, e.g. 'expressed in
                                          dollars per $1,000 in principal amount:
                                          $970'.
                                        enum:
                                          - dollars-per-100
                                          - dollars-per-1000
                                        nullable: false
                                        type: string
                                      value_in_dollars:
                                        minimum: 0
                                        nullable: false
                                        type: number
                                    required:
                                      - type
                                      - value_in_dollars
                                    type: object
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      type:
                                        description: >-
                                          Use when the price is a percentage, e.g.
                                          'Purchase Price as a Percentage of
                                          Principal Amount: 110.043'.
                                        enum:
                                          - percent-of-accreted-value
                                          - percent-of-principal
                                        nullable: false
                                        type: string
                                      value_in_pct:
                                        maximum: 1000
                                        minimum: 0
                                        nullable: false
                                        type: number
                                    required:
                                      - type
                                      - value_in_pct
                                    type: object
                              settlement_date:
                                format: date
                                nullable: true
                                type: string
                              stage:
                                enum:
                                  - final
                                  - preliminary
                                nullable: true
                                type: string
                            required:
                              - date
                            type: object
                          nullable: true
                          type: array
                        extraordinary_optional_redemption:
                          additionalProperties: false
                          description: >-
                            Extraordinary optional redemption terms and
                            conditions.
                          nullable: true
                          properties:
                            circumstances_for_extraordinary_redemption:
                              nullable: true
                              type: string
                            is_subject_to_extraordinary_redemption:
                              type: boolean
                          required:
                            - circumstances_for_extraordinary_redemption
                            - is_subject_to_extraordinary_redemption
                          type: object
                        figi:
                          description: >-
                            Financial Instrument Global Identifier (FIGI), a
                            unique 12-character alphanumeric code for financial
                            instruments.
                          example: BBG01L7LZSL5
                          maxLength: 12
                          minLength: 12
                          nullable: true
                          type: string
                        figi_name:
                          description: >-
                            Name associated with the FIGI (Financial Instrument
                            Global Identifier).
                          nullable: true
                          type: string
                        first_call_date:
                          description: >-
                            Date of the first call option in ISO-8601 format
                            (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        first_execution_date:
                          description: >-
                            Date of the first execution/trade for the bond in
                            ISO-8601 format (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        first_execution_time:
                          description: >-
                            Time of the first execution/trade for the bond, in
                            US Eastern Time, in ISO-8601 format (HH:MM:SS).
                          nullable: true
                          type: string
                        first_interest_payment_date:
                          description: >-
                            Date of the first interest payment in ISO-8601
                            format (YYYY-MM-DD).
                          format: date
                          nullable: false
                          type: string
                        first_trade_date:
                          description: >-
                            Date of the first trade in the secondary market in
                            ISO-8601 format (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        gas_prepay_guarantor:
                          description: >
                            Entity whose credit backstops return of prepayment
                            proceeds on a prepaid gas or electricity municipal
                            bond — the party obligated to return proceeds via
                            scheduled payments or on early termination. `null`
                            if not a prepaid energy structure.
                          nullable: true
                          type: string
                        guarantee:
                          description: >-
                            Indicates the security classification of the bond.
                            Secured bonds are backed by specific collateral
                            (pledged assets, revenues, or reserve funds), while
                            unsecured bonds lack such backing.
                          enum:
                            - secured
                            - unsecured
                          nullable: false
                          type: string
                        has_mandatory_redemption:
                          description: |
                            Whether the bond has mandatory redemption features.
                          nullable: false
                          type: boolean
                        has_official_statement:
                          description: >
                            Whether the bond has an official statement
                            published. Pre official statement bonds only have a
                            limited set of fields available that are provided on
                            a best-effort basis.
                          nullable: false
                          type: boolean
                        instrument_form:
                          description: >-
                            Legal delivery vehicle of the security (for example
                            bond, certificate of participation, or note).
                          enum:
                            - bond
                            - bond_anticipation_note
                            - certificate_of_participation
                            - commercial_paper
                            - custodial_receipt
                            - direct_lease_contract
                            - direct_loan_placement
                            - grant_anticipation_note
                            - project_note
                            - promissory_note
                            - revenue_anticipation_note
                            - tax_and_revenue_anticipation_note
                            - tax_anticipation_note
                            - variable_rate_demand_note
                            - warrant
                          nullable: true
                          type: string
                        insurers:
                          description: >-
                            Financial institutions that issue an insurance
                            policy for bonds, guaranteeing timely payment of
                            principal and interest.
                          items:
                            nullable: false
                            type: string
                          type: array
                        integral_multiple:
                          description: Integral multiple for bond denominations.
                          nullable: false
                          type: number
                        interest_accrual_convention:
                          description: >
                            Day count convention for interest accrual:


                            - `30/360`: 30 days per month, 360 days per year.

                            - `ACTUAL/ACTUAL`: Uses actual number of days in
                            period and year.

                            - `ACTUAL/360`: Uses actual days in period, 360 days
                            per year.

                            - `ACTUAL/365`: Uses actual days in period, 365 days
                            per year.

                            - `30/365`: 30 days per month, 365 days per year.
                          enum:
                            - 30/360
                            - 30/365
                            - act/360
                            - act/365
                            - act/act
                            - act/act (AFB)
                            - act/act (ICMA)
                            - act/act (ISDA)
                            - rba bond basis
                          nullable: false
                          type: string
                        interest_accrual_date:
                          description: >-
                            Date in ISO-8601 format (YYYY-MM-DD) from which
                            interest accrues.
                          format: date
                          nullable: false
                          type: string
                        interest_maximum_rate:
                          description: >-
                            Maximum interest rate for variable rate bonds; the
                            highest rate the bond's coupon can reach during its
                            life, often set as a cap relative to the reference
                            rate it is adjusted for.
                          nullable: true
                          type: number
                        interest_minimum_rate:
                          description: >-
                            Minimum interest rate for variable rate bonds; the
                            lowest rate the bond's coupon can fall to during its
                            life, often set as a floor relative to the reference
                            rate it is adjusted for.
                          nullable: true
                          type: number
                        interest_payment_schedule:
                          description: >
                            The interest payment schedule specifies the schedule
                            of interest payments, which may be periodic or
                            deferred until maturity (for CABs, notes or deferred
                            interest bonds). It is represented as an array of
                            objects with the following schema:
                          items:
                            additionalProperties: false
                            description: >-
                              Schema for each interest payment date or period in
                              the interest payment schedule.
                            properties:
                              interest_type:
                                enum:
                                  - accreting
                                  - regular
                                nullable: false
                                type: string
                              payment_date:
                                nullable: false
                                oneOf:
                                  - additionalProperties: false
                                    nullable: false
                                    properties:
                                      day:
                                        maximum: 31
                                        minimum: -1
                                        type: integer
                                      month:
                                        maximum: 12
                                        minimum: 1
                                        type: integer
                                      year:
                                        maximum: 2100
                                        minimum: 1900
                                        nullable: true
                                        type: integer
                                    required:
                                      - day
                                      - month
                                      - year
                                    type: object
                                  - additionalProperties: false
                                    properties:
                                      business_day:
                                        maximum: 23
                                        minimum: 1
                                        type: integer
                                      month:
                                        maximum: 12
                                        minimum: 1
                                        type: integer
                                      year:
                                        maximum: 2100
                                        minimum: 1900
                                        nullable: true
                                        type: integer
                                    required:
                                      - business_day
                                      - month
                                      - year
                                    type: object
                                  - additionalProperties: false
                                    properties:
                                      day_of_week:
                                        maximum: 7
                                        minimum: 1
                                        type: integer
                                      month:
                                        maximum: 12
                                        minimum: 1
                                        type: integer
                                      week_of_month:
                                        maximum: 5
                                        minimum: 1
                                        type: integer
                                      year:
                                        maximum: 2100
                                        minimum: 1900
                                        nullable: true
                                        type: integer
                                    required:
                                      - day_of_week
                                      - month
                                      - week_of_month
                                      - year
                                    type: object
                              periodic_schedule:
                                additionalProperties: false
                                nullable: true
                                properties:
                                  period_amount:
                                    type: integer
                                  period_type:
                                    enum:
                                      - month
                                      - week
                                    type: string
                                  until:
                                    format: date
                                    nullable: true
                                    type: string
                                required:
                                  - period_amount
                                  - period_type
                                  - until
                                type: object
                            required:
                              - interest_type
                              - payment_date
                              - periodic_schedule
                            type: object
                          maxItems: 20
                          nullable: true
                          type: array
                        interest_rate:
                          description: >
                            Interest rate or coupon of the bond, expressed as a
                            percentage of the bond's face value.
                          nullable: true
                          oneOf:
                            - nullable: true
                              type: number
                            - properties:
                                benchmark:
                                  type: string
                                pct_of_benchmark:
                                  nullable: true
                                  type: number
                                spread_in_bps:
                                  nullable: true
                                  type: number
                              type: object
                        interest_rate_schedule:
                          description: >
                            The interest rate structure specifies the applicable
                            interest rate for a given period and defines how it
                            is set and adjusted over the bond’s term, including
                            periodic adjustments for variable rate bonds. It is
                            represented as an array of objects with the
                            following schema:
                          items:
                            additionalProperties: false
                            properties:
                              determination_period:
                                nullable: true
                                properties:
                                  period_length:
                                    minimum: 1
                                    type: integer
                                  period_type:
                                    enum:
                                      - day
                                      - month
                                      - week
                                    type: string
                                required:
                                  - period_length
                                  - period_type
                                type: object
                              from_date:
                                description: Can be null if it applies from issue
                                format: date
                                nullable: true
                                type: string
                              interest_rate:
                                nullable: false
                                oneOf:
                                  - description: >-
                                      Interest rate/accretion rate when it is a
                                      fixed or known number.
                                                  The rate for capital appreciation bonds is sometimes cited as the yield to maturity.
                                    minimum: 0
                                    type: number
                                  - description: >-
                                      Interest properties when it is a spread
                                      over a benchmark or determined by a
                                      calculation agent
                                    properties:
                                      benchmark:
                                        enum:
                                          - auction
                                          - cpi
                                          - federal-funds-rate
                                          - libor
                                          - mmd
                                          - remarketing-agent
                                          - sifma
                                          - sofr
                                          - treasury
                                        nullable: false
                                        type: string
                                      pct_of_benchmark:
                                        maximum: 300
                                        minimum: 0
                                        nullable: true
                                        type: number
                                      spread_in_bps:
                                        nullable: true
                                        type: number
                                    required:
                                      - benchmark
                                      - pct_of_benchmark
                                      - spread_in_bps
                                    type: object
                              interest_type:
                                enum:
                                  - compounding
                                  - fixed
                                  - variable
                                  - zero
                                nullable: false
                                type: string
                              rate_mode_name:
                                description: The name of the rate mode.
                                enum:
                                  - 15-day
                                  - adjustable
                                  - auction
                                  - bank-purchase
                                  - bi-weekly
                                  - cpi
                                  - daily
                                  - fixed
                                  - flexible
                                  - floating
                                  - frn
                                  - index
                                  - libor
                                  - long-term
                                  - medium-term
                                  - monthly
                                  - multiannual
                                  - pass-through
                                  - permanent
                                  - quarterly
                                  - r-floats
                                  - remarketing-agent
                                  - reset
                                  - short-term
                                  - sifma
                                  - sofr
                                  - term
                                  - term-floater
                                  - two-day
                                  - unit_price
                                  - weekly
                                  - window
                                nullable: true
                                type: string
                              until_date:
                                description: >-
                                  Can be null if it applies until maturity.
                                  Range is exclusive, i.e. means until but not
                                  including.
                                format: date
                                nullable: true
                                type: string
                            required:
                              - determination_period
                              - from_date
                              - interest_rate
                              - interest_type
                              - rate_mode_name
                              - until_date
                            type: object
                          nullable: true
                          type: array
                        interest_type:
                          description: >
                            The Type of interest:


                            - `fixed rate`: The bond pays a fixed interest rate
                            throughout its life.

                            - `cab`: Capital Appreciation Bond (CAB), interest
                            accrues and is paid at maturity rather than
                            periodically.

                            - `variable rate`: The bond's interest rate can
                            change over time, typically based on a reference
                            rate or formula (e.g., SOFR, CPI).

                            - `term rate`: The bond pays interest at a rate set
                            for a specific term or period.

                            - `fixed to float`: The bond pays a fixed coupon for
                            an initial period, then floats with a reference
                            rate.

                            - `float to fixed`: The bond pays a floating coupon
                            for an initial period, then converts to a fixed
                            rate.

                            - `cab-to-fixed`: The bond starts as a capital
                            appreciation bond and converts to a fixed rate bond.

                            - `step rate`: The bond's interest rate increases
                            ("steps up") at predetermined intervals.

                            - `zero rate / discount rate`: A bond that does not
                            pay or accrue interest.
                          enum:
                            - cab
                            - cab-to-fixed
                            - fixed rate
                            - fixed to float
                            - float to fixed
                            - step rate
                            - term rate
                            - variable rate
                            - zero rate / discount rate
                          nullable: true
                          type: string
                        is_144a:
                          description: |
                            Whether the bond is Rule 144A compliant.
                          nullable: false
                          type: boolean
                        is_amt:
                          description: >
                            Whether the bond is an Alternative Minimum Tax (AMT)
                            bond.
                          nullable: false
                          type: boolean
                        is_bab:
                          description: |
                            Whether the bond is a Build America Bond.
                          nullable: false
                          type: boolean
                        is_bank_qualified:
                          description: |
                            Whether the bond is bank qualified.
                          nullable: false
                          type: boolean
                        is_callable:
                          description: |
                            Whether the bond is callable before maturity.
                          nullable: false
                          type: boolean
                        is_credit_enhanced:
                          description: >-
                            Indicates whether the bond is backed by any form of
                            credit enhancement.
                          nullable: false
                          type: boolean
                        is_defeased:
                          description: >
                            Whether the bond is defeased in full.


                            A defeased bond has funds set aside in an escrow
                            account to pay off the remaining principal and
                            interest, effectively removing the debt obligation
                            from the issuer's balance sheet.
                          nullable: true
                          type: boolean
                        is_federally_taxable:
                          description: |
                            Whether the bond is federally taxable.
                          nullable: false
                          type: boolean
                        is_green:
                          description: |
                            Whether the bond is a green bond.
                          nullable: false
                          type: boolean
                        is_insured:
                          description: >
                            Whether the bond is insured by a bond insurance
                            company.
                          nullable: true
                          type: boolean
                        is_outstanding:
                          description: |
                            Whether the bond is currently outstanding.
                          nullable: false
                          type: boolean
                        is_pac:
                          description: >
                            Whether the bond is a Planned Amortization Class
                            (PAC) bond.
                          nullable: false
                          type: boolean
                        is_regs:
                          description: |
                            Whether the bond is Regulation S (RegS) compliant.
                          nullable: false
                          type: boolean
                        is_social:
                          description: |
                            Whether the bond is a social bond.
                          nullable: false
                          type: boolean
                        is_state_enhanced:
                          description: >-
                            Indicates whether the bond is backed by any form of
                            state credit enhancement (state guarantee program,
                            state aid intercept program, appropriations program
                            or state permanent fund program).
                          nullable: false
                          type: boolean
                        is_state_taxable:
                          description: |
                            Whether the bond is state taxable.
                          nullable: false
                          type: boolean
                        is_sustainable:
                          description: |
                            Whether the bond is a sustainable bond.
                          nullable: false
                          type: boolean
                        isin:
                          description: >-
                            International Securities Identification Number
                            (ISIN), unique 12-character code for the security.
                          example: US64966HW301
                          maxLength: 12
                          minLength: 12
                          nullable: false
                          type: string
                          x-check: valid_check_digit
                          x-check-error: Invalid ISIN check digit
                          x-transform: upcase
                        issue_date:
                          description: >-
                            Date the bond was issued in ISO-8601 format
                            (YYYY-MM-DD).
                          format: date
                          nullable: false
                          type: string
                        issue_price:
                          description: >
                            Price at which the bond was issued (percentage of
                            par), the price is expressed as a percentage of the
                            bond's face value.
                          nullable: true
                          type: number
                        issue_yield:
                          description: >
                            Yield at issuance, the yield is expressed as a
                            percentage of the bond's face value.
                          nullable: true
                          type: number
                        issued_amount:
                          description: >-
                            Total amount issued (face value) in the bond's
                            currency.
                          nullable: false
                          type: number
                        issuer_canonical_id:
                          description: The internal unique identifier of the issuer.
                          nullable: true
                          type: integer
                        issuer_name:
                          description: >-
                            Name of the issuing entity (municipality, district,
                            etc.).
                          example: School District Number 172
                          nullable: false
                          type: string
                        liquidity_facility:
                          description: |
                            Liquidity facility provider for the bond:

                            - `LOC`: Letter of Credit
                            - `SBPA`: Standby Bond Purchase Agreement
                            - `Self`: Self-liquidity
                          enum:
                            - LOC
                            - SBPA
                            - Self
                          nullable: true
                          type: string
                        mandatory_redemption_schedule:
                          description: >
                            The mandatory redemption schedule specifies the
                            sinking fund redemptions, including the dates,
                            amounts, and redemption prices based on principal or
                            accreted value (for CABs).


                            ```json

                            [
                              {
                                "date": "<Date>",
                                "price": {
                                  "type": "principal | accreted-value",
                                  "spread_in_bps": "<Number>"
                                },
                                "amount": "<Number>"
                              },
                              ...
                            ]

                            ```
                          items:
                            nullable: false
                            properties: {}
                            type: object
                          type: array
                        mandatory_redemption_type:
                          description: >-
                            How bonds of this maturity are selected for
                            mandatory redemption: by_lot, pro_rata, or null when
                            the official statement does not say.
                          enum:
                            - by_lot
                            - pro_rata
                          nullable: true
                          type: string
                        maturity_amount:
                          description: >
                            Amount due at maturity:


                            The principal amount that will be repaid when the
                            bond matures.
                          nullable: true
                          type: number
                        maturity_date:
                          description: >-
                            Date when the bond principal is due to be repaid in
                            ISO-8601 format (YYYY-MM-DD).
                          format: date
                          nullable: false
                          type: string
                        minimum_denomination:
                          description: >-
                            Minimum denomination in which the bond can be
                            purchased.
                          nullable: false
                          type: number
                        next_call_date:
                          description: >-
                            Date of the next call option in ISO-8601 format
                            (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        next_call_price:
                          description: >-
                            Price at the nearest call date from today, if
                            exists.
                          nullable: true
                          type: number
                        next_coupon_date:
                          description: >-
                            Date of the next coupon payment in ISO-8601 format
                            (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        next_sink_amount:
                          description: >-
                            Indicates the nearest sinking fund amount, if
                            exists.
                          nullable: true
                          type: number
                        next_sink_date:
                          description: >-
                            Date of the next sinking fund payment in ISO-8601
                            format (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        next_sink_price:
                          description: Indicates the nearest sinking fund price, if exists.
                          nullable: true
                          type: number
                        obligation_types:
                          description: >-
                            Ordered list of legal pledges supporting repayment,
                            from the primary source to any secondary or backstop
                            pledges.
                          items:
                            enum:
                              - airport_cfc_revenue
                              - airport_general_revenue
                              - airport_pfc_revenue
                              - combined_utility_revenue
                              - commodity_prepayment
                              - conduit_charter_school
                              - conduit_corporate_industrial
                              - conduit_healthcare
                              - conduit_higher_education
                              - conduit_multifamily_housing
                              - conduit_school_district
                              - conduit_senior_living
                              - electric_power_revenue
                              - garvee_grant_anticipation
                              - higher_education_revenue
                              - hotel_tax_revenue
                              - housing_agency_program_parity
                              - income_tax_revenue
                              - lease_abatement
                              - lease_appropriation
                              - lease_mandatory_tax_levy
                              - limited_tax_go
                              - moral_obligation
                              - motor_fuel_tax_revenue
                              - natural_gas_utility_revenue
                              - non_tax_go
                              - other_dedicated_tax_revenue
                              - parking_revenue
                              - payroll_mobility_tax_revenue
                              - pooled_loan_program
                              - pooled_srf_program
                              - sales_tax_revenue
                              - seaport_revenue
                              - solid_waste_revenue
                              - special_assessment_district
                              - state_aid_appropriation
                              - state_general_obligation
                              - state_grant_anticipation
                              - student_loan_program
                              - takeout_bond_proceeds
                              - tax_increment_financing
                              - tobacco_settlement_securitization
                              - toll_road_bridge_revenue
                              - transit_farebox_revenue
                              - unlimited_tax_go
                              - water_sewer_revenue
                            type: string
                          minItems: 1
                          nullable: true
                          type: array
                          uniqueItems: true
                        obligor:
                          description: >-
                            The obligated entity, when it is not the same as the
                            issuer
                          nullable: true
                          type: string
                        obligor_canonical_id:
                          description: The internal unique identifier of the obligor.
                          nullable: true
                          type: integer
                        odd_first_coupon:
                          description: >
                            Indicates whether the first coupon payment is odd:


                            - `regular`: First coupon payment follows the
                            standard interval.

                            - `short`: First coupon period is shorter than the
                            typical payment interval.

                            - `long`: First coupon period is longer than the
                            typical payment interval.
                          enum:
                            - long
                            - regular
                            - short
                          nullable: true
                          type: string
                        odd_last_coupon:
                          description: >
                            Indicates whether the last coupon payment is odd:


                            - `regular`: Last coupon payment follows the
                            standard interval.

                            - `short`: Last coupon period is shorter than the
                            typical payment interval.

                            - `long`: Last coupon period is longer than the
                            typical payment interval.
                          enum:
                            - long
                            - regular
                            - short
                          nullable: true
                          type: string
                        optional_redemption_max_notice:
                          description: >-
                            Maximum notice period for optional redemptions (in
                            days).
                          nullable: true
                          type: integer
                        optional_redemption_min_notice:
                          description: >-
                            Minimum notice period for optional redemptions (in
                            days).
                          nullable: true
                          type: integer
                        optional_redemption_schedule:
                          description: >
                            The optional redemption schedule defines the periods
                            for which a bond is callable with a fixed, accreted
                            value (for CABs), amortized value, and make-whole
                            price. It is represented as an array of objects with
                            the following schema:

                            ```json

                            [
                              {
                                "until": "<Date>",
                                "call_date": "<Date>",
                                "call_price": {
                                  "type": "principal | accreted-value | amortized-value | make-whole",
                                  "spread_in_bps": "<Number>", // spread above par for principal, accreted-value, or amortized-value; spread above benchmark for make-whole
                                  "benchmark": "mmd | treasury" // benchmark only applies when it's make-whole
                                },
                                "is_periodic": "true | false",
                                "period_type": "day | month",
                                "period_amount": "<number>",  // period_amount=1 and period_type="day" means continuously callable
                                "includes_accrued_interest": "true | false"
                              },
                              ...
                            ]

                            ```
                          items:
                            nullable: false
                            properties: {}
                            type: object
                          type: array
                        outstanding_amount:
                          description: Current outstanding amount of the bond.
                          nullable: true
                          type: number
                        parent_isin:
                          description: >
                            ISIN of the parent bond, if this bond was created
                            from a split or refunding.


                            When bonds are split into multiple series or
                            tranches, the parent_isin identifies the original
                            bond from which this bond was derived.
                          example: US64966HW302
                          maxLength: 12
                          minLength: 12
                          nullable: true
                          type: string
                          x-check: valid_check_digit
                          x-check-error: Invalid ISIN check digit
                          x-transform: upcase
                        previous_coupon_date:
                          description: >-
                            Date of the previous coupon payment in ISO-8601
                            format (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        provider_expiration_date:
                          description: >-
                            Date when the provider's commitment expires in
                            ISO-8601 format (YYYY-MM-DD).
                          format: date
                          nullable: true
                          type: string
                        provider_identity:
                          description: >
                            Name of the provider, typically for liquidity
                            facilities or credit enhancements.
                          nullable: true
                          type: string
                        rating_group:
                          description: >
                            Credit rating group:


                            - `investment_grade`: Bonds with high credit
                            quality, typically considered safe and low risk.

                            - `high_yield`: Bonds with lower credit quality,
                            typically considered riskier and higher yield.
                          enum:
                            - high_yield
                            - investment_grade
                          nullable: true
                          type: string
                        remarketing_agents:
                          description: >
                            A municipal securities dealer responsible for
                            reselling to investors

                            securities (such as variable rate demand obligations
                            and other tender

                            option bonds) that have been tendered for purchase
                            by their owner.
                          items:
                            type: string
                          nullable: false
                          type: array
                        reserve_fund:
                          description: >-
                            Indicates whether the bond is backed by a reserve
                            fund (debt service reserve fund or capital reserve
                            fund).
                          nullable: false
                          type: boolean
                        retired_amount_attribution:
                          additionalProperties: false
                          description: >
                            Principal no longer outstanding, broken down by what
                            retired it. The amounts always sum to the issued
                            amount less `outstanding_amount`, and are in issue
                            terms, so for a capital appreciation bond they
                            exclude accretion. Entries with no amount are
                            omitted, so a bond with nothing retired has an empty
                            object.


                            Once a bond has matured, or been retired in full by
                            a split, split-and-suspend or exchange offer,
                            whatever remains after the other entries is
                            attributed to that event.


                            Where the recorded events cannot be reconciled with
                            the issued amount, the difference is reported under
                            `unknown`.
                          nullable: true
                          properties:
                            call_mandatory:
                              description: >-
                                Redeemed by mandatory calls, including sinking
                                fund installments.
                              type: number
                            call_optional:
                              description: Redeemed by optional calls.
                              type: number
                            consolidated:
                              description: >-
                                Consolidated into the bond from other
                                identifiers. Negative, as it adds to
                                `outstanding_amount`.
                              type: number
                            exchange_offer:
                              description: >-
                                Exchanged for new identifiers in an exchange
                                offer.
                              type: number
                            matured:
                              description: Repaid at maturity.
                              type: number
                            split:
                              description: Moved onto new identifiers by splits.
                              type: number
                            split_and_suspend:
                              description: >-
                                Moved onto new identifiers when the bond was
                                split and suspended.
                              type: number
                            tender_purchased:
                              description: Purchased by the issuer in tender offers.
                              type: number
                            unknown:
                              description: >-
                                The difference between the other entries and the
                                amount no longer outstanding, where the recorded
                                events cannot be reconciled with the issued
                                amount. Can be negative, when the events retire
                                more than was issued.
                              type: number
                          type: object
                        sale_type:
                          additionalProperties: false
                          description: >-
                            Indicates the method used by the issuer to sell the
                            municipal bond to investors.
                          enum:
                            - competitive_sale
                            - negotiated_sale
                            - private_placement
                          nullable: true
                          type: string
                        sector:
                          deprecated: true
                          description: >
                            Sector of the municipal bond:


                            - `education`: Educational institutions (schools,
                            universities, colleges).

                            - `local`: Local government entities (cities,
                            counties, towns).

                            - `utilities`: Utility companies and infrastructure.

                            - `transportation`: Transportation and transit
                            systems.

                            - `state`: State government entities.

                            - `healthcare`: Healthcare facilities and medical
                            institutions.

                            - `housing`: Housing and residential development.

                            - `industrial`: Industrial and economic development.

                            - `tobacco`: Tobacco settlement bonds.



                            To be depracated in favor of `sector_level1` and
                            `sector_level2`.
                          enum:
                            - education
                            - healthcare
                            - housing
                            - industrial
                            - local
                            - state
                            - tobacco
                            - transportation
                            - utilities
                          nullable: true
                          type: string
                        sector_level1:
                          description: >-
                            Broad obligor sector. Field currently in
                            development.
                          enum:
                            - development_and_civic
                            - education
                            - general_government
                            - healthcare_and_senior_living
                            - housing
                            - securitization
                            - transportation
                            - utilities_and_environmental
                          nullable: true
                          type: string
                        sector_level2:
                          description: >-
                            Granular obligor sector reflecting the true
                            obligor's operational business model. Field
                            currently in development.
                          enum:
                            - airport
                            - assisted_living_facility
                            - charter_school
                            - city_township_government
                            - combined_utility
                            - convention_center
                            - county_government
                            - cultural_civic_nonprofit
                            - economic_industrial_development
                            - electric_power_utility
                            - gas_utility
                            - health_system
                            - higher_education_private
                            - higher_education_public
                            - local_housing_authority
                            - mass_transit
                            - military_housing
                            - multifamily_affordable_housing
                            - parking_facility
                            - private_k12_school
                            - privatized_student_housing
                            - public_hospital_district
                            - public_school_district
                            - redevelopment_authority_tif
                            - seaport
                            - senior_living_ccrc
                            - single_site_hospital
                            - solid_waste_utility
                            - special_district_general
                            - special_tax_district
                            - sports_facility
                            - state_government
                            - state_hfa_multi_family
                            - state_hfa_single_family
                            - student_loan_agency
                            - tobacco_securitization_spv
                            - toll_road_bridge
                            - water_sewer_utility
                          nullable: true
                          type: string
                        seniority:
                          description: >
                            Seniority of the bond derived from the series name,
                            ordered from most senior to most junior.


                            It's worth noting that senior is considered on par
                            with first line, and subordinate is considered on
                            par with junior.
                          enum:
                            - first_lien
                            - junior
                            - junior_subordinate
                            - second_lien
                            - senior
                            - senior_subordinate
                            - subordinate
                          nullable: false
                          type: string
                        series:
                          description: |
                            Bond series name or description.
                          example: General Obligation School Bonds, Series 2024
                          nullable: false
                          type: string
                        series_issued_amount:
                          description: Amount issued in this specific series.
                          nullable: true
                          type: number
                        source_of_repayment:
                          description: >
                            Source of repayment:


                            - `General Obligation`: The bond is backed by the
                            full faith and credit of the issuer.

                            - `Revenue`: The bond is backed by the revenue
                            generated from the project or service it funds.

                            - `Double Barrel`: A combination of General
                            Obligation and Revenue sources.
                          enum:
                            - Double Barrel
                            - General Obligation
                            - Revenue
                          nullable: true
                          type: string
                        state:
                          description: >
                            US state or territory where the bond is issued (ANSI
                            2-letter code).
                          example: IL
                          maxLength: 2
                          minLength: 2
                          nullable: false
                          type: string
                        tender_agents:
                          description: >-
                            Financial institutions that facilitate the tender of
                            bonds to the issuer, typically in variable rate
                            demand obligations or other bonds with put features.
                          items:
                            nullable: false
                            type: string
                          type: array
                        tender_schedule:
                          description: >
                            The schedule of tender for a bond, including the
                            tender date, tender type, tender period, tender
                            price, and circumstance for tender
                          items:
                            additionalProperties: false
                            properties:
                              circumstance_for_tender:
                                enum:
                                  - credit or liquidity facility default
                                  - >-
                                    credit or liquidity facility expiration or
                                    substitution
                                  - extraordinary event
                                  - failed remarketing
                                  - in lieu of redemption
                                  - issuer or provider directed
                                  - optional tender
                                  - rate mode conversion
                                  - scheduled mandatory tender
                                  - unscheduled mandatory tender
                                nullable: false
                                type: string
                              periodic_schedule:
                                additionalProperties: false
                                nullable: true
                                properties:
                                  period_amount:
                                    type: integer
                                  period_type:
                                    enum:
                                      - day
                                      - month
                                      - week
                                      - year
                                    type: string
                                  until:
                                    format: date
                                    nullable: true
                                    type: string
                                required:
                                  - period_amount
                                  - period_type
                                  - until
                                type: object
                              tender_date:
                                format: date
                                nullable: true
                                type: string
                              tender_price:
                                additionalProperties: false
                                nullable: true
                                properties:
                                  spread_in_bps:
                                    maximum: 1000
                                    minimum: 0
                                    nullable: true
                                    type: number
                                  type:
                                    enum:
                                      - accreted-value
                                      - principal
                                    nullable: true
                                    type: string
                                required:
                                  - spread_in_bps
                                  - type
                                type: object
                              tender_type:
                                enum:
                                  - mandatory
                                  - optional
                                nullable: false
                                type: string
                            required:
                              - circumstance_for_tender
                              - periodic_schedule
                              - tender_date
                              - tender_price
                              - tender_type
                            type: object
                          maxItems: 20
                          nullable: true
                          type: array
                        ticker:
                          description: Bond ticker symbol.
                          example: IL ADASCD 5 02/01/2035
                          nullable: true
                          type: string
                        trustees:
                          description: >-
                            Financial institutions acting as intermediaries
                            between bond issuers and bondholders, appointed by
                            the issuer to represent bondholders' interests and
                            enforce the terms of the bond's governing contract.
                          items:
                            nullable: false
                            type: string
                          type: array
                        underwriters:
                          description: >-
                            Financial institutions that facilitate the issuance
                            and sale of bonds by purchasing them from the issuer
                            and reselling them to investors.
                          items:
                            nullable: false
                            type: string
                          nullable: true
                          type: array
                        upcoming_corporate_action:
                          description: >
                            The next anticipated corporate action event for the
                            bond.
                          nullable: true
                          properties:
                            date:
                              format: date
                              nullable: false
                              type: string
                            type:
                              enum:
                                - bond_call
                                - defeasance
                                - redemption
                                - refunding
                              nullable: false
                              type: string
                          type: object
                        use_categories:
                          description: >
                            Broad functional categories for bond proceeds
                            (middle level).


                            This is the middle level in the use of funds
                            hierarchy:

                            **Use Sector > Use Category > Uses of Proceeds**


                            Categories group related uses of proceeds together.
                            There are 31 categories across 10 sectors.


                            For the complete taxonomy, see the [Use of Funds
                            Taxonomy](https://docs.terrapinfinance.com/use_of_funds_taxonomy)
                            reference page.
                          items:
                            enum:
                              - airport
                              - bridges
                              - communication
                              - culture
                              - economic development
                              - electrical
                              - essential services
                              - gas
                              - gas prepay
                              - general purpose
                              - health system
                              - higher education
                              - hospitals
                              - industrial development
                              - military housing
                              - miscellaneous
                              - multi-family housing
                              - parking
                              - port
                              - power
                              - pre-school
                              - primary and secondary education
                              - public housing
                              - public transit
                              - recreational
                              - roads
                              - senior living
                              - single family housing
                              - student loan
                              - waste removal
                              - water and sewer
                            nullable: false
                            type: string
                          maxItems: 5
                          minItems: 1
                          nullable: true
                          type: array
                        use_sectors:
                          description: >
                            High-level sectors for bond proceeds (top level).


                            This is the top level in the use of funds hierarchy:

                            **Use Sector > Use Category > Uses of Proceeds**


                            Sectors are the broadest classification, grouping
                            multiple categories. There are 10 sectors in total.


                            For the complete taxonomy, see the [Use of Funds
                            Taxonomy](https://docs.terrapinfinance.com/use_of_funds_taxonomy)
                            reference page.
                          items:
                            enum:
                              - development
                              - education
                              - government
                              - healthcare
                              - housing
                              - miscellaneous
                              - recreation
                              - securitized
                              - transportation
                              - utility
                            nullable: false
                            type: string
                          minItems: 1
                          nullable: true
                          type: array
                        uses_of_proceeds:
                          description: >
                            Specific intended purposes for bond proceeds (most
                            granular level).


                            This is the most detailed level in the use of funds
                            hierarchy:

                            **Use Sector > Use Category > Uses of Proceeds**


                            For the complete taxonomy with all 90 uses of
                            proceeds, see the [Use of Funds
                            Taxonomy](https://docs.terrapinfinance.com/use_of_funds_taxonomy)
                            reference page.
                          items:
                            enum:
                              - airport
                              - alternative source power
                              - assisted living
                              - broadband
                              - buses
                              - charter school
                              - coal power
                              - combined port authority
                              - community centre
                              - community college
                              - continuing care retirement community
                              - correctional facilities
                              - courts
                              - critical access hospital
                              - development district
                              - electrical infrastructure
                              - ferries
                              - fire
                              - flood control
                              - gas infrastructure
                              - gas power
                              - gas prepay
                              - health system
                              - hospitality
                              - independent living
                              - industrial development
                              - irrigation
                              - library
                              - local hfa multi-family housing
                              - local hfa single family housing
                              - local standalone multi-family housing
                              - local standalone single family housing
                              - military housing
                              - miscellaneous
                              - museum
                              - non-toll bridges
                              - non-toll roads
                              - nuclear power
                              - nursing home
                              - office buildings
                              - parking facilities
                              - parks
                              - police
                              - pollution control
                              - pre-school and daycare
                              - private college
                              - public buildings
                              - public college
                              - public housing
                              - public school district
                              - regional toll bridges
                              - regional toll roads
                              - sewer
                              - shopping centres
                              - solar power
                              - specialty hospital
                              - stadium
                              - standalone hospital
                              - standalone port
                              - standalone public school
                              - state hfa multi-family housing
                              - state hfa single family housing
                              - state toll bridges
                              - state toll roads
                              - storm water
                              - student housing
                              - student loan
                              - telephone
                              - trains
                              - tribal
                              - waste removal
                              - water
                              - wind power
                            type: string
                          maxItems: 5
                          minItems: 1
                          nullable: true
                          type: array
                        validation_errors:
                          description: >
                            A list of known data issues for the bond where
                            validation rules have failed.


                            ```json

                            [
                              {
                                "details": "null_coupon_frequency",
                                "field_names": ["coupon_frequency"]
                              },
                              ...
                            ]

                            ```
                          items:
                            additionalProperties: false
                            nullable: false
                            properties:
                              details:
                                nullable: false
                                type: string
                              field_names:
                                items:
                                  nullable: false
                                  type: string
                                nullable: false
                                type: array
                            required:
                              - details
                            type: object
                          nullable: false
                          type: array
                        variable_rate_adjustment_schedule:
                          description: >
                            Schedule for when variable interest rates are
                            adjusted.


                            Specifies the frequency at which the bond's variable
                            interest rate is reset or recalculated based on a
                            reference rate or index.
                          nullable: true
                          properties:
                            period_length:
                              minimum: 1
                              type: integer
                            period_type:
                              enum:
                                - day
                                - month
                                - week
                              type: string
                          type: object
                        variable_rate_mode:
                          description: |
                            Variable rate mode for the bond, if applicable.
                          enum:
                            - 15-day
                            - adjustable
                            - auction
                            - bank-purchase
                            - bi-weekly
                            - cpi
                            - daily
                            - fixed
                            - flexible
                            - floating
                            - frn
                            - index
                            - libor
                            - long-term
                            - medium-term
                            - monthly
                            - multiannual
                            - pass-through
                            - permanent
                            - quarterly
                            - r-floats
                            - remarketing-agent
                            - reset
                            - short-term
                            - sifma
                            - sofr
                            - term
                            - term-floater
                            - two-day
                            - unit_price
                            - weekly
                            - window
                          nullable: true
                          type: string
                      required:
                        - advisors
                        - award_date
                        - award_time
                        - bond_counsel
                        - capital_purpose
                        - closing_date
                        - composite_rating
                        - counties
                        - country
                        - country_code
                        - coupon_frequency
                        - coupon_payment_day
                        - coupon_payment_months
                        - credit_enhancement_type
                        - currency
                        - dated_date
                        - disclosure_counsel
                        - escrowed_amount
                        - event_call
                        - event_consolidation
                        - event_creation
                        - event_defeasance
                        - event_exchange_offer
                        - event_identifier_relabel
                        - event_split
                        - event_split_and_suspend
                        - event_tender_offer_invitation
                        - event_tender_offer_result
                        - extraordinary_optional_redemption
                        - figi
                        - figi_name
                        - first_call_date
                        - first_execution_date
                        - first_execution_time
                        - first_interest_payment_date
                        - first_trade_date
                        - gas_prepay_guarantor
                        - guarantee
                        - has_mandatory_redemption
                        - has_official_statement
                        - instrument_form
                        - insurers
                        - integral_multiple
                        - interest_accrual_convention
                        - interest_accrual_date
                        - interest_maximum_rate
                        - interest_minimum_rate
                        - interest_payment_schedule
                        - interest_rate
                        - interest_rate_schedule
                        - interest_type
                        - is_144a
                        - is_amt
                        - is_bab
                        - is_bank_qualified
                        - is_callable
                        - is_credit_enhanced
                        - is_defeased
                        - is_federally_taxable
                        - is_green
                        - is_insured
                        - is_outstanding
                        - is_pac
                        - is_regs
                        - is_social
                        - is_state_enhanced
                        - is_state_taxable
                        - is_sustainable
                        - isin
                        - issue_date
                        - issue_price
                        - issue_yield
                        - issued_amount
                        - issuer_canonical_id
                        - issuer_name
                        - liquidity_facility
                        - mandatory_redemption_schedule
                        - mandatory_redemption_type
                        - maturity_amount
                        - maturity_date
                        - minimum_denomination
                        - next_call_date
                        - next_call_price
                        - next_coupon_date
                        - next_sink_amount
                        - next_sink_date
                        - next_sink_price
                        - obligation_types
                        - obligor
                        - obligor_canonical_id
                        - odd_first_coupon
                        - odd_last_coupon
                        - optional_redemption_max_notice
                        - optional_redemption_min_notice
                        - optional_redemption_schedule
                        - outstanding_amount
                        - parent_isin
                        - previous_coupon_date
                        - provider_expiration_date
                        - provider_identity
                        - rating_group
                        - remarketing_agents
                        - reserve_fund
                        - retired_amount_attribution
                        - sale_type
                        - sector
                        - sector_level1
                        - sector_level2
                        - seniority
                        - series
                        - series_issued_amount
                        - source_of_repayment
                        - state
                        - tender_agents
                        - tender_schedule
                        - ticker
                        - trustees
                        - underwriters
                        - upcoming_corporate_action
                        - use_categories
                        - use_sectors
                        - uses_of_proceeds
                        - validation_errors
                        - variable_rate_adjustment_schedule
                        - variable_rate_mode
                      type: object
                    type: array
                  total:
                    description: >-
                      Total number of results in the database that match the
                      query filters.
                    type: integer
                required:
                  - data
                  - total
                title: MuniReferenceResponse
                type: object
          description: Reference data
        '401':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      properties:
                        detail:
                          example: Unauthorized
                          type: string
                        reason:
                          example: >-
                            Your account tier does not allow this operation.
                            Contact team@terrapinfinance.com for an upgrade.
                          type: string
                      required:
                        - detail
                      type: object
                    type: array
                required:
                  - errors
                type: object
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      properties:
                        detail:
                          example: Payment Required
                          type: string
                        reason:
                          example: >-
                            You have run out of your granted quota for this
                            resource as defined by your account tier. Contact
                            team@terrapinfinance.com for an upgrade.
                          type: string
                      required:
                        - detail
                      type: object
                    type: array
                required:
                  - errors
                type: object
          description: Payment Required
        '403':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      properties:
                        detail:
                          example: Forbidden
                          type: string
                        reason:
                          example: >-
                            Your account tier does not allow this operation.
                            Contact team@terrapinfinance.com for an upgrade.
                          type: string
                      required:
                        - detail
                      type: object
                    type: array
                required:
                  - errors
                type: object
          description: Forbidden
        '422':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      properties:
                        detail:
                          example: 'Invalid string. Got: integer'
                          type: string
                        source:
                          properties:
                            pointer:
                              example: /isins/0
                              type: string
                          required:
                            - pointer
                          type: object
                        title:
                          example: Invalid value
                          type: string
                      required:
                        - detail
                        - source
                        - title
                      type: object
                    type: array
                required:
                  - errors
                type: object
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      properties:
                        detail:
                          example: Too Many Requests
                          type: string
                        reason:
                          type: string
                      required:
                        - detail
                      type: object
                    type: array
                required:
                  - errors
                type: object
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      properties:
                        detail:
                          example: Internal Server Error
                          type: string
                        reason:
                          type: string
                      required:
                        - detail
                      type: object
                    type: array
                required:
                  - errors
                type: object
          description: Internal Server Error
      callbacks: {}
components:
  securitySchemes:
    authorization:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.