Mirexa

A time-series database for candles and ticks

Candles and ticks for trading and research, live and historical.

  • 1.7 million candles written a second, 5.3× faster than QuestDB.
  • A day of one symbol read in 0.58 ms, 15× faster than QuestDB.
  • History and live bars in one subscription.
  • Replication, failover and access control included, not an Enterprise tier.
  • Add nodes to share the read load: copies of your data answer reads too.
Mirexa's web console showing a candlestick chart of a one-minute BTCUSDT stream with volume bars, marked live.
The web console charting a one-minute stream (generated demo data).

Write and read from Go or Python

A few lines to write bars and read them back. A command-line tool imports and exports CSV.

main.go
c, err := client.Dial("localhost:8080", client.Options{})
if err != nil {
	log.Fatal(err)
}
defer c.Close()

stream := client.NewStreamID("binance", "ETHUSDT", "1m")

err = c.IngestCandles(ctx, stream, bars, client.DurabilityAcked)

resp, err := c.QueryCandles(ctx, client.QueryRequest{
	StreamID:  stream,
	StartTime: start.UnixNano(),
	EndTime:   end.UnixNano(),
})
for _, p := range resp.Points {
	fmt.Println(p.Candle.Timestamp, p.Candle.Close)
}

What it does

History and live, together
Get past bars, then each new one as it arrives, with nothing missed in between.
Every timeframe from one feed
Send trades and Mirexa builds the 1m, 5m, hourly and daily bars for you.
Any bar size on demand
Ask for 3-hour or weekly bars when you query, without storing them. A million trades become minute bars in 45 ms.
Incomplete bars are flagged
A bar built while data was missing is marked, so you never mistake it for a real one.
Fix the past while live
Load years of history or correct a bar without stopping the feed.
Knows when the market is closed
A weekend shows as closed, not as missing data. A real outage shows as a gap you can fill.

Benchmark

Seven databases and plain Parquet files, on one cloud machine that ran nothing but the benchmark, with the same 10 million candles. Each system ran at its defaults and with tuning; the table shows whichever did better. Median of five runs.

MeasureMirexaNext bestQuestDB
Candles written per second, each batch saved to disk1,653K1,742KParquet + DuckDB311K
Read one day of one symbol (1,440 bars), median0.58 ms2.70 msTimescaleDB8.47 ms
Read the latest 100 bars, median0.19 ms1.14 msQuestDB1.14 ms
One-day reads per second, eight clients at once4,2591,066TimescaleDB576
Size on disk for 10 million candles116 MiB102 MiBDuckDB table525 MiB

Level with Parquet + DuckDB on writing (a library inside the client, not a server) and with DuckDB table on size on disk. A whole symbol reads 1.3× faster than on ClickHouse here; ClickHouse is quicker on cold reads and at 100 million rows. All results and caveats.

Project status

In development, by one developer.

Single node
Works: writes, recovery, queries, corrections, subscriptions, derived timeframes, rollups, gap repair, auth, web console.
Clustering
Built and tested. Off by default.
Not yet
Clients for languages other than Go and Python. Known limits.