File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class ConvertToSymbol extends StringUDF {
66
66
//YEAR MONTHINDEX DATE STRIKE CE/PE
67
67
//2021 1 07 14000 CE
68
68
var monthIndex = months . findIndex ( element => element === scrip [ 2 ] ) ;
69
- ex = `${ scrip [ 3 ] } ${ monthIndex } ` + `0${ scrip [ 1 ] } ` . slice ( - 2 ) + `${ Number ( scrip [ 4 ] ) } ${ scrip [ 5 ] } ` ;
69
+ ex = `${ scrip [ 3 ] } ${ Number ( monthIndex ) } ` + `0${ scrip [ 1 ] } ` . slice ( - 2 ) + `${ Number ( scrip [ 4 ] ) } ${ scrip [ 5 ] } ` ;
70
70
} else {
71
71
ex = `${ scrip [ 2 ] } ${ scrip [ 1 ] } ${ Number ( scrip [ 3 ] ) } ${ scrip [ 4 ] } ` ;
72
72
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const insertInToArray = () => {
24
24
}
25
25
26
26
const convertToTradingSymbol = ( ) => {
27
- let output = udf . convertToTradingSymbol ( 'USDINR AUG 74.50 PE' ) ;
27
+ let output = udf . convertToTradingSymbol ( 'USDINR 6 AUG 74.25 PE' ) ;
28
28
console . log ( output ) ;
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments