SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Apr 03, 2020 12:59 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ProviderManager
PostPosted: Sat Mar 21, 2020 6:00 pm 
Offline

Joined: Mon Apr 02, 2018 1:39 pm
Posts: 21
Hi,

I'm trying to create :

IHistoricalDataProvider iqFeed = ProviderManager.GetHistoricalDataProvider("IQFeed");

However, returns a null. Don't seem to have any of the providers listed in OQ front end.

Tried the following code :

ProviderList aList = ProviderManager.Providers;

See Results below .. However would like to see IQFeed as part of aList or QuantBase etc .. appears on my OpenQuant window in list of providers



aList.GetByIndex(0) =
{provider id = 1 DataSimulator (Default data simulator) www.smartquant.com}
AutoReconnect: true
AutoReconnectInterval: 0
BarFilter: null
DateTime1: {01/01/0001 00:00:00}
DateTime2: {31/12/9999 23:59:59}
Description: null
Enabled: true
Id: 0
IsConnected: true
IsConnecting: true
IsDisconnected: true
IsDisconnecting: true
Name: null
Processor: null
RunOnSubscribe: true
Series: null
Status: Disconnected
SubscribeAsk: true
SubscribeBar: true
SubscribeBarSlice: true
SubscribeBid: true
SubscribeFundamental: true
SubscribeLevelII: true
SubscribeNews: true
SubscribeQuote: true
SubscribeTrade: true
Url: null
dataQueue: null
description: "Default data simulator"
enabled: true
executionQueue: null
framework: {SmartQuant.Framework}
historicalQueue: null
id: 1
instrumentQueue: null
name: "DataSimulator"
sync: {object}
url: "www.smartquant.com"


AND

aList.GetByIndex(1) =
{provider id = 2 ExecutionSimulator (Default execution simulator) www.smartquant.com}
Auction1: {00:00:00}
Auction2: {00:00:00}
AutoReconnect: true
AutoReconnectInterval: 0
BarFilter: null
CheckDataProvider: true
CheckSubPositions: true
CommissionProvider: null
Description: null
Enabled: true
FillAtLimitPrice: true
FillAtStopPrice: true
FillLimitOnNext: true
FillMarketOnNext: true
FillOnBar: true
FillOnBarOpen: true
FillOnLevel2: true
FillOnQuote: true
FillOnTrade: true
FillStopLimitOnNext: true
FillStopOnNext: true
Id: 0
IsConnected: true
IsConnecting: true
IsDisconnected: true
IsDisconnecting: true
Name: null
PartialFills: true
Probability: 0
Queued: true
SlippageProvider: null
Status: Disconnected
Url: null
UseProbability: true
dataQueue: null
description: "Default execution simulator"
enabled: true
executionQueue: null
framework: {SmartQuant.Framework}
historicalQueue: null
id: 2
instrumentQueue: null
name: "ExecutionSimulator"
sync: {object}
url: "www.smartquant.com"

Thanks


Top
 Profile  
 
 Post subject: Re: ProviderManager
PostPosted: Mon Mar 23, 2020 5:46 pm 
Offline

Joined: Mon Apr 02, 2018 1:39 pm
Posts: 21
This has been fixed - it doesn't work in Visual Studio .. but in OQ2014 use the following code ..

IHistoricalDataProvider iqFeed = ProviderManager.GetHistoricalDataProvider("IQFeed");
while (iqFeed.Status == ProviderStatus.Disconnected)
{
Console.WriteLine("Is Disconnected ...");
iqFeed.Connect(10000);
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group