@@ -8,7 +8,7 @@ def get_balance_sheet(
88 symbol : str | None = None ,
99 figi : str | None = None ,
1010 calendardate : str | None = None ,
11- dimension : str | None = None
11+ dimension : str | None = None ,
1212) -> pd .DataFrame | str :
1313 """
1414 Fetch balance sheet data from Nasdaq Data Link E360 NDAQ/BS table.
@@ -37,7 +37,7 @@ def get_balance_sheet(
3737 params ["dimension" ] = dimension
3838
3939 # Fetch data from NDAQ/BS table
40- data = nasdaqdatalink .get_table (' NDAQ/BS' , ** params )
40+ data = nasdaqdatalink .get_table (" NDAQ/BS" , ** params )
4141
4242 if data .empty :
4343 return "No data found for the specified criteria."
@@ -60,28 +60,28 @@ def list_available_balance_sheet_fields() -> list[dict[str, Any]]:
6060 "description" : "The Calendar Date represents the normalized reportperiod" ,
6161 "type" : "Date" ,
6262 "filterable" : True ,
63- "primary_key" : True
63+ "primary_key" : True ,
6464 },
6565 {
6666 "name" : "symbol" ,
6767 "description" : "Symbol of the company" ,
6868 "type" : "String" ,
6969 "filterable" : True ,
70- "primary_key" : True
70+ "primary_key" : True ,
7171 },
7272 {
7373 "name" : "figi" ,
7474 "description" : "Unique Identifier given by Bloomberg" ,
7575 "type" : "String" ,
76- "filterable" : True
76+ "filterable" : True ,
7777 },
7878 {
7979 "name" : "reportperiod" ,
8080 "description" : (
8181 "The Report Period represents the end date of the fiscal period"
8282 ),
8383 "type" : "Date" ,
84- "primary_key" : True
84+ "primary_key" : True ,
8585 },
8686 {
8787 "name" : "dimension" ,
@@ -91,154 +91,142 @@ def list_available_balance_sheet_fields() -> list[dict[str, Any]]:
9191 ),
9292 "type" : "String" ,
9393 "filterable" : True ,
94- "primary_key" : True
94+ "primary_key" : True ,
9595 },
9696 {
9797 "name" : "assets" ,
9898 "description" : "Total assets recognized on the balance sheet" ,
99- "type" : "BigInt"
99+ "type" : "BigInt" ,
100100 },
101101 {
102102 "name" : "bvps" ,
103103 "description" : "Book Value Per Share (ratio between equity and shareswa)" ,
104- "type" : "Double"
104+ "type" : "Double" ,
105105 },
106106 {
107107 "name" : "cashneq" ,
108108 "description" : "Cash and equivalents on hand" ,
109- "type" : "BigInt"
109+ "type" : "BigInt" ,
110110 },
111111 {
112112 "name" : "debt" ,
113113 "description" : "Total current and non-current debt" ,
114- "type" : "BigInt"
114+ "type" : "BigInt" ,
115115 },
116116 {
117117 "name" : "liabilities" ,
118118 "description" : "Total liabilities recognized on the balance sheet" ,
119- "type" : "BigInt"
119+ "type" : "BigInt" ,
120120 },
121121 {
122122 "name" : "equity" ,
123123 "description" : "Total stockholders' equity" ,
124- "type" : "BigInt"
124+ "type" : "BigInt" ,
125125 },
126126 {
127127 "name" : "accoci" ,
128128 "description" : "Accumulated other comprehensive income" ,
129- "type" : "BigInt"
129+ "type" : "BigInt" ,
130130 },
131131 {
132132 "name" : "currency" ,
133133 "description" : "The company functional reporting currency" ,
134- "type" : "String"
134+ "type" : "String" ,
135135 },
136136 {
137137 "name" : "investmentsnc" ,
138138 "description" : "Non-current portion of investments" ,
139- "type" : "BigInt"
139+ "type" : "BigInt" ,
140140 },
141141 {
142142 "name" : "investmentsc" ,
143143 "description" : "Current portion of investments" ,
144- "type" : "BigInt"
144+ "type" : "BigInt" ,
145145 },
146146 {
147147 "name" : "receivables" ,
148148 "description" : "Trade and non-trade receivables" ,
149- "type" : "BigInt"
149+ "type" : "BigInt" ,
150150 },
151151 {
152152 "name" : "inventory" ,
153153 "description" : "Inventory expected to be sold within one year" ,
154- "type" : "BigInt"
155- },
156- {
157- "name" : "assetsnc" ,
158- "description" : "Non-current assets" ,
159- "type" : "BigInt"
160- },
161- {
162- "name" : "assetsc" ,
163- "description" : "Current assets" ,
164- "type" : "BigInt"
154+ "type" : "BigInt" ,
165155 },
156+ {"name" : "assetsnc" , "description" : "Non-current assets" , "type" : "BigInt" },
157+ {"name" : "assetsc" , "description" : "Current assets" , "type" : "BigInt" },
166158 {
167159 "name" : "investments" ,
168160 "description" : (
169161 "Total marketable and non-marketable securities and other "
170162 "invested assets"
171163 ),
172- "type" : "BigInt"
164+ "type" : "BigInt" ,
173165 },
174166 {
175167 "name" : "ppnenet" ,
176168 "description" : "Property, plant, and equipment (net of depreciation)" ,
177- "type" : "BigInt"
169+ "type" : "BigInt" ,
178170 },
179171 {
180172 "name" : "intangibles" ,
181173 "description" : "Intangible assets and goodwill" ,
182- "type" : "BigInt"
174+ "type" : "BigInt" ,
183175 },
184176 {
185177 "name" : "tangibles" ,
186178 "description" : "Tangible assets (assets minus intangibles)" ,
187- "type" : "BigInt"
179+ "type" : "BigInt" ,
188180 },
189181 {
190182 "name" : "payables" ,
191183 "description" : "Trade and non-trade payables" ,
192- "type" : "BigInt"
184+ "type" : "BigInt" ,
193185 },
194186 {
195187 "name" : "liabilitiesnc" ,
196188 "description" : "Non-current liabilities" ,
197- "type" : "BigInt"
189+ "type" : "BigInt" ,
198190 },
199191 {
200192 "name" : "liabilitiesc" ,
201193 "description" : "Current liabilities" ,
202- "type" : "BigInt"
203- },
204- {
205- "name" : "debtc" ,
206- "description" : "Current portion of debt" ,
207- "type" : "BigInt"
194+ "type" : "BigInt" ,
208195 },
196+ {"name" : "debtc" , "description" : "Current portion of debt" , "type" : "BigInt" },
209197 {
210198 "name" : "debtnc" ,
211199 "description" : "Non-current portion of debt" ,
212- "type" : "BigInt"
200+ "type" : "BigInt" ,
213201 },
214202 {
215203 "name" : "deferredrev" ,
216204 "description" : (
217205 "Deferred revenue (unrecognized revenue from received payments)"
218206 ),
219- "type" : "BigInt"
207+ "type" : "BigInt" ,
220208 },
221209 {
222210 "name" : "retearn" ,
223211 "description" : (
224212 "Retained earnings (cumulative undistributed earnings/deficit)"
225213 ),
226- "type" : "BigInt"
214+ "type" : "BigInt" ,
227215 },
228216 {
229217 "name" : "taxassets" ,
230218 "description" : "Tax assets and receivables" ,
231- "type" : "BigInt"
219+ "type" : "BigInt" ,
232220 },
233221 {
234222 "name" : "taxliabilities" ,
235223 "description" : "Outstanding tax liabilities" ,
236- "type" : "BigInt"
224+ "type" : "BigInt" ,
237225 },
238226 {
239227 "name" : "cashnequsd" ,
240228 "description" : "Cash and equivalents in USD" ,
241- "type" : "BigInt"
242- }
229+ "type" : "BigInt" ,
230+ },
243231 ]
244232 return fields
0 commit comments