Monday 26 May 2014

.NET API For Dukascopy broker

I would like to present the API for Dukascopy server. It can be used with C# and VB.Net programs.
This API is a C#  bridge for the Java Dukascopy API.

How to use:

Run JFXNetSetup.exe. It will install the system on your computer in C:\Program Files (x86)\SysCoder\JFXMonitor

In order to start the Demo program (JFXMonitor), click the desktop icon or you can build the Demo Monitor program from the source code. It is here
C:\Program Files (x86)\SysCoder\JFXMonitor\API_Project\JForexAPItest.sln

The .NET API source code is not supplied. It can be used as is...
The Demo program can open/close the positions, monitor your account, receive the tick data and download historical data.



Download the installer

PS: Java Runtime must be installed on the target computer

28 comments:

  1. great work!

    but i got 404 error :(

    could you upload to another server?

    thank you very much!

    ReplyDelete
  2. Hi, sorry for the bad link. It is fixed now

    ReplyDelete
  3. Not working for me. It is saying can't load JVM.dll. I run XP 32 bit

    ReplyDelete
    Replies
    1. Yes, you are right. Thanks for letting me know. However I do not have immediate plans on fixing the stuff for 32 bit computers, may be later sometime. The system has been tested on Windows 7, 64bit.

      Delete
    2. I wonder if it is a Java version issue? I'm having the same problem on Windows XP 32 bit

      Delete
    3. I just updated to Java 8 from Java 6 and no longer have this issue.

      Delete
  4. Your API work wery well. Thank you. Do you do any changes or improvements ?
    I used MBTrading before but it is to hard to use with .net

    ReplyDelete
  5. Do you mean if I am planning any improvements??
    Well, why would you want them? Is anything wrong with the existing release?

    ReplyDelete
  6. Your work is great. However, when I want to use the "get bars" function, it works perfectly for the first time. After several minutes, even I unsubscribe the instrument and and re-subscribe it, I get all the same record for the new minutes. It will be very great if you can solve this problem. Thank you very much

    ReplyDelete
    Replies
    1. Hi Galileo,

      I don't think it is fixable. My C# API relies on the native Dukascopy Java API. It is kind of bridge.
      So, I presume that Java API keeps data in cache. If you know how to reset the cache, perhaps it'll fix the problem.

      PS:

      Check the original API or ask the users how to reset (disable) the cache. If you find, I'll implement it in C# API.

      Delete
    2. Hi M,
      I have read the api. I cannot find the way to reset the cache. I find the path of cache and tried to delete manually but the files are occupied by the process.

      It seems that the api will make getbars function not up to date after the instrument is subscribed. They assume the programmer will get the bar from the onBar event method other than use getbars

      Does your bridge implement the onBar and onTick method in the IStrategy? I cannot see that there is event when the instrument has some ticks in the bridge. It will be great if you can implement onBar and onTick event function. You already implement the onAccount event and I think it is not difficult to implement this two event because it is in the same interface. Thank you very much. You make my life much easier.

      Delete
  7. Tickdata is implemented. Check it out.

    _JFX.TickData += new Action(_JFX_TickData);

    ReplyDelete
  8. Yes, I know this event. But there is some problem with it. This event only trigger at the first time it subscribed. After that there is no event triggered.

    If you can implement onBar event, it would be great. I know you are busy, but Dukascopy's Bar and Tick have different time. They have 10 seconds or 11 seconds different in sometimes. That's make it inconsistent from converting the ticks to bars.

    Anyway, thanks you very much~~~

    ReplyDelete
  9. It works for me. There is the demo program. It is called JFmonitor. Run it . Subscribe the instrument, EUR/USD for instance by doubleclicking it. The on the first tab with messages click clear and then watch the messages in the real time. These messages get generated from the Tick event. Please let me know how it goes.

    ReplyDelete
  10. ohh...It really does not have message in real time. My JFXMonitor is in 2014-5-28 21:25. I think it is up to date and it is your version......

    ReplyDelete
  11. Hi Galileo,
    It works for me. Something is wrong in your installation may be.. I don’t know ..
    Anyway, I don’t have time now to investigate it, however, what if you do that?
    You are a programmer, aren’t you? I am thinking about putting the code to Codeplex or similar site, but I need an assistant. Do you want to become one? Are you good at the coding? C# and Java

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. Hello,
    A newbie here, I ve downloaded and run the installer, when I try to connect using JFX Monitor (live latvian account), I get Connection failed. Authentication failed
    Status Event. Connection failed.Connection failed Authentication failed
    Disconnected Connection failed Authentication failed

    I know that I used the right username and password because when I copy them from JFX Monitor textboxes to JForex login screen it works. I've disabled captcha checking, but I can't login.

    Please can you help me?

    Cheers
    Francisco

    ReplyDelete
    Replies
    1. I'm having the same issue. Does this work for anyone lately? Maybe there was an update to the jforex api?

      Delete
  14. I have the same issue. The debug text file log shows a 503 http response. It looks like it tries two different locations and both have the 503 response, maybe the server has changed, or is there an API key that is used that is expired?

    "https://www-cdn-1.dukascopy.com/authorization-1/"...
    "https://www-cdn-1.dukascopy.com/authorization-2/"...


    ReplyDelete
  15. Hi there.

    Is there anyway I can contact you about the source code for this? I would like to discuss licensing it.

    Thanks.

    ReplyDelete
  16. you can email to typoredo896@gmail.com

    ReplyDelete
  17. I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. south african trading account

    ReplyDelete
  18. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites! best online brokers South African

    ReplyDelete
  19. Other automated trading platforms got us accustomed to some mandatory features in a good bot: it should run on a cloud accessible via all devices, it should have arbitrage opportunities, signals and support a lot of exchanges. Bitsgap does all of that with their platform and adds extra features with arbitrage and demo interface. Bitcoin bot.

    ReplyDelete
  20. Bruc Bond endeavor to lead the financial sector with sustainability, customizable product offering, and open communication. At Bruc Bond we aim to make 21st century banking straightforward, simple, and transparent.

    ReplyDelete
  21. Montefiore Einstein Center for Heart and Vascular Care is an element of your countrywide clinical demo that is certainly following the very long-time period Positive aspects to clients who receive aortic valve-sparing surgery. Dr. Eyal Nachum is a senior cardiologist working in Heart Transplantation Unit, Sheba Medical Center, Ramat Gan, Israel.

    ReplyDelete
  22. Really enjoyed this blog post. Really thank you! Really Great.Pocket Option App

    ReplyDelete