cjoint

Publicité


Publicité

Format du document : text/plain

Prévisualisation

'''
script to add ISIN the market description, please locate under
X:\wss\7.4.7\components\trm\share\python\tasks\instrument\imp\script\field_mapping
D:\wss\wssplay\ws-suite\components\trm\share\python\tasks\instrument\imp\script\field_mapping\modify_date_basis.py
C:\WSS\server\QCBMAST\ws-suite\components\trm\share\python\tasks\instrument\imp\script\field_mapping
'''


def process(sourceValue, localParsedEntity, localMapping):

RTG_MOODY = localParsedEntity['RTG_MOODY']

Moodys_rating = list();
Moodys_rating = ["Aaa","Aa1","Aa2","Aa3","A1","A2","A3","Baa1","Baa2","Baa3","Ba1","Ba2","Ba3","B1","B2","B3","Caa1","Caa2","Caa3","Ca","C","P-1","P-2","P-3"]

for Rating in Moodys_rating:
if Rating in RTG_MOODY:
rating_mapped = Rating
else:
rating_mapped = "WR"

print "Moody's Rating is changed from " + RTG_MOODY + " to " + rating_mapped + "."

return rating_mapped

Publicité


Signaler le contenu de ce document

Publicité