Scanner Parameters

A list of TWS scanner parameters can be obtained via LYNXApi.EClient.reqScannerParameters. Not all of the returned parameters to scannerParameters are available from the API scanners.

** Python **


** Java **


A string containing all available XML-formatted parameters will then be returned via LYNXApi.EWrapper.scannerParameters

** Python **

class TestWrapper(wrapper.EWrapper):

    def scannerParameters(self, xml: str):
        open('log/scanner.xml', 'w').write(xml)
        print("ScannerParameters received.")`

** Java **

public class EWrapperImpl implements EWrapper {

    public void scannerParameters(String xml) {
        System.out.println("ScannerParameters. "+xml+"\n");

Important:** remember the TWS API is just an interface to the TWS. If you are having problems defining a scanner, always make sure you can create a similar scanner using the TWS' Advanced Market Scanner.