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)




"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
"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
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"Excellent datafeed !!!" - Comment from Arely
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"You have an excellent product !!!!!!" - Comment from Arely
"I've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
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: 396
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: Thu May 2, 2024 11:11 PM CFBB v1.2.0 10 ms.
© AderSoftware 2002-2003