Skip to content

Commit

Permalink
Chore: Make release 1.0.84
Browse files Browse the repository at this point in the history
  • Loading branch information
martinroberson committed Jun 14, 2024
1 parent b250d09 commit 4bfcf8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gs_quant/markets/historical.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(
raise ValueError('Must supply start or dates')

def _market(self, date: dt.date, location: str) -> CloseMarket:
date = prev_business_date(date) if date == dt.date.today() else date
date = prev_business_date(date) if date >= dt.date.today() else date
return CloseMarket(location=location, date=date, check=False)

def calc(self, instrument: InstrumentBase, risk_measure: RiskMeasure) -> PricingFuture:
Expand Down
3 changes: 2 additions & 1 deletion gs_quant/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def _has_async_session(self) -> bool:
def _init_async(self):
import httpx
if not self._has_async_session():
self._session_async = httpx.AsyncClient(follow_redirects=True, verify=self.verify, proxies=self.proxies)
self._session_async = httpx.AsyncClient(follow_redirects=True, verify=CustomHttpAdapter.ssl_context(),
proxies=self.proxies)
self._session_async.headers.update({'X-Application': self.application})
self._session_async.headers.update({'X-Version': self.application_version})
self._authenticate_async()
Expand Down

0 comments on commit 4bfcf8c

Please sign in to comment.