Here the service description
#http://ws.eoddata.com/data.asmx?op=ExchangeList
All the examples I've send in a dictionary to itemize the returns
in the arguments however this API accepts simple input of the login
token but returns a complex result. Here is the code I have so far:
#http://ws.eoddata.com/data.asmx?op=ExchangeList
client =
Client('http://ws.eoddata.com/data.asmx?wsdl')
logintoken = client.service.Login('edit', 'edit')
#print str(logintoken)
exchange = client.factory.create('EXCHANGE')
#data =
client.service.SymbolHistory(logintoken._Token,'COMEX','SI','2011031
5')
EXCHANGES = client.service.ExchangeList(logintoken._Token)
print str(dir(exchange))
print str(dir(EXCHANGES))
sys.exit(1)
for exch in res.EXCHANGES:
print "\n"
print exch.index
sys.exit(1)
I want to be able to iterate my return like an object but I can't
figure out how to do so. If it helps further here is the output
since you would have to sign up for the service to test it:
Playground: python webservice.py
['_Advances', '_Code', '_Country', '_Currency',
'_Declines',
'_HasIntradayProduct', '_IntradayStartDate', '_IsIntraday',
'_LastTradeDateTime', '_Name', '_Suffix', '_TimeZone',
'__contains__', '__delattr__', '__doc__', '__getitem__',
'__init
__', '__iter__', '__keylist__', '__len__',
'__metadata__',
'__module__', '__printer__', '__repr__', '__setattr__',
'__se
titem__', '__str__', '__unicode__']
['EXCHANGES', '_Date', '_Message', '_Source',
'__contains__',
'__delattr__', '__doc__', '__getitem__', '__init__',
'__it
er__', '__keylist__', '__len__', '__metadata__',
'__module__',
'__printer__', '__repr__', '__setattr__', '__setitem__',
'__str__', '__unicode__']
Playground: python webservice.py
['_Advances', '_Code', '_Country', '_Currency',
'_Declines',
'_HasIntradayProduct', '_IntradayStartDate', '_IsIntraday',
'_LastTradeDateTime', '_Name', '_Suffix', '_TimeZone',
'__contains__', '__delattr__', '__doc__', '__getitem__',
'__init
__', '__iter__', '__keylist__', '__len__',
'__metadata__',
'__module__', '__printer__', '__repr__', '__setattr__',
'__se
titem__', '__str__', '__unicode__']
['EXCHANGES', '_Date', '_Message', '_Source',
'__contains__',
'__delattr__', '__doc__', '__getitem__', '__init__',
'__it
er__', '__keylist__', '__len__', '__metadata__',
'__module__',
'__printer__', '__repr__', '__setattr__', '__setitem__',
'__str__', '__unicode__']
Thanks in advance.