Announcement

Collapse
No announcement yet.

No Action on get_RequestHistory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • No Action on get_RequestHistory

    Hi,

    I am just a starter on E-Signal Desktop API. I wrote a little programm as below
    when I call get_RequestHistory () it seams _onBarChanged() and _onBarReceived should fire. But I don't see anything happening. Even I tried with the sample applications like VBTimeSales, MultipleHistoryRequest but its all the same I don't get any data back.

    I need to get cracking on this asap. Please help me and let me know if I am missing anything.

    symbolInfo info = new symbolInfo();
    IESignal.BarData bardata;
    if (esignal.IsEntitled == 0)
    {
    MessageBox.Show("Not entitled");
    }
    else
    {
    esignal.ReleaseAllHistory();
    esignal.ReleaseAllTimeSales();
    info.historyHandle = esignal.get_RequestHistory(textBox2.Text, "1",
    IESignal.barType.btBARS, 20, 0, 0);
    if(esignal.get_IsHistoryReady(info.historyHandle)= =0)
    {
    MessageBox.Show("History Not Ready");

    }
    else
    {
    bardata = esignal.get_GetBar(info.historyHandle,1);
    MessageBox.Show(bardata.dtTime.Year.ToString());
    }
    }

  • #2
    In the code snippet you provided I don't see you creating the esignal Hooks object and I don't see the SetApplication function.

    Please ensure that you have instatiated the esignal object and implemented the SetApplication function.

    The sample application demonstrates how to do this. When you use the SetApplication function ensure that you submit your eSignal account username as the argument. I have verified that your account is properly entitled.
    Todd Gafford | Developer Support and API Product Manager | Interactive Data Desktop Solutions
    3955 Point Eden Way, Hayward, CA 94545

    Comment

    Working...
    X