I am looking to get a real-time snapshot from Bloomberg.Net API 3 with C #.
From the examples you can see how to get historical prices or subscribe to the data, but I canβt find the correct request for a snapshot of the order book, that is, Bid / Ask / Last trade Price and quantities.
For an intraday tick, I would do something like this:
Service refDataService = d_session.GetService("//blp/refdata"); // create intraday tick request Request request = refDataService.CreateRequest("IntradayTickRequest"); // set request parameters request.Set("includeConditionCodes", checkBoxIncludeConditionCode.Checked); request.Set("includeExchangeCodes", checkBoxIncludeExchangeCode.Checked); Element eventTypes = request.GetElement("eventTypes"); eventTypes.AppendValue("TRADE"); eventTypes.AppendValue("BID"); eventTypes.AppendValue("ASK"); request.Set("security", d_requestSecurity); request.Set("startDateTime", new BDateTime(startDate.Year, startDate.Month, startDate.Day,startDate.Hour, startDate.Minute, startDate.Second, 0)); request.Set("endDateTime", new BDateTime(endDate.Year, endDate.Month, endDate.Day, endDate.Hour, endDate.Minute, endDate.Second, 0));
Is there any other snapshot request?
source share