Customer story · Trading

A trading company cut fraud by 36.8% with real-time scoring in SQL

−36.8%

fraud after moving to real-time detection

  • −36.8%fraud · trading
  • −23%migration TCO · fintech
  • ~1Mqueries a day · fintech
  • MariaDB partner
  • Apache 2.0
  • On-prem · no telemetry

Situation

  • Fraud was detected about 2 hours after it happened.
  • Exchange data went from Kafka through ETL into Databricks, Greenplum and ClickHouse before risk monitoring saw it.
  • On top of that, the company paid for several third-party anti-fraud tools.

What they did with Otterstax

  • Otterstax reads the stream in Kafka, takes only the data each query needs and sends the result straight to risk monitoring.
  • Transactions are scored by an ONNX model called as a SQL function (Enterprise).
  • One engine replaced ETL, Databricks, Greenplum and ClickHouse in this flow, along with several third-party tools.
  • Anti-fraud ML no longer waits for data, and complex fraud schemes are caught too.

Results

−36.8%

fraud after moving to real-time detection

~2 h → real time

time to detect fraud

4 → 1

systems between Kafka and risk monitoring

Stack

Before
Exchange → Kafka → ETL → Databricks, Greenplum, ClickHouse → risk monitoring
After
Exchange → Kafka → Otterstax → risk monitoring
Otterstax
ML models as SQL functions (ONNX) — Enterprise
Replaced
ETL, Databricks, Greenplum, ClickHouse and several third-party anti-fraud tools

Otterstax in action

  1. 1Transactions stream in
  2. 2Score it in SQL
  3. 3Act on the score right away
Trading

Fraud in real time

Step 3 / 3 Act on the score right away

The anti-fraud service reads the score as soon as the transaction lands, instead of about 2 hours later.

−36.8%

fraud after moving to real-time detection

Read the customer story →

Why teams trust Otterstax

In production

  • Banking PostgreSQL → MariaDB migration, 80–100 TB, in 1 year instead of 2
  • Payments 30–50% faster time-to-production for ML features
  • Trading −36.8% fraud with real-time scoring in SQL
Case study on mariadb.org Customer stories →

Security

  • On-prem / self-hosted only
  • no telemetry, no phone-home
  • zero copy: queries run where the data lives
Security overview →

Live project

  • 9 commits in the last 90 days
GitHub →

Talks

As presented at Internals Berlin 2025 and PyData Yerevan 2026

For your CTO

The short version for whoever signs off

Money and speed

  • −36.8%fraud after moving to real-time detection · a trading company
  • 1 yearmigration time, instead of the estimated 2 · a fintech company
  • 30–50%faster time-to-production for anti-fraud ML features · a payments company

Risk, taken off the table

  • On-prem and self-hosted only, no telemetry: data never leaves your infrastructure.
  • Apache 2.0 core: your team can read, audit and fork the code.
  • Start with a 2-week pilot on your own data sources.

See Otterstax on your own data sources

In a 30-minute call we'll map your stack and show a working query across your data sources.