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" />
|
<link rel="stylesheet" type="text/css" href="/index.css" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<title>Vite + Preact</title>
|
<title>Options Calendar Spread Research Tool</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ export function App() {
|
|||||||
<Router>
|
<Router>
|
||||||
<Route path="/" component={HistoricalCalendarPrices} />
|
<Route path="/" component={HistoricalCalendarPrices} />
|
||||||
<Route path="/calendar-optimizer" component={CalendarOptimizer} />
|
<Route path="/calendar-optimizer" component={CalendarOptimizer} />
|
||||||
{/* <Route path="/historical-calendar-prices" component={HistoricalCalendarPrices} /> */}
|
<Route
|
||||||
|
path="/historical-calendar-prices"
|
||||||
|
component={HistoricalCalendarPrices}
|
||||||
|
/>
|
||||||
<Route default component={NotFound} />
|
<Route default component={NotFound} />
|
||||||
</Router>
|
</Router>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
20
|
||||||
+2
-2
@@ -246,7 +246,7 @@ const appRouter = router({
|
|||||||
`
|
`
|
||||||
SELECT
|
SELECT
|
||||||
toUnixTimestamp(tsStart) as x,
|
toUnixTimestamp(tsStart) as x,
|
||||||
calendarPrice as y
|
truncate(calendarPrice, 2) as y
|
||||||
FROM calendar_histories
|
FROM calendar_histories
|
||||||
WHERE symbol = '${underlying}'
|
WHERE symbol = '${underlying}'
|
||||||
AND daysToFrontExpiration = ${daysToFrontExpiration}
|
AND daysToFrontExpiration = ${daysToFrontExpiration}
|
||||||
@@ -285,7 +285,7 @@ const appRouter = router({
|
|||||||
`
|
`
|
||||||
SELECT
|
SELECT
|
||||||
FLOOR(strikePercentageFromUnderlyingPrice, 1) as x,
|
FLOOR(strikePercentageFromUnderlyingPrice, 1) as x,
|
||||||
calendarPrice as y
|
truncate(calendarPrice, 2) as y
|
||||||
FROM calendar_histories
|
FROM calendar_histories
|
||||||
WHERE symbol = '${underlying}'
|
WHERE symbol = '${underlying}'
|
||||||
AND daysToFrontExpiration = ${daysToFrontExpiration}
|
AND daysToFrontExpiration = ${daysToFrontExpiration}
|
||||||
|
|||||||
Reference in New Issue
Block a user