Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
How to use AbstractField type="scanner.filter.ComboField" in Scanner Subscription Request?
I am trying to replicate my TWS Market scanner in the TWS API, but I cannot find how to include the universe filter for CORP stocks (i.e. single company stocks not including ADRs/ETFs/ETNs/etc.) in the API.?
I found the scanner parameter I want to use in line 19477 of the "scanner_parameters.xml" file generated by reqScannerParameters(), but I can't find how to use this field from the API docs. The examples in the docs at ?use Instrument, LocationCode, Scancode and Tag fields, but as far as I can tell, the "inc:CORP" field does not correspond to any of those fields. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<ComboValue>
<code>inc:CORP</code>
<displayName>CORP</displayName>
<tooltip>Corporation</tooltip>
<default>false</default>
<syntheticAll>false</syntheticAll>
</ComboValue> Would really appreciate any help/pointers anyone can provide on implementing this scanner.filter.ComboField parameter |
We don't have that much practical experience with scanners, but the value you are asking about belongs to the "SimpleFilter" with id "STKTYPE". That suggests that you can incorporate it into your custom scanners through theStockTypeFilter field of the ScannerSubscription class.
toggle quoted message
Show quoted text
Hope this helps. JR On Sun, Aug 8, 2021 at 05:02 PM, <tl665575@...> wrote: I am trying to replicate my TWS Market scanner in the TWS API, but I cannot find how to include the universe filter for CORP stocks (i.e. single company stocks not including ADRs/ETFs/ETNs/etc.) in the API.? |
It should have said the? ? field of the ScannerSubscription class
toggle quoted message
Show quoted text
On Sun, Aug 8, 2021 at 08:19 PM, JR wrote:
We don't have that much practical experience with scanners, but the value you are asking about belongs to the "SimpleFilter" with id "STKTYPE". That suggests that you can incorporate it into your custom scanners through theStockTypeFilter field of the ScannerSubscription class. |
to navigate to use esc to dismiss