Expose paginated account orders and terminal order lookup
This commit is contained in:
@@ -15,6 +15,7 @@ CREATE TABLE IF NOT EXISTS orders (
|
||||
remaining INTEGER NOT NULL CHECK(remaining >= 0), status TEXT NOT NULL
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS active_book ON orders(market,outcome,seq) WHERE status='live';
|
||||
CREATE INDEX IF NOT EXISTS account_open_orders ON orders(account,seq) WHERE status='live';
|
||||
CREATE TABLE IF NOT EXISTS fills (
|
||||
seq INTEGER PRIMARY KEY, bid INTEGER REFERENCES orders, ask INTEGER REFERENCES orders,
|
||||
price INTEGER NOT NULL, quantity INTEGER NOT NULL
|
||||
|
||||
Reference in New Issue
Block a user