Search:

Type: Posts; User: TorusMonkey

Search: Search took 0.10 seconds.

  1. Re: Getting information from API Class into main body....

    Eclipse refuses to compile it.


    3168
  2. Re: Getting information from API Class into main body....

    They've updated their code. There were deprecated classes in their old example, that I changed in my example. Probably used the wrong class.
    ...
  3. Re: Getting information from API Class into main body....

    The problem is in the code. I had someone else check out my token and it works. I suspect I am sending the header wrong or the token wouldn't have been rejected, sometimes I get a different error...
  4. Re: Getting information from API Class into main body....

    It is working. I didn't get it going though. I'm working with someone whose trade is programming. So he fixed it. Doesn't help me much in terms of learning. I need to spend more time on JAVA.

    I...
  5. Re: Getting information from API Class into main body....

    Thank you micecd.
  6. Re: Getting information from API Class into main body....

    Thanks for the attempt to help Norm. Unfortunately I can't. As I pointed out you'd need the API. I can't give it to you. I've taken enough of your time already.

    Thanks again.
  7. Re: Getting information from API Class into main body....

    In the class FXRateEvent which is from the API and extended as ticker, point is I used it 3 lines before succesfully and it's still in the same class.

    --- Update ---

    1. REI cannot be resolved. ...
  8. Re: Getting information from API Class into main body....

    This also fails:



    class Ticker extends FXRateEvent
    {
    // No key set and no match implemented; this event matches all RateEventInfos

    public void handle(FXEventInfo EI,...
  9. Re: Getting information from API Class into main body....

    The compiler has several problems with it.

    First it doesn't recognise REI. Then it doesn't like the type of the object.

    2975
  10. Re: Getting information from API Class into main body....

    That's correct. This is a Program Interface. Look, as far as I know the solution should be something like this:




    class Ticker extends FXRateEvent
    {
    // No key set and no match...
  11. Re: Getting information from API Class into main body....

    Man, sadly I'd need to add passwords and account numbers to do that, as this information is called over via API. Be like giving you access to my bank account.

    Not only that, I'd have to give you...
  12. Re: Getting information from API Class into main body....

    It doesn't work. To do that changedPair needs to be a method. All my attempts at making it a method and then calling it has failed. The original Class is a void class and I'm looking for a return...
  13. Re: Getting information from API Class into main body....

    That is the program at this point. I extend one event manager and print the values it gives.
  14. Re: Getting information from API Class into main body....

    Basically I want to do is:

    String pairTocompare = ticker.changedPair();
  15. Re: Getting information from API Class into main body....

    Yes, so I created a new Object ticker from Ticker and then I do this:



    try { fxgame.getRateTable().getEventManager().add(ticker); }
    catch (SessionException e) { fxgame.logout();...
  16. Re: Getting information from API Class into main body....

    So I need to create a new class ticker to extend the Ticker class ?
  17. Re: Getting information from API Class into main body....

    Can you show me that in code please? Where exactly do I save the reference ticker ? As far as I know I've already saved the data as : FXPair changedPair = REI.getPair();

    Now I need to call:

    ...
  18. Getting information from API Class into main body....

    Hi,

    I'm new to JAVA and busy working with an API and I've hit a brick wall. What I want to do is extract information from an extended API class into the main body of the program. So, the extended...
Results 1 to 18 of 18