Giter VIP home page Giter VIP logo

Comments (8)

assylias avatar assylias commented on July 24, 2024

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.

danhnguyen0902 avatar danhnguyen0902 commented on July 24, 2024

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.

assylias avatar assylias commented on July 24, 2024

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.

danhnguyen0902 avatar danhnguyen0902 commented on July 24, 2024

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.

assylias avatar assylias commented on July 24, 2024

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.

danhnguyen0902 avatar danhnguyen0902 commented on July 24, 2024

Here's how I did it:

  1. Create a Java project
  2. 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
  3. 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.

assylias avatar assylias commented on July 24, 2024

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.

danhnguyen0902 avatar danhnguyen0902 commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.