question

Upvotes
Accepted
1 1 1 3

Equity data in milliseconds.

Hello,

Is it possible to download the data for Equities (the Timestamp) so that it will show the miliseconds? We have the data, as you can see in the Time & Sales application.

I am checking right now VOD.L in the Time Sales app and I see the miliseconds.

Thanks and Regards,

Dawid

eikoneikon-data-apieikon-com-apiequities
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @Dawid.Wallat. Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks

AHS

Upvote
Accepted
39.4k 77 11 27

Hi Dawid,

You're right, it seems to be not quite as straightforward as I thought. It appears that for UK stocks in order to get the timestamps including milliseconds you need to include extended hours trades in the request. If you need to filter out extended hours trades, you can do it by setting up time restrictions for your request using From and To methods of ITimeSeriesDataRequestSetup interface. Here's an example code snippet.

private void RequestTimeseriesData()
{
	_timeSeriesRequest = _timeSeries.SetupDataRequest("VOD.L")
        	.WithInterval(CommonInterval.Tick)
                .WithFilter(filter => filter.IncludeOutOfSessionRecords(true))
                .WithNumberOfPoints(250)
                .OnDataReceived(ProcessReceivedData)
                .CreateAndSend();
}

private void ProcessReceivedData(DataChunk chunk)
{
	_trades.AddRange(chunk.Records.ToTickRecords());
        if (chunk.IsLast)
        {
        	foreach (var trade in _trades)
                {
                    DateTime timestamp = trade.Timestamp.Value;
                    double? lastprice = trade.Value;
                    double? volume = trade.Volume;
                    Console.WriteLine(timestamp.ToString("dd-MMM-yy HH:mm:ss:fff") + " " + lastprice.ToString() + " " + volume.ToString());
                }
	}
}

I hope this helps.

Alex

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
39.4k 77 11 27

Hi Dawid,

Yes, it is possible. Using Eikon .NET SDK the timeseries of price history for stocks are returned with timestamps down to millisecond. For documentation and code samples see respective section on this portal.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 1 1 3

Hello Alex,

We tried to make a code, but it only showed at the end .000 (miliseconds). We got times like 14:42:42.000 on all the available data.

Could you show us maybe a example code or something?

Thanks and Regards,

Dawid

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.