Compare commits

..

4 Commits

Author SHA1 Message Date
Avraham Sakal 28caba57ca add .nvmrc to frontend and server 2024-06-23 17:51:03 -04:00
Avraham Sakal 60e09b261a proper html title 2024-06-23 17:50:50 -04:00
Avraham Sakal 8a2aa8478e truncate calendar prices to two decimal places 2024-06-23 17:48:40 -04:00
Avraham Sakal 7dd43b0a34 second route for historical calendar page 2024-06-23 17:48:11 -04:00
5 changed files with 9 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
20
+1 -1
View File
@@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>Vite + Preact</title>
<title>Options Calendar Spread Research Tool</title>
</head>
<body>
<div id="app"></div>
+4 -1
View File
@@ -17,7 +17,10 @@ export function App() {
<Router>
<Route path="/" component={HistoricalCalendarPrices} />
<Route path="/calendar-optimizer" component={CalendarOptimizer} />
{/* <Route path="/historical-calendar-prices" component={HistoricalCalendarPrices} /> */}
<Route
path="/historical-calendar-prices"
component={HistoricalCalendarPrices}
/>
<Route default component={NotFound} />
</Router>
</main>
+1
View File
@@ -0,0 +1 @@
20
+2 -2
View File
@@ -246,7 +246,7 @@ const appRouter = router({
`
SELECT
toUnixTimestamp(tsStart) as x,
calendarPrice as y
truncate(calendarPrice, 2) as y
FROM calendar_histories
WHERE symbol = '${underlying}'
AND daysToFrontExpiration = ${daysToFrontExpiration}
@@ -285,7 +285,7 @@ const appRouter = router({
`
SELECT
FLOOR(strikePercentageFromUnderlyingPrice, 1) as x,
calendarPrice as y
truncate(calendarPrice, 2) as y
FROM calendar_histories
WHERE symbol = '${underlying}'
AND daysToFrontExpiration = ${daysToFrontExpiration}