Certain markets price securities in pennies (e.g. UK, South Africa, Israel. When obtaining a large number of security prices what field tells me that it is priced in pennies?
Thanks.
You can use the field CURRENCY or TR.PriceMoPriceCurrency. The former gives you ISO currency code, the latter gives currency name. For UK, South Africa and Israel these fields return:Country: CURRENCY, TR.PriceMoPriceCurrencyUK: GBp, British PenceSouth Africa: ZAc, South African CentsIsrael: ILa, Israeli Agora
If you need a generic logic to distinguish between major and minor currency units, you can probably use the following: if the value of CURRENCY field is a mixed case string, then the price is in minor currency units (cents, pennies etc.). To the best of my knowledge this logic can be currently applied for all markets around the world, though I'm not 100% sure about that. I'm less sure this logic can be sustained indefinitely in the future.
Many thanks Alex.
You can also use the currency parameter of the field that you are requesting, for example, TR.PriceClose and TR.PriceClose.currency: