We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be35db1 commit 50a4868Copy full SHA for 50a4868
1 file changed
extensions/cpp/topstep/cython/topstep.pyx
@@ -222,11 +222,11 @@ cdef class TopstepClient:
222
response = await client.post(url, json=payload, headers=headers)
223
return self._handle_response(response)
224
225
- async def search_contracts(self, str search_text="NQ"):
+ async def search_contracts(self, str search_text="NQ", bool live=False):
226
"""Async REST search contracts"""
227
url = f"{self.base_url}/api/Contract/search"
228
headers = self._get_headers()
229
- payload = {"searchText": search_text}
+ payload = {"searchText": search_text, "live": live}
230
async with httpx.AsyncClient() as client:
231
232
0 commit comments