cryptum 0.0.359 → 0.0.361

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +16 -0
  3. data/.gitignore +30 -0
  4. data/.rspec +3 -0
  5. data/.rspec_status +0 -0
  6. data/.rubocop.yml +31 -0
  7. data/.rubocop_todo.yml +36 -0
  8. data/.ruby-gemset +1 -0
  9. data/.ruby-version +1 -0
  10. data/CODE_OF_CONDUCT.md +84 -0
  11. data/Gemfile +38 -0
  12. data/LICENSE +674 -0
  13. data/README.md +87 -0
  14. data/Rakefile +19 -0
  15. data/bin/cryptum +73 -0
  16. data/bin/cryptum-forecast +200 -0
  17. data/bin/cryptum-repl +73 -0
  18. data/bin/cryptum_autoinc_version +38 -0
  19. data/build_cryptum_gem.sh +58 -0
  20. data/cryptum.gemspec +52 -0
  21. data/cryptum_container.sh +1 -0
  22. data/docker/cryptum.json +60 -0
  23. data/docker/cryptum_container.sh +59 -0
  24. data/docker/packer_secrets.json.EXAMPLE +7 -0
  25. data/docker/provisioners/cryptum.sh +11 -0
  26. data/docker/provisioners/docker_bashrc.sh +2 -0
  27. data/docker/provisioners/docker_rvm.sh +22 -0
  28. data/docker/provisioners/init_image.sh +28 -0
  29. data/docker/provisioners/post_install.sh +6 -0
  30. data/docker/provisioners/ruby.sh +16 -0
  31. data/docker/provisioners/upload_globals.sh +49 -0
  32. data/etc/bot_confs/.gitkeep +0 -0
  33. data/etc/bot_confs/BOT_CONF.TEMPLATE +10 -0
  34. data/etc/coinbase_pro.yaml.EXAMPLE +8 -0
  35. data/etc/open_ai.yaml.EXAMPLE +1 -0
  36. data/git_commit.sh +22 -0
  37. data/lib/cryptum/api.rb +688 -0
  38. data/lib/cryptum/bot_conf.rb +197 -0
  39. data/lib/cryptum/event/bot_conf.rb +34 -0
  40. data/lib/cryptum/event/buy.rb +145 -0
  41. data/lib/cryptum/event/cancel.rb +35 -0
  42. data/lib/cryptum/event/exit.rb +35 -0
  43. data/lib/cryptum/event/gtfo.rb +36 -0
  44. data/lib/cryptum/event/history.rb +108 -0
  45. data/lib/cryptum/event/key_press.rb +64 -0
  46. data/lib/cryptum/event/order_book.rb +34 -0
  47. data/lib/cryptum/event/pane.rb +65 -0
  48. data/lib/cryptum/event/parse.rb +181 -0
  49. data/lib/cryptum/event/scroll.rb +200 -0
  50. data/lib/cryptum/event/sell.rb +124 -0
  51. data/lib/cryptum/event.rb +27 -0
  52. data/lib/cryptum/log.rb +34 -0
  53. data/lib/cryptum/matrix.rb +181 -0
  54. data/lib/cryptum/open_ai.rb +156 -0
  55. data/lib/cryptum/option/choice.rb +28 -0
  56. data/lib/cryptum/option.rb +206 -0
  57. data/lib/cryptum/order_book/generate.rb +114 -0
  58. data/lib/cryptum/order_book/indicator.rb +15 -0
  59. data/lib/cryptum/order_book/market_trend.rb +137 -0
  60. data/lib/cryptum/order_book/profit_margin.rb +55 -0
  61. data/lib/cryptum/order_book.rb +19 -0
  62. data/lib/cryptum/portfolio/balance.rb +123 -0
  63. data/lib/cryptum/portfolio.rb +15 -0
  64. data/lib/cryptum/ui/command.rb +314 -0
  65. data/lib/cryptum/ui/key_press_event.rb +33 -0
  66. data/lib/cryptum/ui/market_trend.rb +77 -0
  67. data/lib/cryptum/ui/order_execute_details.rb +297 -0
  68. data/lib/cryptum/ui/order_execution.rb +583 -0
  69. data/lib/cryptum/ui/order_plan.rb +512 -0
  70. data/lib/cryptum/ui/order_plan_details.rb +240 -0
  71. data/lib/cryptum/ui/order_timer.rb +136 -0
  72. data/lib/cryptum/ui/portfolio.rb +221 -0
  73. data/lib/cryptum/ui/signal_engine.rb +109 -0
  74. data/lib/cryptum/ui/terminal_window.rb +111 -0
  75. data/lib/cryptum/ui/ticker.rb +319 -0
  76. data/lib/cryptum/ui.rb +343 -0
  77. data/lib/cryptum/version.rb +5 -0
  78. data/lib/cryptum/web_sock/coinbase.rb +104 -0
  79. data/lib/cryptum/web_sock/event_machine.rb +276 -0
  80. data/lib/cryptum/web_sock.rb +16 -0
  81. data/lib/cryptum.rb +120 -0
  82. data/order_books/.gitkeep +0 -0
  83. data/reinstall_cryptum_gemset.sh +29 -0
  84. data/spec/lib/cryptum/api_spec.rb +10 -0
  85. data/spec/lib/cryptum/event_spec.rb +10 -0
  86. data/spec/lib/cryptum/log_spec.rb +10 -0
  87. data/spec/lib/cryptum/option_spec.rb +10 -0
  88. data/spec/lib/cryptum/order_book/generate_spec.rb +10 -0
  89. data/spec/lib/cryptum/order_book/market_trend_spec.rb +10 -0
  90. data/spec/lib/cryptum/order_book_spec.rb +10 -0
  91. data/spec/lib/cryptum/ui/command_spec.rb +10 -0
  92. data/spec/lib/cryptum/ui/ticker_spec.rb +10 -0
  93. data/spec/lib/cryptum/ui_spec.rb +10 -0
  94. data/spec/lib/cryptum/web_sock_spec.rb +10 -0
  95. data/spec/lib/cryptum_spec.rb +10 -0
  96. data/spec/spec_helper.rb +3 -0
  97. data/upgrade_Gemfile_gems.sh +20 -0
  98. data/upgrade_cryptum.sh +13 -0
  99. data/upgrade_gem.sh +4 -0
  100. data/upgrade_ruby.sh +45 -0
  101. metadata +113 -10
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.359
4
+ version: 0.0.361
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-12 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.3
33
+ version: 2.4.4
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.3
40
+ version: 2.4.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler-audit
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -254,14 +254,14 @@ dependencies:
254
254
  requirements:
