Created
January 24, 2014 18:55
-
-
Save mvberg/8603692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(SpreadTypeEnum.valueOf(code)){ | |
case GN: | |
return "Generic"; | |
case CR: | |
return "Crack Spread"; | |
case _3W: | |
return "3-Way"; | |
case XT: | |
return "Xmas Tree"; | |
case SS: | |
return "Straddle Strips"; | |
case RR: | |
return "Risk Reversal"; | |
case SR: | |
return "Strip"; | |
case _23: | |
return "Ratio 2x3"; | |
case _13: | |
return "Ratio 1x3"; | |
case _12: | |
return "Ratio 1x2"; | |
case IC: | |
return "Iron Condor"; | |
case HS: | |
return "Horizontal Straddle"; | |
case DB : | |
return "Double"; | |
case CO: | |
return "Condor"; | |
case CC: | |
return "Conditional Curve"; | |
case BO: | |
return "Butterfly"; | |
case BX: | |
return "Box"; | |
case VP: | |
return "Equity Put Vertical"; | |
case VC: | |
return "Equity Call Vertical"; | |
case VT: | |
return "Vertical"; | |
case SG: | |
return "Strangle"; | |
case ST: | |
return "Straddle"; | |
case HO: | |
return "Horizontal Calendar"; | |
case DO: | |
return "Diagonal Calendar"; | |
case BS: | |
return "Bundle Spread"; | |
case FB: | |
return "Bundle"; | |
case PS: | |
return "Pack Spread"; | |
case DF: | |
return "Double Butterfly"; | |
case PB: | |
return "Pack Butterfly"; | |
case MP: | |
return "Month Pack"; | |
case PK: | |
return "Pack"; | |
case C1: | |
return "Crack"; | |
case IS: | |
return "Inter-Commodity"; | |
case FS: | |
return "Strip"; | |
case CF: | |
return "Condor"; | |
case BF: | |
return "Butterfly"; | |
case EQ: | |
return "Equities"; | |
case SP: | |
return "Standard"; | |
case RT: | |
return "Reduced Tick"; | |
case FX: | |
return "Foreign Exchange"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment