Announcement

Collapse
No announcement yet.

getting history

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

  • getting history

    Hi,

    I need consultation. I have some questions about esignal desktop API. I have searched through forum and have found the same questions. But couldn't find answers on them.

    Sometimes I have a problem with connection to the Internet. At that time I can't get quotes and save it. But when I restored connection, I want to get lost quotes. I know that I should use the method RequestHistory(...). But I can't understand what parameters I should pass to it.
    For example:
    I have a subscription on GTIS (forex inter-bank quotes).
    Suppose that now is 06/23/2004 01:00:00 PM. And I've lost connection with the Internet. Then for example at 02:00:00 PM I've restore connection and want to get lost
    quotes for symbol "eur a0-fx" (I want to get ask, bid, prev and time for each tick during that time). What should I pass to the
    RequestHistory(...):
    symbol="eur a0-fx"
    interval = ??????? (May be "999P" (I want to get all ticks)
    bar_type = ??????
    number_of_bars=???
    start_time=780
    end_time=840 (but these values were calculated for my local time zone. How can I find out server time zone?)

    Thanks...

  • #2
    You are combining functions which should not be combined, I think. Try:

    RequestHistory("eur a0-fx", 1, btBars, starttime, endtime).

    I think that you use your local time, but am not sure.

    Why are you losing your internet connection so often?

    Comment


    • #3
      getting history

      Originally posted by eSignal Robi
      You are combining functions which should not be combined, I think. Try:

      RequestHistory("eur a0-fx", 1, btBars, starttime, endtime).

      I think that you use your local time, but am not sure.

      Why are you losing your internet connection so often?
      Thanks, I'll try to do this.
      I think, I should correct my local time....
      Not often, but sometimes. It's important for me to get all data.

      Comment

      Working...
      X