Skip to content

Why I cannot do reqPositions()? #52

Description

@hasakura511

when i do:
tws.reqPositions()

it gives me this error:
AttributeError: 'EPosixClientSocket' object has no attribute 'reqPositions'

When i checked the swigibpy.py
reqPositions is defined in EClient and EClientSocketBase

def reqPositions(self):
    """reqPositions(EClientSocketBase self)"""
    return _swigibpy.EClientSocketBase_reqPositions(self)

when I do dir(EPosixClientSocket) its not there. Can someone please help me understand why and how to load it?

Thanks.

Out[13]:
['TwsConnectionTime',
'class',
'delattr',
'dict',
'doc',
'format',
'getattribute',
'hash',
'init',
'module',
'new',
'reduce',
'reduce_ex',
'repr',
'setattr',
'sizeof',
'str',
'subclasshook',
'swig_destroy',
'weakref',
'calculateImpliedVolatility',
'calculateOptionPrice',
'cancelCalculateImpliedVolatility',
'cancelCalculateOptionPrice',
'cancelFundamentalData',
'cancelHistoricalData',
'cancelMktData',
'cancelMktDepth',
'cancelNewsBulletins',
'cancelOrder',
'cancelRealTimeBars',
'cancelScannerSubscription',
'checkMessages',
'clientId',
'eConnect',
'eDisconnect',
'exerciseOptions',
'fd',
'handleSocketError',
'isConnected',
'isInBufferEmpty',
'isOutBufferEmpty',
'isSocketOK',
'onError',
'onReceive',
'onSend',
'placeOrder',
'replaceFA',
'reqAccountUpdates',
'reqAllOpenOrders',
'reqAutoOpenOrders',
'reqContractDetails',
'reqCurrentTime',
'reqExecutions',
'reqFundamentalData',
'reqGlobalCancel',
'reqHistoricalData',
'reqIds',
'reqManagedAccts',
'reqMarketDataType',
'reqMktData',
'reqMktDepth',
'reqNewsBulletins',
'reqOpenOrders',
'reqRealTimeBars',
'reqScannerParameters',
'reqScannerSubscription',
'requestFA',
'serverVersion',
'setServerLogLevel',
'thisown']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions