forked from Benzinga/doc-site-mintlify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
movers-v1.yml
182 lines (181 loc) · 5.38 KB
/
movers-v1.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
openapi: 3.0.3
info:
title: Movers
description: This REST API returns structured data for market movers.
version: 1.0.0
servers:
- url: https://api.benzinga.com/api/v1/market
paths:
/movers:
get:
summary: Returns market movers
parameters:
- name: maxResults
in: query
description: Max numbers of gainers/losers to return. Limit 1000.
schema:
type: integer
- name: from
in: query
description: |
From session or timestamp.
* yyyy-mm-dd
* yyyy-mm-ddThh:mm:ii:ss
* 1d, -1w, -1y, YTD
schema:
type: string
format: date-time
- name: to
in: query
description: |
To session or timestamp.
* yyyy-mm-dd
* yyyy-mm-ddThh:mm:ii:ss
schema:
type: string
format: date-time
- name: session
in: query
description: |
The market session to report for. PRE_MARKET and AFTER_MARKET will return movers only for the one session. Multi-day movers always use official regular session closing prices.
REGULAR is default.
schema:
type: string
enum: [REGULAR, PRE_MARKET, AFTER_MARKET]
- name: screenerQuery
in: query
description: |
Filters movers by screener query. A screener query is a list of conditions separated by a semicolon. Some examples
* marketcap_gt_1b
* close_gt_5
* sector_in_technology,healthcare
* marketcap_gt_300m;marketcap_lt_2b
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/movers'
security:
- token: []
components:
schemas:
movers:
type: object
properties:
processingTimeMillis:
type: integer
description: Informational. The number of milliseconds processing time took on the server.
result:
type: object
properties:
fromDate:
type: string
description: Datetime of the start of the period used to calculate movers.
format: date-time
toDate:
type: string
description: Datetime of the end of the period used to calculate movers.
format: date-time
snapTo:
type: string
description: Not available
usePreviousClose:
type: boolean
description: True if the previous regular session close is being used to calculate price change fields.
gainers:
type: array
items:
$ref: '#/components/schemas/movers_item'
losers:
type: array
items:
$ref: '#/components/schemas/movers_item'
movers_item:
type: object
properties:
symbol:
type: string
description: Ticker Symbol (F, MSFT, etc...)
change:
type: number
description: Price change
format: double
changePercent:
type: number
description: Price change percent
format: double
volume:
type: number
description: Volume for the instrument over the report period.
format: double
close:
type: number
description: The last known price (up to a minute delayed if in an active session) of the instrument.
format: double
companyName:
type: string
description: Company name
averageVolume:
type: integer
description: Average 50 date volume for the instrument
previousClose:
type: number
description: Previous close price
format: double
parameters:
maxResults:
name: maxResults
in: query
description: Max numbers of gainers/losers to return. Limit 1000.
schema:
type: integer
from:
name: from
in: query
description: |
From session or timestamp.
* yyyy-mm-dd
* yyyy-mm-ddThh:mm:ii:ss
* 1d, -1w, -1y, YTD
schema:
type: string
format: date-time
to:
name: to
in: query
description: |
To session or timestamp.
* yyyy-mm-dd
* yyyy-mm-ddThh:mm:ii:ss
schema:
type: string
format: date-time
session:
name: session
in: query
description: |
The market session to report for. PRE_MARKET and AFTER_MARKET will return movers only for the one session. Multi-day movers always use official regular session closing prices.
REGULAR is default.
schema:
type: string
enum: [REGULAR, PRE_MARKET, AFTER_MARKET]
screenerQuery:
name: screenerQuery
in: query
description: |
Filters movers by screener query. A screener query is a list of conditions separated by a semicolon. Some examples
* marketcap_gt_1b
* close_gt_5
* sector_in_technology,healthcare
* marketcap_gt_300m;marketcap_lt_2b
schema:
type: string
securitySchemes:
token:
type: apiKey
name: apikey
in: query