Folio

Use the data

The deals Folio serves, as JSON, for your own code.

Every figure on this site comes from a read-only API. The /v1 routes below are the stable part of it: their paths and response shapes are versioned, and a change that would break a caller ships as /v2, not as an edit to /v1.

Access

  • This is an open demo: no key and no sign-up.
  • It is read-only: every route is a GET, and nothing you send changes anything.
  • It makes no model call: a v1 route serves what is already stored.
  • There is no rate limit on reads today. That may change; please be considerate.
  • There is no CORS: call it from a notebook or a server, not from another site's browser page.

Routes

Under https://folio.waafir.io/api/v1. The full schema is at /api/v1/openapi.json.

  • GET /dealsEvery deal Folio serves, one row each.
  • GET /deals/{deal_id}/modelA deal's extracted model: terms, parties, tranches.
  • GET /deals/{deal_id}/waterfallA period's reconstructed waterfall.
  • GET /deals/{deal_id}/complianceThe deal's tests and triggers.
  • GET /deals/{deal_id}/validationThe model checked against the deal's own documents.
  • GET /deals/{deal_id}/report-gateThe report reconciled against the engine, with the items a person should review.
  • GET /deals/{deal_id}/reported-itemsWhat the report prints that the engine does not model.
  • GET /deals/{deal_id}/report-verificationThe report's figures against the engine's.

An example

import requests

BASE = "https://folio.waafir.io/api/v1"

# Every deal Folio serves, one row each.
deals = requests.get(f"{BASE}/deals").json()
deal_id = "green-lion-2024-1"
print(len(deals), "deals;", [d["name"] for d in deals if d["id"] == deal_id])

# The reconstructed waterfall for the deal's latest period.
waterfall = requests.get(f"{BASE}/deals/{deal_id}/waterfall").json()
print(waterfall["reporting_period"], waterfall["total_distributed"])

# The deal's tests and triggers.
compliance = requests.get(f"{BASE}/deals/{deal_id}/compliance").json()
print(compliance["summary"])

The same code as a notebook: folio-data-api.ipynb.