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_SP = localParsedEntity['RTG_SP']

SP_rating = list();
SP_rating = ["A","A−","A+","A-1","A-1+","A-2","A-3","AA","AA−","AA+","AAA","B","B−","B+","BB","BB−","BB+","BBB","BBB−","BBB+","C","CC","CCC","CCC−","CCC+","D","B-1","B-2","B-3"]

for Rating in SP_rating:
if Rating in RTG_SP:
rating_mapped = Rating
else:
rating_mapped = "WR"

print "S&P Rating is changed from " + RTG_SP + " to " + rating_mapped + "."

return rating_mapped

Publicité


Signaler le contenu de ce document

Publicité