Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why I cannot do reqPositions()? #52

Open
hasakura511 opened this issue Jan 10, 2017 · 1 comment
Open

Why I cannot do reqPositions()? #52

hasakura511 opened this issue Jan 10, 2017 · 1 comment

Comments

@hasakura511
Copy link

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']

@programmingwithalex
Copy link

Did you ever find a solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants