Skip to navigation

Market Scan Parameters

View as MarkdownOpen in Claude

Introduction

A string containing all available XML-formatted parameters will be returned via EWrapper.scannerParameters. All values used for the ScannerSubscription object are pulled from EClient.reqScannerParameters response.


Request Market Scanner Parameters

EClient.reqScannerParameters()

Requests an XML list of scanner parameters valid in TWS.

self.reqScannerParameters()

Receive Market Scanner Parameters

EWrapper.scannerParameters(xml)

Provides the xml-formatted parameters available from TWS market scanners (not all available in API).

xml
string

The xml-formatted string with the available parameters.


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