Skip to content

Commit

Permalink
Chore: Make release 1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
martinroberson committed Sep 23, 2024
1 parent 22ce113 commit ec41cd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gs_quant/markets/securities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ class FutureContract(Asset):
def __init__(self,
id_: str,
asset_class: Union[AssetClass, str],
name: Union[AssetClass, str],
name: str,
entity: Optional[Dict] = None):
if isinstance(asset_class, str):
asset_class = get_enum_value(AssetClass, asset_class)
Expand Down Expand Up @@ -1456,7 +1456,7 @@ def __gs_asset_to_asset(cls, gs_asset: GsAsset) -> Asset:
return Fund(gs_asset.id, gs_asset.name, gs_asset.assetClass, entity=asset_entity)

if asset_type == GsAssetType.Default_Swap.value:
return DefaultSwap(gs_asset.id, gs_asset.asset_class, entity=asset_entity)
return DefaultSwap(gs_asset.id, gs_asset.name, entity=asset_entity)

if asset_type == GsAssetType.Swaption.value:
return Swaption(gs_asset.id, gs_asset.name, entity=asset_entity)
Expand Down
9 changes: 9 additions & 0 deletions gs_quant/target/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4755,6 +4755,15 @@ class DateRange(Base):
name: Optional[str] = field(default=None, metadata=name_metadata)


@handle_camel_case_args
@dataclass_json(letter_case=LetterCase.CAMEL)
@dataclass(unsafe_hash=True, repr=False, order=True)
class DoubleParameter(RiskMeasureParameter):
value: Optional[float] = field(default=None, metadata=field_metadata)
parameter_type: Optional[str] = field(init=False, default='Double', metadata=field_metadata)
name: Optional[str] = field(default=None, metadata=name_metadata)


@handle_camel_case_args
@dataclass_json(letter_case=LetterCase.CAMEL)
@dataclass(unsafe_hash=True, repr=False)
Expand Down

0 comments on commit ec41cd8

Please sign in to comment.