mathpaquette / IQFeed.CSharpApiClient

IQFeed.CSharpApiClient is fastest and the most well-designed C# DTN IQFeed socket API connector available
MIT License
120 stars 43 forks source link

1st timer 'ErrorMessage: Unauthorized user ID., MessageTrace: E,Unauthorized user ID., !ENDMSG!,' #150

Closed R470R closed 1 year ago

R470R commented 1 year ago

Hello, trying this on windows 10 python 3.9

# Dynamically add IQFeed.CSharpApiClient DLL
assembly_path = r"C:\Users\xxx\Desktop\xxx\iqfeed.csharpclient_dll"

import sys
sys.path.append(assembly_path)

# Reference IQFeed.CSharpApiClient DLL
import clr
clr.AddReference("IQFeed.CSharpApiClient")

from IQFeed.CSharpApiClient import IQFeedLauncher

# Step 1 - Run IQConnect launcher
IQFeedLauncher.Start("xxxxx", "xxx", "xxx29")

# Step 2 - Use the appropriate factory to create the client
from IQFeed.CSharpApiClient.Lookup import LookupClientFactory
lookupClient = LookupClientFactory.CreateNew()

# Step 3 - Connect it
lookupClient.Connect()

# Step 4 - Make any requests you need or want! 
ticks = lookupClient.Historical.GetHistoryTickDatapoints("AAPL", 100)

for tick in ticks:
    print(tick)

print('Completed!')

console returns


, ErrorMessage: Unauthorized user ID., MessageTrace: E,Unauthorized user ID., !ENDMSG!,

I'm using same login and password that I use to retrieve data from ex Time & Sales, as was given at the time I made the subscription (no api at the time) and product_id that was given when I made the api.

Can someaone tell what is wrong ?

Thank you

R470R commented 1 year ago

IQfeed support helped really fast, The problem here was that I made a request to a symbol that i didn't had subscribed to.

mathpaquette commented 1 year ago

@R470R could you elaborate?