April 19th, 2014, 11:40 am
First, you should request that this post be moved to the Student forum, where more people are likely to find it. Second, the standard CDS model code can be downloaded from here: CDS Model. Index option models are not yet standardized, and I am not aware of any code floating around, but if you have access to Bloomberg (or know someone who does) you should be able to get your hands on a fairly detailed white paper describing their implementation. That may be as close to a "market practice" as you can get without access to dealer models.