Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8483791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:12:11+00:00 2026-06-10T20:12:11+00:00

Using the Bloomberg open API. How can I get the PX_LAST value at a

  • 0

Using the Bloomberg open API. How can I get the PX_LAST value at a specific date and time?

I am able to get the last trade of a specific day (effectively, the close price) using:

Request request = refDataService.createRequest(historicalData);
request.getElement("securities").appendValue("IBM US Equity");
request.getElement("fields").appendValue("PX_LAST");

String date = "20120801";
request.set("startDate", date);
request.set("endDate", date);

Now I need to know the PX_LAST at a specific date and time. For instance, what was the prevailing trade price at 9:45 on Aug 1?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:12:13+00:00Added an answer on June 10, 2026 at 8:12 pm

    One way is to create an IntradayBarRequest request with the following parameters:

    request.set("security", ticker);
    request.set("eventType", EventType.TRADE);
    request.set("interval", 1);
    request.set("gapFillInitialBar", true);
    request.set("startDateTime", startDate);
    request.set("endDateTime", startDate);
    

    with startDate = "2012-08-01T09:45:00"

    Note that in my timezone I don’t get anything for 9:45 but I do get something for 15:45 (cf your previous question).

    If you use Joda’s DateTime, you can use the following pattern:

    private static final DateTimeFormatter bbDateFormat = DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss");
    
    DateTime start = new DateTime(2012, 8, 1, 15, 45, 0, 0);
    String bbStartDate = startDate.toString(bbDateFormat);
    request.set("startDateTime", bbStartDate);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In bloomberg API, using .net, does anyone know how to get the corporate action
Using the Redis info command, I am able to get all the stats of
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using import datetime in python, is it possible to take a formatted time/date string
How do you explicitly request fx forwards as outrights using the bloomberg API? In
Bloomberg Open API announced recently - is it just the Bloomberg SDK which had
using file_get_contents , I open an Internet URL and get the contents of this
I'm using Bloomberg Java api to download trading data. I need somebody to tell
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using CI for the first time and i'm smashing my head with this seemingly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.