bugfixing

This commit is contained in:
MuslemRahimi 2025-04-15 15:02:45 +02:00
parent c0b79e2cfa
commit aa9b9af89e

View File

@ -417,6 +417,7 @@
); );
const output = await getContractHistory(optionSymbol); const output = await getContractHistory(optionSymbol);
selectedOptionPrice = output?.history?.at(-1)?.mark selectedOptionPrice = output?.history?.at(-1)?.mark
? output?.history?.at(-1)?.mark ? output?.history?.at(-1)?.mark
: output?.history?.at(-1)?.close || 0; : output?.history?.at(-1)?.close || 0;
@ -454,7 +455,9 @@
); );
const output = await getContractHistory(optionSymbol); const output = await getContractHistory(optionSymbol);
selectedOptionPrice = output?.history?.at(-1)?.mark || 0; selectedOptionPrice = output?.history?.at(-1)?.mark
? output?.history?.at(-1)?.mark
: output?.history?.at(-1)?.close || 0;
// Update user strategy if necessary // Update user strategy if necessary
userStrategy = [ userStrategy = [