We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f432fa commit ef9a4d5Copy full SHA for ef9a4d5
casparser/process/nsdl_statement.py
@@ -1,5 +1,7 @@
1
import re
2
3
+from casparser_isin import ISINDb
4
+
5
from casparser.exceptions import HeaderParseError
6
from casparser.types import NSDLCASData, StatementPeriod
7
@@ -197,4 +199,12 @@ def process_nsdl_text(text):
197
199
accounts=list(demat.values()),
198
200
)
201
202
+ with ISINDb() as isin_db:
203
+ for account in cas_data.accounts:
204
+ for equity in account.equities:
205
+ if equity.name is None:
206
+ isin_data = isin_db.isin_lookup(equity.isin)
207
+ if isin_data:
208
+ equity.name = isin_data.name
209
210
return cas_data
0 commit comments