|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
How to get minimum amount for submitOrder? |
fantom
|
Post subject: How to get minimum amount for submitOrder? |
Post rating: 0
|
Posted: Mon 22 Mar, 2021, 23:05
|
|
User rating: 0
Joined: Fri 16 Aug, 2013, 12:42 Posts: 2
|
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.
|
|
|
|
|
vadim_berezhnoj
|
Post subject: Re: How to get minimum amount for submitOrder? |
Post rating: 0
|
Posted: Mon 26 Apr, 2021, 13:49
|
|
Visual JForex expert at Dukascopy | |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Greetings.
Minimum trade amount for USATECH.IDX/USD is 1 contract so calculation should be 1 / 1000000 = 1e-6
Regards.
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|