We need to precalculate some data every night, and I was wondering if it is possible to call the gethistoricaldata from an outside process
I have try,
Code:
Imports OpenQuant.API
Public Class Form1
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim d As New OpenQuant.API.DataManager
Dim i As New Instrument(InstrumentType.Stock, "MFC")
i.Exchange = "TSE"
i.Currency = "CAD"
Dim qs As OpenQuant.API.ISeries
qs = OpenQuant.API.DataManager.GetHistoricalQuotes(i, New DateTime(2012, 7, 1), Now)
End Sub
End Class
But I get an error message stating:
Lock System, Native Protection system can't find a valid version of a protected .NET assembly
Any help would be appreciated