update market flow page
This commit is contained in:
parent
93a4b443a1
commit
b90db7eb53
@ -213,20 +213,6 @@
|
|||||||
function getPlotOptions() {
|
function getPlotOptions() {
|
||||||
isLoading = true;
|
isLoading = true;
|
||||||
let dates = marketTideData?.map((item) => item?.timestamp);
|
let dates = marketTideData?.map((item) => item?.timestamp);
|
||||||
dates = dates.map((dateString) => {
|
|
||||||
const date = new Date(dateString);
|
|
||||||
const formatter = new Intl.DateTimeFormat("en-US", {
|
|
||||||
timeZone: "America/New_York",
|
|
||||||
year: "numeric",
|
|
||||||
month: "2-digit",
|
|
||||||
day: "2-digit",
|
|
||||||
hour: "2-digit",
|
|
||||||
minute: "2-digit",
|
|
||||||
second: "2-digit",
|
|
||||||
hour12: false,
|
|
||||||
});
|
|
||||||
return formatter.format(date);
|
|
||||||
});
|
|
||||||
|
|
||||||
const priceList = marketTideData?.map((item) => item?.close);
|
const priceList = marketTideData?.map((item) => item?.close);
|
||||||
const netCallPremList = marketTideData?.map(
|
const netCallPremList = marketTideData?.map(
|
||||||
@ -240,7 +226,7 @@
|
|||||||
animation: false,
|
animation: false,
|
||||||
backgroundColor: "#18181D",
|
backgroundColor: "#18181D",
|
||||||
legend: {
|
legend: {
|
||||||
data: ["SPY Price", "Vol", "Net Call Premium", "Net Put Premium"],
|
data: ["Price", "Vol", "Net Call Premium", "Net Put Premium"],
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
},
|
},
|
||||||
@ -356,7 +342,8 @@
|
|||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
show: false,
|
color: "#fff",
|
||||||
|
show: true,
|
||||||
},
|
},
|
||||||
scale: true,
|
scale: true,
|
||||||
min: (value) => Math.floor(value.min * 0.999),
|
min: (value) => Math.floor(value.min * 0.999),
|
||||||
@ -387,14 +374,14 @@
|
|||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: "SPY Price",
|
name: "Price",
|
||||||
type: "line",
|
type: "line",
|
||||||
data: priceList,
|
data: priceList,
|
||||||
yAxisIndex: 0,
|
yAxisIndex: 0,
|
||||||
xAxisIndex: 0,
|
xAxisIndex: 0,
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
lineStyle: { color: "#fff" },
|
lineStyle: { color: "#fff" },
|
||||||
itemStyle: { color: "#FFD700" },
|
itemStyle: { color: "#fff" },
|
||||||
smooth: true,
|
smooth: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user