Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
How to get minimum amount for submitOrder? http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57630 |
Page 1 of 1 |
Author: | fantom [ Mon 22 Mar, 2021, 23:05 ] |
Post subject: | How to get minimum amount for submitOrder? |
Hello support, I'm trying to get through API a minimum amount for submitOrder method for a given instrument. I have used IFinancialInstrument.getMinTradeAmount() and divided it by 1000000 (because it is said that submitOrder requires amount in millions). For EUR/USD it worked well: 1000 / 1000000 = 0.001. However, when I tried to use this approach for USATECH.IDX/USD instrument I've got: 0.1 / 1000000 = 1e-7. And the orders with such amount were rejected because it is too small. How can I calculate the minimum possible amount? PS: I know, that for USATECH.IDX/USD instrument it should be 1e-6, however, I'd like to be able to calculate it for any given instrument. |
Author: | vadim_berezhnoj [ Mon 26 Apr, 2021, 13:49 ] |
Post subject: | Re: How to get minimum amount for submitOrder? |
Greetings. Minimum trade amount for USATECH.IDX/USD is 1 contract so calculation should be 1 / 1000000 = 1e-6 Regards. |
Page 1 of 1 |