1
0
Fork 0

[javascript] Implementing market data gathering and caching

This commit is contained in:
Julien Dessaux 2024-03-17 01:26:51 +01:00
parent 0377c99a54
commit 1b1df83ffd
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 65 additions and 7 deletions

View file

@ -0,0 +1,7 @@
CREATE TABLE markets (
id INTEGER PRIMARY KEY,
system TEXT NOT NULL,
data JSON NOT NULL
);
CREATE INDEX markets_system on markets (system);
CREATE UNIQUE INDEX markets_symbol on markets(json_extract(data, '$.symbol'));