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)




"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"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
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"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
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
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
»Forums Index »NEW IQFEED FORUMS »IQFeed API Questions »EDS request always return E,50007 error?
Author Topic: EDS request always return E,50007 error? (2 messages, Page 1 of 1)

leoon
-Interested User-
Posts: 3
Joined: Oct 25, 2011


Posted: Feb 4, 2024 01:46 PM          Msg. 1 of 2
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?

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Feb 12, 2024 08:45 AM          Msg. 2 of 2
Do you have the "Globex Combo" subscription? If so, that doesn't include NYMEX.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Sun April 28, 2024 3:35 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003