Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API function requests in this forum only.
    Off topics are strictly forbidden.

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

Retrieve overnight rates (swaps)
 Post subject: Retrieve overnight rates (swaps) Post rating: 0   New post Posted: Thu 26 Mar, 2020, 12:27 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
There is a function called getOvernights() - Method in interface com.dukascopy.api.system.ITesterClient
https://www.dukascopy.com/client/javado ... ernights--
It returns the current Overnights object
https://www.dukascopy.com/client/javado ... ights.html
The Overnights class has methods to ask current swap rates (overnights). This is great.

Unfortunately this works only from the ITesterClient and there you have to enter the current values by hand before you start back testing.

In the current JForex API I only found the constructor Overnights() of Overnights, but then all values are filled with very old default values.

These are the current overnight rates: https://www.dukascopy.com/swiss/english ... alculator/
Please implement a method so we can retrieve these rates by the JForex API.


 

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