Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

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

BTC/USD trading is not possible on 0.2 coins
 Post subject: BTC/USD trading is not possible on 0.2 coins Post rating: 0   New post Posted: Wed 11 Apr, 2018, 16:02 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Min. trading volume works with 0.2 coins, but it does not work in a strategy.

Message:
14:59:32 Order REJECTED: BUY BTC/USD, REASON: Order amount: 0.0000002 can't be less than minimum allowed: 0.000000


Please review my attached example.
You can try 0.2, but it only works from 0.3 coins onwards.
Please fix this bug.


Attachments:
SizeTest.java [2.13 KiB]
Downloaded 145 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: BTC/USD trading is not possible on 0.2 coins Post rating: 0   New post Posted: Fri 13 Apr, 2018, 13:19 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Now it seems the platform accepts 0.2 coins now.
Current platform version = 3.3.9, implemented API = 2.13.53
If I compile and run SizeTest2 directly on the platform, 0.2. coins, this is the output
    11:55:43 [test1523620513272]-FILLED / BTC/USD / 8164.7 / 2.0E-7 / 2.0E-7, order.getOriginalAmount() = 2.0E-7, order.getAmount() = 2.0E-7, order.getRequestedAmount() = 2.0E-7

But: now, if I compile the same strategy with Eclipse, which can be compiled with the latest available JForex-API-2.13.49 only and add this as a library import (@Library("SizeTestImport.jar")) there is an entry of 0.2 coins, but the result is very different and wrong:
    2018-04-13 11:55:38 [test1523620534389]-FILLED / BTC/USD / 8156.7 / 0.0 / 0.0, order.getOriginalAmount() = 0.0, order.getAmount() = 0.0, order.getRequestedAmount() = 0.0

Please supply latest API for developers. We need this update urgently.


Attachments:
SizeTest2.java [2.56 KiB]
Downloaded 160 times
SizeTestChild.jfx [5.06 KiB]
Downloaded 144 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: BTC/USD trading is not possible on 0.2 coins Post rating: 0   New post Posted: Thu 26 Apr, 2018, 15:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This has been fixed and will be available with the next platform release.


 

Jump to:  

cron
  © 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