API Support Forum
OEC API > Market Data > Soybean Oil StringToPrice/PriceToString does not round trip
Author Topic: Soybean Oil StringToPrice/PriceToString does not round trip
(4 messages, Page 1 of 1)
Moderators: VPfau
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 03, 2017 @ 10:41 PM             Msg. 1 of 4
We found today that StringToPrice /PriceToString does not roundtrip for Soybean Oil contracts.

Example: I get the current price for ZLK7. It is .3150. I input this price to OECAPICOM::IContractPtr::PriceToString and get back 31.50 as a string. Then I input this 31.50 string into OECAPICOM::IContractPtr:StringToPrice and get 31.50.

If this example should roundtrip, then it seems the StringToPrice function needs work.

Thanks,
CHW
VPfau
Moderator
Posts: 100
Joined: Oct 26, 2011


Posted: Apr 04, 2017 @ 07:40 AM             Msg. 2 of 4
Thank you, Chris. We will check what is wrong with it and let you know.
Vitaliy Pfau
VPfau
Moderator
Posts: 100
Joined: Oct 26, 2011


Posted: Apr 04, 2017 @ 11:43 AM             Msg. 3 of 4
Chris, this is issue on API side. It is fixed and going to be released with next update.

Please, be careful. API and PROD settings are not the same on API and PROD environment.
PROD shows price as 0.3149 not 31.49

Thank you
Vitaliy Pfau
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 04, 2017 @ 07:19 PM             Msg. 4 of 4
Thanks for the words of caution Vitaly. We look forward to the fix.

Chris
CHW