Dukascopy
 
 
Wiki JStore Search Login

DDSJFX-309 live operating hours of platform through API
 Post subject: DDSJFX-309 live operating hours of platform through API Post rating: 0   New post Posted: Thu 20 Jan, 2011, 13:19 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Rather than hardcoding any times for offline periods (weekends, holidays), I would prefer to retrieve this information dynamically through a function.
Is there a way to retrieve the (upcoming) live operating hours (online/offline times) of the Dukascopy platform as well as the times the margins will get changed through the API?

Thanks for your feedback,
RR.


 
 Post subject: Re: How to retrieve live operating hours of platform through Post rating: 0   New post Posted: Mon 24 Jan, 2011, 09:11 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Currently it is not possible in the API.


 
 Post subject: Re: How to retrieve live operating hours of platform through Post rating: 0   New post Posted: Mon 24 Jan, 2011, 13:57 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Could you please consider such a function?

In my opinion it should be sufficient, if we could retrieve the next upcoming "offline"/no-trade time (platform not available for trading...) and the time thereafter when the platform will be available again. This would allow to implement a code that copes with an upcoming offline time of the platform.

Example:
IEngine.getNextOfflineStart();
IEngine.getNextOfflineEnd();

Thanks a lot for considering!
Best, RR.

PS: For convenience, you also could add IEngine.getLastOfflineStart() and IEngine.getLastOfflineEnd() to allow to retrieve the duration since the platform is currently available for trading.


 
 Post subject: Re: How to retrieve live operating hours of platform through Post rating: 0   New post Posted: Sat 29 Jan, 2011, 10:05 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
do you have plans to include such a function in the API?

Thanks for your feedback!
RR.


 
 Post subject: Re: DDSJFX-309 live operating hours of platform through API Post rating: 0   New post Posted: Wed 11 Apr, 2012, 13:54 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
2.6.65

    /** 
     * Returns <tt>true</tt> if specified <tt>time</tt> is within the limits of offline (weekend) period.
     * @param time time in milliseconds
     * @return <tt>true</tt> if specified <tt>time</tt> is within the limits of offline (weekend) period, <tt>false</tt> - otherwise
     */
    boolean isOfflineTime(long time);

     
    /**
     * Returns either present, current offline (weekend) {@link ITimeDomain time interval} or the next <b>approximate</b> upcoming one.<br/>
     * The same as {@link #getOfflineTimeDomain(shift)} with shift == 0
     * @return either present, current offline (weekend) {@link ITimeDomain time interval} or the next <b>approximate</b> upcoming one.
     * @throws JFException when some error occurs
     * @see #getOfflineTimeDomain(int)
     *
     */
    ITimeDomain getOfflineTimeDomain() throws JFException;
     
    /**
     * Returns offline (weekend) {@link ITimeDomain time interval} that is shifted back or forward for number of offline intervals specified in <code>shift</code> parameter.
     * @param shift number of offline intervals back or forward in time staring from current one. E.g.:
     * <ul>
     * <li><b>0</b> - current or next <b>approximate</b> offline period,
     * <li><b>-1</b> - previous offline (last finished one),
     * <li><b>1</b> - next <b>approximate</b> after current one, etc.
     * </ul>
     * @return offline (weekend) {@link ITimeDomain time interval} that is shifted back or forward for number of offline intervals specified in <code>shift</code> parameter
     * @throws JFException when some error occurs
     */
    ITimeDomain getOfflineTimeDomain(int shift) throws JFException;
     
    /**
     * Returns the set of offline (weekend) {@link ITimeDomain time intervals} ascending ordered by time which are within the limits of <tt>from</tt> and <tt>to</tt> parameters.
     * @param from start of the time interval for which offline periods should be loaded. If <tt>start</tt> time is within the limits of offline period - this period will be returned as first element of resulting set.
     * @param to end of the time interval for which offline periods should be loaded. If <tt>end</tt> time is within the limits of offline period - this period will be returned as last element of resulting set.
     * @return the set of offline (weekend) {@link ITimeDomain time intervals} ascending ordered by time which are within the limits of <tt>from</tt> and <tt>to</tt> parameters.
     * @throws JFException when some error occurs
     */
    Set<ITimeDomain> getOfflineTimeDomains(long from, long to) throws JFException;


 

Jump to:  

  © 1998-2024 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