adding position and trade endpoints

This commit is contained in:
zipfriis
2026-03-25 17:09:31 +01:00
parent 52d99c7012
commit b9f462f5be
5 changed files with 43 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ func InitDB(db *sql.DB) {
CREATE TABLE IF NOT EXISTS position (
id INTEGER PRIMARY KEY AUTOINCREMENT,
company_id INTEGER NOT NULL,
currency_id INTEGER NOT NULL,
shares INTEGER NOT NULL,
weight REAL NOT NULL,
CostBases REAL NOT NULL,