Comments (8)
Hi, I'm not an eclipse expert but you probably need to import the project and create a new project from the existing sources or something similar (the files on github do not contain an eclipse project file).
Alternatively, if you just want to use the library, you can simply download the jar file and the dependencies in the lib folder and add everything to your project.
from jbloomberg.
Yeah, it worked! Thank you so much!
I'm just so curious to ask you this question. Why did you do this project? Is it because you are working for Bloomberg, and you want to make everything easier to write up an application using the underlying Bloomberg API? Also, do you know how many Bloomberg APIs released out to public? To what I know, there's only the Bloomberg Open API available for everyone.
I'm looking forward to hearing from you!
Thank you so much again for your help.
Danh Nguyen
from jbloomberg.
No I don't work for Bloomberg - I just use Bloomberg everyday and at some stage I started finding their API too low level - the simplest thing would take 50 lines of code so I wrote this library. There is only one Bloomberg API which is available in open source form via openbloomberg.com.
ps: I don't really maintain the master branch any longer as I have switched to Java 8 and work on the new/8.0 branch which fixes a few minor issues.
from jbloomberg.
oh I see. I was just about to tell you that I somehow didn't setup the project correctly, so this statement BloombergSession session = new DefaultBloombergSession();
returned an error, saying that it Could not find class 'com.assylias.jbloomberg.DefaultBloombergSession'.
But you say that you're no longer working with it, so I won't bother to ask too much about it. Anyway, I'm now just a student studying at Virginia Tech University, and I want to be prepared for an interview with Bloomberg for an internship. Last time I got to the 2nd round, but I failed at it. So now I'm just trying to get myself exposed to the company's API as much as possible. I really want to know more about it. I would really appreciate if you could point out something that I first need to know about Bloomberg API.
Thank you a lot for your time ^^
Ps: Right now I'm following the instructions in the pdf file: BLPAPI: Developers' Guide and using an emulator developed by another developer to get the code work.
Danh Nguyen
from jbloomberg.
The error you get is probably because you have not included the jar in your classpath or because you are missing an import statement. The official documentation that you found + the various samples available with the library gives a fairly exhaustive description of the API so you should not need much more.
from jbloomberg.
Here's how I did it:
- Create a Java project
- Right click on the project ---> Properties ----> Java Build Path ----> Libraries ---> Add External Jars -----> Browse to all of the jar files in your project ----> Add them all in
- Create a simple class like this:
import com.assylias.jbloomberg.BloombergSession;
import com.assylias.jbloomberg.DefaultBloombergSession;
public class MainProgram {
public static void main(String[] args) {
BloombergSession session = new DefaultBloombergSession();
}
}
And now another error occurred:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
com.assylias.jbloomberg.BloombergException: Failed to start session: bbcomm process could not be started
at com.assylias.jbloomberg.DefaultBloombergSession.start(DefaultBloombergSession.java:111)
at danh.MainProgram.main(MainProgram.java:20)
Am I including the jar files in a wrong way? Did I miss something?
And thank you for sharing what you thought!
from jbloomberg.
The first part just says that you have not attached a logger to the program - that is just a warning, although the logs can be useful. You can add slf4j-simple or logback to your project for example.
The second example says that bbcomm.exe is not running and could not be started. Have you installed a Bloomberg terminal and is bbcomm.exe running?
You mentioned that you are using a simulator, that is most likely the issue - jbloomberg requires an actual Bloomberg connection to work.
Also, just in case it was not clear, jbloomberg is my personal library and is not connected to or sponsored by Bloomberg - they probably don't even know about it.
from jbloomberg.
OK, I get it now. I don't have a Bloomberg Terminal installed on my computer, and I don't have bbcomm.exe running. Actually, I can't afford it, so I'm going to stick with the emulator then.
Thank you very much assylias! I really appreciate your help and your time!
from jbloomberg.
Related Issues (20)
- feature request: ability to retreview 'bsrch' queries. HOT 4
- blpapi groupId is bloombergblp not bloomberglp HOT 3
- Add support for Portfolio requests
- Test fails due to timeout
- Fix javadoc errors
- Add a way to configure the path where bbcomm.exe is located
- Allow pass through of "useGMT" option when creating a subscription HOT 1
- Allow subscriptions to be cancelled
- Support the use of Identity for use with enterprise products
- Add to RealtimeField
- EMSX Request Functionality HOT 3
- Add missing RealtimeFields
- Allow passing new RealtimeField as string HOT 1
- Support Market List Service (//blp/mktlist) requests
- Make SubscriptionBuilder getters public for testing
- Add PRICE_ASK_CLOSE_RT, PRICE_BID_CLOSE_RT realtime fields
- Process ADMIN events in BloombergEventHandler and log appropriately HOT 2
- Bloomberg sometimes sends times with the hour part set to 24
- Bloomberg sometimes sends local dates with an offset (e.g. yyyy-MM-dd+00:00)
- Issue on date formating (appears few days ago) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jbloomberg.