PDA

View Full Version : Vertex to non-vertex Bridge



gld1881
06-21-2015, 12:06 PM
A new issue is appearing on the type of the number used to send the NewOrder to the server.

We are getting error code
InvalidAmountError -205 Invalid amount

whenever the script NewOrder carries the number with fraction being “double”

could you forward this issue to hybrid solution for them to check on the server to allow the system to accept fraction/such type of number or it should be whole number?

The field that I am talking about is:

Lots
• Order Lots.
• Type: Double
• Default: None

Which is used in sending the NewOrder script.

Hassan-HS
06-22-2015, 09:54 AM
Hello GLD,

The amount is already double, but this error returned from the server if
1-if the amount is less than the minimum amount per deal for the symbol
2-if the amount is greater than the maximum amount per deal.
3-if the amount mod the minimum amount per deal not equal 0

and to get the minimum & maximum amount per deal please check GetAllSymbols (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1935) function :)