-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathanalyst-insights.yaml
135 lines (134 loc) · 3.88 KB
/
analyst-insights.yaml
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
openapi: 3.0.1
info:
title: Analyst Insights API
version: '1.0'
servers:
- url: https://api.benzinga.com/api/v1
paths:
/analyst/insights:
get:
summary: Get analyst insights for a given ticker symbol.
operationId: getAnalystInsights
parameters:
- name: page
in: query
required: false
description: Page number for pagination.
schema:
type: integer
default: 1
- name: pageSize
in: query
required: false
description: Number of items per page.
schema:
type: integer
default: 10
- name: symbols
in: query
required: false
description: Stock ticker symbols separated by commas to query for analyst insights.
schema:
type: string
format: csv
- name: analyst
in: query
required: false
description: One or more analyst ids separated by a comma.
schema:
type: string
format: csv
- name: rating_id
in: query
required: false
description: One or more rating ids separated by a comma.
schema:
type: string
format: csv
- name: search_keys_type
in: query
required: false
description: If you wanna query by firm Id or firm name, use this parameter and pass the key. Currently supported are [firm_id, firm]
schema:
type: string
enum:
- firm_id
- firm
- name: search_keys
in: query
required: false
description: If you have selected search_keys_type, pass the appropriate identifier here.
schema:
type: string
responses:
'200':
description: An array of analyst insights for the requested ticker symbol.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AnalystInsight'
'401':
description: Authentication information is missing or invalid.
'404':
description: Analyst insights for the provided ticker symbol were not found.
components:
schemas:
AnalystInsight:
type: object
properties:
action:
type: string
description: Analyst's action on the stock (e.g., Maintains, Upgrades).
analyst_insights:
type: string
description: Detailed insights from the analyst.
date:
type: string
format: date
description: Date of the analyst insight.
firm:
type: string
description: Name of the firm providing the insight.
firm_id:
type: string
description: Unique identifier for the firm.
id:
type: string
format: uuid
description: Unique identifier for the analyst insight.
pt:
type: string
description: Price target given by the analyst.
rating:
type: string
description: Rating provided by the analyst.
rating_id:
type: string
description: Unique identifier for the rating.
security:
type: object
properties:
cik:
type: string
exchange:
type: string
isin:
type: string
name:
type: string
symbol:
type: string
description: Security details for which the insight is provided.
updated:
type: integer
format: int64
description: Timestamp of when the insight was last updated.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: query
name: token
security:
- ApiKeyAuth: []