-
Notifications
You must be signed in to change notification settings - Fork 11
/
fundamentals-v4.yml
956 lines (953 loc) · 27 KB
/
fundamentals-v4.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
openapi: 3.0.3
info:
title: Benzinga - Fundamental Data
description: Get balance sheet, income statement, cash flow, derived figures and ratios, share price and share price ratio
version: 1.0.0
contact: {}
servers:
- url: https://api.benzinga.com/api/v4
paths:
/fundamentals:
get:
summary: Fundamental data
parameters:
- name: symbols
in: query
description: One or more stock ticker symbol in comma separated list specifies company data to return. (Max. 5)
schema:
type: string
example: A,AAPL
- name: date
in: query
description: Returns the most recent results for dates less than or equal to the date specified in this parameter. Use `latest` to retrieve the most recent results. The default setting is `latest`.
schema:
type: string
example: "2023-09-30"
- name: from
in: query
description: Date to query from point in time.
schema:
type: string
example: "2010-07-01"
- name: to
in: query
description: Date to query to point in time.
schema:
type: string
example: "2020-07-30"
responses:
"200":
description: An object including a response containing an array of objects containing company data
content:
application/json:
schema:
$ref: "#/components/schemas/Fundamental"
/fundamentals/balance-sheet:
get:
summary: Balance sheet
parameters:
- name: symbols
in: query
description: One or more stock ticker symbol in comma separated list specifies company data to return.
schema:
type: string
example: A,AAPL
- name: date
in: query
description: Returns the most recent results for dates less than or equal to the date specified in this parameter. Use `latest` to retrieve the most recent results. The default setting is `latest`.
schema:
type: string
example: latest
- name: from
in: query
description: Date to query from point in time.
schema:
type: string
example: "2010-07-30"
- name: to
in: query
description: Date to query to point in time.
schema:
type: string
example: "2012-07-30"
responses:
"200":
description: An object including a response that includes balance sheet data
content:
application/json:
schema:
$ref: "#/components/schemas/BalanceSheetResponse"
/fundamentals/derived:
get:
summary: Derived figures & ratios
parameters:
- name: symbols
in: query
description: One or more stock ticker symbol in comma separated list specifies company data to return.
schema:
type: string
example: A,AAPL
- name: date
in: query
description: Returns the most recent results for dates less than or equal to the date specified in this parameter. Use `latest` to retrieve the most recent results. The default setting is `latest`.
schema:
type: string
example: "2023-09-30"
- name: from
in: query
description: Date to query from point in time.
schema:
type: string
example: "2010-07-01"
- name: to
in: query
description: Date to query to point in time.
schema:
type: string
example: "2020-07-30"
responses:
"200":
description: An object including a response that includes balance sheet data
content:
application/json:
schema:
$ref: "#/components/schemas/DerivedFiguresRatiosResponse"
/fundamentals/cash-flow:
get:
summary: Cashflow
parameters:
- name: symbols
in: query
description: One or more stock ticker symbol in comma separated list specifies company data to return.
schema:
type: string
example: A,AAPL
- name: date
in: query
description: Returns the most recent results for dates less than or equal to the date specified in this parameter. Use `latest` to retrieve the most recent results. The default setting is `latest`.
schema:
type: string
example: "2023-09-30"
- name: from
in: query
description: Date to query from point in time.
schema:
type: string
example: "2010-07-01"
- name: to
in: query
description: Date to query to point in time.
schema:
type: string
example: "2020-07-30"
responses:
"200":
description: An object including a response that includes cash flow data
content:
application/json:
schema:
$ref: "#/components/schemas/CashFlowResponse"
/fundamentals/income-statement:
get:
summary: Income statement
parameters:
- name: symbols
in: query
description: One or more stock ticker symbol in comma separated list specifies company data to return.
schema:
type: string
example: A,AAPL
- name: date
in: query
description: Returns the most recent results for dates less than or equal to the date specified in this parameter. Use `latest` to retrieve the most recent results. The default setting is `latest`.
schema:
type: string
example: "2023-09-30"
- name: from
in: query
description: Date to query from point in time.
schema:
type: string
example: "2010-07-01"
- name: to
in: query
description: Date to query to point in time.
schema:
type: string
example: "2020-07-30"
responses:
"200":
description: An object including a response that includes income statement data
content:
application/json:
schema:
$ref: "#/components/schemas/IncomeStatementResponse"
/fundamentals/share-price-ratios:
get:
summary: Share price ratios
parameters:
- name: symbols
in: query
description: One or more stock ticker symbol in comma separated list specifies company data to return.
schema:
type: string
example: A,AAPL
- name: date
in: query
description: Returns the most recent results for dates less than or equal to the date specified in this parameter. Use `latest` to retrieve the most recent results. The default setting is `latest`.
schema:
type: string
example: "2023-09-30"
- name: from
in: query
description: Date to query from point in time.
schema:
type: string
example: "2010-07-01"
- name: to
in: query
description: Date to query to point in time.
schema:
type: string
example: "2020-07-30"
responses:
"200":
description: An object including a response that includes share price ratios data
content:
application/json:
schema:
$ref: "#/components/schemas/SharePriceRatioResponse"
components:
schemas:
Fundamental:
type: object
properties:
ok:
type: string
data:
type: array
items:
type: object
properties:
balancesheet:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/BalanceSheet"
income_statement:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/IncomeStatement"
figures_and_ratios:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/DerivedFiguresRatios"
cashflow:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/CashFlow"
BalanceSheetResponse:
type: object
properties:
ok:
type: string
data:
type: array
items:
type: object
properties:
balancesheet:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/BalanceSheet"
BalanceSheet:
type: object
properties:
id:
type: number
symbol:
type: string
timeperiod:
type: string
fiscal_year:
type: number
fiscal_period:
type: string
report_date:
type: string
currency:
type: string
publish_date:
type: string
restated_date:
type: string
shares_basic:
type: number
shares_diluted:
type: number
cash_cash_equivalents_and_short_term_investments:
type: number
cash_and_cash_equivalents:
type: number
short_term_investments:
type: number
accounts_and_notes_receivable:
type: number
accounts_receivable_net:
type: number
notes_receivable_net:
type: number
unbilled_revenues:
type: number
inventories:
type: number
raw_materials:
type: number
work_in_process:
type: number
finished_goods:
type: number
other_inventory:
type: number
other_short_term_assets:
type: number
prepaid_expenses:
type: number
derivative_and_hedging_assets_short_term:
type: number
assets_held_for_sale:
type: number
deferred_tax_assets_short_term:
type: number
income_taxes_receivable:
type: number
discontinued_operations_short_term:
type: number
misc_short_term_assets:
type: number
total_current_assets:
type: number
property_plant_and_equipment_net:
type: number
property_plant_and_equipment:
type: number
accumulated_depreciation:
type: number
long_term_investments_and_receivables:
type: number
long_term_investments:
type: number
long_term_marketable_securities:
type: number
long_term_receivables:
type: number
other_long_term_assets:
type: number
intangible_assets:
type: number
goodwill:
type: number
other_intangible_assets:
type: number
prepaid_expense:
type: number
deferred_tax_assets_long_term:
type: number
derivative_and_hedging_assets_long_term:
type: number
prepaid_pension_costs:
type: number
discontinued_operations_long_term:
type: number
investments_in_affiliates:
type: number
misc_long_term_assets:
type: number
total_noncurrent_assets:
type: number
total_assets:
type: number
payables_and_accruals:
type: number
accounts_payable:
type: number
accrued_taxes:
type: number
interest_and_dividends_payable:
type: number
other_payables_and_accruals:
type: number
short_term_debt:
type: number
short_term_borrowings:
type: number
short_term_capital_leases:
type: number
current_portion_of_long_term_debt:
type: number
other_short_term_liabilities:
type: number
deferred_revenue_short_term:
type: number
liabilities_from_derivatives_and_hedging_short_term:
type: number
deferred_tax_liabilities_short_term:
type: number
liabilities_from_discontinued_operations_short_term:
type: number
misc_short_term_liabilities:
type: number
total_current_liabilities:
type: number
long_term_debt:
type: number
long_term_borrowings:
type: number
long_term_capital_leases:
type: number
other_long_term_liabilities:
type: number
accrued_liabilities:
type: number
pension_liabilities:
type: number
pensions:
type: number
other_post_retirement_benefits:
type: number
deferred_compensation:
type: number
deferred_revenue_long_term:
type: number
deferred_tax_liabilities_long_term:
type: number
liabilities_from_derivatives_and_hedging_long_term:
type: number
liabilities_from_discontinued_operations_long_term:
type: number
misc_long_term_liabilities:
type: number
total_noncurrent_liabilities:
type: number
total_liabilities:
type: number
preferred_equity:
type: number
share_capital_and_additional_paid_in_capital:
type: number
common_stock:
type: number
additional_paid_in_capital:
type: number
other_share_capital:
type: number
treasury_stock:
type: number
retained_earnings:
type: number
other_equity:
type: number
equity_before_minority_interest:
type: number
minority_interest:
type: number
total_equity:
type: number
total_liabilities_and_equity:
type: number
DerivedFiguresRatiosResponse:
type: object
properties:
ok:
type: string
data:
type: array
items:
type: object
properties:
figures_and_ratios:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/DerivedFiguresRatios"
DerivedFiguresRatios:
type: object
properties:
id:
type: number
symbol:
type: string
timeperiod:
type: string
fiscal_year:
type: number
fiscal_period:
type: string
report_date:
type: string
currency:
type: string
publish_date:
type: string
restated_date:
type: string
ebitda:
type: number
total_debt:
type: number
free_cash_flow:
type: number
gross_profit_margin:
type: number
operating_margin:
type: number
net_profit_margin:
type: number
return_on_equity:
type: number
return_on_assets:
type: number
free_cash_flow_to_net_income:
type: number
current_ratio:
type: number
liabilities_to_equity_ratio:
type: number
debt_ratio:
type: number
earnings_per_share_basic:
type: number
earnings_per_share_diluted:
type: number
sales_per_share:
type: number
equity_per_share:
type: number
free_cash_flow_per_share:
type: number
dividends_per_share:
type: number
piotroski_f_score:
type: number
return_on_invested_capital:
type: number
cash_return_on_invested_capital:
type: number
dividend_payout_ratio:
type: number
net_debt_ebitda:
type: number
net_debt_ebit:
type: number
CashFlowResponse:
type: object
properties:
ok:
type: string
data:
type: array
items:
type: object
properties:
cashflow:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/CashFlow"
CashFlow:
type: object
properties:
id:
type: number
symbol:
type: string
timeperiod:
type: string
fiscal_year:
type: number
fiscal_period:
type: string
report_date:
type: string
currency:
type: string
publish_date:
type: string
restated_date:
type: string
shares_basic:
type: number
shares_diluted:
type: number
net_income_starting_line:
type: number
net_income:
type: number
net_income_from_discontinued_operations:
type: number
other_adjustments:
type: number
depreciation_and_amortization:
type: number
non_cash_items:
type: number
stock_based_compensation:
type: number
deferred_income_taxes:
type: number
other_non_cash_adjustments:
type: number
change_in_working_capital:
type: number
change_in_accounts_receivable:
type: number
change_in_inventories:
type: number
change_in_accounts_payable:
type: number
change_in_other:
type: number
net_cash_from_discontinued_operations_operating:
type: number
net_cash_from_operating_activities:
type: number
change_in_fixed_assets_and_intangibles:
type: number
disposition_of_fixed_assets_and_intangibles:
type: number
disposition_of_fixed_assets:
type: number
disposition_of_intangible_assets:
type: number
acquisition_of_fixed_assets_and_intangibles:
type: number
purchase_of_fixed_assets:
type: number
acquisition_of_intangible_assets:
type: number
other_change_in_fixed_assets_and_intangibles:
type: number
net_change_in_long_term_investment:
type: number
decrease_in_long_term_investment:
type: number
increase_in_long_term_investment:
type: number
net_cash_from_acquisitions_and_divestitures:
type: number
net_cash_from_divestitures:
type: number
cash_for_acquisition_of_subsidiaries:
type: number
cash_for_joint_ventures:
type: number
net_cash_from_other_acquisitions:
type: number
other_investing_activities:
type: number
net_cash_from_discontinued_operations_investing:
type: number
net_cash_from_investing_activities:
type: number
dividends_paid:
type: number
cash_from_repayment_of_debt:
type: number
cash_from_repayment_of_short_term_debt_net:
type: number
cash_from_repayment_of_long_term_debt_net:
type: number
repayments_of_long_term_debt:
type: number
cash_from_long_term_debt:
type: number
cash_from_repurchase_of_equity:
type: number
increase_in_capital_stock:
type: number
decrease_in_capital_stock:
type: number
other_financing_activities:
type: number
net_cash_from_discontinued_operations_financing:
type: number
net_cash_from_financing_activities:
type: number
net_cash_before_disc_operations_and_fx:
type: number
change_in_cash_from_disc_operations_and_other:
type: number
net_cash_before_fx:
type: number
effect_of_foreign_exchange_rates:
type: number
net_change_in_cash:
type: number
IncomeStatementResponse:
type: object
properties:
ok:
type: string
data:
type: array
items:
type: object
properties:
income_statement:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/IncomeStatement"
IncomeStatement:
type: object
properties:
id:
type: number
symbol:
type: string
timeperiod:
type: string
fiscal_year:
type: number
fiscal_period:
type: string
report_date:
type: string
currency:
type: string
publish_date:
type: string
restated_date:
type: string
shares_basic:
type: number
shares_diluted:
type: number
revenue:
type: number
sales_and_services_revenue:
type: number
financing_revenue:
type: number
other_revenue:
type: number
cost_of_revenue:
type: number
cost_of_goods_and_services:
type: number
cost_of_financing_revenue:
type: number
cost_of_other_revenue:
type: number
gross_profit:
type: number
other_operating_income:
type: number
operating_expenses:
type: number
selling_general_and_administrative:
type: number
selling_and_marketing:
type: number
general_and_administrative:
type: number
research_and_development:
type: number
depreciation_and_amortization:
type: number
provision_for_doubtful_accounts:
type: number
other_operating_expenses:
type: number
operating_income_loss:
type: number
non_operating_income_loss:
type: number
interest_expense_net:
type: number
interest_expense:
type: number
interest_income:
type: number
other_investment_income_loss:
type: number
foreign_exchange_gain_loss:
type: number
income_loss_from_affiliates:
type: number
other_non_operating_income_loss:
type: number
pretax_income_loss_adj:
type: number
abnormal_gains_losses:
type: number
acquired_in_process_randd:
type: number
merger_and_acquisition_expense:
type: number
abnormal_derivatives:
type: number
disposal_of_assets:
type: number
early_extinguishment_of_debt:
type: number
asset_write_down:
type: number
impairment_of_goodwill_and_intangibles:
type: number
sale_of_business:
type: number
legal_settlement:
type: number
restructuring_charges:
type: number
sale_of_investments_and_unrealized_investments:
type: number
insurance_settlement:
type: number
other_abnormal_items:
type: number
pretax_income_loss:
type: number
income_tax_expense_benefit_net:
type: number
current_income_tax:
type: number
deferred_income_tax:
type: number
tax_allowance_credit:
type: number
income_loss_from_affiliates_net_of_taxes:
type: number
income_loss_from_continuing_operations:
type: number
net_extraordinary_gains_losses:
type: number
discontinued_operations:
type: number
accounting_charges_and_other:
type: number
income_loss_incl_minority_interest:
type: number
minority_interest:
type: number
net_income:
type: number
preferred_dividends:
type: number
other_adjustments:
type: number
net_income_common:
type: number
SharePriceRatioResponse:
type: object
properties:
ok:
type: string
data:
type: array
items:
type: object
properties:
share_price_ratios:
type: object
properties:
type:
type: string
data:
type: array
items:
$ref: "#/components/schemas/SharePriceRatio"
SharePriceRatio:
type: object
properties:
id:
type: number
symbol:
type: string
date:
type: string
open:
type: number
high:
type: number
low:
type: number
close:
type: number
adj_close:
type: number
volume:
type: number
dividend:
type: number
shares_outstanding:
type: number
market_cap:
type: number
price_to_earnings_ratio_quarterly:
type: number
price_to_earnings_ratio_ttm:
type: number
price_to_sales_ratio_quarterly:
type: number
price_to_sales_ratio_ttm:
type: number
price_to_book_value:
type: number
price_to_free_cash_flow_quarterly:
type: number
price_to_free_cash_flow_ttm:
type: number
enterprise_value:
type: number
ev_ebitda:
type: number
ev_sales:
type: number
ev_fcf:
type: number
book_to_market_value:
type: number
operating_income_ev:
type: number
altman_z_score:
type: number
dividend_yield:
type: number