Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Get Version-String of current API-Version
 Post subject: Get Version-String of current API-Version Post rating: 0   New post Posted: Wed 19 Dec, 2012, 23:48 
User avatar

User rating: 1
Joined: Thu 15 Mar, 2012, 16:30
Posts: 20
Is there any way to retrive a Version-String für the current API wich is used in JF right now?

So that my Strategy can inform me about a new API-Version that got applied.


 
 Post subject: Re: Get Version-String of current API-Version Post rating: 0   New post Posted: Thu 20 Dec, 2012, 08:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Try:
    public void onStart(IContext context) throws JFException {
        context.getConsole().getOut().println( Instrument.class.getPackage().getImplementationVersion());
    }


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com