Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"You have an excellent product !!!!!!" - Comment from Arely
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
Viewing User Profile for: leoon
About Contact
Joined: Oct 25, 2011 09:23 PM
Last Post: Feb 4, 2024 01:46 PM
Last Visit: Feb 17, 2024 05:34 PM
Website:  
Location:
Occupation:
Interests:
Avatar:
Email: yong.fan@gmail.com
AIM:
ICQ:
MSN IM:
Yahoo IM:
Post Statistics
leoon has contributed to 3 posts out of 21195 total posts (0.01%) in 4,588 days (0.00 posts per day).

20 Most recent posts:
IQFeed API Questions » EDS request always return E,50007 error? Feb 4, 2024 01:46 PM (Total replies: 1)

I tried to use EDS cmd to query the end of day summary for all the future contracts in NYMEX, but I always got the 50007 error. What may I have done wrong? I posted my python code as following:

####################
import socket
IQ_PORT_LOOKUP = 9100
IQ_SEC_TYPE_FUTURE = 8
IQ_EXCHANGE_NYMEX = 36

def download_eod_summary(security_type, group_id, date, request_id=""):
host = "localhost"
port = IQ_PORT_LOOKUP
print('start sending cmd to {host},{port}')

# Establish a connection to IQFeed
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((host, port))

# Receive data until end message
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((host, port))
s.sendall(b'S,SET PROTOCOL,6.1\n')
#s.sendall(bytes('EDS,{security_type},{group_id},{date},' + str(request_id) + '\n', 'ascii'))
s.sendall(bytes('EDS,{security_type},{group_id},{date}' + '\r\n', 'ascii'))
f = s.makefile()
line = f.readline()
print("line="+repr(line))
while line.find('!ENDMSG!') < 0:
line = f.readline()
print("line=" + repr(line))
f.close()

download_eod_summary(security_type=IQ_SEC_TYPE_FUTURE, group_id=IQ_EXCHANGE_NYMEX, date="20240201")

The running debugging message is as following:

start sending cmd to {host},{port}
line='S,CURRENT PROTOCOL,6.1\n'
line='E,50007,No file available.\n'
line='!ENDMSG!,\n'

what could have gone wrong?

IQFeed Developer Support » No tick update for LME contracts. Oct 26, 2011 11:04 PM (Total replies: 2)

Hi Curtis, thanks a lot for the reply. I just check the quote again today and it works well now. Seems it's just take 2 days to process the exchange subscription request? Anyway, it's working now. Thanks a lot~

IQFeed Developer Support » No tick update for LME contracts. Oct 25, 2011 09:26 PM (Total replies: 2)

Hi,

I just opened account and add LEM as feed 2 days ago. But when I opened DTN.IQ for symbol M.CU0 and M.CU3, I can not get any realtime update. Any idea?

THanks,

- leoon


Time: Thu May 16, 2024 5:43 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003