MiniCTRMSearch

MiniCTRM - Build Tutorial 623: Integrations: CSV in and out, feed adapters and the API

→ to begin · N for the speaker notes

On a phone: Next or a swipe left to begin, Notes for the words.

What you'll learn

A deal CSV import and export with a Check first and a rejections report by line, a market-data adapter behind one interface with a file-based and a test implementation picked by a setting, a trade inbox where an arrival lands as received and is booked through the one door, outbound files written by a job and never overwritten, and the API documented from the code under a versioned path.

  • What an integration is – File, call and feed: the three ways another system's data arrives or leaves.
  • Data coming in – The three rules that keep an integration safe; deals by CSV, a market-data adapter behind one interface, and a trade inbox through the one door.
  • Data going out, and the API – How a file is handed to another system safely; files written on a schedule and never overwritten; the API documented from the code, with a version.
  • Ship it – Every test, a build, a commit.
  • How MiniCTRM did it – Import from CSV and the one door behind it; the API's description, and the two things MiniCTRM has not built.

Before you start

The lessons this one builds on: 542 Market data: forward curves, FX, settlement prices and closes, 613 Treasury and accounting: the cash ladder, postings and month-end, 621 End of day: close the market, run the valuation, automate the night, 622 Running jobs in parallel: the end of day in ten minutes, not twenty.

Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.

Welcome

Other systems' data, in and out

1 / 15
Other systems' data, in and out
What an integration is

By file, by call, by feed

2 / 15
By file, by call, by feed
Data coming in

Three rules that keep an integration safe

3 / 15
Three rules that keep an integration safe
Data coming in

Deals by CSV, in and out

4 / 15
Deals by CSV, in and out
Data coming in

An interface, an adapter and a seam

5 / 15
An interface, an adapter and a seam
Data coming in

A market-data adapter

6 / 15
A market-data adapter
Data coming in

A trade inbox

7 / 15
A trade inbox
Data going out, and the API

Handing a file to another system

8 / 15
Handing a file to another system
Data going out, and the API

Files going out, on a schedule

9 / 15
Files going out, on a schedule
Data going out, and the API

What an API is, and why it is documented from the code

10 / 15
What an API is, and why it is documented from the code
Data going out, and the API

Documented from the code, under /api/v1

11 / 15
Documented from the code, under /api/v1
Ship it

Ship it

12 / 15
Ship it
How MiniCTRM did it

Import from CSV, and the door behind it

13 / 15
Import from CSV, and the door behind it
How MiniCTRM did it

The API's description, and a glossary kept by a test

14 / 15
The API's description, and a glossary kept by a test
What you have now

What you have now

15 / 15
What you have now

You have finished lesson 623, Integrations: CSV in and out, feed adapters and the API.

Where next?

← → move · N notes · Home / End