From 8330566080a533e41f086f1f45edf3f8fc98c6e5 Mon Sep 17 00:00:00 2001 From: Marko Djordjevic Date: Thu, 12 Feb 2026 18:49:16 +0100 Subject: [PATCH] docs: update README with CSV replace mode and initial data loading --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1bd7420..8046ef5 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ Candle Annotator provides a TradingView-like charting interface that allows trad ### Data Management - **CSV Upload**: Import OHLC data with support for both Unix timestamps and date strings + - **Replace Mode**: Uploading a new CSV deletes all old candles and replaces them with new data + - **Initial Data**: Docker containers automatically load EURUSD.csv on first startup if database is empty - **SQLite Storage**: All candle data and annotations stored locally in SQLite database - **Data Persistence**: Annotations and candles persist between sessions @@ -183,6 +185,7 @@ timestamp,label_type,price ### POST /api/upload Upload CSV file and store candle data +**Behavior**: Deletes all existing candles before inserting new data (replace mode) **Request**: multipart/form-data with `file` field **Response**: `{ success: true, count: number }` or `{ error: string }`