From b3d3340abf3127607d4ef2177d47cf304f952529 Mon Sep 17 00:00:00 2001 From: Jackson Randolph Date: Sat, 15 Jun 2024 22:28:03 -0400 Subject: [PATCH] Add has method --- src/tradingview_screener/query.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tradingview_screener/query.py b/src/tradingview_screener/query.py index 6b015b20..04593e04 100644 --- a/src/tradingview_screener/query.py +++ b/src/tradingview_screener/query.py @@ -160,6 +160,9 @@ def not_between(self, left, right) -> FilterOperationDict: def isin(self, values) -> FilterOperationDict: return FilterOperationDict(left=self.name, operation='in_range', right=list(values)) + + def has(self, values) -> FilterOperationDict: + return FilterOperationDict(left=self.name, operation='has', right=list(values)) def like(self, other) -> FilterOperationDict: return FilterOperationDict(