Jump to content
  • 0

Streaming - remote date of tick data not synchronised with local date


Marcipops

Question

I am using Lightstreamer to stream tick data: https://labs.ig.com/streaming-api-reference

There is an issue when receiving ticks through midnight as you can see from this data extract below.

UPDATE_TIME Publish time of last price update (UK local time, i.e. GMT or BST)
BID Bid price
OFFER Offer price

 

23:59:40 7317.9 7321.9
23:59:41 7317.7 7321.7
23:59:42 7317.4 7321.4
23:59:48 7317.1 7321.1
23:59:52 7317.4 7321.4
23:59:59 7317.2 7321.2
23:59:59 7317.1 7321.1
23:59:59 7317.2 7321.2
00:00:00 7317.1 7321.1
00:00:00 7316.7 7320.7
00:00:01 7317.2 7321.2
00:00:01 7317.1 7321.1
00:00:01 7317.2 7321.2
00:00:01 7317.1 7321.1

For each tick, I am recording the date of each tick from my local clock, so I can know the exact date time of the tick.

The data marked in amber is being labelled by my program as belonging to the same date as the data in black, when it should be labelling it belonging to the next day.  From this, it seems that like my local clock is a couple of seconds behind the ig clock.

For example tick data received with UPDATE_TIME = 00:00 is for the next day, but is being recorded as the same day by my program using current date from local clock.

I was therefore looking on labs.ig.com for a way of obtaining the date of the tick message, so I could record the ig date of the tick against its time.  But that approach would have a problem if the date changes after fetching the date and before collecting the tick.

Presume the opposite is also true, someone's local computer clock might be ahead of ig. Therefore with the extract above, incorrectly labelling the tick received at UPDATE_TIME = 23:59:40 with the date of the next day.

This could be completely resolved of course if the tick data had date as well as time.

Is there a workaround?

Many thanks

Link to comment

3 answers to this question

Recommended Posts

  • 0
20 hours ago, Marcipops said:

I am using Lightstreamer to stream tick data: https://labs.ig.com/streaming-api-reference

There is an issue when receiving ticks through midnight as you can see from this data extract below.

UPDATE_TIME Publish time of last price update (UK local time, i.e. GMT or BST)
BID Bid price
OFFER Offer price

 

23:59:40 7317.9 7321.9
23:59:41 7317.7 7321.7
23:59:42 7317.4 7321.4
23:59:48 7317.1 7321.1
23:59:52 7317.4 7321.4
23:59:59 7317.2 7321.2
23:59:59 7317.1 7321.1
23:59:59 7317.2 7321.2
00:00:00 7317.1 7321.1
00:00:00 7316.7 7320.7
00:00:01 7317.2 7321.2
00:00:01 7317.1 7321.1
00:00:01 7317.2 7321.2
00:00:01 7317.1 7321.1

For each tick, I am recording the date of each tick from my local clock, so I can know the exact date time of the tick.

The data marked in amber is being labelled by my program as belonging to the same date as the data in black, when it should be labelling it belonging to the next day.  From this, it seems that like my local clock is a couple of seconds behind the ig clock.

For example tick data received with UPDATE_TIME = 00:00 is for the next day, but is being recorded as the same day by my program using current date from local clock.

I was therefore looking on labs.ig.com for a way of obtaining the date of the tick message, so I could record the ig date of the tick against its time.  But that approach would have a problem if the date changes after fetching the date and before collecting the tick.

Presume the opposite is also true, someone's local computer clock might be ahead of ig. Therefore with the extract above, incorrectly labelling the tick received at UPDATE_TIME = 23:59:40 with the date of the next day.

This could be completely resolved of course if the tick data had date as well as time.

Is there a workaround?

Many thanks

Hi @Marcipops,

Feel free to reach out to webapisupport@ig.com for API support.

All the best - Arvin

Link to comment
  • 0

Hey ArvinIG,

No answer yet from webapisupport@ig.com

Interestingly https://www.ig.com/en/trading-platforms/trading-apis/how-to-use-ig-api says "Effective API use requires previous development or coding experience. However, we do have a team of experts ready to help you."
 

So I also tried support@ig.com.  But they said

"As we do not provide programming support for API related issues, you should follow the data timings provided by our API.
If you have any further queries, please do not hesitate to contact us. Alternatively, we've recently launched our new Help & Support site which gives you answers from our huge knowledge-base, online community, and education hub."

So ending up back here again - IG is as much help so far as a chocolate fireguard....

(I understand Pepperstone have solved this issue by including the date in their tick stream.)

Edited by Marcipops
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Posts

    • Sainsburys full year earnings and Unilever’s first quarter trading update both say the same thing, UK consumers are in for higher prices. The war in Ukraine, supply chain issues and the effects of ongoing Covid all to blame.      
    • US Dollar (DXY) Daily Price and Analysis US Q1 GDP may stall the greenback’s advance. A 20-year high nears for the US dollar. The multi-month US dollar rally continues with the greenback printing a fresh high today ahead of the first look at US Q1 GDP at 12.30 GMT. The US dollar basket (DXY) has been boosted by renewed weakness in the Euro and the Japanese Yen, as investors move from lower-yielding to higher-yielding currencies, while safe-haven flows continue to benefit the greenback. The US growth release later in the session is expected to show a sharp slowdown from the robust Q4 figure of 6.9%. The markets are currently pricing in growth of just 1% for the first three months of this year, with the slowdown mainly due to a reduction in inventory accrual over the quarter. This release is unlikely to move the greenback, unless there is a large miss or beat, as the Fed believe that 2022 US growth will be robust enough to let them tighten monetary policy sharply without damaging the economy. The latest US Core PCE data – the Fed’s preferred inflation reading – is released on Friday and this may have more effect on the US dollar than today’s GDP data. For all market moving economic data and events, see the DailyFX Calendar. The ongoing US dollar rally has been aided by weakness across a range of G7 currencies including the Euro, the Japanese Yen, and the British Pound. The Euro continues to battle with lowly growth expectations, exacerbated by energy concerns, the British Pound is mired by weak economic data, while the Japanese Yen is in freefall as the BoJ continues with its ultra-loose monetary policy.   The US dollar continues to press higher and looks set to break above 103.96, the March 2020 high. Above here the US dollar would be back at levels last seen nearly two decades ago. The March resistance will likely hold in the short-term, especially with month-end portfolio rebalancing at the end of the week, but US dollar strength is set to continue in the months ahead. USDOLLAR (DXY) WEEKLY PRICE CHART – APRIL 28, 2022 {{THE_FUNDAMENTALS_OF_BREAKOUT_TRADING}} What is your view on the US Dollar – bullish or bearish?   Apr 28, 2022 | DailyFX Nick Cawley, Strategist
    • While Tesla has nothing directly to do with Elon Musk buying Twitter - TSLA stock closed down 12% on news that Musk may have to sell stock and use other holdings to stand against the loan to finalise the purchase of the social media giant.        
×
×
  • Create New...