Skip to content

Commit 4c07e85

Browse files
committed
release
1 parent 091f2ca commit 4c07e85

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "quantflow"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "quantitative analysis"
55
authors = [{ name = "Luca Sbardella", email = "[email protected]" }]
66
license = "BSD-3-Clause"

quantflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Quantitative analysis and pricing"""
22

3-
__version__ = "0.4.0"
3+
__version__ = "0.4.1"

quantflow/options/surface.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,13 +860,21 @@ def add(self, input: VolSurfaceInput) -> None:
860860
it can be spot, forward or option
861861
"""
862862
if isinstance(input, SpotInput):
863-
self.add_spot(VolSecurityType.spot, bid=input.bid, ask=input.ask)
863+
self.add_spot(
864+
VolSecurityType.spot,
865+
bid=input.bid,
866+
ask=input.ask,
867+
open_interest=input.open_interest,
868+
volume=input.volume,
869+
)
864870
elif isinstance(input, ForwardInput):
865871
self.add_forward(
866872
VolSecurityType.forward,
867873
maturity=input.maturity,
868874
bid=input.bid,
869875
ask=input.ask,
876+
open_interest=input.open_interest,
877+
volume=input.volume,
870878
)
871879
elif isinstance(input, OptionInput):
872880
self.add_option(
@@ -876,6 +884,8 @@ def add(self, input: VolSurfaceInput) -> None:
876884
maturity=input.maturity,
877885
bid=input.bid,
878886
ask=input.ask,
887+
open_interest=input.open_interest,
888+
volume=input.volume,
879889
)
880890
else:
881891
raise ValueError(f"Unknown input type {type(input)}")

0 commit comments

Comments
 (0)