Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 28caba57ca | |||
| 60e09b261a | |||
| 8a2aa8478e | |||
| 7dd43b0a34 |
@@ -0,0 +1 @@
|
||||
20
|
||||
+1
-1
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
20
|
||||
+2
-2
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user