iron_warbler 2.0.7.7 → 2.0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -16
- data/app/assets/javascript/iron_warbler/application.js +3 -0
- data/app/assets/stylesheets/iron_warbler/positions.scss +47 -0
- data/app/assets/stylesheets/iron_warbler/strategies.scss +0 -0
- data/app/assets/stylesheets/iron_warbler/utils.css +44 -0
- data/app/controllers/iro/alerts_controller.rb +6 -6
- data/app/controllers/iro/application_controller.rb +3 -2
- data/app/controllers/iro/datapoints_controller.rb +0 -2
- data/app/controllers/iro/positions_controller.rb +62 -0
- data/app/controllers/iro/profiles_controller.rb +0 -2
- data/app/controllers/iro/purses_controller.rb +65 -0
- data/app/controllers/iro/stocks_controller.rb +11 -4
- data/app/controllers/iro/strategies_controller.rb +66 -0
- data/app/models/iro/alert.rb +15 -4
- data/app/models/iro/datapoint.rb +108 -3
- data/app/models/iro/date.rb +10 -0
- data/app/models/iro/option.rb +13 -5
- data/app/models/iro/position.rb +222 -0
- data/app/models/iro/price_item.rb +5 -2
- data/app/models/iro/purse.rb +17 -0
- data/app/models/iro/stock.rb +19 -8
- data/app/models/iro/strategy.rb +38 -0
- data/app/models/tda/option.rb +137 -0
- data/app/views/iro/_analytics.erb +16 -0
- data/app/views/iro/_main_header.haml +23 -0
- data/app/views/iro/alerts/index.haml +1 -1
- data/app/views/iro/positions/_form.haml +59 -0
- data/app/views/iro/positions/_reasons.haml +4 -0
- data/app/views/iro/positions/_table.haml +137 -0
- data/app/views/iro/positions/edit.haml +4 -0
- data/app/views/iro/positions/new.haml +4 -0
- data/app/views/iro/purses/_form.haml +9 -0
- data/app/views/iro/purses/edit.haml +3 -0
- data/app/views/iro/purses/index.haml +11 -0
- data/app/views/iro/purses/show.haml +10 -0
- data/app/views/iro/stocks/_form.haml +4 -0
- data/app/views/iro/strategies/_form.haml +37 -0
- data/app/views/iro/strategies/_header.haml +8 -0
- data/app/views/iro/strategies/_show.haml +18 -0
- data/app/views/iro/strategies/_table.haml +18 -0
- data/app/views/iro/strategies/edit.haml +3 -0
- data/app/views/iro/strategies/new.haml +3 -0
- data/app/views/layouts/iro/application.haml +48 -13
- data/config/initializers/assets.rb +10 -0
- data/config/routes.rb +6 -0
- data/lib/iron_warbler.rb +4 -1
- data/lib/tasks/db_tasks.rake +54 -1
- data/lib/tasks/iro_tasks.rake +35 -0
- data/lib/tasks/iro_tasks.rake-old +128 -0
- metadata +122 -40
- data/app/assets/stylesheets/iron_warbler/main.css +0 -13
- data/app/assets/stylesheets/scaffold.css +0 -80
- data/app/models/iro/application_record.rb +0 -4
- data/app/models/iro/profile.rb +0 -4
- data/app/views/iro/alerts/edit.html.erb +0 -6
- data/app/views/iro/alerts/new.html.erb +0 -5
- data/app/views/iro/alerts/show.html.erb +0 -34
- data/app/views/iro/profiles/_form.html.erb +0 -32
- data/app/views/iro/profiles/edit.html.erb +0 -6
- data/app/views/iro/profiles/index.html.erb +0 -31
- data/app/views/iro/profiles/new.html.erb +0 -5
- data/app/views/iro/profiles/show.html.erb +0 -19
- data/db/migrate/20231210204830_create_iro_profiles.rb +0 -12
- data/db/migrate/20231210205837_create_iro_alerts.rb +0 -16
- data/db/migrate/20231219204329_create_dates.rb +0 -13
- data/db/migrate/20231219205644_create_datapoint.rb +0 -15
- data/db/migrate/20231220193201_create_stocks.rb +0 -11
- data/db/migrate/20231220194903_add_alert_status.rb +0 -5
- data/db/migrate/20231220223730_create_iro_price_item.rb +0 -57
- /data/app/models/tda/{api.rb → stock.rb} +0 -0
metadata
CHANGED
@@ -1,29 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.7.
|
4
|
+
version: 2.0.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: business_time
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cancancan
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
33
|
+
version: 3.5.0
|
20
34
|
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
40
|
+
version: 3.5.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: devise
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.9.3
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.9.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: exception_notification
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.5.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.5.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: haml
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 6.3.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 6.3.0
|
27
83
|
- !ruby/object:Gem::Dependency
|
28
84
|
name: httparty
|
29
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,75 +109,89 @@ dependencies:
|
|
53
109
|
- !ruby/object:Gem::Version
|
54
110
|
version: 2.11.0
|
55
111
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
112
|
+
name: mongoid
|
57
113
|
requirement: !ruby/object:Gem::Requirement
|
58
114
|
requirements:
|
59
115
|
- - "~>"
|
60
116
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
117
|
+
version: 7.3.0
|
62
118
|
type: :runtime
|
63
119
|
prerelease: false
|
64
120
|
version_requirements: !ruby/object:Gem::Requirement
|
65
121
|
requirements:
|
66
122
|
- - "~>"
|
67
123
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
124
|
+
version: 7.3.0
|
69
125
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
126
|
+
name: rails
|
71
127
|
requirement: !ruby/object:Gem::Requirement
|
72
128
|
requirements:
|
73
129
|
- - "~>"
|
74
130
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
131
|
+
version: 6.1.0
|
76
132
|
type: :runtime
|
77
133
|
prerelease: false
|
78
134
|
version_requirements: !ruby/object:Gem::Requirement
|
79
135
|
requirements:
|
80
136
|
- - "~>"
|
81
137
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
138
|
+
version: 6.1.0
|
83
139
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
140
|
+
name: wco_models
|
85
141
|
requirement: !ruby/object:Gem::Requirement
|
86
142
|
requirements:
|
87
143
|
- - "~>"
|
88
144
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
145
|
+
version: 3.1.0
|
90
146
|
type: :runtime
|
91
147
|
prerelease: false
|
92
148
|
version_requirements: !ruby/object:Gem::Requirement
|
93
149
|
requirements:
|
94
150
|
- - "~>"
|
95
151
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
152
|
+
version: 3.1.0
|
97
153
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
154
|
+
name: omniauth
|
99
155
|
requirement: !ruby/object:Gem::Requirement
|
100
156
|
requirements:
|
101
157
|
- - "~>"
|
102
158
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
159
|
+
version: 2.1.1
|
104
160
|
type: :runtime
|
105
161
|
prerelease: false
|
106
162
|
version_requirements: !ruby/object:Gem::Requirement
|
107
163
|
requirements:
|
108
164
|
- - "~>"
|
109
165
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
166
|
+
version: 2.1.1
|
111
167
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
168
|
+
name: omniauth-keycloak
|
113
169
|
requirement: !ruby/object:Gem::Requirement
|
114
170
|
requirements:
|
115
171
|
- - "~>"
|
116
172
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
173
|
+
version: 1.5.1
|
118
174
|
type: :runtime
|
119
175
|
prerelease: false
|
120
176
|
version_requirements: !ruby/object:Gem::Requirement
|
121
177
|
requirements:
|
122
178
|
- - "~>"
|
123
179
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
180
|
+
version: 1.5.1
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: omniauth-rails_csrf_protection
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.0.1
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.0.1
|
125
195
|
description: A stocks and Options Trading Bot.
|
126
196
|
email: victor@wasya.co
|
127
197
|
executables: []
|
@@ -130,56 +200,68 @@ extra_rdoc_files: []
|
|
130
200
|
files:
|
131
201
|
- Rakefile
|
132
202
|
- app/assets/config/iron_warbler_manifest.js
|
203
|
+
- app/assets/javascript/iron_warbler/application.js
|
133
204
|
- app/assets/stylesheets/iron_warbler/alerts.css
|
134
205
|
- app/assets/stylesheets/iron_warbler/application.css
|
135
206
|
- app/assets/stylesheets/iron_warbler/datapoints.css
|
136
|
-
- app/assets/stylesheets/iron_warbler/
|
207
|
+
- app/assets/stylesheets/iron_warbler/positions.scss
|
137
208
|
- app/assets/stylesheets/iron_warbler/profiles.css
|
138
|
-
- app/assets/stylesheets/
|
209
|
+
- app/assets/stylesheets/iron_warbler/strategies.scss
|
210
|
+
- app/assets/stylesheets/iron_warbler/utils.css
|
139
211
|
- app/controllers/iro/alerts_controller.rb
|
140
212
|
- app/controllers/iro/application_controller.rb
|
141
213
|
- app/controllers/iro/datapoints_controller.rb
|
214
|
+
- app/controllers/iro/positions_controller.rb
|
142
215
|
- app/controllers/iro/profiles_controller.rb
|
216
|
+
- app/controllers/iro/purses_controller.rb
|
143
217
|
- app/controllers/iro/stocks_controller.rb
|
218
|
+
- app/controllers/iro/strategies_controller.rb
|
144
219
|
- app/helpers/iro/application_helper.rb
|
145
220
|
- app/jobs/iro/application_job.rb
|
146
221
|
- app/mailers/iro/alert_mailer.rb
|
147
222
|
- app/mailers/iro/application_mailer.rb
|
148
223
|
- app/models/iro/alert.rb
|
149
|
-
- app/models/iro/application_record.rb
|
150
224
|
- app/models/iro/datapoint.rb
|
225
|
+
- app/models/iro/date.rb
|
151
226
|
- app/models/iro/option.rb
|
227
|
+
- app/models/iro/position.rb
|
152
228
|
- app/models/iro/price_item.rb
|
153
|
-
- app/models/iro/
|
229
|
+
- app/models/iro/purse.rb
|
154
230
|
- app/models/iro/stock.rb
|
155
|
-
- app/models/
|
231
|
+
- app/models/iro/strategy.rb
|
232
|
+
- app/models/tda/option.rb
|
233
|
+
- app/models/tda/stock.rb
|
234
|
+
- app/views/iro/_analytics.erb
|
235
|
+
- app/views/iro/_main_header.haml
|
156
236
|
- app/views/iro/alert_mailer/stock_alert.haml
|
157
237
|
- app/views/iro/alerts/_form.haml
|
158
|
-
- app/views/iro/alerts/edit.html.erb
|
159
238
|
- app/views/iro/alerts/index.haml
|
160
|
-
- app/views/iro/alerts/new.html.erb
|
161
|
-
- app/views/iro/alerts/show.html.erb
|
162
239
|
- app/views/iro/application/home.haml
|
163
|
-
- app/views/iro/
|
164
|
-
- app/views/iro/
|
165
|
-
- app/views/iro/
|
166
|
-
- app/views/iro/
|
167
|
-
- app/views/iro/
|
240
|
+
- app/views/iro/positions/_form.haml
|
241
|
+
- app/views/iro/positions/_reasons.haml
|
242
|
+
- app/views/iro/positions/_table.haml
|
243
|
+
- app/views/iro/positions/edit.haml
|
244
|
+
- app/views/iro/positions/new.haml
|
245
|
+
- app/views/iro/purses/_form.haml
|
246
|
+
- app/views/iro/purses/edit.haml
|
247
|
+
- app/views/iro/purses/index.haml
|
248
|
+
- app/views/iro/purses/show.haml
|
168
249
|
- app/views/iro/stocks/_form.haml
|
169
250
|
- app/views/iro/stocks/index.haml
|
251
|
+
- app/views/iro/strategies/_form.haml
|
252
|
+
- app/views/iro/strategies/_header.haml
|
253
|
+
- app/views/iro/strategies/_show.haml
|
254
|
+
- app/views/iro/strategies/_table.haml
|
255
|
+
- app/views/iro/strategies/edit.haml
|
256
|
+
- app/views/iro/strategies/new.haml
|
170
257
|
- app/views/layouts/iro/application.haml
|
258
|
+
- config/initializers/assets.rb
|
171
259
|
- config/routes.rb
|
172
|
-
- db/migrate/20231210204830_create_iro_profiles.rb
|
173
|
-
- db/migrate/20231210205837_create_iro_alerts.rb
|
174
|
-
- db/migrate/20231219204329_create_dates.rb
|
175
|
-
- db/migrate/20231219205644_create_datapoint.rb
|
176
|
-
- db/migrate/20231220193201_create_stocks.rb
|
177
|
-
- db/migrate/20231220194903_add_alert_status.rb
|
178
|
-
- db/migrate/20231220223730_create_iro_price_item.rb
|
179
260
|
- lib/iro/engine.rb
|
180
261
|
- lib/iron_warbler.rb
|
181
262
|
- lib/tasks/db_tasks.rake
|
182
263
|
- lib/tasks/iro_tasks.rake
|
264
|
+
- lib/tasks/iro_tasks.rake-old
|
183
265
|
homepage: https://wasya.co
|
184
266
|
licenses:
|
185
267
|
- Proprietary
|
@@ -1,80 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px;
|
5
|
-
}
|
6
|
-
|
7
|
-
body, p, ol, ul, td {
|
8
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
9
|
-
font-size: 13px;
|
10
|
-
line-height: 18px;
|
11
|
-
}
|
12
|
-
|
13
|
-
pre {
|
14
|
-
background-color: #eee;
|
15
|
-
padding: 10px;
|
16
|
-
font-size: 11px;
|
17
|
-
}
|
18
|
-
|
19
|
-
a {
|
20
|
-
color: #000;
|
21
|
-
}
|
22
|
-
|
23
|
-
a:visited {
|
24
|
-
color: #666;
|
25
|
-
}
|
26
|
-
|
27
|
-
a:hover {
|
28
|
-
color: #fff;
|
29
|
-
background-color: #000;
|
30
|
-
}
|
31
|
-
|
32
|
-
th {
|
33
|
-
padding-bottom: 5px;
|
34
|
-
}
|
35
|
-
|
36
|
-
td {
|
37
|
-
padding: 0 5px 7px;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.field,
|
41
|
-
div.actions {
|
42
|
-
margin-bottom: 10px;
|
43
|
-
}
|
44
|
-
|
45
|
-
#notice {
|
46
|
-
color: green;
|
47
|
-
}
|
48
|
-
|
49
|
-
.field_with_errors {
|
50
|
-
padding: 2px;
|
51
|
-
background-color: red;
|
52
|
-
display: table;
|
53
|
-
}
|
54
|
-
|
55
|
-
#error_explanation {
|
56
|
-
width: 450px;
|
57
|
-
border: 2px solid red;
|
58
|
-
padding: 7px 7px 0;
|
59
|
-
margin-bottom: 20px;
|
60
|
-
background-color: #f0f0f0;
|
61
|
-
}
|
62
|
-
|
63
|
-
#error_explanation h2 {
|
64
|
-
text-align: left;
|
65
|
-
font-weight: bold;
|
66
|
-
padding: 5px 5px 5px 15px;
|
67
|
-
font-size: 12px;
|
68
|
-
margin: -7px -7px 0;
|
69
|
-
background-color: #c00;
|
70
|
-
color: #fff;
|
71
|
-
}
|
72
|
-
|
73
|
-
#error_explanation ul li {
|
74
|
-
font-size: 12px;
|
75
|
-
list-style: square;
|
76
|
-
}
|
77
|
-
|
78
|
-
label {
|
79
|
-
display: block;
|
80
|
-
}
|
data/app/models/iro/profile.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<strong>Class name:</strong>
|
5
|
-
<%= @alert.class_name %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<strong>Kind:</strong>
|
10
|
-
<%= @alert.kind %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<strong>Symbol:</strong>
|
15
|
-
<%= @alert.symbol %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<strong>Direction:</strong>
|
20
|
-
<%= @alert.direction %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<p>
|
24
|
-
<strong>Strike:</strong>
|
25
|
-
<%= @alert.strike %>
|
26
|
-
</p>
|
27
|
-
|
28
|
-
<p>
|
29
|
-
<strong>Profile:</strong>
|
30
|
-
<%= @alert.profile_id %>
|
31
|
-
</p>
|
32
|
-
|
33
|
-
<%= link_to 'Edit', edit_alert_path(@alert) %> |
|
34
|
-
<%= link_to 'Back', alerts_path %>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= form_with(model: profile) do |form| %>
|
2
|
-
<% if profile.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(profile.errors.count, "error") %> prohibited this profile from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% profile.errors.each do |error| %>
|
8
|
-
<li><%= error.full_message %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<%= form.label :email %>
|
16
|
-
<%= form.text_field :email %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="field">
|
20
|
-
<%= form.label :role_name %>
|
21
|
-
<%= form.text_field :role_name %>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="field">
|
25
|
-
<%= form.label :user_id %>
|
26
|
-
<%= form.number_field :user_id %>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="actions">
|
30
|
-
<%= form.submit %>
|
31
|
-
</div>
|
32
|
-
<% end %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<h1>Profiles</h1>
|
4
|
-
|
5
|
-
<table>
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th>Email</th>
|
9
|
-
<th>Role name</th>
|
10
|
-
<th>User</th>
|
11
|
-
<th colspan="3"></th>
|
12
|
-
</tr>
|
13
|
-
</thead>
|
14
|
-
|
15
|
-
<tbody>
|
16
|
-
<% @profiles.each do |profile| %>
|
17
|
-
<tr>
|
18
|
-
<td><%= profile.email %></td>
|
19
|
-
<td><%= profile.role_name %></td>
|
20
|
-
<td><%= profile.user_id %></td>
|
21
|
-
<td><%= link_to 'Show', profile %></td>
|
22
|
-
<td><%= link_to 'Edit', edit_profile_path(profile) %></td>
|
23
|
-
<td><%= link_to 'Destroy', profile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
24
|
-
</tr>
|
25
|
-
<% end %>
|
26
|
-
</tbody>
|
27
|
-
</table>
|
28
|
-
|
29
|
-
<br>
|
30
|
-
|
31
|
-
<%= link_to 'New Profile', new_profile_path %>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<strong>Email:</strong>
|
5
|
-
<%= @profile.email %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<strong>Role name:</strong>
|
10
|
-
<%= @profile.role_name %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<strong>User:</strong>
|
15
|
-
<%= @profile.user_id %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<%= link_to 'Edit', edit_profile_path(@profile) %> |
|
19
|
-
<%= link_to 'Back', profiles_path %>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
|
2
|
-
class CreateIroAlerts < ActiveRecord::Migration[6.1]
|
3
|
-
def change
|
4
|
-
create_table :iro_alerts do |t|
|
5
|
-
|
6
|
-
t.string :class_name
|
7
|
-
t.string :kind
|
8
|
-
t.string :symbol
|
9
|
-
t.string :direction
|
10
|
-
t.float :strike
|
11
|
-
t.integer :profile_id
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
class CreateIroPriceItem < ActiveRecord::Migration[6.1]
|
2
|
-
def change
|
3
|
-
create_table :iro_price_items do |t|
|
4
|
-
|
5
|
-
t.string "putCall", index: true
|
6
|
-
t.string "symbol", index: true
|
7
|
-
t.string "description"
|
8
|
-
t.string "exchangeName"
|
9
|
-
t.string "bidAskSize"
|
10
|
-
t.string "expirationType"
|
11
|
-
t.float "bid"
|
12
|
-
t.float "ask"
|
13
|
-
t.float "last"
|
14
|
-
t.float "mark"
|
15
|
-
t.float "lastPrice"
|
16
|
-
t.float "highPrice"
|
17
|
-
t.float "lowPrice"
|
18
|
-
t.float "openPrice"
|
19
|
-
t.float "closePrice"
|
20
|
-
t.float "netChange"
|
21
|
-
t.float "volatility"
|
22
|
-
t.float "delta"
|
23
|
-
t.float "gamma"
|
24
|
-
t.float "theta"
|
25
|
-
t.float "vega"
|
26
|
-
t.float "rho"
|
27
|
-
t.float "timeValue"
|
28
|
-
t.float "theoreticalOptionValue"
|
29
|
-
t.float "theoreticalVolatility"
|
30
|
-
t.float "strikePrice"
|
31
|
-
t.float "percentChange"
|
32
|
-
t.float "markChange"
|
33
|
-
t.float "markPercentChange"
|
34
|
-
t.float "intrinsicValue"
|
35
|
-
t.float "multiplier"
|
36
|
-
t.integer "bidSize"
|
37
|
-
t.integer "askSize"
|
38
|
-
t.bigint "totalVolume"
|
39
|
-
t.integer "openInterest"
|
40
|
-
t.integer "daysToExpiration"
|
41
|
-
t.bigint "tradeTimeInLong"
|
42
|
-
t.bigint "quoteTimeInLong"
|
43
|
-
t.bigint "expirationDate", index: true
|
44
|
-
t.bigint "lastTradingDay"
|
45
|
-
t.boolean "inTheMoney"
|
46
|
-
t.boolean "nonStandard"
|
47
|
-
t.boolean "isIndexOption"
|
48
|
-
t.date "tradeDate"
|
49
|
-
t.string "interval"
|
50
|
-
t.string "ticker", limit: 32, index: true
|
51
|
-
t.timestamp "timestamp"
|
52
|
-
|
53
|
-
t.timestamps
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
File without changes
|