# Convert CUSIPs to ISINs Source: https://docs.terrapinfinance.com/api-endpoints/convert-to-isin post /api/v1/convert_to_isin Convert a list of 9-character US CUSIPs into ISINs. Inputs that do not match the 9-character CUSIP format are returned with `isin: null`. Since all other endpoints require ISINs, this endpoint is useful to convert identifiers to ISINs before using other endpoints. # Download Document Source: https://docs.terrapinfinance.com/api-endpoints/download-document post /api/v1/download_document Given a Terrapin file ID (obtained from the muni_documents endpoint), returns the PDF or text content of the document. When using within an agent or MCP, this returns a short-lived download URL instead of the file content; fetch it with your own tooling (e.g. `curl -sL '' | pdftotext - -` for PDFs) rather than loading the file into context. # Bond Search Source: https://docs.terrapinfinance.com/api-endpoints/government-and-corporate-bond-search post /api/v1/bond_search This endpoint returns a list of bonds matching the search filters. Each bond in the response includes fields such as ISIN, Issuer name, coupon, maturity date, currency, and ticker. > [!WARNING] > > This endpoint is deprecated. See [Bond Search](/api-endpoints/securities-search) instead. The endpoint will be maintained and available until February 1, 2027. # Cash Flows Source: https://docs.terrapinfinance.com/api-endpoints/government-and-corporate-cashflows post /api/v1/bond_cashflows Get cash flow schedules for fixed or zero rate bonds. > [!WARNING] > > This endpoint is deprecated. See [Securities Cash Flows](/api-endpoints/securities-cashflows) instead. The endpoint will be maintained and available until February 1, 2027. # Historical Pricing Source: https://docs.terrapinfinance.com/api-endpoints/government-and-corporate-historical-pricing-data post /api/v1/bond_pricing_history Get historical government and corporate bond end of day pricing data for a given ISIN. > [!WARNING] > > This endpoint is deprecated. See [Securities Historical Pricing](/api-endpoints/securities-pricing-history) instead. The endpoint will be maintained and available until February 1, 2027. # Latest Pricing Source: https://docs.terrapinfinance.com/api-endpoints/government-and-corporate-latest-pricing-data post /api/v1/bond_pricing_latest Get latest end of day government and corporate bond pricing data for a given set of ISINs. > [!WARNING] > > This endpoint is deprecated. See [Securities Latest Pricing](/api-endpoints/securities-pricing-latest) instead. The endpoint will be maintained and available until February 1, 2027. # Reference Data Source: https://docs.terrapinfinance.com/api-endpoints/government-and-corporate-reference-data post /api/v1/bond_reference Get full government and corporate bond reference data for a given set of ISINs. > [!WARNING] > > This endpoint is deprecated. See [Securities Reference Data](/api-endpoints/securities-reference) instead. The endpoint will be maintained and available until February 1, 2027. # Inflation Factors Source: https://docs.terrapinfinance.com/api-endpoints/government-inflation-factors post /api/v1/inflation_factors Retrieve inflation factors for a given country and date range. Inflation factors are used to adjust principal and coupon payments of inflation-linked bonds to account for changes in the price level. # Curve data Source: https://docs.terrapinfinance.com/api-endpoints/government-yield-curve post /api/v1/government_yield_curve Retrieve government yield curve points for a given date, region, and curve type. Benchmark curve returns the EoD yields of the benchmark instruments, and their respective years to maturity. Zero curve returns the zero rates (or term rates) at exact tenors. The zero curve is constructed via monotone convex bootstrapping of available EoD trades for benchmark instruments. Due to a lack of available EoD trades for very short maturity bills, the earliest tenor available starts at 1 year. Par curve returns the par yields at exact tenors. The par curve is derived from the zero curve. # Cash Flows Source: https://docs.terrapinfinance.com/api-endpoints/securities-cashflows post /api/v1/securities_cashflows Get cash flow schedules for fixed or zero rate bonds. > [!NOTE] > > These endpoints replace the deprecated [Government & corporate](/api-endpoints/government-and-corporate-cashflows) and [US agency](/api-endpoints/us-agency-cashflows) endpoints. # Historical Pricing Source: https://docs.terrapinfinance.com/api-endpoints/securities-pricing-history post /api/v1/securities_pricing_history Get historical corporate, US agency and government bond pricing data for a given ISIN. > [!NOTE] > > These endpoints replace the deprecated [Government & corporate](/api-endpoints/government-and-corporate-historical-pricing-data) and [US agency](/api-endpoints/us-agency-historical-pricing-data) endpoints. # Latest Pricing Source: https://docs.terrapinfinance.com/api-endpoints/securities-pricing-latest post /api/v1/securities_pricing_latest Get the latest end of day corporate, US agency and government bond pricing data for a given set of ISINs. Today's price is provisional: it updates through the day as trades are published. > [!NOTE] > > These endpoints replace the deprecated [Government & corporate](/api-endpoints/government-and-corporate-latest-pricing-data) and [US agency](/api-endpoints/us-agency-latest-pricing-data) endpoints. # Reference Data Source: https://docs.terrapinfinance.com/api-endpoints/securities-reference post /api/v1/securities_reference Get full corporate, government bond, certificate of deposit and US agency bond reference data for given ISINs. > [!NOTE] > > These endpoints replace the deprecated [Government & corporate](/api-endpoints/government-and-corporate-reference-data) and [US agency](/api-endpoints/us-agency-bond-reference) endpoints. # Bond Search Source: https://docs.terrapinfinance.com/api-endpoints/securities-search post /api/v1/securities_search This endpoint returns a list of corporate bonds, government bonds, certificates of deposit and US agency bonds with a small set of fields. > [!NOTE] > > These endpoints replace the deprecated [Government & corporate](/api-endpoints/government-and-corporate-bond-search) and [US agency](/api-endpoints/us-agency-bond-search) endpoints. # Reference Data Source: https://docs.terrapinfinance.com/api-endpoints/us-agency-bond-reference post /api/v1/agency_reference Get full US agency bond reference data for given ISINs. > [!WARNING] > > This endpoint is deprecated. See [Securities Reference Data](/api-endpoints/securities-reference) instead. The endpoint will be maintained and available until February 1, 2027. # Bond Search Source: https://docs.terrapinfinance.com/api-endpoints/us-agency-bond-search post /api/v1/agency_search This endpoint returns a list of US agency bonds with a small set of fields. It is intended for search according to the filters provided. > [!WARNING] > > This endpoint is deprecated. See [Bond Search](/api-endpoints/securities-search) instead. The endpoint will be maintained and available until February 1, 2027. # Cash Flows Source: https://docs.terrapinfinance.com/api-endpoints/us-agency-cashflows post /api/v1/agency_cashflows Get cash flow schedules for fixed or zero rate bonds. > [!WARNING] > > This endpoint is deprecated. See [Securities Cash Flows](/api-endpoints/securities-cashflows) instead. The endpoint will be maintained and available until February 1, 2027. # Historical Pricing Source: https://docs.terrapinfinance.com/api-endpoints/us-agency-historical-pricing-data post /api/v1/agency_pricing_history Get historical US agency bond end of day pricing data for a given ISIN. > [!WARNING] > > This endpoint is deprecated. See [Securities Historical Pricing](/api-endpoints/securities-pricing-history) instead. The endpoint will be maintained and available until February 1, 2027. # Latest Pricing Source: https://docs.terrapinfinance.com/api-endpoints/us-agency-latest-pricing-data post /api/v1/agency_pricing_latest Get latest end of day US agency bond pricing data for a given set of ISINs. > [!WARNING] > > This endpoint is deprecated. See [Securities Latest Pricing](/api-endpoints/securities-pricing-latest) instead. The endpoint will be maintained and available until February 1, 2027. # Bonds in Series Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-bonds-in-series post /api/v1/muni_bonds_in_series Given an ISIN, returns all municipal bonds that belong to the same series. Response schema is the same as the muni_search endpoint. # Cash Flows Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-cashflows post /api/v1/muni_cashflows Get cash flow schedules for US municipal bonds. # Bulk Pricing Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-daily-historical-pricing-data post /api/v1/muni_pricing_daily_history Get historical US municipal bond pricing data for all ISINs at a given day. Not available as an MCP tool: see [REST-only endpoints](/mcp/introduction#rest-only-endpoints). # Documents Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-documents post /api/v1/muni_documents Given an ISIN and document type, returns the unique file IDs and metadata for the documents associated with that municipal bond. For `official_statement`, returns official statements for the specific bond. For `disclosure_document`, returns disclosure documents for the bond's obligor, which can number in the thousands: narrow them with `publish_date_min` and `publish_date_max`. The file IDs can be used to download the documents using the download_document endpoint. # Entity Search Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-entity-search post /api/v1/muni_entity_search Given a search query, returns a list of municipal bond issuers (entities) matching the query. Searches by entity name, state, and counties. # Event History Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-events post /api/v1/muni_events Get US municipal bond event history for given ISINs. Deprecated: the same events are returned by `/api/v1/muni_reference` as its `event_*` fields. This endpoint will be maintained and available until February 1, 2027. > [!WARNING] > > This endpoint is deprecated. See [Reference Data](/api-endpoints/us-municipal-bond-reference) instead, which returns the same events as its `event_*` fields, one per event type. The endpoint will be maintained and available until February 1, 2027. # Historical Pricing Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-historical-pricing-data post /api/v1/muni_pricing_history Get historical US municipal bond pricing data for a given ISIN. # Latest Pricing Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-latest-pricing-data post /api/v1/muni_pricing_latest Get the latest end of day US municipal bond pricing data for a given set of ISINs. # Price To Yield Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-price-to-yield post /api/v1/muni_price_to_yield Calculate yield metrics for municipal securities based on price and settlement date. # Reference Data Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-reference post /api/v1/muni_reference Get full US municipal bond reference data for given ISINs. # Bond Search Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-search post /api/v1/muni_search This endpoint returns a list of US municipal bonds with a small set of fields. It is intended for search according to the filters provided. # Issuance Statistics Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-stats-issuance post /api/v1/muni_stats_issuance Aggregate statistics on newly issued US municipal debt over a date range: new issuance par value, number of newly issued CUSIPs, and number of issuing entities. New issuance is windowed on the bond's dated date. Excludes commercial paper and new issues still without a final OS. # Outstanding Statistics Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-stats-outstanding post /api/v1/muni_stats_outstanding Aggregate statistics on currently outstanding US municipal debt: total outstanding par value, number of CUSIPs, and number of unique issuing entities. Excludes commercial paper and new issues still without a final OS. # Top Issuers Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-stats-top-issuers post /api/v1/muni_stats_top_issuers Ranked list of the top issuers over a date range, combining new issuance and secondary market trade activity. Issuers are ranked by the chosen metric in descending order. Excludes commercial paper and new issues still without a final OS. # Trade Activity Statistics Source: https://docs.terrapinfinance.com/api-endpoints/us-municipal-bond-stats-trade-activity post /api/v1/muni_stats_trade_activity Aggregate secondary market trade activity over a date range: traded volume (par value), trade count, and the breakdown of customer bought, customer sold, and inter-dealer trades. Excludes commercial paper and new issues still without a final OS. # Authentication Source: https://docs.terrapinfinance.com/authentication Authenticate your requests with a bearer token. Every API request needs a bearer token in the `Authorization` header. Tokens are tied to your organization and inherit the limits of your subscription tier. ## Get an API key API keys are managed from [the app](https://terrapinfinance.com/app): 1. Sign in to your Terrapin account. 2. Open the **API Keys** section. 3. Click **Generate new key** and copy the value immediately. We never display it again. > [!WARNING] > > API keys grant full access to your organization's quota. Store them in a secret manager, keep them out of source control, and rotate them if you suspect one has leaked. ## Send the bearer token Add `Authorization: Bearer ` to every request. ```bash curl theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} curl -X POST https://terrapinfinance.com/api/v1/securities_reference \ -H "Authorization: Bearer $TERRAPIN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "isins": ["US912810TM09"] }' ``` ```python Python theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} import os import requests resp = requests.post( "https://terrapinfinance.com/api/v1/securities_reference", headers={ "Authorization": f"Bearer {os.environ['TERRAPIN_API_KEY']}", "Content-Type": "application/json", }, json={"isins": ["US912810TM09"]}, ) resp.raise_for_status() print(resp.json()) ``` ```javascript Node.js theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} const resp = await fetch("https://terrapinfinance.com/api/v1/securities_reference", { method: "POST", headers: { "Authorization": `Bearer ${process.env.TERRAPIN_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ isins: ["US912810TM09"] }), }); console.log(await resp.json()); ``` ## Responses * `200 OK`: authenticated and processed. * `401 Unauthorized`: header is missing, malformed, or the token has been revoked. The body is `{"errors": [{"detail": "Incorrect or no bearer token"}]}`. * `403 Forbidden`: your tier does not include this endpoint or resource. Upgrade from [the app](https://terrapinfinance.com/app). See [Errors](/errors) for the full status code list. ## Rotating and revoking keys Generate a new key, switch your workload to it, then delete the old key in the app. Deleted keys stop working immediately and any in-flight calls using them will start failing with `401`. # US agency bonds Source: https://docs.terrapinfinance.com/data_dictionary_agencies Field reference for the US agency bond Reference Data response This is the complete field dictionary for the data returned by the [US agency bond Reference Data](/api-endpoints/us-agency-bond-reference) endpoint. > [!WARNING] > > This endpoint is deprecated. See [Securities Reference Data](/api-endpoints/securities-reference) instead. The endpoint will be maintained and available until February 1, 2027. Each call returns an object of the shape `{ "data": [ ... ], "total": }`, where every entry in `data` describes a single bond using the fields below. **isin** `string` International Securities Identification Number (ISIN), unique 12-character code for the security. **call\_type** `string` Type of call provision on the bond: * `european`: Callable only on a single specified date. * `american`: Callable on any date after the lockout period. * `bermudan`: Callable on a set of predetermined dates. **cfi\_code** `string` Classification of Financial Instruments (CFI) code: The CFI code is a six-letter code that classifies a financial instrument by its type and key features (e.g., fixed/floating rate, registered/bearer, secured/unsecured). **composite\_issue\_rating** `string` Composite rating of the issue. **Allowed values:** `A`, `A+`, `A-`, `AA`, `AA+`, `AA-`, `AAA`, `B`, `B+`, `B-`, `BB`, `BB+`, `BB-`, `BBB`, `BBB+`, `BBB-`, `C`, `CC`, `CCC`, `CCC+`, `CCC-`, `D` **composite\_issuer\_rating** `string` Composite rating of the issuer. **Allowed values:** `A`, `A+`, `A-`, `AA`, `AA+`, `AA-`, `AAA`, `B`, `B+`, `B-`, `BB`, `BB+`, `BB-`, `BBB`, `BBB+`, `BBB-`, `C`, `CC`, `CCC`, `CCC+`, `CCC-`, `D` **country** `string` Country of issuing entity: * `United States of America`: Country of issue is United States of America. **country\_code** `string` ISO 3166-1 alpha-2 country code (2-letter code) of the country of issue. **coupon** `number` Interest rate or coupon of the bond. **coupon\_frequency** `integer` Number of coupon payments per year. **coupon\_payment\_day** `integer` Day of the month when coupon payments are made. **coupon\_payment\_months** `array of integer` Months when coupon payments are made (1-12). **Examples:** * `[2, 8]`: Coupon payments are made on February and August. **currency** `string` Currency in which the bond is denominated (3-letter ISO 4217 code). **figi** `string` Financial Instrument Global Identifier (FIGI), a unique 12-character alphanumeric code for financial instruments. **figi\_name** `string` Name associated with the FIGI (Financial Instrument Global Identifier). **first\_call\_date** `date` Date of the first call option in ISO-8601 format (YYYY-MM-DD). **first\_interest\_payment\_date** `date` Date of the first interest payment in ISO-8601 format (YYYY-MM-DD). **integral\_multiple** `number` Integral multiple for bond denominations. **interest\_accrual\_convention** `string` Day count convention for interest accrual: * `act/act (ICMA)`: Uses actual number of days in period and year. * `30/360`: Assumes 30 days per month, 360 days per year. * `act/360`: Uses actual days in period, 360 days per year. * `act/365`: Uses actual days in period, 365 days per year. * `act/act`: Uses actual number of days in period and year. * `act/act (ISDA)`: ISDA convention for actual/actual. * `act/act (AFB)`: AFB convention for actual/actual. **interest\_accrual\_date** `date` Date in ISO-8601 format (YYYY-MM-DD) from which interest accrues. **interest\_payment\_schedule** `array of object` 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: **properties** **interest\_type** `string` **Allowed values:** `accreting`, `regular` **payment\_date** `object` **properties** **day** `integer` **month** `integer` **year** `integer` **periodic\_schedule** `object` **properties** **period\_amount** `integer` **period\_type** `string` **Allowed values:** `month`, `week` **until** `date` **interest\_rate** `number or object` Interest rate or coupon of the bond, expressed as a percentage of the bond's face value. **properties** **benchmark** `string` **pct\_of\_benchmark** `number` **spread\_in\_bps** `number` **interest\_rate\_schedule** `array of object` 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: **properties** **determination\_period** `object` **properties** **period\_length** `integer` **period\_type** `string` **Allowed values:** `day`, `month`, `week` **from\_date** `date` Can be null if it applies from issue **interest\_rate** `number or object` **properties** **benchmark** `string` **Allowed values:** `auction`, `cpi`, `federal-funds-rate`, `libor`, `mmd`, `remarketing-agent`, `sifma`, `sofr`, `treasury` **pct\_of\_benchmark** `number` **spread\_in\_bps** `number` **interest\_type** `string` **Allowed values:** `compounding`, `fixed`, `variable`, `zero` **rate\_mode\_name** `string` The name of the rate mode. **Allowed values:** `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` **until\_date** `date` Can be null if it applies until maturity. Range is exclusive, i.e. means until but not including. **interest\_type** `string` Type of interest: * `fixed rate`: The bond pays a fixed interest rate throughout its life. * `zero rate / discount rate`: A bond that does not pay or accrue interest. * `variable rate`: The bond's interest rate can change over time, typically based on a reference rate or formula (e.g., SOFR, CPI). * `step rate`: The bond's interest rate increases ("steps up") at predetermined intervals. * `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. **is\_144a** `boolean` Whether the bond is Rule 144A compliant,can be sold to qualified US institutional buyers. **is\_callable** `boolean` Whether the bond is callable before maturity. **is\_covered** `boolean` Whether the bond has dual recourse to the issuer and a cover pool. **is\_green** `boolean` Whether the bond is a green bond. **is\_inflation\_linked** `boolean` Whether the bond is inflation-linked, its payments are linked to an inflation index. **is\_outstanding** `boolean` Whether the bond is currently outstanding, has not matured, been called, or otherwise redeemed. **is\_puttable** `boolean` Whether the bond is puttable before maturity. **is\_regs** `boolean` Whether the bond is Regulation S (RegS) compliant, can be sold to non-US investors. **issue\_date** `date` Date the bond was issued in ISO-8601 format (YYYY-MM-DD). **issue\_price** `number` Price at which the bond was issued (percentage of par), the price is expressed as a percentage of the bond's face value. **issued\_amount** `number` Total amount issued (face value) in the bond's currency. **issuer\_name** `string` Name of the issuing agency. **Allowed values:** `FEDERAL HOME LOAN MORTGAGE CORPORATION`, `FEDERAL NATIONAL MORTGAGE ASSOCIATION` **lei** `string` Legal Entity Identifier (LEI) of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **maturity\_date** `date` Date when the bond principal is due to be repaid in ISO-8601 format (YYYY-MM-DD). **maturity\_type** `string` Maturity type: * `fixed`: Principal repaid at maturity. * `amortized`: Principal repaid gradually before maturity. * `perpetual`: No maturity date; principal is never repaid. * `extendible`: Maturity date can be extended by issuer or holder. **minimum\_denomination** `number` Minimum denomination in which the bond can be purchased. **next\_call\_date** `date` Date of the next call option in ISO-8601 format (YYYY-MM-DD). **next\_call\_price** `number` Price at the nearest call date from today, if exists. **next\_coupon\_date** `date` Date of the next coupon payment in ISO-8601 format (YYYY-MM-DD). **odd\_first\_coupon** `string` 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. **odd\_last\_coupon** `string` 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. **optional\_redemption\_schedule** `array of object` 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 theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "until": "", "call_date": "", "call_price": { "type": "principal | accreted-value | amortized-value | make-whole", "spread_in_bps": "", // 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": "", // period_amount=1 and period_type="day" means continuously callable "includes_accrued_interest": "true | false" }, ... ] ``` **previous\_coupon\_date** `date` Date of the previous coupon payment in ISO-8601 format (YYYY-MM-DD). **rank** `string` Seniority or rank of the bond: * `senior unsecured`: Highest priority among unsecured debt. * `senior`: Standard senior debt. * `secured`: Backed by collateral. * `government / state`: Government or state-issued debt. * `subordinated`: Lower priority, paid after senior debt. * `supranational`: Issued by supranational entities. * `senior subordinated`: Senior within subordinated class. * `junior secured`: Junior secured debt. * `junior subordinated`: Junior within subordinated class. * `junior`: Junior debt. **registration\_type** `string` Registration type: * `bearer`: Ownership is determined by physical possession. * `registered`: Ownership is recorded and tracked by issuer or agent. * `misc.`: Miscellaneous registration types. * `bearer / registered`: Hybrid registration type. **standard\_day\_of\_settlement** `integer` Standard number of days between trade date and settlement date. **ticker** `string` Bond ticker symbol. **underwriters** `array of string` Financial institutions that facilitate the issuance and sale of bonds by purchasing them from the issuer and reselling them to investors. **validation\_errors** `array of object` A list of known data issues for the bond where validation rules have failed. ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "details": "null_coupon_frequency", "field_names": ["coupon_frequency"] }, ... ] ``` **properties** **details** `string` **field\_names** `array of string` # Government & corporate bonds Source: https://docs.terrapinfinance.com/data_dictionary_govies_corps Field reference for the government & corporate bond Reference Data response This is the complete field dictionary for the data returned by the [Government & corporate Reference Data](/api-endpoints/government-and-corporate-reference-data) endpoint. > [!WARNING] > > This endpoint is deprecated. See [Securities Reference Data](/api-endpoints/securities-reference) instead. The endpoint will be maintained and available until February 1, 2027. Each call returns an object of the shape `{ "data": [ ... ], "total": }`, where every entry in `data` describes a single bond using the fields below. **isin** `string` International Securities Identification Number (ISIN), unique 12-character code for the security. **asset\_class** `string` Security type: * `structured product`: Structured debt instrument. * `medium-term note`: Bond with medium-term maturity. * `money market`: Short-term debt instrument. * `bond`: Standard debt security. * `asset-backed security`: Securitized debt backed by assets. * `mortgage-backed security`: Securitized debt backed by mortgages. * `convertible note`: Can be converted to equity. **cfi\_code** `string` Classification of Financial Instruments (CFI) code: The CFI code is a six-letter code that classifies a financial instrument by its type and key features (e.g., fixed/floating rate, registered/bearer, secured/unsecured). **composite\_issue\_rating** `string` Composite rating of the issue. **Allowed values:** `A`, `A+`, `A-`, `AA`, `AA+`, `AA-`, `AAA`, `B`, `B+`, `B-`, `BB`, `BB+`, `BB-`, `BBB`, `BBB+`, `BBB-`, `C`, `CC`, `CCC`, `CCC+`, `CCC-`, `D` **composite\_issuer\_rating** `string` Composite rating of the issuer. **Allowed values:** `A`, `A+`, `A-`, `AA`, `AA+`, `AA-`, `AAA`, `B`, `B+`, `B-`, `BB`, `BB+`, `BB-`, `BBB`, `BBB+`, `BBB-`, `C`, `CC`, `CCC`, `CCC+`, `CCC-`, `D` **country** `string` Country of issuing entity: **Examples:** * `Germany`: Country of issue is Germany. * `United Kingdom`: Country of issue is United Kingdom. * `United States of America`: Country of issue is United States of America. **country\_code** `string` Country code of issuing entity (ISO 3166-1 alpha-2 country codes): **coupon** `number` Interest rate or coupon of the bond. **coupon\_frequency** `integer` Number of coupon payments per year. **currency** `string` Bond currency, 3-letter ISO 4217 code. **figi** `string` Financial Instrument Global Identifier (FIGI), a unique 12-character alphanumeric code for financial instruments. **first\_coupon\_date** `date` Date in ISO-8601 format (YYYY-MM-DD) of the first coupon payment. **handle** `string` Bond handles - predefined categories for filtering bonds by type and characteristics. **Available options by country:** **German Bonds (DE):** * `de_bund`: German long-term government bonds (Bundesanleihen). * `de_bobl`: German medium-term government bonds (Bundesobligationen). * `de_schatz`: German short-term government bonds (Bundesschatzanweisungen). * `de_bubill`: German short-term government bills (Bundesschatzanweisungen). * `de_ilb`: German inflation-linked government bonds. * `de_green`: German green government bonds. **UK Bonds (GB):** * `uk_gilt`: UK government bonds (Gilts). * `uk_green_gilt`: UK green government bonds. * `uk_il_gilt`: UK inflation-linked government bonds. * `uk_bill`: UK short-term government bills. **French Bonds (FR):** * `fr_oat`: French long-term government bonds (Obligations Assimilables du Trésor). * `fr_oatei`: French inflation-linked government bonds (OATi). * `fr_oati`: French inflation-linked government bonds (alternative naming). * `fr_btf`: French short-term government bills (Bons du Trésor à taux fixe). * `fr_bond`: French government bonds (general category). **Dutch Bonds (NL):** * `nl_dsl`: Dutch government loans (Dutch State Loans). * `nl_dtc`: Dutch short-term government securities (Dutch Treasury Certificates). **Canadian Bonds (CA):** * `ca_bond`: Canadian government bonds. * `ca_bill`: Canadian short-term government bills. * `ca_cmb`: Canadian mortgage-backed securities (Canada Mortgage Bonds). * `ca_ulbond`: Canadian ultra-long government bonds (>30 years). * `ca_rrbond`: Canadian inflation-linked bonds (Real Return Bonds). * `ca_green`: Canadian green government bonds. **Swiss Bonds (CH):** * `ch_bond`: Swiss government bonds. **Czech Bonds (CZ):** * `cz_bond`: Czech government bonds. * `cz_bill`: Czech short-term government bills. * `cz_fr_bond`: Czech floating-rate government bonds. * `cz_zr_bond`: Czech zero-coupon government bonds. **Spanish Bonds (ES):** * `es_bill`: Spanish short-term government bills. * `es_bond`: Spanish government bonds. * `es_ilb_bond`: Spanish inflation-linked government bonds. * `es_zr_bond`: Spanish zero-coupon government bonds. * `es_vr_bond`: Spanish variable-rate government bonds. **Chinese Bonds (CN):** * `cn_bill`: Chinese government short-term bills. * `cn_bond`: Chinese government bonds. * `cn_bond_vr`: Chinese government variable-rate bonds. * `cn_bond_zr`: Chinese government zero-coupon bonds. **US Treasury Bonds (US):** * `us_tips`: US Treasury Inflation-Protected Securities (TIPS). * `us_frn`: US Treasury Floating Rate Notes (FRN). * `us_bill`: US Treasury Bills (short-term securities). * `us_cmb`: US Treasury Cash Management Bills (CMB). * `us_note`: US Treasury Notes (medium-term securities). * `us_bond`: US Treasury Bonds (long-term securities). **Thai Bonds (TH):** * `th_bill`: Thai short-term government bills. * `th_bond`: Thai government bonds. * `th_ilb_bond`: Thai inflation-linked government bonds. * `th_green_bond`: Thai green government bonds. * `th_zr_bond`: Thai zero-coupon government bonds. * `th_vr_bond`: Thai variable-rate government bonds. **Japanese Bonds (JP):** * `jp_bill`: Japanese short-term government bills (Treasury discount bills). * `jp_bond`: Japanese government bonds. * `jp_zr_bond`: Japanese zero-coupon government bonds. * `jp_vr_bond`: Japanese variable-rate government bonds. * `jp_ilb`: Japanese inflation-linked government bonds. * `jp_transition`: Japanese climate transition government bonds. **Italian Bonds (IT):** * `it_bill`: Italian short-term government bills (BOT). * `it_bond`: Italian government bonds (BTP). * `it_green`: Italian green government bonds (BTP Green). * `it_ilb`: Italian inflation-linked government bonds (BTP Italia). * `it_ilb_euro`: Italian euro inflation-linked government bonds (BTPi). * `it_zr_bond`: Italian zero-coupon government bonds. * `it_vr_bond`: Italian variable-rate government bonds (CCTeu). **Australian Bonds (AU):** * `au_bond`: Australian Treasury Bonds. * `au_green`: Australian Green Treasury Bonds. * `au_ilb`: Australian Treasury Indexed Bonds. * `au_bill`: Australian Treasury Notes. **industry\_group** `string` GICS industry group of the issuer. Follows `sector`: `public` for issuers GICS does not classify, `null` for a corporate issuer we have not classified yet. **integral\_multiple** `number` Integral multiple for bond denominations. **interest\_accrual\_convention** `string` Day count convention for interest accrual: * `act/act (ICMA)`: Uses actual number of days in period and year. * `30/360`: Assumes 30 days per month, 360 days per year. * `act/360`: Uses actual days in period, 360 days per year. * `act/365`: Uses actual days in period, 365 days per year. * `act/act`: Uses actual number of days in period and year. * `act/act (ISDA)`: ISDA convention for actual/actual. * `act/act (AFB)`: AFB convention for actual/actual. **interest\_accrual\_date** `date` Date in ISO-8601 format (YYYY-MM-DD) from which interest accrues. **interest\_type** `string` Type of interest: * `zero rate / discount rate`: A bond that does not pay or accrue interest. * `fixed rate`: Pays a fixed coupon throughout the bond's life. * `variable rate`: Coupon varies with a reference rate (e.g., SOFR, SONIA, Inflation indexes, etc.). * `step rate`: The bond's interest rate increases ("steps up") at predetermined intervals. * `misc.`: Miscellaneous interest types. * `payment in kind`: Interest paid in additional securities. * `dividend payments`: Interest paid as dividends. * `cash payment`: Interest paid in cash. * `at maturity`: Interest paid at maturity. **is\_144a** `boolean` Whether the bond is Rule 144A compliant,can be sold to qualified US institutional buyers. **is\_callable** `boolean` Whether the bond is callable before maturity. **is\_covered** `boolean` Whether the bond has dual recourse to the issuer and a cover pool. **is\_green** `boolean` Whether the bond is a green bond. **is\_inflation\_linked** `boolean` Whether the bond is inflation-linked, its payments are linked to an inflation index. **is\_outstanding** `boolean` Whether the bond is currently outstanding, has not matured, been called, or otherwise redeemed. **is\_puttable** `boolean` Whether the bond is puttable before maturity. **is\_regs** `boolean` Whether the bond is Regulation S (RegS) compliant, can be sold to non-US investors. **issue\_date** `date` Date the bond was issued in ISO-8601 format (YYYY-MM-DD). **issue\_rating\_group** `string` Issue rating group, based on TP composite long-term ratings: * `investment_grade`: High credit quality (BBB- and above) * `high_yield`: Lower credit quality (BB+ and below) **issued\_amount** `number` Total amount issued (face value) in the bond's currency. **issuer\_name** `string` Name of the issuing entity. **issuer\_rating\_group** `string` Issuer rating group, based on TP composite long-term ratings: * `investment_grade`: High credit quality (BBB- and above) * `high_yield`: Lower credit quality (BB+ and below) **issuer\_type** `string` **Allowed values:** `corporate`, `government`, `government_linked`, `international_organization`, `municipal`, `state` **lei** `string` Legal Entity Identifier (LEI) of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **lei\_direct\_parent** `string` LEI of the direct parent of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **lei\_ultimate\_parent** `string` LEI of the ultimate parent of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **maturity\_date** `date` Date when the bond principal is due to be repaid in ISO-8601 format (YYYY-MM-DD). **maturity\_type** `string` Maturity type: * `fixed`: Principal repaid at maturity. * `amortized`: Principal repaid gradually before maturity. * `perpetual`: No maturity date; principal is never repaid. * `extendible`: Maturity date can be extended by issuer or holder. **minimum\_denomination** `number` Minimum denomination in which the bond can be purchased. **name** `string` Full name of the bond. **rank** `string` Seniority or rank of the bond: * `senior unsecured`: Highest priority among unsecured debt. * `senior`: Standard senior debt. * `secured`: Backed by collateral. * `government / state`: Government or state-issued debt. * `subordinated`: Lower priority, paid after senior debt. * `supranational`: Issued by supranational entities. * `senior subordinated`: Senior within subordinated class. * `junior secured`: Junior secured debt. * `junior subordinated`: Junior within subordinated class. * `junior`: Junior debt. **registration\_type** `string` Registration type: * `bearer`: Ownership is determined by physical possession. * `registered`: Ownership is recorded and tracked by issuer or agent. * `misc.`: Miscellaneous registration types. * `bearer / registered`: Hybrid registration type. **sector** `string` GICS sector of the issuer. `public` is returned for issuers that GICS does not classify — governments, states, municipalities and supranationals (see `issuer_type`). A corporate issuer we have not classified yet returns `null`. **Allowed values:** `communication services`, `consumer discretionary`, `consumer staples`, `education`, `energy`, `financials`, `health care`, `industrials`, `information technology`, `materials`, `public`, `real estate`, `utilities` **ticker** `string` Bond ticker symbol. # US municipal securities Source: https://docs.terrapinfinance.com/data_dictionary_munis Field reference for the US municipal bond Reference Data response This is the complete field dictionary for the data returned by the [US municipal bond Reference Data](/api-endpoints/us-municipal-bond-reference) endpoint. Each call returns an object of the shape `{ "data": [ ... ], "total": }`, where every entry in `data` describes a single bond using the fields below. **isin** `string` International Securities Identification Number (ISIN), unique 12-character code for the security. **advisors** `array of string` Financial advisors who provide advice on bond issuance and investment. **award\_date** `date` Date the bond was awarded to the underwriter in ISO-8601 format (YYYY-MM-DD). **award\_time** `string` Time the bond was awarded to the underwriter, in US Eastern Time, in ISO-8601 format (HH:MM:SS). **bond\_counsel** `array of string` 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. **capital\_purpose** `string` Indicates the capital purpose depending on whether the bond proceeds are used for new projects, to pay off prior bonds, or both. **Allowed values:** `mixed`, `new money`, `refunding` **closing\_date** `date` Date the bond transaction closed in ISO-8601 format (YYYY-MM-DD). **composite\_rating** `string` Composite rating of the bond. **counties** `array of string` Counties of issuing entity, if applicable. **country** `string` Country of issuing entity: * `United States of America`: Country of issue is United States of America. **country\_code** `string` ISO 3166-1 alpha-2 country code (2-letter code) of the country of issue. **coupon\_frequency** `integer` Number of coupon payments per year. **coupon\_payment\_day** `integer` Day of the month when coupon payments are made. **coupon\_payment\_months** `array of integer` Months when coupon payments are made (1-12). **Examples:** * `[2, 8]`: Coupon payments are made on February and August. **credit\_enhancement\_type** `array of string` Types of credit enhancement that provide additional security for the bond. **Allowed values:** `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` **currency** `string` Currency in which the bond is denominated (3-letter ISO 4217 code). **dated\_date** `date` Date from which interest starts accruing in ISO-8601 format (YYYY-MM-DD). **disclosure\_counsel** `array of string` Legal representatives retained by the issuer to provide advice on issuer disclosure obligations. **escrowed\_amount** `number` 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. **event\_call** `array of object` 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`. **properties** **amount** `number` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **redemption\_price** `object` The call price may also appear as redemption price, and appears as percentage of 100 **properties** **premium\_in\_pct** `number` **type** `string` **Allowed values:** `accreted-value`, `par` **type** `string` **Allowed values:** `mandatory_full`, `mandatory_partial`, `optional_full`, `optional_partial` **event\_consolidation** `array of object` 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`. **properties** **amount** `number` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **description** `string` **parent\_isin** `string` **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_creation** `object` 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`. **properties** **amount** `number` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **description** `string` **exchange\_parents** `array of object` Present when the bond was created by an exchange offer that merged one or more securities into it; lists every constituent security. **properties** **isin** `string` **amount** `number` **description** `string` **history** `array of object` **properties** **isin** `string` **amount** `number` **date** `date` **description** `string` **parent\_isin** `string` **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_defeasance** `array of object` 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`. **properties** **amount** `number` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_exchange\_offer** `array of object` 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`. **properties** **child\_amount** `number` **child\_description** `string` **child\_isin** `string` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_identifier\_relabel** `array of object` 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`. **properties** **child\_amount** `number` **child\_description** `string` **child\_isin** `string` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_split** `array of object` 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`. **properties** **child\_amount** `number` **child\_description** `string` **child\_isin** `string` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_split\_and\_suspend** `array of object` 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`. **properties** **child\_1\_amount** `number` **child\_1\_description** `string` **child\_1\_isin** `string` **child\_2\_amount** `number` **child\_2\_description** `string` **child\_2\_isin** `string` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **event\_tender\_offer\_invitation** `array of object` 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`. **properties** **acceptance\_date** `date` **contingent\_on\_new\_issue** `boolean` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **expiration\_date** `date` **maximum\_amount\_accepted** `number` **outstanding\_amount** `number` **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **purchase\_price** `object` 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. **properties** **benchmark** `string` **Allowed values:** `blended-treasury-yield`, `mmd`, `treasury`, `usd-isdaswap` **spread\_in\_bps** `number` **type** `string` 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. **Allowed values:** `fixed-spread` **settlement\_date** `date` **event\_tender\_offer\_result** `array of object` 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`. **properties** **amount\_accepted** `number` **amount\_rejected** `number` **amount\_tendered** `number` **date** `date` Date the event occurred in ISO-8601 format (YYYY-MM-DD). **invitation\_date** `date` **pro\_rata\_acceptance\_ratio** `number` **publish\_date** `date` Date the event was published in ISO-8601 format (YYYY-MM-DD). **purchase\_price** `object` 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. **properties** **benchmark** `string` **Allowed values:** `blended-treasury-yield`, `mmd`, `treasury`, `usd-isdaswap` **spread\_in\_bps** `number` **type** `string` 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. **Allowed values:** `fixed-spread` **settlement\_date** `date` **stage** `string` **Allowed values:** `final`, `preliminary` **extraordinary\_optional\_redemption** `object` Extraordinary optional redemption terms and conditions. **properties** **circumstances\_for\_extraordinary\_redemption** `string` **is\_subject\_to\_extraordinary\_redemption** `boolean` **figi** `string` Financial Instrument Global Identifier (FIGI), a unique 12-character alphanumeric code for financial instruments. **figi\_name** `string` Name associated with the FIGI (Financial Instrument Global Identifier). **first\_call\_date** `date` Date of the first call option in ISO-8601 format (YYYY-MM-DD). **first\_execution\_date** `date` Date of the first execution/trade for the bond in ISO-8601 format (YYYY-MM-DD). **first\_execution\_time** `string` Time of the first execution/trade for the bond, in US Eastern Time, in ISO-8601 format (HH:MM:SS). **first\_interest\_payment\_date** `date` Date of the first interest payment in ISO-8601 format (YYYY-MM-DD). **first\_trade\_date** `date` Date of the first trade in the secondary market in ISO-8601 format (YYYY-MM-DD). **gas\_prepay\_guarantor** `string` 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. **guarantee** `string` 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. **Allowed values:** `secured`, `unsecured` **has\_mandatory\_redemption** `boolean` Whether the bond has mandatory redemption features. **has\_official\_statement** `boolean` 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. **instrument\_form** `string` Legal delivery vehicle of the security (for example bond, certificate of participation, or note). **Allowed values:** `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` **insurers** `array of string` Financial institutions that issue an insurance policy for bonds, guaranteeing timely payment of principal and interest. **integral\_multiple** `number` Integral multiple for bond denominations. **interest\_accrual\_convention** `string` 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. **interest\_accrual\_date** `date` Date in ISO-8601 format (YYYY-MM-DD) from which interest accrues. **interest\_maximum\_rate** `number` 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. **interest\_minimum\_rate** `number` 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. **interest\_payment\_schedule** `array of object` 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: **properties** **interest\_type** `string` **Allowed values:** `accreting`, `regular` **payment\_date** `object` **properties** **day** `integer` **month** `integer` **year** `integer` **periodic\_schedule** `object` **properties** **period\_amount** `integer` **period\_type** `string` **Allowed values:** `month`, `week` **until** `date` **interest\_rate** `number or object` Interest rate or coupon of the bond, expressed as a percentage of the bond's face value. **properties** **benchmark** `string` **pct\_of\_benchmark** `number` **spread\_in\_bps** `number` **interest\_rate\_schedule** `array of object` 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: **properties** **determination\_period** `object` **properties** **period\_length** `integer` **period\_type** `string` **Allowed values:** `day`, `month`, `week` **from\_date** `date` Can be null if it applies from issue **interest\_rate** `number or object` **properties** **benchmark** `string` **Allowed values:** `auction`, `cpi`, `federal-funds-rate`, `libor`, `mmd`, `remarketing-agent`, `sifma`, `sofr`, `treasury` **pct\_of\_benchmark** `number` **spread\_in\_bps** `number` **interest\_type** `string` **Allowed values:** `compounding`, `fixed`, `variable`, `zero` **rate\_mode\_name** `string` The name of the rate mode. **Allowed values:** `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` **until\_date** `date` Can be null if it applies until maturity. Range is exclusive, i.e. means until but not including. **interest\_type** `string` 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. **is\_144a** `boolean` Whether the bond is Rule 144A compliant. **is\_amt** `boolean` Whether the bond is an Alternative Minimum Tax (AMT) bond. **is\_bab** `boolean` Whether the bond is a Build America Bond. **is\_bank\_qualified** `boolean` Whether the bond is bank qualified. **is\_callable** `boolean` Whether the bond is callable before maturity. **is\_credit\_enhanced** `boolean` Indicates whether the bond is backed by any form of credit enhancement. **is\_defeased** `boolean` 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. **is\_federally\_taxable** `boolean` Whether the bond is federally taxable. **is\_green** `boolean` Whether the bond is a green bond. **is\_insured** `boolean` Whether the bond is insured by a bond insurance company. **is\_outstanding** `boolean` Whether the bond is currently outstanding. **is\_pac** `boolean` Whether the bond is a Planned Amortization Class (PAC) bond. **is\_regs** `boolean` Whether the bond is Regulation S (RegS) compliant. **is\_social** `boolean` Whether the bond is a social bond. **is\_state\_enhanced** `boolean` 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). **is\_state\_taxable** `boolean` Whether the bond is state taxable. **is\_sustainable** `boolean` Whether the bond is a sustainable bond. **issue\_date** `date` Date the bond was issued in ISO-8601 format (YYYY-MM-DD). **issue\_price** `number` Price at which the bond was issued (percentage of par), the price is expressed as a percentage of the bond's face value. **issue\_yield** `number` Yield at issuance, the yield is expressed as a percentage of the bond's face value. **issued\_amount** `number` Total amount issued (face value) in the bond's currency. **issuer\_canonical\_id** `integer` The internal unique identifier of the issuer. **issuer\_name** `string` Name of the issuing entity (municipality, district, etc.). **liquidity\_facility** `string` Liquidity facility provider for the bond: * `LOC`: Letter of Credit * `SBPA`: Standby Bond Purchase Agreement * `Self`: Self-liquidity **mandatory\_redemption\_schedule** `array of object` 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 theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "date": "", "price": { "type": "principal | accreted-value", "spread_in_bps": "" }, "amount": "" }, ... ] ``` **mandatory\_redemption\_type** `string` How bonds of this maturity are selected for mandatory redemption: by\_lot, pro\_rata, or null when the official statement does not say. **Allowed values:** `by_lot`, `pro_rata` **maturity\_amount** `number` Amount due at maturity: The principal amount that will be repaid when the bond matures. **maturity\_date** `date` Date when the bond principal is due to be repaid in ISO-8601 format (YYYY-MM-DD). **minimum\_denomination** `number` Minimum denomination in which the bond can be purchased. **next\_call\_date** `date` Date of the next call option in ISO-8601 format (YYYY-MM-DD). **next\_call\_price** `number` Price at the nearest call date from today, if exists. **next\_coupon\_date** `date` Date of the next coupon payment in ISO-8601 format (YYYY-MM-DD). **next\_sink\_amount** `number` Indicates the nearest sinking fund amount, if exists. **next\_sink\_date** `date` Date of the next sinking fund payment in ISO-8601 format (YYYY-MM-DD). **next\_sink\_price** `number` Indicates the nearest sinking fund price, if exists. **obligation\_types** `array of string` Ordered list of legal pledges supporting repayment, from the primary source to any secondary or backstop pledges. **Allowed values:** `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` **obligor** `string` The obligated entity, when it is not the same as the issuer **obligor\_canonical\_id** `integer` The internal unique identifier of the obligor. **odd\_first\_coupon** `string` 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. **odd\_last\_coupon** `string` 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. **optional\_redemption\_max\_notice** `integer` Maximum notice period for optional redemptions (in days). **optional\_redemption\_min\_notice** `integer` Minimum notice period for optional redemptions (in days). **optional\_redemption\_schedule** `array of object` 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 theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "until": "", "call_date": "", "call_price": { "type": "principal | accreted-value | amortized-value | make-whole", "spread_in_bps": "", // 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": "", // period_amount=1 and period_type="day" means continuously callable "includes_accrued_interest": "true | false" }, ... ] ``` **outstanding\_amount** `number` Current outstanding amount of the bond. **parent\_isin** `string` 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. **previous\_coupon\_date** `date` Date of the previous coupon payment in ISO-8601 format (YYYY-MM-DD). **provider\_expiration\_date** `date` Date when the provider's commitment expires in ISO-8601 format (YYYY-MM-DD). **provider\_identity** `string` Name of the provider, typically for liquidity facilities or credit enhancements. **rating\_group** `string` 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. **remarketing\_agents** `array of string` 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. **reserve\_fund** `boolean` Indicates whether the bond is backed by a reserve fund (debt service reserve fund or capital reserve fund). **retired\_amount\_attribution** `object` 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`. **properties** **call\_mandatory** `number` Redeemed by mandatory calls, including sinking fund installments. **call\_optional** `number` Redeemed by optional calls. **consolidated** `number` Consolidated into the bond from other identifiers. Negative, as it adds to `outstanding_amount`. **exchange\_offer** `number` Exchanged for new identifiers in an exchange offer. **matured** `number` Repaid at maturity. **split** `number` Moved onto new identifiers by splits. **split\_and\_suspend** `number` Moved onto new identifiers when the bond was split and suspended. **tender\_purchased** `number` Purchased by the issuer in tender offers. **unknown** `number` 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. **sale\_type** `string` Indicates the method used by the issuer to sell the municipal bond to investors. **Allowed values:** `competitive_sale`, `negotiated_sale`, `private_placement` **sector** `string` 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`. **sector\_level1** `string` Broad obligor sector. Field currently in development. **Allowed values:** `development_and_civic`, `education`, `general_government`, `healthcare_and_senior_living`, `housing`, `securitization`, `transportation`, `utilities_and_environmental` **sector\_level2** `string` Granular obligor sector reflecting the true obligor's operational business model. Field currently in development. **Allowed values:** `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` **seniority** `string` 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. **Allowed values:** `first_lien`, `junior`, `junior_subordinate`, `second_lien`, `senior`, `senior_subordinate`, `subordinate` **series** `string` Bond series name or description. **series\_issued\_amount** `number` Amount issued in this specific series. **source\_of\_repayment** `string` 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. **state** `string` US state or territory where the bond is issued (ANSI 2-letter code). **tender\_agents** `array of string` Financial institutions that facilitate the tender of bonds to the issuer, typically in variable rate demand obligations or other bonds with put features. **tender\_schedule** `array of object` The schedule of tender for a bond, including the tender date, tender type, tender period, tender price, and circumstance for tender **properties** **circumstance\_for\_tender** `string` **Allowed values:** `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` **periodic\_schedule** `object` **properties** **period\_amount** `integer` **period\_type** `string` **Allowed values:** `day`, `month`, `week`, `year` **until** `date` **tender\_date** `date` **tender\_price** `object` **properties** **spread\_in\_bps** `number` **type** `string` **Allowed values:** `accreted-value`, `principal` **tender\_type** `string` **Allowed values:** `mandatory`, `optional` **ticker** `string` Bond ticker symbol. **trustees** `array of string` 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. **underwriters** `array of string` Financial institutions that facilitate the issuance and sale of bonds by purchasing them from the issuer and reselling them to investors. **upcoming\_corporate\_action** `object` The next anticipated corporate action event for the bond. **properties** **date** `date` **type** `string` **Allowed values:** `bond_call`, `defeasance`, `redemption`, `refunding` **use\_categories** `array of string` 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. **Allowed values:** `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` **use\_sectors** `array of string` 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. **Allowed values:** `development`, `education`, `government`, `healthcare`, `housing`, `miscellaneous`, `recreation`, `securitized`, `transportation`, `utility` **uses\_of\_proceeds** `array of string` 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. **Allowed values:** `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` **validation\_errors** `array of object` A list of known data issues for the bond where validation rules have failed. ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "details": "null_coupon_frequency", "field_names": ["coupon_frequency"] }, ... ] ``` **properties** **details** `string` **field\_names** `array of string` **variable\_rate\_adjustment\_schedule** `object` 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. **properties** **period\_length** `integer` **period\_type** `string` **Allowed values:** `day`, `month`, `week` **variable\_rate\_mode** `string` Variable rate mode for the bond, if applicable. **Allowed values:** `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` # Fixed income securities Source: https://docs.terrapinfinance.com/data_dictionary_securities Field reference for the Securities Reference Data response This is the complete field dictionary for the data returned by the [Securities Reference Data](/api-endpoints/securities-reference) endpoint. > [!NOTE] > > These endpoints replace the deprecated [Government & corporate](/api-endpoints/government-and-corporate-reference-data) and [US agency](/api-endpoints/us-agency-bond-reference) endpoints. Each call returns an object of the shape `{ "data": [ ... ], "total": }`, where every entry in `data` describes a single bond using the fields below. **isin** `string` International Securities Identification Number (ISIN), unique 12-character code for the security. **asset\_class** `string` Asset class of the security, which is also what determines the fields that apply to it. Not to be confused with `security_type`, the instrument type. * `corporate`: Corporate bond. * `gov`: Government bond. * `certificates_of_deposit`: Certificate of deposit. * `us_agency`: US agency bond. **business\_day\_convention** `string` How a coupon payment date that falls on a non-business day is moved, and whether the interest period (and so the coupon amount) moves with it: * `following_unadjusted`: Paid on the next business day; the coupon amount is unchanged. * `following_adjusted`: Paid on the next business day; the interest period runs to the actual payment date. * `modified_following_unadjusted`: Paid on the next business day unless that falls in the next calendar month, then the preceding business day; the coupon amount is unchanged. * `modified_following_adjusted`: As above, with the interest period adjusted to the actual payment date. * `nearest_adjusted`: Paid on the nearest business day (ties go to the preceding day), with the interest period adjusted. `null` when the convention is not established for the bond. Currently populated for domestic-currency, non-floating government bonds. **cfi\_code** `string` Classification of Financial Instruments (CFI) code: The CFI code is a six-letter code that classifies a financial instrument by its type and key features (e.g., fixed/floating rate, registered/bearer, secured/unsecured). **country** `string` Country of issuing entity: **Examples:** * `Germany`: Country of issue is Germany. * `United Kingdom`: Country of issue is United Kingdom. * `United States of America`: Country of issue is United States of America. **country\_code** `string` Country code of issuing entity (ISO 3166-1 alpha-2 country codes): **coupon\_frequency** `integer` Number of coupon payments per year. **coupon\_payment\_day** `integer` Day of the month when coupon payments are made. **coupon\_payment\_months** `array of integer` Months when coupon payments are made (1-12). **Examples:** * `[2, 8]`: Coupon payments are made on February and August. **currency** `string` Bond currency, 3-letter ISO 4217 code. **figi** `string` Financial Instrument Global Identifier (FIGI), a unique 12-character alphanumeric code for financial instruments. **figi\_name** `string` Name associated with the FIGI (Financial Instrument Global Identifier). **first\_call\_date** `date` Date of the first call option in ISO-8601 format (YYYY-MM-DD). **first\_interest\_payment\_date** `date` Date of the first interest payment in ISO-8601 format (YYYY-MM-DD). `null` when the bond pays no interest, such as a zero rate / discount bond (see `interest_type`), or when we have not established a payment schedule. **first\_trade\_date** `date` Date on which the bond transaction was executed between buyer and seller, as stated in the offering document (YYYY-MM-DD). **guarantee** `string` 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. **Allowed values:** `secured`, `unsecured` **industry\_group** `string` GICS industry group of the issuer. Follows `sector`: `public` for issuers GICS does not classify, `null` for a corporate issuer we have not classified yet. **integral\_multiple** `number` Integral multiple for bond denominations. **interest\_accrual\_convention** `string` Day count convention for interest accrual: * `act/act (ICMA)`: Uses actual number of days in period and year. * `30/360`: Assumes 30 days per month, 360 days per year. * `act/360`: Uses actual days in period, 360 days per year. * `act/365`: Uses actual days in period, 365 days per year. * `act/act`: Uses actual number of days in period and year. * `act/act (ISDA)`: ISDA convention for actual/actual. * `act/act (AFB)`: AFB convention for actual/actual. **interest\_accrual\_date** `date` Date in ISO-8601 format (YYYY-MM-DD) from which interest accrues. **interest\_payment\_schedule** `array of object` 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: **properties** **interest\_type** `string` **Allowed values:** `accreting`, `regular` **payment\_date** `object` **properties** **day** `integer` **month** `integer` **year** `integer` **periodic\_schedule** `object` **properties** **period\_amount** `integer` **period\_type** `string` **Allowed values:** `month`, `week` **until** `date` **interest\_rate** `number or object` Interest rate or coupon of the bond, expressed as a percentage of the bond's face value. **properties** **benchmark** `string` **pct\_of\_benchmark** `number` **spread\_in\_bps** `number` **interest\_rate\_schedule** `array of object` 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: **properties** **determination\_period** `object` **properties** **period\_length** `integer` **period\_type** `string` **Allowed values:** `day`, `month`, `week`, `year` **from\_date** `date` Can be null if it applies from issue **interest\_rate** `number or object` **properties** **benchmark** `string` **Allowed values:** `aonia`, `auction`, `bbsw`, `bkbm`, `cd`, `cdor`, `cibor`, `cita`, `cms`, `cmt`, `commercial-paper`, `compounded-sofr`, `cpi`, `eleventh-district-cost-of-funds`, `estr`, `euribor`, `federal-funds-open`, `federal-funds-rate`, `hibor`, `libor`, `mid-swap`, `mmd`, `nibor`, `prime`, `remarketing-agent`, `saron`, `sifma`, `sofr`, `sonia`, `sora`, `stibor`, `tona`, `treasury` **pct\_of\_benchmark** `number` **spread\_in\_bps** `number` **interest\_type** `string` **Allowed values:** `fixed`, `reset_rate`, `variable`, `zero` **rate\_mode\_name** `string` **until\_date** `date` Can be null if it applies until maturity. Range is exclusive, i.e. means until but not including. **interest\_type** `string` Type of interest: * `fixed rate`: The bond pays a fixed interest rate throughout its life. * `zero rate / discount rate`: A bond that does not pay or accrue interest. * `variable rate`: The bond's interest rate can change over time, typically based on a reference rate or formula (e.g., SOFR, CPI). * `step rate`: The bond's interest rate increases ("steps up") at predetermined intervals. * `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. * `reset rate`: The interest rate resets periodically to a new predetermined level, as distinct from a rate that floats continuously with a benchmark. * `misc.`: Miscellaneous interest types. * `payment in kind`: Interest paid in additional securities. **is\_144a** `boolean` Whether the bond is Rule 144A compliant,can be sold to qualified US institutional buyers. **is\_callable** `boolean` Whether the bond is callable before maturity. **is\_complete\_bond** `boolean` Whether the reference data for this bond is considered complete. **is\_covered** `boolean` Whether the bond has dual recourse to the issuer and a cover pool. **is\_green** `boolean` Whether the bond is a green bond. **is\_outstanding** `boolean` Whether the bond is currently outstanding, has not matured, been called, or otherwise redeemed. **is\_puttable** `boolean` Whether the bond is puttable before maturity. **is\_regs** `boolean` Whether the bond is Regulation S (RegS) compliant, can be sold to non-US investors. **issuance\_settlement\_days** `integer` Primary issuance lag: number of days between the primary trade date and the issue settlement date. **issue\_date** `date` Date the bond was issued in ISO-8601 format (YYYY-MM-DD). **issue\_price** `number` Price at which the bond was issued (percentage of par), the price is expressed as a percentage of the bond's face value. **issue\_yield** `number` Yield at issuance, the yield is expressed as a percentage of the bond's face value. **issued\_amount** `number` Total amount issued (face value) in the bond's currency. **issuer\_name** `string` Name of the issuing entity. **issuer\_type** `string` **Allowed values:** `corporate`, `government`, `government_linked`, `international_organization`, `municipal`, `state` **lei** `string` Legal Entity Identifier (LEI) of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **lei\_direct\_parent** `string` LEI of the direct parent of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **lei\_ultimate\_parent** `string` LEI of the ultimate parent of the issuer: A 20-character, alpha-numeric code based on the ISO 17442 standard used to uniquely identify legal entities in financial transactions. Most LEIs follow this structure, but there are exceptions that use local national standards. **maturity\_date** `date` Date when the bond principal is due to be repaid in ISO-8601 format (YYYY-MM-DD). `null` when the bond has no maturity date, such as a perpetual (see `maturity_type`), or when we have not established one. **maturity\_type** `string` Maturity type: * `fixed`: Principal repaid at maturity. * `amortized`: Principal repaid gradually before maturity. * `perpetual`: No maturity date; principal is never repaid. * `extendible`: Maturity date can be extended by issuer or holder. **minimum\_denomination** `number` Minimum denomination in which the bond can be purchased. **name** `string` Full name of the bond. **next\_call\_date** `date` Date of the next call option in ISO-8601 format (YYYY-MM-DD). **next\_call\_price** `number` Price at the nearest call date from today, if exists. **next\_coupon\_date** `date` Date of the next coupon payment in ISO-8601 format (YYYY-MM-DD). **odd\_first\_coupon** `string` 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. **odd\_last\_coupon** `string` 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. **optional\_redemption\_schedule** `array of object` 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 theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "until": "", "call_date": "", "call_price": { "type": "principal | accreted-value | amortized-value | make-whole", "spread_in_bps": "", // 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": "", // period_amount=1 and period_type="day" means continuously callable "includes_accrued_interest": "true | false" }, ... ] ``` **previous\_coupon\_date** `date` Date of the previous coupon payment in ISO-8601 format (YYYY-MM-DD). **registration\_type** `string` Registration type: * `bearer`: Ownership is determined by physical possession. * `registered`: Ownership is recorded and tracked by issuer or agent. * `misc.`: Miscellaneous registration types. * `bearer / registered`: Hybrid registration type. **sector** `string` GICS sector of the issuer. `public` is returned for issuers that GICS does not classify — governments, states, municipalities and supranationals (see `issuer_type`). A corporate issuer we have not classified yet returns `null`. **Allowed values:** `communication services`, `consumer discretionary`, `consumer staples`, `education`, `energy`, `financials`, `health care`, `industrials`, `information technology`, `materials`, `public`, `real estate`, `utilities` **security\_type** `string` Type of debt instrument, e.g. bond, note, or commercial paper. **Allowed values:** `asset_backed_security`, `bond`, `bond_with_warrants_attached`, `certificate_of_deposit`, `convertible_note`, `depository_receipt_on_debt_instruments`, `depository_shares`, `medium_term_note`, `money_market`, `mortgage_backed_security`, `preferred_stock`, `share_certificate`, `structured_product` **seniority** `string` Seniority of the bond: * `senior`: Senior unsecured, unsubordinated. * `senior_preferred`: Senior preferred bank debt in statutory-hierarchy jurisdictions (EU/UK). * `senior_non_preferred`: Senior unsecured but statutorily or structurally junior to senior preferred: EU/UK senior non-preferred, and senior debt issued out of a bank holding company. * `senior_subordinate`: Most senior class of subordinated debt. * `subordinate`: Subordinated debt ranking below all senior classes. * `junior_subordinate`: Subordinated debt ranking below other subordinated debt. * `junior`: Junior debt, where the document or source gives no finer distinction. * `mezzanine`: Ranking below other subordinated debt and above preference shares. * `not_applicable`: The bond has no claim on an issuer estate (e.g. a securitisation tranche with recourse only to the vehicle). **ticker** `string` Bond ticker symbol. **underwriters** `array of string` Financial institutions that facilitate the issuance and sale of bonds by purchasing them from the issuer and reselling them to investors. **validation\_errors** `array of object` A list of known data issues for the bond where validation rules have failed. ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} [ { "details": "null_coupon_frequency", "field_names": ["coupon_frequency"] }, ... ] ``` **properties** **details** `string` **field\_names** `array of string` # Errors Source: https://docs.terrapinfinance.com/errors How to interpret error responses. Error responses use a single envelope: a top-level `errors` array containing one or more error objects. ## Error envelope ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "errors": [ { "detail": "Human-readable explanation of what went wrong.", "reason": "optional_machine_readable_code" } ] } ``` For `422 Unprocessable Entity`, each error object also includes a JSON pointer to the offending field: ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "errors": [ { "title": "Invalid value", "detail": "Invalid string. Got: integer", "source": { "pointer": "/isins/0" } } ] } ``` ## Status codes | Code | Meaning | What to do | | - | - | - | | `200` | Success. | Process the `data` array in the response. | | `400` | Malformed request (e.g. invalid JSON body). | Fix the request format and retry. | | `401` | Missing, malformed, or revoked bearer token. | Check the `Authorization` header. See [Authentication](/authentication). | | `402` | Completing the request would exceed your monthly quota. | Upgrade your plan or narrow the request. See [Rate limits & quotas](/rate-limits-and-quotas). | | `403` | Authenticated but not permitted. The endpoint, resource, or ISIN is not in your tier. | Upgrade your plan or trim the request. See [Rate limits & quotas](/rate-limits-and-quotas). | | `404` | Resource does not exist (e.g. unknown document in `download_document`). | Verify the identifier and retry. | | `422` | Request body failed validation: wrong types, unknown fields, out-of-range values. The `source.pointer` shows which field. Also returned for an unusable search `cursor`, see [Pagination](/pagination#errors). | Fix the field highlighted by `source.pointer` and retry. | | `429` | Per-minute rate limit exceeded, or the system is shedding load. | Wait for `retry-after` (or `ratelimit: reset`) seconds, then retry with jitter. | | `500` | Unexpected server error. | Retry with exponential backoff. If it persists, contact support. | | `502` | You got unlucky and made a request during a server redeployment. | Retry with exponential backoff. | ## Reporting an issue If you see a `500` you can't explain or a `422` whose `detail` is unclear, email [team@terrapinfinance.com](mailto:team@terrapinfinance.com) with: * The request URL and JSON body (redact any PII). * The full response body and `request-id` header if present. * The approximate UTC timestamp. # Inflation factors Source: https://docs.terrapinfinance.com/inflation_factors Inflation factors calculation and usage To address inflation risk, many governments issue inflation-indexed bonds (also called inflation-linked bonds or TIPS in the U.S.). These bonds adjust the principal and/or interest payments based on changes in an inflation index, such as the Consumer Price Index (CPI). This ensures that investors receive returns that maintain their purchasing power even when inflation fluctuates. ## How are inflation factors calculated? Inflation-indexed government bonds require daily adjustment of the inflation factor, but Consumer Prices Index (CPI) are typically published monthly and with a delay (often 3 months). This means daily inflation factors must be interpolated between monthly CPI values that are lagged by three months. #### How we determine the inflation adjustment factor 1. Take the coupon payment date, which is the date for which we want to calculate the factor; 2. Subtract the lag in months from the given date to get **lagged date**; 3. Since CPI is only monthly, determine CPI for every day using **linear interpolation**; 4. Using the daily interpolated series, determine the CPI corresponding to the **lagged date**. Inflation factors are relative to a **base CPI date**, which is interest accrual date for the given bond. Retrieving the CPI at the base date (interpolated if necessary) according to the procedure above allows us to calculate the inflation factor for the given coupon payment date for the given bond: ```math theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} \text{Inflation Factor} = \frac{\text{CPI on lagged date}}{\text{CPI on base date}} ``` ## How are inflation factors applied to inflation linked bond calculations? #### Adjusted coupon To adjust the coupon by an inflation factor, multiply the base coupon by the inflation factor ```math theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} \text{Adjusted Coupon} = \text{Base Coupon * Inflation Factor} ``` #### Adjusted principal To adjust the principal by an inflation factor, multiply the base principal by the inflation factor ```math theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} \text{Adjusted Principal} = \text{Base Principal * Inflation Factor} ``` ## What we offer? Our *inflation factors* API provides both historical and live data for lagged daily CPI indexes for the following countries * USA * UK * Germany * Italy * France * Spain * Canada # Welcome to Terrapin Source: https://docs.terrapinfinance.com/introduction The modern fixed-income data API. [Terrapin](https://terrapinfinance.com) is a modern fixed-income data company, providing access to reference and pricing data, as well as official statements and disclosure documents. ## Coverage | Universe | Approx. coverage | Endpoint prefix | | - | - | - | | Fixed income securities | government, corporate and US agency bonds | `/api/v1/securities_*` | | US municipal securities | \~1.2 million bonds | `/api/v1/muni_*` | ## How endpoints are named Endpoints follow a `{universe}_{data_type}` convention (`securities`, `muni`, and the deprecated `bond` and `agency` prefixes). Each universe exposes the same core data types plus a few that are specific to that market. ### Common data types * `search`: find bonds matching filters (maturity, coupon, country, rating, etc.). Returns a compact set of fields. * `reference`: full reference data for a list of ISINs. * `pricing_latest`: most recent price for each ISIN. * `pricing_history`: historical price series. * `cashflows`: projected interest and principal schedules. ### Universe-specific endpoints Government yield curves: * `government_yield_curve` for government par, zero, and benchmark yield curves by region and date. Inflation factors: * `inflation_factors` for inflation-linked sovereigns. See [Inflation factors](/inflation_factors). US municipal additionally exposes: * `entity_search`: search by issuer or obligor. * `documents`: retrieve official statement and disclosure document keys (which can be downloaded with `/api/v1/download_document`) * `pricing_daily_history`: a full day of trades across every ISIN at once. * `price_to_yield`: convert between price and yield. * `bonds_in_series`: find sibling ISINs belonging to the same series. * `events`: corporate action history (calls, defeasances, splits, consolidations, etc). The use of funds taxonomy used in muni reference data is documented in [Use of Funds Taxonomy](/use_of_funds_taxonomy). ### Utilities * `convert_to_isin`: resolve a list of 9-character US CUSIPs to ISINs. Inputs that aren't valid CUSIPs come back with `isin: null`. CUSIP is the only supported input type today. * `download_document`: fetch the content of a document returned by `muni_documents`. Files can be retrieved as PDFs (as binary stream) or text files. Today only muni disclosure documents are supported. ## Authentication, limits, errors All endpoints require a bearer token. See [Authentication](/authentication) and [Rate limits & quotas](/rate-limits-and-quotas). Error responses use the envelope described in [Errors](/errors). ## MCP access The same API is also available as an MCP server for Claude and ChatGPT. See [MCP access](/mcp/introduction). # Claude Source: https://docs.terrapinfinance.com/mcp/claude Connect Terrapin to Claude and Claude Code. The Terrapin connector gives Claude read-only access to [Terrapin's data](/mcp/introduction#what-the-tools-cover). It can't change anything in your Terrapin account, and Terrapin receives the tool calls Claude makes, not your conversation. ## Before you start You need a Terrapin account with [API access](/mcp/introduction#access-and-quotas). On Claude Team and Enterprise, an Owner first adds the connector for the organization: in **Organization settings → Connectors**, click **Browse connectors**, select **Terrapin** and click **Add to your team**. Until then, a Team member sees **Request** on Terrapin, which asks the Owners to add it. Each member then connects with their own Terrapin account. ## Connect in Claude **1. Find Terrapin in the directory** In [claude.ai](https://claude.ai) or Claude Desktop, open **Customize → Connectors**, click the **+** next to **Connectors**, and search for **Terrapin**. **2. Connect** Click **Connect**. Claude opens Terrapin's sign-in page. **3. Sign in to Terrapin** Enter your email and the 6-digit PIN code we email you. If you're already signed in, Terrapin skips this step. **4. Choose the organization and approve** Pick the organization whose plan and quotas Claude should use, and click **Approve**. You're back in Claude, with Terrapin under your connectors. **5. Use it in a chat** Click the **+** in the lower left of the chat, hover over **Connectors** and check that **Terrapin** is on. Then ask a question, such as one of the [example prompts](/mcp/introduction#example-prompts). ## Connect in Claude Code If you sign in to Claude Code with your Claude account, the connectors you connected in Claude are already there, Terrapin included. Otherwise, add the server: ```bash theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} claude mcp add --transport http terrapin https://terrapinfinance.com/mcp ``` Add `--scope user` to use it in every project, not only the current one. Then run `/mcp` in a Claude Code session, select **terrapin** and choose **Authenticate**. Terrapin opens in your browser: sign in, pick the organization and click **Approve**. The approval page names claude.ai rather than Claude Code, and warns that it returns you to an app on your computer, which any app there could pose as. Approve only if you started the sign-in yourself. ## Troubleshooting For errors that aren't specific to Claude, see [Troubleshooting](/mcp/introduction#troubleshooting) in MCP access. ### Claude can't read a document To fetch the link `download_document` returns, Claude needs code execution, or in Claude Code a terminal, that's allowed to reach `terrapinfinance.com`, as [Network access](/mcp/network-access) describes. # MCP access Source: https://docs.terrapinfinance.com/mcp/introduction Use Terrapin data in Claude, ChatGPT and other AI assistants via the Model Context Protocol. The Terrapin API is available as a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server. Once connected, an AI assistant can call the API endpoints as tools, apart from the [REST-only ones](#rest-only-endpoints), without you writing any integration code. **MCP server URL:** `https://terrapinfinance.com/mcp` > [!NOTE] > > In Claude and Claude Code, connect through the Terrapin connector in Claude's directory, as described in [Claude](/mcp/claude). ## What the tools cover | Tools | Data | | - | - | | `securities_*` | Corporate, government, certificate of deposit and US agency bonds: search, reference data, latest and historical prices, and cash flows. | | `muni_*` | US municipal bonds: search, issuer search, reference data, documents, latest and historical prices, price to yield, cash flows, and the bonds in a series. | | `muni_stats_*` | US municipal market statistics: outstanding, issuance, trade activity, and top issuers. | | `government_yield_curve`, `inflation_factors` | Government yield curves for the US, the UK and Germany, and inflation factors. | | `convert_to_isin`, `download_document` | CUSIPs to ISINs, and the documents `muni_documents` lists. Over MCP, `download_document` returns a short-lived link to the file rather than the file itself, for an assistant with a terminal or code execution to fetch and convert, for example with `pdftotext`. | Every tool is read-only, and takes the parameters of the API endpoint of the same name. ### REST-only endpoints These endpoints aren't MCP tools. Call them over HTTP with an [API key](/authentication): | Endpoint | Why | | - | - | | [Bulk Pricing](/api-endpoints/us-municipal-bond-daily-historical-pricing-data) (`muni_pricing_daily_history`) | A day of trades runs to tens of megabytes, far more than an assistant can read in one tool result. | ## Example prompts * *Find ten California general obligation bonds issued since 2024 that mature after 2040.* * *What's the latest price and yield of US Treasury CUSIP 912810TM0?* * *Which ten Texas municipal issuers issued the most par value in 2025?* * *Compare the US Treasury par yield curve on 31 December 2025 with 30 June 2026.* ## Access and quotas You need a Terrapin account in an organization whose plan includes API access, such as one of the [tiers](/rate-limits-and-quotas#tiers). New accounts start without it: subscribe in [the app](https://terrapinfinance.com/app), or write to [team@terrapinfinance.com](mailto:team@terrapinfinance.com). Connecting Claude or ChatGPT creates an API key for the organization you approve, which it sends with every request. Every tool call is an API request, and counts against your organization's [rate limits and quotas](/rate-limits-and-quotas) like any other. ## Claude custom connector (deprecated) > [!WARNING] > > A custom connector holding your API key is deprecated and will stop working. To switch to the [Terrapin connector](/mcp/claude), first remove the custom connector in Claude's **Customize → Connectors**, so you don't end up with two Terrapin connections, then delete the API key you pasted into it under **API Keys** in [the app](https://terrapinfinance.com/app), since it stays valid until you do. ## ChatGPT ChatGPT connects to remote MCP servers as custom connectors (also called **Plugins**). You need **Developer Mode** enabled, which is available on Plus, Business, Enterprise, and Edu plans. **1. Add a plugin** In [ChatGPT](https://chatgpt.com/), open Settings → Plugins → Add → **Add custom MCP server** **2. Fill in the plugin details** * **Name:** `Terrapin` * **Connection URL:** `https://terrapinfinance.com/mcp` **3. Add your API key** Expand **Advanced OAuth settings** and paste your Terrapin API key into the **OAuth Client Secret** field. The **OAuth Client ID** field accepts any non-empty string, for example `Terrapin`. **4. Sign in and verify** Click **Create as plugin**. When ChatGPT redirects you to authorize the connection, sign in to your Terrapin account. ChatGPT then calls `tools/list` and shows the available Terrapin tools. Enable the plugin in a new chat via the tool picker. ## Other clients Other clients send an [API key](/authentication) directly, as `Authorization: Bearer `. ### Cursor Add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project, and set `TERRAPIN_API_KEY` in your environment: ```json mcp.json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "mcpServers": { "terrapin": { "url": "https://terrapinfinance.com/mcp", "headers": { "Authorization": "Bearer ${env:TERRAPIN_API_KEY}" } } } } ``` ### Clients that only run local servers [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) runs locally and relays to Terrapin. It needs Node.js: ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "mcpServers": { "terrapin": { "command": "npx", "args": [ "-y", "mcp-remote", "https://terrapinfinance.com/mcp", "--header", "Authorization:${AUTH_HEADER}" ], "env": { "AUTH_HEADER": "Bearer YOUR_API_KEY" } } } } ``` ## Disconnect Disconnecting in Claude or ChatGPT only makes it forget the connection's API key, which keeps working. To revoke the key, open **API Keys** in [the app](https://terrapinfinance.com/app) with the organization you approved selected, expand the key whose **Created by** is you and whose **Issued to** is the client's, and delete it: | Client | Issued to | | - | - | | Claude, and Claude Code signed in with your Claude account | `https://claude.ai/oauth/mcp-oauth-client-metadata` | | Claude Code, with a server added by `claude mcp add` | `https://claude.ai/oauth/claude-code-client-metadata` | | ChatGPT and Codex | `https://chatgpt.com/oauth/client.json` | The key stops working at once, and the client has to sign in again to use Terrapin. ## Troubleshooting ### Terrapin says your plan doesn't include API access The approval page says so when none of your organizations' plans include API access, and every tool returns HTTP 403 with "does not have permission for API access" when the plan has lapsed since you connected. Subscribe in [the app](https://terrapinfinance.com/app), or write to [team@terrapinfinance.com](mailto:team@terrapinfinance.com). An existing connection works again as soon as the plan includes API access. If only some tools return 403 with "You do not have permission to access this resource", your plan doesn't include that dataset. ### Quota or rate limit reached * **HTTP 402**, "You have run out of your granted quota": your organization has used its monthly ISIN or document download quota. It resets in the next billing month, or sooner if you upgrade. * **HTTP 429**, "Too Many Requests": you've hit the per-minute rate limit. Wait a minute and ask the assistant to try again. [Rate limits & quotas](/rate-limits-and-quotas) has the details. ### The result is over the server's limit A tool result over 50,000 bytes comes back as an error that tells the assistant how to narrow the call, and it usually retries by itself. If it doesn't, ask for fewer bonds or a shorter date range. ### Claude or ChatGPT asks you to sign in to Terrapin again Terrapin no longer accepts the connection's API key: someone deleted it under **API Keys**, or you left the organization. Connect again, then sign in and approve. ### Calls or document links fail in a sandbox or behind a proxy If your assistant runs with a domain allowlist, or your network goes through a proxy, allow `terrapinfinance.com` as described in [Network access](/mcp/network-access). Connectors you add in Claude or ChatGPT call Terrapin from Anthropic's and OpenAI's servers, so for them it matters only for fetching the links `download_document` returns. ## Support Write to [team@terrapinfinance.com](mailto:team@terrapinfinance.com) or use the [support form](https://terrapinfinance.com/support), about MCP access, your account or a security concern. Our [privacy notice](https://terrapinfinance.com/privacy) covers the data we keep. # Network access Source: https://docs.terrapinfinance.com/mcp/network-access Allow terrapinfinance.com when your MCP client runs in a sandbox. Most setups need nothing here. This page matters only if your assistant runs somewhere with restricted outbound network access: a container, an agent sandbox with a domain allowlist, or a corporate proxy. There is one host to allow: `terrapinfinance.com`. It serves the MCP endpoint, every API call made through it, and the links `download_document` returns, which your assistant fetches like any other URL. > [!NOTE] > > Terrapin used to serve download URLs from `s3.eu-central-003.backblazeb2.com`. It no longer does, and you can drop that host from your allowlist. ## Where to set it In Claude Desktop, the allowed-domains list is under **Settings → Capabilities → Network access** on Free, Pro, and Max. On Team and Enterprise it is an administrator policy under **Organization settings → Capabilities → Code execution → Allow network egress**, and the in-app setting will not override it. In Claude Code, run `/sandbox` to inspect the current policy, or add the host to `sandbox.network.allowedDomains` in `~/.claude/settings.json`: ```json settings.json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "sandbox": { "network": { "allowedDomains": [ "terrapinfinance.com" ] } } } ``` Network policy is read when a session starts, so open a new conversation before testing. A corporate proxy also has to let `POST https://terrapinfinance.com/mcp` through with the `Authorization` header intact; proxies that strip it make every call fail with 401. # Pagination Source: https://docs.terrapinfinance.com/pagination Page through search results with cursors. The search endpoints (`bond_search`, `muni_search`, `agency_search` and `securities_search`) return results one page at a time. Each response includes a `next_cursor`. Send it back as `cursor` to get the next page. ## Paging through results 1. Search as usual. `limit` sets the page size: ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "states": ["CA"], "sort": ["-maturity_date"], "limit": 1000 } ``` The response contains the first page, the `total` number of matching bonds, and the cursor for the next page: ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "data": ["…1,000 bonds…"], "total": 148672, "next_cursor": "QTEyOEdDTQ.ZpXo…" } ``` 2. Send the same request again with `cursor` added: ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "states": ["CA"], "sort": ["-maturity_date"], "limit": 1000, "cursor": "QTEyOEdDTQ.ZpXo…" } ``` 3. Repeat until `next_cursor` is `null`. Only `cursor` and `limit` may change between pages. If a filter or `sort` changes, the cursor is rejected. Cursors don't expire, but an API update can occasionally invalidate them. ## Order Results are ordered by `sort`, then by ISIN (and asset class on `securities_search`). Each page starts right after the last bond of the previous page, so no bond is skipped or repeated. * Bonds with no value for a sort field come last, whether it sorts ascending or descending. * A `muni_search` by `issuer_name` lists the bonds of the closest matching issuers first. Issuers are matched on the first page, and later pages reuse that match. Pages read live data, which changes during the day. A bond added or updated while you page only shows up if it sorts after your current page. To download a whole universe, keep the default order (by ISIN): ISINs never change, so no bond can move between pages. ## Total `total` is the number of bonds matching the filters. It is counted on the first page, and later pages repeat it. A `limit` of 0 returns only `total`, with `next_cursor` set to `null`. ## Errors An unusable `cursor` returns `422 Unprocessable Entity`. The [error](/errors) points to `/cursor` (or `/offset`), and its `detail` gives the cause: | Cause | What to do | | - | - | | The cursor belongs to a different search: a filter, `sort`, the endpoint or your tier changed. | Change only `cursor` and `limit` between pages, or leave out `cursor` to start over. | | The request has both `cursor` and a non-zero `offset`. | Leave out `offset`. | | The cursor is from an earlier API version. | Leave out `cursor` to start over. | | The cursor is invalid. | Send `next_cursor` exactly as received, or leave out `cursor` to start over. | ## Moving from offset `offset` is deprecated and will be removed on April 2, 2027. It gets slower the further you page, because each request skips every result before it. A cursor starts right after the previous page, so later pages are no slower than the first. Responses to `offset` requests carry `Deprecation`, `Sunset` (the removal date) and `Link` (this page) headers. They also include a `next_cursor`, so you can switch midway: send it as `cursor` and leave out `offset` from then on. # Common workflows Source: https://docs.terrapinfinance.com/platform-guide/common-workflows End-to-end recipes for the most common analyst tasks. Step-by-step recipes for the tasks analysts run most often. If you find yourself doing the same sequence repeatedly and it isn't here, let us know. > [accordion] Produce a credit summary for a single obligor > > **1. Open Deep Dive** > > Go to [Deep Dive](https://terrapinfinance.com/platform/deep-dive) (`/platform/deep-dive`) and click **New session**. > > **2. Add the obligor** > > Search for the **CUSIP or obligor name** and click the result. Its documents appear in the table below, already ticked. > > **3. Scope the documents** > > Set the **Years** pill to the horizon you want, and untick anything irrelevant. Check the counter reads more than 0 documents selected. > > **4. Ask the question** > > Type your question in the chat box. Press `/` first to drop in a saved [skill](/platform-guide/deep-dive/skills) if you have one for this shape of answer. > > **5. Export or follow up** > > When the answer is in, ask a follow-up, or use **Export** to save it as PDF or DOCX. > > For the same write-up across many obligors, write it once in [Tear Sheets](/platform-guide/tear-sheets) instead. > [accordion] Compare two or three obligors in one conversation > > **1. Add them all to one session** > > In the **New session** window, search for and click each obligor in turn. Each becomes its own section in the documents table, so you can see what came from where. > > **2. Trim each side** > > Untick anything you don't want counted. A question can use up to 300 documents, so narrow the **Years** pill if you're over. > > **3. Ask for the comparison** > > Name the entities in your question and say what shape you want, for example *"one table, one row per obligor, columns for FY2022 to FY2024 operating margin"*. The agent keeps each obligor's figures separate and never carries a number from one to another. > [accordion] Produce the same write-up for every obligor in a watchlist > > **1. Create the watchlist** > > Open [Watchlists](https://terrapinfinance.com/platform/watchlists) (`/platform/watchlists`) and click **New Watchlist**. Paste **one or more CUSIPs** into the **CUSIPs** field, click **Add**, and rename the watchlist (e.g. *"Texas hospitals"*) from its menu. Each CUSIP is resolved to its obligor. > > **2. Write the instructions** > > Open [Tear Sheets](https://terrapinfinance.com/platform/tear-sheets) (`/platform/tear-sheets`), click **New Tear Sheet**, name it and pick the watchlist. In its workspace, write the sections and definitions you want, then click **Run** to set **Years Back** and attach any documents of your own. > > **3. Run on a sample** > > Select a few representative CUSIPs and run. Read what comes back and edit the instructions until it reads the way you want. > > **4. Extend across the watchlist** > > Click **Run** again and select the rest. Entities already covered keep what they have; only the new ones are generated. > > **5. Stay current** > > When new disclosures land for any obligor on the watchlist, its write-up is regenerated automatically and shows up with a **New** badge. You don't have to do anything. > [accordion] Track new filings for every name in a watchlist > > **1. Build the watchlist** > > Any [watchlist](https://terrapinfinance.com/platform/watchlists) is covered from the moment you add a CUSIP. There's nothing to switch on. > > **2. Use Surveillance as your inbox** > > Open [Surveillance](/platform-guide/surveillance), set **Period** to the last day or week, and filter **Event type** to document publications. Add **Sentiment** set to negative to see the filings most worth reading first. Each card carries the filing's sentiment and takeaways, so you can triage without opening PDFs. > > **3. Triage and drill in** > > Flag what matters, mark the rest completed. On a flagged filing, click **Deep Dive** to open a session scoped to that document and ask what changed. > > The watchlist's own **Document Publications** page under [Coverage](/platform-guide/watchlists/coverage) shows the same filings for one list at a time. > [accordion] Compare metrics across every entity in a watchlist > > **1. Open Data Tables** > > Go to [Data Tables](https://terrapinfinance.com/platform/data-tables) (`/platform/data-tables`) and click **New Table**. > > **2. Write the prompt** > > Pick the watchlist and describe the metrics you want, the periods to cover, and any sector-specific rules. Be explicit about units and fiscal year ends. > > **3. Check the layout** > > The run window shows the rows and columns it read out of your prompt. Rename anything awkward, drop what you didn't want, reorder, then run. > > **4. Run on a few CUSIPs** > > Select a handful and run. Tweak the prompt until the cells look right. > > **5. Apply to the full watchlist** > > Click **Run** again and select the rest. Already-extracted entities are locked and carry over; the matrix fills in as the new ones come back, and you can sort, filter, pivot, and export it. > > See [Data Tables](/platform-guide/data-tables) for a deeper walkthrough. > [accordion] Standardise how your team asks a recurring question > > **1. Write it down once** > > Open [Skills](https://terrapinfinance.com/platform/skills) and click **New Skill**. Put your house definitions and output shape in the body, for example how you compute DSCR and how you want tables laid out. > > **2. Share it** > > Open the skill's menu and click **Share**. Everyone in your organization can now use it. > > **3. Use it** > > In any Deep Dive question, press `/`, pick the skill, and carry on writing around it. ## Writing prompts that work For longer multi-document workflows (tear sheets, multi-year profiles, structured extractions), prompt quality matters more than anything else. See [Writing effective prompts](/platform-guide/writing-effective-prompts). # Data Tables Source: https://docs.terrapinfinance.com/platform-guide/data-tables Compare metrics across every entity in a watchlist. [Data Tables](https://terrapinfinance.com/platform/data-tables) (`/platform/data-tables`) is the workspace for comparable metric extraction across a watchlist. You write one prompt describing the metrics you want, and the platform runs it against every entity, normalising the results into a sortable, filterable matrix. ## When to use Data Tables vs other surfaces | You want… | Use | | - | - | | An interactive, prose write-up for **one** obligor, with follow-up questions | [Deep Dive](/platform-guide/deep-dive/introduction). A multi-turn session over the documents you choose. | | The same narrative write-up for **every** obligor in a watchlist | [Tear Sheets](/platform-guide/tear-sheets). One prompt, one document per entity. | | A **comparable matrix** of metrics across every obligor (e.g. revenue, expenses, DSCR by fiscal year) | **Data Tables**. One matrix, sortable rows and columns. | The difference from Deep Dive is the shape of the interaction: Deep Dive is a conversation where you ask follow-ups and refine the answer; Data Tables is a one-shot extraction across a whole list. ## The workspace There's one workspace **per prompt**. The sidebar lists every prompt you've written under **My tables**, and anyone else's under **Shared with me**. The main area has three parts: * **Prompt panel**: the prompt body, editable inline. It collapses while you work on the matrix. * **Matrix**: rows and columns of extracted values. Every value is traceable: click a **cell** for its reference, source document, pages and notes, or click an **entity** name for a panel with two tabs: * **Documents**: the source filings used for that entity. * **Notes**: caveats, ambiguities, methodology and restatements flagged during extraction, with links to the cited pages. * **Toolbar**: the [view](#views) selector, the Pivot button, filters, copy, and Excel export. ## Creating and running a table **New Table** asks for a name and what to run on, a watchlist or a single obligor, and can load the instructions from one of your existing tables or tear sheets. The table then opens in its workspace, and **Run** opens a window covering everything a run needs: the scope, how far back to search, which CUSIPs to extract, any documents of your own, and the table layout. **1. Write the prompt** Describe the metrics you want, the periods to cover and any sector-specific rules. You can load the instructions from one of your existing tables or tear sheets as a starting point, then edit from there. **2. Check the layout** The **Table layout** panel in the Run window shows the rows and columns it read out of your prompt, before extraction starts. Rename anything that came through awkwardly, drop a row or a period you didn't want, set a unit on a line item, and reorder them. A prompt that only asks for details fixed at issuance, such as CUSIP, coupon, maturity or original par, or for current values such as ratings, comes back without periods: one value per entity, as of the run date or as set at issuance. **Use periods** switches periods back on, and removing the last period switches them off. **3. Run on a few CUSIPs** Pick a handful of representative CUSIPs. Extraction covers only your selection, so trying a prompt out is cheap. Next to **Run**, the window estimates the credits the run will use; once extracted, each entity's panel shows the credits it actually used. **4. Tune the prompt** Adjust the prompt body until the cells look right. Re-running an edited prompt replaces the table with a fresh generation. **5. Extend to the rest of the watchlist** Once the prompt is dialled in, click **Run** again and select the remaining CUSIPs. Already-extracted entities are locked and keep their cells; only the newly selected ones are extracted, and the matrix fills in as they come back. Between runs, the scheduled sweep refreshes only the entities the table already covers, so a partial table never grows on its own. Adding a CUSIP to the watchlist does extend a table that was applied to the whole list. ## Reviewing new filings and changed values When new filings arrive for the entities a table covers, a green **+N** badge on the table in the sidebar counts the obligors with new filings since you last reviewed, and a banner above the matrix says how many obligors have new filings and how many have changed cells. * New documents are marked **New** in the entity's **Documents** tab. * Changed cells carry a small blue dot. Click one to see its previous and latest values. These markers stay until you click **Mark updates reviewed**. The count includes every filing within the **Years Back** window, not only those for the periods named in your prompt, so a new filing may leave every cell unchanged. ## Options In the Run window, a few choices control what the extraction runs over: | Field | Description | | - | - | | **Scope** | *Obligor-level* produces one row per obligor in the watchlist, pooling every CUSIP under it. *CUSIP-level* produces one row per CUSIP, useful when bond-level detail matters (different liens, etc.). | | **Years Back** | How many years of disclosure history to search (1, 2, 3, or 5). | | **Documents** | Your own uploads, attached to specific entities. Extraction reads them alongside the filings we already found. Attachments survive re-runs, and you can add or remove them at any time. Documents your organization [uploaded to an obligor's filings](/platform-guide/introduction#uploading-documents-to-an-obligor) are attached by default; untick one to leave it out. | | **CUSIPs** | Which of the watchlist's CUSIPs this run extracts. Entities already extracted with the current prompt are locked and carry over untouched. CUSIPs not yet linked to an obligor are greyed out and can't be run. | ## Views The same extracted cells can be sliced three ways. Switch between them from the toolbar: | View | Rows and columns | Shows | | - | - | - | | **Snapshot** | line items by entity | Every entity side by side on each line item, for a single period. The default, best for ranking and comparison. | | **Trend by entity** | line items by period | One entity's figures over time. Pick the entity; columns become the periods the prompt produced. | | **Trend by line item** | entities by period | One line item across every entity over time. Pick the line item; see how all entities move on it. | **Pivot**, next to the view selector, swaps rows and columns in whichever view you're in. It doesn't change the saved table, and it stays in the URL, so a refreshed or shared link opens the same way you left it. Below those, filters narrow the matrix by status, value type, period, entity and audit status. Tables without periods have no period filter. ## Editing cells and adding notes On your own tables, you can correct values and annotate them the way you would in a spreadsheet. Teammates viewing a shared table see your edits and notes but can't change them. * Select cells as in a spreadsheet: click one or move with the arrow keys, Enter and Tab. * Correct a value in place: double-click the cell, press F2, or start typing a number. Enter saves and moves down, Tab saves and moves right, Escape cancels, Delete reverts an edited cell, and Ctrl+Z (Cmd+Z on Mac) undoes the last value you saved. * Right-click a cell, or press Shift+F10, for **Edit value**, **Add & show notes**, **Show details**, and **Revert to extracted value**. * Hover a cell that has notes or an edit to preview its notes card, and click beside the value to pin it. The card shows the edited value next to the extracted one, the full history of who changed what and when, and a box to add a note. Edited cells are highlighted, cells with notes carry a corner marker, and the cell details show the edited value beside the extracted one. ## Getting the data out * **Copy** puts the matrix on your clipboard, laid out as you see it, ready to paste into a spreadsheet. Only the values are copied, not edit history or notes. * **Export to Excel** has two options: * **Values only (.xlsx)**: numbers written as real numbers with unit-aware formats, so they stay sortable and summable. * **With links to notes (.xlsm)**: the same workbook plus a right-click **View Extraction Info** on any data cell, which opens that value's notes in your browser. Excel blocks macros by default, so you'll need to click **Enable Content** when you open it. Either way you choose which periods, entities or line items become workbook tabs, up to 100 at a time. Search the list, tick the ones you want, and download only those. Edited cells keep their highlight and carry an Excel note with the extracted value and the latest note, and CUSIP-level tables get a **CUSIP** column (or row) beside the entity names. ## Tips * **Be explicit about units and time bases.** "Revenue in USD millions" and "Fiscal year ending June 30" beat "operating revenue" for sortable comparability. * **Pin sector idiosyncrasies in the prompt.** For example, exclude entrance fees from DSCR for charter schools, or specify GASB vs FASB. * **Start on a small selection.** Run the prompt on a few CUSIPs first, then tighten definitions, units, and output shape before extending it to the rest of the watchlist. * **Read the layout before you run.** A row list that doesn't match what you meant is faster to fix in the run window than by rewording the prompt and running again. ## See also * [Writing effective prompts](/platform-guide/writing-effective-prompts): how to write prompts that extract clean, comparable values. * [Watchlists](/platform-guide/watchlists/introduction): the groups of entities a Data Table runs across. * [Tear Sheets](/platform-guide/tear-sheets): the narrative counterpart to a data table. # Documents Source: https://docs.terrapinfinance.com/platform-guide/deep-dive/documents-and-filters Control which disclosure documents Deep Dive reads. The agent answers questions by reading the documents attached to your session. The **N documents selected** button in the session header opens the document panel, where you decide what is in and what is out. Whatever is ticked when you press Enter is what that question runs against. ## What gets attached Each thing you add to a session brings its own documents: * A **security** brings the disclosure documents filed for its obligor, plus the latest official statement. * An **obligor** brings the disclosure documents for every issue it has outstanding, plus official statements. * A **document** you picked by name brings just itself. * An **upload** brings just itself. * Documents your organization [uploaded to an obligor's filings](/platform-guide/introduction#uploading-documents-to-an-obligor) come with that obligor, or with any security it issued. Disclosure documents means annual disclosures, audited financials, material event notices, and other filings reported to EMMA, going back up to five years. Documents arrive ticked. A fresh session starts on the last five years of disclosures, or fewer if that is all the coverage there is. ## The document panel The panel is one table grouped into sections, so you can always see which document came from where: **My uploads** first (including your organization's obligor uploads), then **Picked documents**, then one section per security or obligor you added. Each section header shows its name, a count of how many of its documents are ticked, and an **x** to remove the whole item from the session. Each row shows the document's name (click to open the PDF), its type, its filing type, and its publication date. Tick or untick a row to include or exclude that single document. The checkbox in a section header does the whole section, and the one in the table header does everything. A document that was deleted from your library after you attached it is marked **(removed)**. It stays in the table so older citations still resolve, but it no longer takes part in new questions. ## Filter pills Two pills above the panel trim large document sets quickly. They hide rows rather than untick them, so widening a pill brings the documents straight back. While an answer is running, the pills and checkboxes are locked. ### Years Restrict to documents published in the last *N* years, up to five. The choices reflect the coverage actually attached, so older entries only appear if documents exist for that period. Use a narrow window to focus on recent fundamentals. Use a wide one when researching trends over time. ### Official statements Choose which official statements stay in: * **Obligor's latest OS**: the most recent official statement for the obligor. * **Security's own OS**: the official statement the security was issued under. You can keep either, both, or neither. > [!NOTE] > > Documents you picked by name and your own uploads are never hidden by the pills. You chose them explicitly, so they stay until you untick or remove them. ## The selection limit A single question can use at most **300 documents**. The counter in the header turns into a warning when the selection is outside what can run: * **No documents selected**: tick at least one, or widen the pills. * **Too many**: untick some, or narrow the Years pill. When a new session would start over the limit, the oldest documents are unticked for you and the header says so. Swap them back in by unticking others. A session with no documents at all is still allowed. If it covers a security, it can still answer from the reference data and Moody's and S\&P ratings it carries. ## What an answer is tied to An answer is permanently associated with the documents that were ticked when you asked. Changing the selection later does not re-run earlier answers; they keep pointing at what they originally read. So you can experiment freely without losing the provenance of anything already in the thread. ## Tips * Start broad, then narrow. Begin with a wider years window for context, then tighten as questions get specific. * If the agent says it can't find something, widen the Years pill first. Most gaps are simply outside the window. * Before a high-stakes question, open the panel and check that the documents you expect are actually there and ticked. * To ask about one filing in particular, untick everything else rather than relying on the wording of your question. # Deep Dive overview Source: https://docs.terrapinfinance.com/platform-guide/deep-dive/introduction AI-assisted credit research on US municipal bonds. Deep Dive is an AI research assistant that reads US municipal disclosure documents and answers credit questions with page-level citations. Research happens inside a **session**: a multi-turn conversation over a set of documents you choose. You decide what the session is about by adding securities, obligors, individual filings, your own uploads, or any mix of the four. The agent searches those documents, reads the pages that matter, and replies with answers that link back to the pages it relied on. ## When to use it * **First read** on a credit you've never looked at: get an obligor summary, outstanding debt structure, and recent disclosures in a few minutes. * **Specific question** ("What is the debt service coverage on the senior lien?") that would otherwise mean grepping through hundreds of pages of OS. * **Multi-year comparison** of audited financials or material event notices for the same entity. * **Side-by-side comparison** of two or three obligors in one session. The agent keeps each one's figures separate and gives each its own row or section. * **Memo draft**: ask the agent to draft a section and edit from there. It is not a replacement for a credit analyst. It removes the document wrangling so your time goes into judgment. ## How it works 1. Click **New session** and search for the securities, obligors or documents you want to cover, or pick from your own uploads. 2. The platform pulls the disclosure documents it has for everything you added: official statements, annual disclosures, material event notices, audited financials, and other filings reported to EMMA. Use the [document panel](/platform-guide/deep-dive/documents-and-filters) to narrow or widen that set. 3. Ask a free-form question in the chat box. 4. The agent searches the documents, reads the most relevant pages, and drafts an answer showing which pages it cited. 5. Ask follow-ups, change the selected documents, add more context, or start a fresh session. For a security, the session also carries its reference data and its Moody's and S\&P ratings with their history, so questions about either are answered without reading a document. The agent prefers these ratings over ones quoted in filings, which are often out of date. ## Where to enter A session can be started from several places: * The **Deep Dive** page. Click **New session** and build the context you want. * A **security page**. Uses that CUSIP. * An **obligor page**. Uses every issue under that obligor. * A document in the **file viewer**. Scopes the session to that document. * A [Surveillance event](/platform-guide/surveillance). Scopes the session to the documents behind that event. ## See also * [Sessions](/platform-guide/deep-dive/sessions): UI walkthrough, questions, follow-ups, sharing, exports, cancel and retry. * [Documents](/platform-guide/deep-dive/documents-and-filters): what gets attached, the filter pills, ticking documents in or out. * [Skills](/platform-guide/deep-dive/skills): save instructions you use often and drop them into a question. * [Writing effective prompts](/platform-guide/writing-effective-prompts): phrasing patterns for Deep Dive, Tear Sheets, and Data Tables. # Sessions Source: https://docs.terrapinfinance.com/platform-guide/deep-dive/sessions Create, navigate, and manage Deep Dive research sessions. A session bundles together the things it is about (securities, obligors, documents), the set of documents attached to them, a thread of questions and answers, and any follow-up state. Sessions are persistent: come back weeks later and the whole conversation and document selection are still there. ## Creating a session Click **New session** in the Deep Dive sidebar. The modal has two tabs: * **Search**: type a CUSIP, an obligor name, or a document name. Results are grouped into securities, obligors, documents and your own uploads. Click any result to add it. * **My uploads**: upload a new file, or attach one you uploaded earlier. Add as many items as you like, in any combination. As you add them, a **Documents added** table fills in underneath, grouped by the item each document came from, so you can see what the session will read before you start. Untick anything you don't want. When you're happy, click **Create session**. If you'd rather start with nothing and build up as you go, click **Start without context**. You can also enter Deep Dive from: * A **security page** (uses that CUSIP). * An **obligor page** (uses every issue under that obligor). * A **document in the file viewer** (scopes the session to that document). * A **Surveillance event** (scopes the session to the documents behind that event). > [!TIP] > > You can deep-link into a new session at `/platform/deep-dive?cusip=` or `/platform/deep-dive?entity_id=`. ## Adding context later A session is not fixed at creation. Click **Add context** in the session header, or the **+** button next to the chat box, to open the same modal and add more securities, obligors or documents. Everything you add joins the existing set and takes part in the next question. To drop something, open the documents panel and click the **x** on its section. ## Layout * **Sidebar**: your sessions under **Pinned**, **Sessions** (newest activity first) and **Shared with me**. Click any card to switch. * **Header bar**: the securities and obligors the session covers, each linked to its page, the session ID, the document filter pills, and the **N documents selected** button. * **Conversation area**: your questions and the agent's answers. Each answer shows: * A timeline of the steps it took, including which documents it searched and which pages it read. * The answer itself, with inline citations linking to source pages. * The platform credits it used, next to its timestamp. * An **Export** button to save that answer as PDF or DOCX. ## Asking questions Type in the chat box and press Enter. The agent will: 1. Look over the documents in scope. 2. Search them for the terms your question implies, then read the pages worth reading. 3. Draft an answer from what it read, citing the pages it used. It only cites pages it actually read, so every citation is a link that opens the source document on that page. Follow-up questions carry the whole conversation with them, so you can drill in without restating scope. Ask *"now break that down by fiscal year"* and the agent still knows which figure you mean. ### Using a skill Type `/` in the question box to search your saved [skills](/platform-guide/deep-dive/skills) and add one or more to a question. The skill's instructions travel with the question, and its name stays visible next to what you typed so you can see what you used. ### Attaching extra documents Click the **+** button next to the chat box and choose **From my uploads** to open the upload panel. From there you can: * Upload a new file. It's saved to your personal library, so you can reuse it on other sessions. * Pick from that library to attach something you uploaded earlier. Attached documents take part in the next question and stay with the session. ## Renaming, pinning, sharing, deleting Hover a session card in the sidebar and open its menu: * **Pin to top** keeps a session you keep coming back to at the top of the list. * **New session with this context** starts a fresh conversation over the same securities, obligors and documents. Useful when you move to an unrelated question and want a clean thread. * **Rename** replaces the auto-generated title. Sessions name themselves from your first question. * **Share** makes the session visible to everyone in your organization, read only. They see it under **Shared with me** and can read the thread and the documents each answer used, but cannot ask questions in it. **Stop sharing** takes it back. * **Delete** removes it. Deleted sessions can't be recovered, and any running job is cancelled. ## Cancelling and retrying * While the agent is working, click the stop button to cancel. The question stays in the thread marked **Cancelled**, its text goes back into the input, and you aren't charged for it. Send it again to re-run it in place. * If a query fails, the response has a **Retry** action to re-run the same question. ## Feedback There are no rating buttons on answers. If an answer is wrong, surprising, or exactly right, tell us through the chat bubble in the corner of the app or at [team@terrapinfinance.com](mailto:team@terrapinfinance.com), and include the session ID from the header. That feeds our evaluation harness and is how the agent improves on the credits you actually work with. # Skills Source: https://docs.terrapinfinance.com/platform-guide/deep-dive/skills Save instructions you use often and drop them into a question. A **skill** is a named block of instructions you save once and reuse. If you find yourself typing the same framing into every Deep Dive question, that framing belongs in a skill. Typical skills: * A house definition of DSCR, DCOH or fixed costs, so every answer computes them the same way. * The output shape you always want, for example *"return one HTML table, fiscal years as columns, round to USD thousands, use N/A for missing years"*. * Sector rules, for example *"for charter schools, exclude entrance fees from coverage"*. ## Writing a skill Open [Skills](https://terrapinfinance.com/platform/skills) (`/platform/skills`) and click **New Skill**. Give it a name you'll recognise in a dropdown, then write the instructions in the editor and click **Save changes**. Nothing saves until you do, and an **Unsaved** badge shows while there are pending edits. **Discard changes** puts the last saved text back. If you open another skill or leave the page with unsaved edits, the platform asks before discarding them. There is no length limit. The same advice applies as to any other prompt: see [Writing effective prompts](/platform-guide/writing-effective-prompts). ## Using a skill in Deep Dive In a [Deep Dive](/platform-guide/deep-dive/introduction) session, type `/` in the question box. A list of your skills appears; keep typing to filter it, then pick one. The skill drops in as a labelled chip and you carry on writing around it. You can add more than one to a question. When you submit, the chip expands into the skill's full instructions. The chip stays visible next to your question in the thread, so later you can see which skills that answer used. > [!NOTE] > > A question pins the version of the skill that existed when you asked it. Editing or deleting a skill changes what future questions get; it never rewrites an answer you already have. ## Sharing Skills are private to you by default. Open a skill's menu and click **Share** to make it visible to everyone in your organization, so the team starts from the same definitions. Shared skills appear for teammates under **Shared with me** and are read only: they can use one in a question but not edit it. **Stop sharing** takes it back. The same menu has **Rename** and **Delete**. ## Skills and reusable instructions elsewhere Skills are for Deep Dive. [Data Tables](/platform-guide/data-tables) and [Tear Sheets](/platform-guide/tear-sheets) carry their own saved instructions, since each of those is already built around one reusable prompt. When you create a new table or tear sheet you can load the instructions from an existing one as a starting point. # Screeners Source: https://docs.terrapinfinance.com/platform-guide/explorers Search the whole municipal universe: securities, obligors, trades and filings. The **Screeners** section of the sidebar holds four pages that search the whole municipal universe rather than a watchlist. They work the same way, so learning one teaches you the rest. | Page | What it lists | | - | - | | [Securities](https://terrapinfinance.com/platform/securities) | Securities, by reference data. | | [Obligors](https://terrapinfinance.com/platform/obligors) | Obligors, starting from the ones you work on. | | [Trades](https://terrapinfinance.com/platform/trades) | MSRB trades, newest first. | | [Documents](https://terrapinfinance.com/platform/documents) | Official statements and continuing disclosures. | ## The filter bar Each page opens with one or two filters already on screen. To add more, click **Filters** and pick from the list: issuer, obligor, CUSIP, state, sector and subsector, obligation type, instrument form, Moody's and S\&P rating, use of proceeds, source of repayment, tax status, dates, and so on. Results update as you change a filter, with a live count above the table, and the filters you chose stay in the URL so you can bookmark a search or send it to a colleague. The newer ones: * **Sector** and **Subsector** classify the obligor's business. They replace the old issuer sector filter. * **Obligation type** is the pledge that secures repayment, for example unlimited tax GO or lease appropriation. * **Instrument form** is bond, certificate of participation, note, and so on. * **Moody's rating** and **S\&P rating** match a security's current long-term rating. **Rating group** keeps the coarser investment grade / high yield split. Click the **x** on a filter to clear and remove it. Trades and Documents also have a **Period** filter, since both are time ordered: today, last 7 / 14 / 30 / 90 days, 1 year, or 3 years. Trades opens on the last 7 days and Documents on the last 30. ## Securities Lists securities with CUSIP, ticker, series, issuer, state, coupon rate, maturity, and whether the bond is callable or taxable. Click any row to open its [security page](/platform-guide/introduction#security-and-obligor-pages). ## Obligors Opens on the obligors you work on, most recently active first. Each row shows the obligor's state and county, how many CUSIPs it has outstanding, and how many **Data Tables**, **Tear Sheets** and **Deep Dive** sessions you have on it. Clear the **My activity** filter to browse every obligor. The search box matches an obligor's name, state or county, and the CUSIPs, series and issuers behind it. The filters narrow by the obligor's own state, or keep obligors with at least one CUSIP matching a sector, obligation type, instrument form, rating, repayment source, or issue or maturity date range. The info icon beside each filter in the **Filters** menu explains what it matches. Click a row to open the [obligor page](/platform-guide/introduction#security-and-obligor-pages). ## Trades Lists MSRB trades with trade time (Eastern), CUSIP, ticker, issuer, state, trade type (customer bought, customer sold, inter-dealer), par amount, price and yield. A **Flags** column marks when-issued trades, weighted average price trades, list offering price, alternative trading system and non-transaction compensation. Click a row to open the security page. ## Documents Lists filings with their publication date, name, issuer and type. Two more columns come from the summary we generate for every filing: * **Sentiment**: positive, neutral or negative. * **Takeaways**: the headline points, so you can scan a period without opening anything. Click a row to expand the full summary and its tags, or click the filing name to open the document itself. > [!TIP] > > Documents searches everything published, not just your watchlists. Use it when you want to see what a sector has filed lately. Use [Surveillance](/platform-guide/surveillance) when you only care about names you already follow. # Welcome to Terrapin Source: https://docs.terrapinfinance.com/platform-guide/introduction A tour of the Credit Intelligence platform. This guide walks through the main features of the Credit Intelligence platform and how to use them day to day. > [!NOTE] > > The platform is in **beta**. We welcome feedback as we build out the platform for municipal credit research. Reach us at [team@terrapinfinance.com](mailto:team@terrapinfinance.com) or through the chat bubble in the corner of any page. ## Where you land After signing in you land on [terrapinfinance.com/platform/securities](https://terrapinfinance.com/platform/securities). The sidebar on the left groups the platform into three sections. Click the logo at the top to collapse the sidebar to icons and give the page more room. ### Screeners Search the whole municipal universe. All four pages share the same filter bar: add the filters you want from the funnel menu, and results update as you go. See [Screeners](/platform-guide/explorers). * **Securities**: browse securities by issuer, state, sector, rating, tax status, and other reference fields. * **Obligors**: find an obligor by name, county, CUSIP or series, starting from the ones you already work on. * **Trades**: browse recent MSRB trades. * **Documents**: browse official statements and continuing disclosures, with each filing's takeaways and sentiment in the list. ### Coverage Everything scoped to a watchlist. * **Watchlists**: groups of CUSIPs and entities, usually organized by sector or theme, that you want to monitor or process at scale. See [Watchlists](/platform-guide/watchlists/introduction). * **Data Tables**: a prompt-driven workspace that pulls a comparable matrix of metrics (revenue, debt service, DSCR, and so on) across every entity in a watchlist. See [Data Tables](/platform-guide/data-tables). * **Tear Sheets**: narrative credit write-ups driven by saved instructions, run on a few entities first, then extended across a watchlist. See [Tear Sheets](/platform-guide/tear-sheets). * **Surveillance**: a cross-watchlist event feed for everything happening on your watchlists. See [Surveillance](/platform-guide/surveillance). ### Chat * **Deep Dive**: AI credit analysis. Open a chat against any mix of securities, obligors and documents and ask free-form questions. See [Deep Dive](/platform-guide/deep-dive/introduction). * **Skills**: instructions you save once and reuse. Type `/` in a Deep Dive question to add one. See [Skills](/platform-guide/deep-dive/skills). ## The header bar Every page shares the same header: * A **search box** for jumping to a security or an obligor. Press `/` anywhere outside a text box to focus it. * A **bell** that lists activity as it completes, such as a finished extraction. * **Platform Updates**, where new features are announced. * **My account**, for organization details, billing, team members, API keys, and this month's usage. The **User Guide** link at the bottom of the sidebar opens these pages. ## Platform credits Deep Dive, Tear Sheets and Data Tables draw on your organization's platform credits, charged by the work each request takes rather than a flat amount per run. A short question or a small extraction costs less than a long one, a run that fails is not charged, and work you cancel before it finishes is refunded. Each Deep Dive answer, tear sheet and data-table entity shows the credits it used, and the Run window for tear sheets and data tables estimates the cost before you start. **Usage this month** under **My account** shows how much your organization has used and when it resets. ## Security and obligor pages Two pages sit behind almost every CUSIP and entity name in the platform, and you can open them from search, from any table row, or from a Deep Dive session header. * A **security page** covers one CUSIP: reference data up top, then tabs for the rest of its series, price history, cashflows, documents, Moody's and S\&P rating history, liquid peers, news and corporate actions. The reference data includes the obligor's sector and subsector, the pledges that secure repayment in priority order (for example unlimited tax GO, or lease appropriation), and the instrument form. * An **obligor page** covers everything one obligor issues: its bonds grouped by series, its filings, and any tear sheets and data tables your organization has run on it. You can start a new tear sheet or data table for that obligor directly from the page, and add documents of your own to its filings. The **Corporate Actions** tab maps how a bond relates to its parents and children: the splits, calls, defeasances and consolidations recorded against each one, every bond that was exchanged into it, and tender offer results with the amount accepted and the purchase price. Expand any bond in the graph to see its full event history. ### Uploading documents to an obligor On an obligor page, the **Filings** tab has an **Upload documents** button. Pick a PDF, give it a name and a category, and confirm. It joins that obligor's filings for everyone in your organization, marked **Uploaded**, and never counts against your filing download allowance. From then on, every [Data Table](/platform-guide/data-tables) and [Tear Sheet](/platform-guide/tear-sheets) covering the obligor reads it automatically: ones already extracted for that obligor are re-extracted to include it, and it is ticked by default when you create a new one. New [Deep Dive](/platform-guide/deep-dive/introduction) sessions on the obligor start with it too. To keep it out of one data table or tear sheet, untick it in that run's documents. To remove it everywhere, click the trash icon on its row; tear sheets and data tables go back to their results from before it. ## Where to start 1. Read [Deep Dive overview](/platform-guide/deep-dive/introduction) to understand the core research loop. 2. Try a session on a CUSIP you already know. The [Sessions](/platform-guide/deep-dive/sessions) page walks through the UI. 3. Once a question is worth asking of many credits, build a [watchlist](/platform-guide/watchlists/introduction) and point [Tear Sheets](/platform-guide/tear-sheets) or [Data Tables](/platform-guide/data-tables) at it. 4. For end-to-end recipes, see [Common workflows](/platform-guide/common-workflows). # Surveillance Source: https://docs.terrapinfinance.com/platform-guide/surveillance A cross-watchlist event feed for everything happening on your portfolio. [Surveillance](https://terrapinfinance.com/platform/surveillance) (`/platform/surveillance`) is the aggregated feed of everything happening across your watchlists: new disclosures, rating actions, trade activity and finished tear sheets. ## What shows up Everything a watchlist [covers](/platform-guide/watchlists/coverage) lands here too. The same event also lives on its own watchlist's pages; Surveillance is the one place to see all of them together. Each event card shows the entity and CUSIP on the left, and a small table of the details that matter for its type: * **Document publication**: filing date, filing type, state, sector, a **sentiment** badge, and a row of **takeaways** from the AI-generated summary. A link to the filing sits at the bottom of the card, next to a **Deep Dive** button. * **Moody's ratings** and **S\&P ratings**: the effective date, the action and the rating it landed on, plus the basis and rating class for Moody's, or the prior rating and rating type for S\&P. * **Price update**: the trade that triggered it. * **Tear sheet**: the date, state, sector, how many source documents went into it, and a **Deep Dive** button. ## Filters The header bar lets you narrow by: * **Period**: today, last 7 / 14 / 30 / 90 days, 1 year, 3 years. Defaults to the last 90 days. * **Source**: all watchlists, only yours, or only ones shared with you. * **Watchlist**: restrict to one or more watchlists. * **Entity**: restrict to specific obligors. * **Event type**: document publication, Moody's ratings, S\&P ratings, price update, tear sheet. Every type except price update starts ticked; **Reset** puts that default back. * **Status**: your own triage state, including **No status** for anything untouched. * **Document type**: only offered when there are document-publication events to narrow. * **Sentiment**: positive, neutral, negative, or no sentiment. Offered alongside Document type, it narrows only the filings; trades, rating actions and tear sheets stay visible. Each filter shows its current selection on the pill itself, and **Clear filters** resets everything. The feed shows the 100 most recent events matching your filters, so narrow the period or the watchlist if you're missing older ones. ## Triaging events Each card has a flag control with four settings: **High priority**, **Medium priority**, **Low priority** and **Completed**. Completed events dim so they stay out of your way without disappearing. Setting one is what makes an event findable later under the Status filter. Triage state is per user, so two analysts in the same organization can prioritise independently without stepping on each other. Where an event carries document context, **Deep Dive** opens a [session](/platform-guide/deep-dive/introduction) scoped to that document, so you can ask about it without setting anything up. ## A common pattern Use Surveillance as your morning inbox: 1. Build a watchlist of every credit you care about. Coverage starts immediately, with nothing to configure. 2. Open Surveillance, set the period to the last day or week, and filter to document publications. 3. Read the takeaways on each card. Flag the ones worth real work, mark the rest completed. 4. On a flagged one, click **Deep Dive** and ask what actually changed. # Tear Sheets Source: https://docs.terrapinfinance.com/platform-guide/tear-sheets Run the same narrative credit write-up across every entity in a watchlist. [Tear Sheets](https://terrapinfinance.com/platform/tear-sheets) (`/platform/tear-sheets`) is the workspace for narrative write-ups at scale. You write one set of instructions, and the platform produces the same write-up for every entity in a watchlist, each grounded in that entity's own filings. Use it when you want prose: a credit summary, a memo section, a standard one-pager per name. For figures laid out side by side, use [Data Tables](/platform-guide/data-tables) instead. For a conversation about one credit, use [Deep Dive](/platform-guide/deep-dive/introduction). ## The workspace There's one workspace **per set of instructions**. The sidebar lists yours under **My tear sheets**, and anyone else's under **Shared with me**. The main area has the instructions panel on top and a results table below, one row per entity. Each row shows the entity, the date its write-up was generated, how many source documents went into it, and the credits it used. Click the source documents count to list those filings with their filing type and date. Click a row to expand the write-up inline, with citations linking back to the pages they came from. **Export** saves a single write-up as PDF or DOCX. Two markers are worth knowing: * A **New** badge means the write-up arrived since you last looked. * An **information icon** means the instructions have changed since that write-up was generated, so it no longer reflects what the prompt says today. ## Creating and running a tear sheet **New Tear Sheet** asks for a name and what to run on, a watchlist or a single obligor, and can load the instructions from an existing tear sheet or data table. The tear sheet then opens in its workspace, and **Run** opens a window with the rest of the choices. **1. Write the instructions** Say what sections you want, in what order, and any definitions the write-up should use. You can load the instructions from one of your existing tear sheets or data tables as a starting point. **2. Pick the watchlist and scope** *Obligor-level* produces one write-up per obligor, pooling every CUSIP under it. *CUSIP-level* produces one per CUSIP, for when bond-level detail matters. **3. Set the search window and add documents** **Years Back** controls how far back filings are searched (1, 2, 3, or 5 years). You can also attach your own uploads to specific entities, and extraction reads them alongside the filings we already found. Documents your organization [uploaded to an obligor's filings](/platform-guide/introduction#uploading-documents-to-an-obligor) are attached by default; untick one to leave it out. **4. Run on a few entities** Pick a handful of representative CUSIPs. Extraction covers only your selection, so trying the instructions out is cheap. CUSIPs not yet linked to an obligor are greyed out and can't be run. Next to **Run**, the window estimates the credits the run will use. **5. Extend to the rest of the watchlist** Once the write-ups read the way you want, click **Run** again and select the rest. Entities already covered are locked and keep what they have. While a run is going, **Cancel** stops it. Completed write-ups are kept; unfinished entities are discarded. ## Staying current Once a tear sheet covers a watchlist, it keeps up on its own. When new disclosures land for an entity on the list, its write-up is regenerated, and the new one appears with a **New** badge here and in [Surveillance](/platform-guide/surveillance). Adding a CUSIP to the watchlist brings it into the tear sheet too. ## Where they show up * **Here**, in the workspace, all entities together. * **On the watchlist**, under [Coverage](/platform-guide/watchlists/coverage). * **In [Surveillance](/platform-guide/surveillance)**, alongside filings and rating actions, filterable by type. * **On an obligor page**, under its Tear Sheets tab. You can also start a new one for that obligor from there. ## See also * [Writing effective prompts](/platform-guide/writing-effective-prompts): structure, scope and definitions that produce comparable write-ups. * [Data Tables](/platform-guide/data-tables): the same idea for figures rather than prose. # Coverage Source: https://docs.terrapinfinance.com/platform-guide/watchlists/coverage What every watchlist tracks for its securities, with no setup. Every [watchlist](/platform-guide/watchlists/introduction) tracks four things for the securities on it. There is nothing to switch on: add a CUSIP and it is covered from that point. The **Coverage** pane on the watchlist detail page links to a page for each one, followed by the data tables and tear sheets set up on the watchlist. ## Document Publications A row every time a new disclosure is published for any entity on the watchlist, with the entity, filing date, document type, filing type and a link to the document. Rows you haven't seen yet are marked with a green dot, and a **+N** badge on the Coverage pane counts them. Each of these filings also gets an **AI-generated summary** with key takeaways and an overall sentiment. To read it, open the same filing in [Surveillance](/platform-guide/surveillance), where you can also set a priority, mark it completed, or open a [Deep Dive session](/platform-guide/deep-dive/introduction) scoped to that disclosure. ## Moody's Ratings Rating actions from Moody's for the securities on the watchlist. ## S\&P Ratings Rating actions from S\&P: upgrades, downgrades, new ratings and withdrawals, each with the rating it landed on, the prior rating, CreditWatch, outlook and the date it took effect. ## Price Updates An entry each time a bond on the watchlist trades. Useful when you want a heads-up on activity instead of waiting to spot it in the daily flow. ## Data tables and tear sheets Below the four feeds, the Coverage pane lists every [data table](/platform-guide/data-tables) and [tear sheet](/platform-guide/tear-sheets) set up on this watchlist, data tables first, each marked **Draft** until it has run. Unlike the four above, these are not discovered automatically: you write the instructions and run them from their own workspace. Each entry is a shortcut into it. ## How often it updates The platform sweeps every watchlist every ten minutes for anything new, with a full sweep once a day to catch changes the incremental pass cannot see. Rating actions arrive with the daily Moody's and S\&P feeds. Nothing needs re-triggering. ## Where output shows up In three places: * **The watchlist detail page**, one page per coverage type, newest first. * **[Surveillance](/platform-guide/surveillance)**, the cross-watchlist feed, with filters by watchlist, entity, type, period and status. * **The bell** in the header, for activity that finishes while you're in the app. > [!TIP] > > For comparable metrics rather than a feed, point a [Data Table](/platform-guide/data-tables) at the same watchlist. # Watchlists overview Source: https://docs.terrapinfinance.com/platform-guide/watchlists/introduction Group the CUSIPs and entities you want to monitor or analyse at scale. A watchlist is a group of CUSIPs and entities you want to monitor, usually because they share a sector, a parent, a portfolio, or a theme. Watchlists are how you do something across many credits at once: track what gets published for them, or point Tear Sheets and Data Tables at the list. ## The watchlist page [Watchlists](https://terrapinfinance.com/platform/watchlists) (`/platform/watchlists`) is a 3-pane layout: * **Left sidebar**: your watchlists under **My watchlists**, and anyone else's under **Shared with me**. Click to open. * **Centre pane**: the entities and CUSIPs on the selected watchlist. * **Right pane**: [Coverage](/platform-guide/watchlists/coverage), what the platform tracks for every watchlist, plus a link to each data table and tear sheet set up on it. ## Creating a watchlist From the left sidebar: **1. Create and name the watchlist** Click **New Watchlist**. It appears in the sidebar as *New watchlist*; open its menu and click **Rename** to pick a name that makes its purpose obvious. For example, *"Texas hospitals"*, *"Charter schools 2024 originations"*, *"Toll roads tear sheet"*. **2. Paste CUSIPs** Drop one or more 9-character CUSIPs into the **CUSIPs** field, one per line or comma-separated, or click **Upload CSV**. **3. Add** The platform resolves each CUSIP to an obligor, dedupes against entities already on the list, and flags anything it couldn't recognise, either the wrong format or not found, so you can correct it or click **Remove invalid**. A CUSIP with no official statement found yet is added, but data tables and tear sheets can't run on it until one is. ## Changing a watchlist later * **Add CUSIPs** on the detail page opens the same field. The same resolution and validation rules apply. * Hover a row in the centre pane and click the trash icon to remove that entity. * **Export** copies the watchlist's CUSIPs to your clipboard or downloads them as CSV. Adding or removing a CUSIP propagates straight away to the watchlist's current tear sheet and to any data table applied to the whole list. A data table applied to only part of the list is left alone. ## Sharing Open a watchlist's menu in the sidebar and click **Share** to make it visible to everyone in your organization. Teammates see it under **Shared with me**, read only, and can open the tear sheets and data tables built on it in read-only mode too. **Stop sharing** takes it back. The same menu has **Rename** and **Delete**. ## What you can do with a watchlist A watchlist by itself is just a list. What makes it useful: * **Coverage** is automatic. Every watchlist tracks new filings, Moody's and S\&P rating actions, and trades for its securities, with no setup. See [Coverage](/platform-guide/watchlists/coverage). * **Apply a tear sheet or a data table** from its own workspace: * [Tear Sheets](/platform-guide/tear-sheets) for narrative write-ups across the list. * [Data Tables](/platform-guide/data-tables) for comparable metric matrices. Everything coverage produces also shows up in the global [Surveillance](/platform-guide/surveillance) feed, where you can filter across all your watchlists at once. ## One watchlist, one purpose Watchlists are cheap to create. You'll get more out of them by keeping one per workflow rather than mixing several use cases into one big list: for example, one watchlist for "tear sheets across all my Texas hospitals" and a separate one for "track new disclosures on my high-yield names". ## See also * [Coverage](/platform-guide/watchlists/coverage): what every watchlist tracks and where it shows up. * [Surveillance](/platform-guide/surveillance): the cross-watchlist event feed. * [Tear Sheets](/platform-guide/tear-sheets): narrative write-ups across a watchlist. * [Data Tables](/platform-guide/data-tables): comparable metrics across the entities in a watchlist. # Writing effective prompts Source: https://docs.terrapinfinance.com/platform-guide/writing-effective-prompts How to phrase prompts so the right evidence is found and the answer comes back usable. Your prompt does two jobs. It tells the agent which pages to go looking for, and it tells the agent what to produce from them. A few habits make both jobs easier and lead to more consistent, better-grounded answers. These apply everywhere you write a prompt: a [Deep Dive](/platform-guide/deep-dive/introduction) question, a [Skill](/platform-guide/deep-dive/skills), a [Tear Sheet](/platform-guide/tear-sheets), or a [Data Table](/platform-guide/data-tables). ## How the agent works, briefly The agent doesn't get handed a pile of pre-selected passages. It gets the documents you selected and a set of tools, and it works the way you would: list what's there, search the text for the terms it expects, count hits to decide which documents are worth opening, then read those pages. It can go back and search again after reading something, so a first search that comes up short isn't the end of it. Two consequences shape everything below: * **Your wording becomes its search terms.** The closer your words are to the words printed in the filings, the faster it lands on the right pages. * **It only cites what it read.** Every citation points at a page it actually opened, which is why answers are checkable. ## Use the words you expect to see in the documents Name the metrics, section titles, instruments and time periods you're after. * Instead of *"how is their debt"*, write *"debt service coverage ratio, direct debt outstanding, debt service schedule, fiscal 2024"*. * Where a term varies by issuer or accounting framework, include the variants, for example *"statement of net position (balance sheet)"* or *"DSCR (debt service coverage)"*. > [!NOTE] > > There is no penalty for naming terms that turn out not to appear. Extra relevant terms only give the search more ways in. ## Name the documents you want to focus on The agent sees each document's name, type and publish date before it reads anything, so you can steer it toward the sources you trust by naming them. * *"Use the official statement and the most recent audited financial statements."* * *"Pull the debt service schedule from the 2023 official statement, not the interim figures."* * *"Prefer audited financials over the budget book where both exist."* In Deep Dive this pairs with the [document panel](/platform-guide/deep-dive/documents-and-filters): the panel decides what is in scope at all, and naming documents in the prompt biases the search within whatever is left. If you only want one filing considered, untick the rest rather than relying on the wording. ## Keep each prompt focused Shorter, targeted prompts outperform long ones. When a single prompt blends two unrelated analyses, the agent splits its search budget between them and both halves get less attention than either would alone. * If you want a debt profile and a separate governance review, run them as two prompts. * If you want five years of one metric, that is one focused analysis and belongs together. * A good test: if you could hand the two halves of your prompt to two different analysts with no overlap, split it. There is no character limit, so being specific costs you nothing. Being unfocused does. ### Follow-ups stay in the session In a Deep Dive session, the whole conversation travels with each new question. That is what makes follow-ups work: after a debt service coverage answer you can ask *"now break that down by fiscal year"* and the agent still knows which coverage figure you mean. The trade-off is that an unrelated question asked in the same session drags that earlier context along, which can pull the search toward off-target pages. Treat a session as one line of analysis. When you move to a genuinely new question, start a fresh session. **New session with this context** in the session menu gives you a clean thread over the same documents. ## State scope, periods, and definitions Spell out the boundaries so the agent does not have to guess. * **Scope**: what to include or exclude, for example *"water and sewer enterprise only, exclude the general fund"*. * **Period**: which years to cover, for example *"fiscal years 2022 to 2024"*. * **Definitions**: generic metrics differ by sector and accounting framework, so pin them down, for example *"DSCR = net revenues available for debt service divided by annual debt service"*. If you don't define a standard metric, the agent uses a conventional formula for the issuer type and computes it from the disclosed components when the headline figure isn't stated. That is usually what you want, but your definition always wins, so state it when it matters. ## Describe the output you want Tell the agent the shape of the answer. It follows a requested structure closely, and prompts that fix the structure are easier to read and to compare across entities. * Sections and their order, or the exact table columns. * Formatting rules, for example *"round monetary values to the nearest USD thousand"*. * How to handle gaps, for example *"use N/A for missing years rather than dropping the row"*. * What to leave out, for example *"one table, no commentary"*. Reusable prompts benefit from especially explicit output shapes because each run should produce comparable answers across entities. ## Putting it together A focused, well-scoped prompt might read: > Operating revenues and expenses for fiscal years 2022 to 2024, water and sewer enterprise only, exclude the general fund. Report debt service coverage as net revenues available for debt service divided by annual debt service. Return one table with columns: fiscal year, operating revenue, operating expense, net position, debt service coverage. Round to the nearest USD thousand and use N/A for missing years. No commentary. ## When an answer comes back thin Before rewording the prompt, check the cheaper explanations: * **Was the document even in scope?** Open the document panel and confirm it's there and ticked. * **Was the window too narrow?** Widen the **Years** pill. Most gaps are simply outside it. * **Did you use the issuer's vocabulary?** Try the terms that issuer actually prints, including its own section headings. If a reusable prompt keeps producing the wrong shape, save the corrected framing as a [skill](/platform-guide/deep-dive/skills) so you don't retype it. # Rate limits & quotas Source: https://docs.terrapinfinance.com/rate-limits-and-quotas Request throttling, ISIN quotas, and the headers we return. There are a few limits to be aware of: a per-minute **rate limit** on requests, a monthly **ISIN quota** for data retrieval, and a separate monthly **search ISIN quota**. All are determined by your subscription tier. ## Per-minute rate limit Most requests count as one unit against a rolling 60-second window with the exception of `/api/v1/*_search` endpoints, which consume quota dynamically based on the `limit` and `full_reference_data` parameters. Your tier's exact limit is reported on every response in the `ratelimit` header, which is the source of truth. ### Response headers We follow the [IETF draft v7 RateLimit header fields](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/): | Header | Format | Meaning | | - | - | - | | `ratelimit-policy` | `;w=` | The policy applied to your key. | | `ratelimit` | `limit=, remaining=, reset=` | Live state: `L` allowed in this window, `R` left, `T` seconds until reset. | | `retry-after` | `` | Set on `429` responses. Some HTTP clients use it to throttle automatically. | Example: ``` ratelimit-policy: 100;w=60 ratelimit: limit=100, remaining=42, reset=23 ``` ### When you exceed the limit You'll get `429 Too Many Requests` with `retry-after` set. The body uses the standard [error envelope](/errors): ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "errors": [ { "detail": "Too Many Requests" } ] } ``` Wait until `reset` (or `retry-after`) has elapsed and retry. If the server is shedding load, you may also see `429` briefly while it recovers. ### Practical tips * Read the `ratelimit` header and slow down before you hit zero. * Batch ISINs into one call when you can. Every endpoint accepts a list. * Add jitter to your retries to avoid thundering-herd patterns. ## Monthly ISIN quota Your tier caps how many **distinct ISINs** you can pull reference, pricing, or cash flow data for in a billing month. After an ISIN counts against your quota in a given month, repeated requests for it that month are free. > [!TIP] > > The `*_search` endpoints don't consume this data-retrieval ISIN quota — they're metered against a separate search ISIN quota. Use search to discover and filter before pulling reference or pricing data. ### Tiers Allowances, price-history windows, and resource access depend on your plan. Common tiers: * **Startup**: * 3,000 ISINs returned / month on reference, pricing, cashflows and equivalent endpoints; * 10,000 ISINs returned / month on search endpoints; * 1-year price history. * **Enterprise**: custom allowances and price-history windows. ## Response size limits The [search endpoints](/pagination) cap the number of items per response at your tier's maximum `limit` (typically 1,000, though higher response limits are available for enterprise users). A larger `limit` returns `422 Unprocessable Entity`. If your search matches more, page through the rest with `cursor`. Other endpoints have no such cap: they return all their results in one response, however large. # Use of Funds Taxonomy Source: https://docs.terrapinfinance.com/use_of_funds_taxonomy Classification system for US municipal bond proceeds The Use of Funds Taxonomy provides a standardized, hierarchical classification system for categorizing how **US municipal bond** proceeds are used. This three-level hierarchy helps investors understand and analyze US municipal bonds based on their intended purpose. ## Taxonomy Structure The taxonomy consists of three levels, from broadest to most specific: 1. **Use Sector** (Top Level) - 10 broad sectors representing major areas of public infrastructure and services 2. **Use Category** (Middle Level) - 31 categories providing more specific functional classifications 3. **Uses of Proceeds** (Bottom Level) - 73 specific uses describing the precise purpose of bond proceeds ### How the Hierarchy Works Each bond's use of proceeds maps to exactly one category, and each category belongs to exactly one sector. This creates a clear hierarchical relationship: **Use Sector → Use Category → Uses of Proceeds** For example: * **Sector**: transportation * **Category**: airport * **Proceeds**: airport Or a more complex example: * **Sector**: education * **Category**: higher education * **Proceeds**: public college, private college, community college, or student housing ### Important Note A single bond may have multiple sectors or categories if the uses of proceeds are diverse enough. For example, a bond that funds both a hospital and a school would be classified under both the healthcare and education sectors. ## Complete Taxonomy Reference The table below shows all possible values across the three-level hierarchy. The sector is shown only on the first row of each sector group for readability. | Use Sector | Use Category | Uses of Proceeds | | - | - | - | | **development** | **economic development** | **development district**, **hospitality**, **office buildings**, **public buildings**, **shopping centres** | | | **industrial development** | **industrial development**, **pollution control** | | **education** | **higher education** | **community college**, **private college**, **public college**, **student housing** | | | **pre-school** | **pre-school and daycare** | | | **primary and secondary education** | **charter school**, **public school district**, **standalone public school** | | **government** | **essential services** | **correctional facilities**, **courts**, **fire**, **police** | | | **general purpose** | **tribal** | | **healthcare** | **health system** | **health system** | | | **hospitals** | **critical access hospital**, **specialty hospital**, **standalone hospital** | | | **senior living** | **assisted living**, **continuing care retirement community**, **independent living**, **nursing home** | | **housing** | **military housing** | **military housing** | | | **multi-family housing** | **local hfa multi-family housing**, **local standalone multi-family housing**, **state hfa multi-family housing** | | | **public housing** | **public housing** | | | **single family housing** | **local hfa single family housing**, **local standalone single family housing**, **state hfa single family housing** | | **miscellaneous** | **miscellaneous** | **miscellaneous** | | **recreation** | **culture** | **community centre**, **library**, **museum** | | | **recreational** | **parks**, **stadium** | | **securitized** | **gas prepay** | **gas prepay** | | | **student loan** | **student loan** | | **transportation** | **airport** | **airport** | | | **bridges** | **non-toll bridges**, **regional toll bridges**, **state toll bridges** | | | **parking** | **parking facilities** | | | **port** | **combined port authority**, **standalone port** | | | **public transit** | **buses**, **ferries**, **trains** | | | **roads** | **non-toll roads**, **regional toll roads**, **state toll roads** | | **utility** | **communication** | **broadband**, **telephone** | | | **electrical** | **electrical infrastructure** | | | **gas** | **gas infrastructure** | | | **power** | **alternative source power**, **coal power**, **gas power**, **nuclear power**, **solar power**, **wind power** | | | **waste removal** | **waste removal** | | | **water and sewer** | **flood control**, **irrigation**, **sewer**, **storm water**, **water** | ## API Fields The taxonomy is available through three fields in our US municipal bonds API: ### use\_sectors Array of sectors (top level). Returns the broadest classification for a bond's use of funds. **Example values**: `["education"]`, `["transportation"]`, `["utility"]` **Available sectors (10 total)**: * `development` * `education` * `government` * `healthcare` * `housing` * `miscellaneous` * `recreation` * `securitized` * `transportation` * `utility` ### use\_categories Array of categories (middle level). Returns more specific functional classifications. **Example values**: `["higher education"]`, `["airport"]`, `["power"]` **Available categories (31 total)**: * `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` ### uses\_of\_proceeds Array of specific uses (bottom level). Returns the most detailed classification of how bond proceeds are used. **Example values**: `["public college"]`, `["airport"]`, `["solar power"]` **Available uses (73 total)**: * `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` ## Using the Taxonomy ### Understanding Bond Data When you retrieve bond data from the muni\_reference endpoint, you'll see all three taxonomy levels populated: ```json theme={"theme":{"light":"catppuccin-latte","dark":"github-dark-high-contrast"}} { "uses_of_proceeds": ["public college"], "use_categories": ["higher education"], "use_sectors": ["education"] } ``` This tells you that the bond is used for a public college (specific), which is a type of higher education (middle level), within the education sector (broad).