255
255
  - - '='
256
256
  - !ruby/object:Gem::Version
257
- version: 2.16.0
257
+ version: 2.18.1
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - '='
263
263
  - !ruby/object:Gem::Version
264
- version: 2.16.0
264
+ version: 2.18.1
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: ruby-prof
267
267
  requirement: !ruby/object:Gem::Requirement
@@ -363,10 +363,113 @@ dependencies:
363
363
  description: Personalized High-Frequency Trading Bot
364
364
  email:
365
365
  - request.pentest@0dayinc.com
366
- executables: []
366
+ executables:
367
+ - cryptum
368
+ - cryptum-forecast
369
+ - cryptum-repl
370
+ - cryptum_autoinc_version
367
371
  extensions: []
368
372
  extra_rdoc_files: []
369
- files: []
373
+ files:
374
+ - ".github/workflows/main.yml"
375
+ - ".gitignore"
376
+ - ".rspec"
377
+ - ".rspec_status"
378
+ - ".rubocop.yml"
379
+ - ".rubocop_todo.yml"
380
+ - ".ruby-gemset"
381
+ - ".ruby-version"
382
+ - CODE_OF_CONDUCT.md
383
+ - Gemfile
384
+ - LICENSE
385
+ - README.md
386
+ - Rakefile
387
+ - bin/cryptum
388
+ - bin/cryptum-forecast
389
+ - bin/cryptum-repl
390
+ - bin/cryptum_autoinc_version
391
+ - build_cryptum_gem.sh
392
+ - cryptum.gemspec
393
+ - cryptum_container.sh
394
+ - docker/cryptum.json
395
+ - docker/cryptum_container.sh
396
+ - docker/packer_secrets.json.EXAMPLE
397
+ - docker/provisioners/cryptum.sh
398
+ - docker/provisioners/docker_bashrc.sh
399
+ - docker/provisioners/docker_rvm.sh
400
+ - docker/provisioners/init_image.sh
401
+ - docker/provisioners/post_install.sh
402
+ - docker/provisioners/ruby.sh
403
+ - docker/provisioners/upload_globals.sh
404
+ - etc/bot_confs/.gitkeep
405
+ - etc/bot_confs/BOT_CONF.TEMPLATE
406
+ - etc/coinbase_pro.yaml.EXAMPLE
407
+ - etc/open_ai.yaml.EXAMPLE
408
+ - git_commit.sh
409
+ - lib/cryptum.rb
410
+ - lib/cryptum/api.rb
411
+ - lib/cryptum/bot_conf.rb
412
+ - lib/cryptum/event.rb
413
+ - lib/cryptum/event/bot_conf.rb
414
+ - lib/cryptum/event/buy.rb
415
+ - lib/cryptum/event/cancel.rb
416
+ - lib/cryptum/event/exit.rb
417
+ - lib/cryptum/event/gtfo.rb
418
+ - lib/cryptum/event/history.rb
419
+ - lib/cryptum/event/key_press.rb
420
+ - lib/cryptum/event/order_book.rb
421
+ - lib/cryptum/event/pane.rb
422
+ - lib/cryptum/event/parse.rb
423
+ - lib/cryptum/event/scroll.rb
424
+ - lib/cryptum/event/sell.rb
425
+ - lib/cryptum/log.rb
426
+ - lib/cryptum/matrix.rb
427
+ - lib/cryptum/open_ai.rb
428
+ - lib/cryptum/option.rb
429
+ - lib/cryptum/option/choice.rb
430
+ - lib/cryptum/order_book.rb
431
+ - lib/cryptum/order_book/generate.rb
432
+ - lib/cryptum/order_book/indicator.rb
433
+ - lib/cryptum/order_book/market_trend.rb
434
+ - lib/cryptum/order_book/profit_margin.rb
435
+ - lib/cryptum/portfolio.rb
436
+ - lib/cryptum/portfolio/balance.rb
437
+ - lib/cryptum/ui.rb
438
+ - lib/cryptum/ui/command.rb
439
+ - lib/cryptum/ui/key_press_event.rb
440
+ - lib/cryptum/ui/market_trend.rb
441
+ - lib/cryptum/ui/order_execute_details.rb
442
+ - lib/cryptum/ui/order_execution.rb
443
+ - lib/cryptum/ui/order_plan.rb
444
+ - lib/cryptum/ui/order_plan_details.rb
445
+ - lib/cryptum/ui/order_timer.rb
446
+ - lib/cryptum/ui/portfolio.rb
447
+ - lib/cryptum/ui/signal_engine.rb
448
+ - lib/cryptum/ui/terminal_window.rb
449
+ - lib/cryptum/ui/ticker.rb
450
+ - lib/cryptum/version.rb
451
+ - lib/cryptum/web_sock.rb
452
+ - lib/cryptum/web_sock/coinbase.rb
453
+ - lib/cryptum/web_sock/event_machine.rb
454
+ - order_books/.gitkeep
455
+ - reinstall_cryptum_gemset.sh
456
+ - spec/lib/cryptum/api_spec.rb
457
+ - spec/lib/cryptum/event_spec.rb
458
+ - spec/lib/cryptum/log_spec.rb
459
+ - spec/lib/cryptum/option_spec.rb
460
+ - spec/lib/cryptum/order_book/generate_spec.rb
461
+ - spec/lib/cryptum/order_book/market_trend_spec.rb
462
+ - spec/lib/cryptum/order_book_spec.rb
463
+ - spec/lib/cryptum/ui/command_spec.rb
464
+ - spec/lib/cryptum/ui/ticker_spec.rb
465
+ - spec/lib/cryptum/ui_spec.rb
466
+ - spec/lib/cryptum/web_sock_spec.rb
467
+ - spec/lib/cryptum_spec.rb
468
+ - spec/spec_helper.rb
469
+ - upgrade_Gemfile_gems.sh
470
+ - upgrade_cryptum.sh
471
+ - upgrade_gem.sh
472
+ - upgrade_ruby.sh
370
473
  homepage: https://github.com/0dayinc/cryptum
371
474
  licenses:
372
475
  - GPL
@@ -380,14 +483,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
380
483
  requirements:
381
484
  - - ">="
382
485
  - !ruby/object:Gem::Version
383
- version: '3.1'
486
+ version: '3.2'
384
487
  required_rubygems_version: !ruby/object:Gem::Requirement
385
488
  requirements:
386
489
  - - ">="
387
490
  - !ruby/object:Gem::Version
388
491
  version: '0'
389
492
  requirements: []
390
- rubygems_version: 3.4.3
493
+ rubygems_version: 3.4.4
391
494
  signing_key:
392
495
  specification_version: 4
393
496
  summary: Coinbase Pro High-Frequency Trading Bot