API Support Forum
OEC API > API Support > Contract.PriceToString Method question
Author Topic: Contract.PriceToString Method question
(1 messages, Page 1 of 1)
Moderators: VPfau
AAnatoly
Posts: 22
Joined: Jul 01, 2010


Posted: Jul 13, 2010 @ 09:40 AM             Msg. 1 of 1
Hello!

Can you please clarify how this function implemented?
Simple pseudo-source code of this function will be helpeful.

Contract.PriceToString Method
Formats price using contract price format, multiplier and tick size
public String PriceToString(
Double Price
);

For ZF contract for example:

BidLevel = 118.226563
Contract.PriceToString(118.226563) = 118 09.75;

Exchange:CBL
Contract:ZFU0

TickSize:0.0078125
PriceMultiplier:0
PriceFormat:-32

Regards,
Anatoly


Anatoly Gutnick
Edited by AAnatoly on Jul 13, 2010 at 09:41:19