iron_warbler 2.0.7.19 → 2.0.7.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascript/iron_warbler/application.js +2 -0
- data/app/assets/javascript/iron_warbler/gameui.js +9 -0
- data/app/assets/stylesheets/iron_warbler/application.css +13 -3
- data/app/assets/stylesheets/iron_warbler/positions.scss +24 -5
- data/app/assets/stylesheets/iron_warbler/purses_gameui.scss +214 -0
- data/app/assets/stylesheets/iron_warbler/purses_gameui.scss-bk +112 -0
- data/app/assets/stylesheets/iron_warbler/utils.scss +81 -0
- data/app/controllers/iro/api/stocks_controller.rb +87 -0
- data/app/controllers/iro/api_controller.rb +19 -0
- data/app/controllers/iro/positions_controller.rb +35 -4
- data/app/controllers/iro/purses_controller.rb +11 -4
- data/app/controllers/iro/strategies_controller.rb +7 -7
- data/app/helpers/iro/application_helper.rb +5 -2
- data/app/jobs/tda_job.rb +14 -0
- data/app/models/iro/datapoint.rb +48 -8
- data/app/models/iro/position.rb +55 -14
- data/app/models/iro/price_item.rb +51 -1
- data/app/models/iro/purse.rb +4 -0
- data/app/models/iro/stock.rb +5 -2
- data/app/models/iro/strategy.rb +84 -10
- data/app/models/iro/trash/position_covered_call.rb +4 -0
- data/app/models/iro/trash/position_debit_spread.rb +251 -0
- data/app/models/tda/option.rb +7 -7
- data/app/views/iro/_main_header.haml +18 -17
- data/app/views/iro/api/stocks/show.jbuilder +11 -0
- data/app/views/iro/positions/_form.haml +11 -38
- data/app/views/iro/positions/_formpart_4data.haml +46 -0
- data/app/views/iro/positions/_gameui_covered_call.haml +44 -0
- data/app/views/iro/positions/_gameui_covered_call.haml-bk +59 -0
- data/app/views/iro/positions/_gameui_long_debit_call_spread.haml +37 -0
- data/app/views/iro/positions/_gameui_short_debit_put_spread.haml +39 -0
- data/app/views/iro/positions/_header.haml +6 -0
- data/app/views/iro/positions/_header_covered_call.haml +6 -0
- data/app/views/iro/positions/_header_long_debit_call_spread.haml +14 -0
- data/app/views/iro/positions/_header_short_debit_put_spread.haml +1 -0
- data/app/views/iro/positions/_table.haml +120 -123
- data/app/views/iro/positions/roll.haml +83 -0
- data/app/views/iro/positions/trash/_header_short_debit_put_spread.haml +9 -0
- data/app/views/iro/purses/_form.haml +1 -0
- data/app/views/iro/purses/_form_extra_fields.haml +14 -0
- data/app/views/iro/purses/_header.haml +22 -0
- data/app/views/iro/purses/gameui.haml +19 -0
- data/app/views/iro/purses/gameui.haml-bk +44 -0
- data/app/views/iro/purses/gameui.haml-bk2 +89 -0
- data/app/views/iro/purses/show.haml +1 -7
- data/app/views/iro/stocks/_grid_is_long.haml +16 -0
- data/app/views/iro/stocks/_grid_is_short.haml +16 -0
- data/app/views/iro/strategies/_form.haml +12 -5
- data/app/views/iro/strategies/_show.haml +3 -2
- data/app/views/iro/strategies/_table.haml +16 -10
- data/app/views/iro/strategies/index.haml +8 -0
- data/app/views/layouts/iro/application.haml +1 -1
- data/config/routes.rb +15 -1
- data/lib/iro/engine.rb +2 -0
- data/lib/tasks/db_tasks.rake +9 -3
- metadata +31 -8
- data/app/assets/stylesheets/iron_warbler/alerts.css +0 -8
- data/app/assets/stylesheets/iron_warbler/datapoints.css +0 -0
- data/app/assets/stylesheets/iron_warbler/profiles.css +0 -4
- data/app/assets/stylesheets/iron_warbler/strategies.scss +0 -0
- data/app/assets/stylesheets/iron_warbler/utils.css +0 -44
- data/app/jobs/iro/application_job.rb-trash +0 -4
data/config/routes.rb
CHANGED
@@ -9,12 +9,26 @@ Iro::Engine.routes.draw do
|
|
9
9
|
|
10
10
|
resources :option_watches
|
11
11
|
|
12
|
-
|
12
|
+
get 'positions/:id/roll', to: 'positions#roll', as: :roll_position
|
13
|
+
post 'positions/:id/roll', to: 'positions#do_roll'
|
14
|
+
get 'positions/:id/refresh', to: 'positions#refresh', as: :refresh_position
|
13
15
|
resources :positions
|
14
16
|
resources :profiles
|
17
|
+
|
18
|
+
get 'purses/:id/gameui', to: 'purses#show', as: :gameui_purse, defaults: { template: 'gameui' }
|
19
|
+
get 'purses/:id', to: 'purses#show', as: :purse, defaults: { template: 'show' }
|
15
20
|
resources :purses
|
16
21
|
|
17
22
|
resources :stocks
|
18
23
|
resources :strategies
|
19
24
|
|
25
|
+
namespace :api do
|
26
|
+
# resources :stocks
|
27
|
+
get 'stocks/:ticker/period/:period', to: 'stocks#show'
|
28
|
+
get 'stocks/:ticker/from/:begin_on', to: 'stocks#show'
|
29
|
+
get 'stocks/:ticker/begin_on/:begin_on', to: 'stocks#show'
|
30
|
+
get 'stocks/:ticker/from/:begin_on/to/:end_on', to: 'stocks#show'
|
31
|
+
get 'stocks/:ticker/begin_on/:begin_on/end_on/:end_on', to: 'stocks#show'
|
32
|
+
end
|
33
|
+
|
20
34
|
end
|
data/lib/iro/engine.rb
CHANGED
data/lib/tasks/db_tasks.rake
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
|
2
2
|
namespace :db do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
## date, volume, open, high, low, close
|
5
|
+
desc 'import_stock symbol=GME path=./data/GME-test.csv'
|
6
|
+
task import_stock: :environment do
|
7
|
+
Iro::Datapoint.import_stock( symbol: ENV['symbol'], path: ENV['path'] )
|
7
8
|
end
|
8
9
|
|
9
10
|
desc 'create calendar mdb'
|
@@ -77,4 +78,9 @@ namespace :db do
|
|
77
78
|
})
|
78
79
|
end
|
79
80
|
|
81
|
+
desc 'test'
|
82
|
+
task test: :environment do
|
83
|
+
Iro::Datapoint.test
|
84
|
+
end
|
85
|
+
|
80
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: business_time
|
@@ -201,14 +201,15 @@ files:
|
|
201
201
|
- Rakefile
|
202
202
|
- app/assets/config/iron_warbler_manifest.js
|
203
203
|
- app/assets/javascript/iron_warbler/application.js
|
204
|
-
- app/assets/
|
204
|
+
- app/assets/javascript/iron_warbler/gameui.js
|
205
205
|
- app/assets/stylesheets/iron_warbler/application.css
|
206
|
-
- app/assets/stylesheets/iron_warbler/datapoints.css
|
207
206
|
- app/assets/stylesheets/iron_warbler/positions.scss
|
208
|
-
- app/assets/stylesheets/iron_warbler/
|
209
|
-
- app/assets/stylesheets/iron_warbler/
|
210
|
-
- app/assets/stylesheets/iron_warbler/utils.
|
207
|
+
- app/assets/stylesheets/iron_warbler/purses_gameui.scss
|
208
|
+
- app/assets/stylesheets/iron_warbler/purses_gameui.scss-bk
|
209
|
+
- app/assets/stylesheets/iron_warbler/utils.scss
|
211
210
|
- app/controllers/iro/alerts_controller.rb
|
211
|
+
- app/controllers/iro/api/stocks_controller.rb
|
212
|
+
- app/controllers/iro/api_controller.rb
|
212
213
|
- app/controllers/iro/application_controller.rb
|
213
214
|
- app/controllers/iro/datapoints_controller.rb
|
214
215
|
- app/controllers/iro/positions_controller.rb
|
@@ -217,7 +218,7 @@ files:
|
|
217
218
|
- app/controllers/iro/stocks_controller.rb
|
218
219
|
- app/controllers/iro/strategies_controller.rb
|
219
220
|
- app/helpers/iro/application_helper.rb
|
220
|
-
- app/jobs/
|
221
|
+
- app/jobs/tda_job.rb
|
221
222
|
- app/mailers/iro/alert_mailer.rb
|
222
223
|
- app/mailers/iro/application_mailer.rb
|
223
224
|
- app/models/iro/alert.rb
|
@@ -229,6 +230,8 @@ files:
|
|
229
230
|
- app/models/iro/purse.rb
|
230
231
|
- app/models/iro/stock.rb
|
231
232
|
- app/models/iro/strategy.rb
|
233
|
+
- app/models/iro/trash/position_covered_call.rb
|
234
|
+
- app/models/iro/trash/position_debit_spread.rb
|
232
235
|
- app/models/tda/option.rb
|
233
236
|
- app/models/tda/stock.rb
|
234
237
|
- app/views/iro/_analytics.erb
|
@@ -236,23 +239,43 @@ files:
|
|
236
239
|
- app/views/iro/alert_mailer/stock_alert.haml
|
237
240
|
- app/views/iro/alerts/_form.haml
|
238
241
|
- app/views/iro/alerts/index.haml
|
242
|
+
- app/views/iro/api/stocks/show.jbuilder
|
239
243
|
- app/views/iro/application/home.haml
|
240
244
|
- app/views/iro/positions/_form.haml
|
245
|
+
- app/views/iro/positions/_formpart_4data.haml
|
246
|
+
- app/views/iro/positions/_gameui_covered_call.haml
|
247
|
+
- app/views/iro/positions/_gameui_covered_call.haml-bk
|
248
|
+
- app/views/iro/positions/_gameui_long_debit_call_spread.haml
|
249
|
+
- app/views/iro/positions/_gameui_short_debit_put_spread.haml
|
250
|
+
- app/views/iro/positions/_header.haml
|
251
|
+
- app/views/iro/positions/_header_covered_call.haml
|
252
|
+
- app/views/iro/positions/_header_long_debit_call_spread.haml
|
253
|
+
- app/views/iro/positions/_header_short_debit_put_spread.haml
|
241
254
|
- app/views/iro/positions/_reasons.haml
|
242
255
|
- app/views/iro/positions/_table.haml
|
243
256
|
- app/views/iro/positions/edit.haml
|
244
257
|
- app/views/iro/positions/new.haml
|
258
|
+
- app/views/iro/positions/roll.haml
|
259
|
+
- app/views/iro/positions/trash/_header_short_debit_put_spread.haml
|
245
260
|
- app/views/iro/purses/_form.haml
|
261
|
+
- app/views/iro/purses/_form_extra_fields.haml
|
262
|
+
- app/views/iro/purses/_header.haml
|
246
263
|
- app/views/iro/purses/edit.haml
|
264
|
+
- app/views/iro/purses/gameui.haml
|
265
|
+
- app/views/iro/purses/gameui.haml-bk
|
266
|
+
- app/views/iro/purses/gameui.haml-bk2
|
247
267
|
- app/views/iro/purses/index.haml
|
248
268
|
- app/views/iro/purses/show.haml
|
249
269
|
- app/views/iro/stocks/_form.haml
|
270
|
+
- app/views/iro/stocks/_grid_is_long.haml
|
271
|
+
- app/views/iro/stocks/_grid_is_short.haml
|
250
272
|
- app/views/iro/stocks/index.haml
|
251
273
|
- app/views/iro/strategies/_form.haml
|
252
274
|
- app/views/iro/strategies/_header.haml
|
253
275
|
- app/views/iro/strategies/_show.haml
|
254
276
|
- app/views/iro/strategies/_table.haml
|
255
277
|
- app/views/iro/strategies/edit.haml
|
278
|
+
- app/views/iro/strategies/index.haml
|
256
279
|
- app/views/iro/strategies/new.haml
|
257
280
|
- app/views/layouts/iro/application.haml
|
258
281
|
- config/initializers/assets.rb
|
File without changes
|
File without changes
|
@@ -1,44 +0,0 @@
|
|
1
|
-
|
2
|
-
/* F */
|
3
|
-
|
4
|
-
.flex-row {
|
5
|
-
display: flex;
|
6
|
-
margin-bottom: 0.4em;
|
7
|
-
}
|
8
|
-
.field {
|
9
|
-
min-width: 100px;
|
10
|
-
margin-right: 1em;
|
11
|
-
}
|
12
|
-
|
13
|
-
/* M */
|
14
|
-
|
15
|
-
.modal-absolute {
|
16
|
-
border: 1px solid green;
|
17
|
-
border-radius: 5px;
|
18
|
-
box-shadow: 2px 2px;
|
19
|
-
|
20
|
-
padding: 0.5em;
|
21
|
-
|
22
|
-
position: absolute;
|
23
|
-
|
24
|
-
min-width: 200px;
|
25
|
-
width: 400px;
|
26
|
-
|
27
|
-
min-height: 200px;
|
28
|
-
height: 300px;
|
29
|
-
/* overflow: auto; */
|
30
|
-
|
31
|
-
background: white;
|
32
|
-
|
33
|
-
z-index: 2;
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
/* W */
|
40
|
-
|
41
|
-
.w-min-50px {
|
42
|
-
min-width: 50px;
|
43
|
-
}
|
44
|
-
|