Skip to content

Commit 50a4868

Browse files
committed
Fix(topstep): Add missing 'live' param to search_contracts
1 parent be35db1 commit 50a4868

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/cpp/topstep/cython/topstep.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ cdef class TopstepClient:
222222
response = await client.post(url, json=payload, headers=headers)
223223
return self._handle_response(response)
224224

225-
async def search_contracts(self, str search_text="NQ"):
225+
async def search_contracts(self, str search_text="NQ", bool live=False):
226226
"""Async REST search contracts"""
227227
url = f"{self.base_url}/api/Contract/search"
228228
headers = self._get_headers()
229-
payload = {"searchText": search_text}
229+
payload = {"searchText": search_text, "live": live}
230230
async with httpx.AsyncClient() as client:
231231
response = await client.post(url, json=payload, headers=headers)
232232
return self._handle_response(response)

0 commit comments

Comments
 (0)