Files
foxhunt/crates/market-data/sqlx-data.json
jgrusewski 9c3d741a08 refactor: restructure repo — crates/, bin/, testing/ layout
Move 17 library crates into crates/, CLI binary into bin/fxt,
consolidate 10 test crates into testing/, split config crate
from deployment config files.

Root directory reduced from 38+ to ~17 directories.
All Cargo.toml paths and build.rs proto refs updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:56:00 +01:00

134 lines
5.6 KiB
JSON

{
"db": "PostgreSQL",
"c8e8b7f8bc26efad81d6dd8e6b9c2d59": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE TABLE IF NOT EXISTS prices (\n id UUID PRIMARY KEY,\n symbol VARCHAR(20) NOT NULL,\n timestamp TIMESTAMPTZ NOT NULL,\n bid DECIMAL(20,8),\n ask DECIMAL(20,8),\n last DECIMAL(20,8),\n volume DECIMAL(20,8),\n open DECIMAL(20,8),\n high DECIMAL(20,8),\n low DECIMAL(20,8),\n close DECIMAL(20,8),\n created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),\n UNIQUE(symbol, timestamp)\n );"
},
"d4e8a7c3f2e1b9d6a8c7e4f1a2b3c8d9": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE TABLE IF NOT EXISTS candles (\n id UUID PRIMARY KEY,\n symbol VARCHAR(20) NOT NULL,\n period VARCHAR(20) NOT NULL,\n timestamp TIMESTAMPTZ NOT NULL,\n open DECIMAL(20,8) NOT NULL,\n high DECIMAL(20,8) NOT NULL,\n low DECIMAL(20,8) NOT NULL,\n close DECIMAL(20,8) NOT NULL,\n volume DECIMAL(20,8) NOT NULL,\n created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),\n UNIQUE(symbol, period, timestamp)\n );"
},
"1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "DO $$ BEGIN\n CREATE TYPE order_side AS ENUM ('bid', 'ask');\n EXCEPTION\n WHEN duplicate_object THEN null;\n END $$;"
},
"7f8e9d0c1b2a3948576e1d2c3b4a5968": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE TABLE IF NOT EXISTS order_book_levels (\n id UUID PRIMARY KEY,\n symbol VARCHAR(20) NOT NULL,\n timestamp TIMESTAMPTZ NOT NULL,\n side order_side NOT NULL,\n price DECIMAL(20,8) NOT NULL,\n quantity DECIMAL(20,8) NOT NULL,\n level INTEGER NOT NULL,\n created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),\n UNIQUE(symbol, timestamp, side, level)\n );"
},
"a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "DO $$ BEGIN\n CREATE TYPE indicator_type AS ENUM (\n 'sma', 'ema', 'rsi', 'macd', 'bollinger_bands',\n 'stochastic', 'atr', 'volume_weighted_average_price'\n );\n EXCEPTION\n WHEN duplicate_object THEN null;\n END $$;"
},
"b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE TABLE IF NOT EXISTS technical_indicators (\n id UUID PRIMARY KEY,\n symbol VARCHAR(20) NOT NULL,\n indicator_type indicator_type NOT NULL,\n timestamp TIMESTAMPTZ NOT NULL,\n value DECIMAL(20,8) NOT NULL,\n parameters JSONB NOT NULL DEFAULT '{}',\n created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),\n UNIQUE(symbol, indicator_type, timestamp)\n );"
},
"c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_prices_symbol_timestamp ON prices(symbol, timestamp DESC);"
},
"d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_prices_timestamp ON prices(timestamp DESC);"
},
"e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_candles_symbol_period_timestamp ON candles(symbol, period, timestamp DESC);"
},
"f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_order_book_symbol_timestamp ON order_book_levels(symbol, timestamp DESC);"
},
"g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_order_book_symbol_side_timestamp ON order_book_levels(symbol, side, timestamp DESC);"
},
"h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_indicators_symbol_type_timestamp ON technical_indicators(symbol, indicator_type, timestamp DESC);"
},
"i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE INDEX IF NOT EXISTS idx_indicators_symbol_timestamp ON technical_indicators(symbol, timestamp DESC);"
},
"queries": {}
}