Split from btcprice monolith. Owns DB, migrations, Binance WebSocket, Kraken OHLC pollers, and exposes a JSON API with SSE price stream. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
416 B
SQL
12 lines
416 B
SQL
CREATE TABLE kraken_day (
|
|
ts BIGINT NOT NULL PRIMARY KEY,
|
|
open NUMERIC(18,8) NOT NULL,
|
|
high NUMERIC(18,8) NOT NULL,
|
|
low NUMERIC(18,8) NOT NULL,
|
|
close NUMERIC(18,8) NOT NULL,
|
|
vwap NUMERIC(18,8) NOT NULL,
|
|
volume NUMERIC(24,8) NOT NULL,
|
|
trade_count INTEGER NOT NULL,
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
|
);
|