API Support Forum
OEC API > API Support > ModifyOrderDraftBuilder with price update
Author Topic: ModifyOrderDraftBuilder with price update
(2 messages, Page 1 of 1)
Moderators: VPfau
VSiron
Posts: 5
Joined: Dec 05, 2020


Posted: May 25, 2021 @ 03:10 PM             Msg. 1 of 2
Hello dear members,

I have a strange issue.
For an order, I make an update with the ModifyOrderDraftBuilder builder, with the .WithPrice(double? price);
Validation is ok. I'm playing with values, and 2 things are so strange :
- Decimal part are not taken in consideration (old price : 32000, update price : 32002.20, final price : 32002.00)
- Price is rounded !!! (old price : 32002.00 : update price : 32005.50, final price : 32006.00)

Someone have an idea ?
SPikalov
Posts: 25
Joined:


Posted: Jun 02, 2021 @ 06:24 AM             Msg. 2 of 2
Hello.
This may be due to the fact that prices must be a multiple of the contract TickSize
Which contract are you using?

Regards,
Sergey