sensei_eod_utils 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7cc6df80a63f1d6146c402b803f78a3f00f177ea38bc0be7827eeb6891947b0
4
- data.tar.gz: e21d14c1b01e4b64aca46868b8e4983448e40c1b496eeba2fb5a902b9f4afff2
3
+ metadata.gz: ac61d2064be9fc8d538ac4ba12d1c2e5a5f06f02312f0ed8afc3febca0c4883d
4
+ data.tar.gz: 7942f5b79ab11b7d3639821135df5affc0044a4d09ff914d296bf8fb3175bdda
5
5
  SHA512:
6
- metadata.gz: 1b0976ef02dffea92d6a2cab934b9ff8653b3c7fc8063de3b0d6fbfe0317dfde0289b3db4ab8a46e36f971e99be7f47d49eeec017d94888ac5b8de13e83eefb0
7
- data.tar.gz: 1b5cc7034d289e35d67eab8bf56e2700a89fec56d60e68566814f09a885c0b4d487f2123311e69d8c5fc00a5f4b5a4011af014c086a7de8cf336cd07926d731a
6
+ metadata.gz: bcd1ac8d1f73c5d1c6a8bf91dc429588cc29ae1e744f80b772a7a9d6d535fa0a1d93fe8c13fc5828e6692e2a8e395047f39b50bb9662d7cf89c07ce76acc0469
7
+ data.tar.gz: 8917c2a5fbaf80c2fd5be5506612eac9755471bc833e42853def667c2799b4306c14e844f74659025f5ea2a892c896b474a420f844e839be07c19035038bcee5
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EodModels
4
+ class TradeAction
5
+ include Ruby::Enum
6
+
7
+ define :BUY_TO_OPEN, 'BUY_TO_OPEN'
8
+ define :SELL_TO_OPEN, 'SELL_TO_OPEN'
9
+ end
10
+ end
@@ -12,7 +12,10 @@ module EodServices
12
12
  end
13
13
 
14
14
  def option?(symbol)
15
- call(symbol) == EodModels::InstrumentType::OPTION
15
+ # call(symbol) == EodModels::InstrumentType::OPTION
16
+ !!EodFacade::Options.call(symbol)
17
+ rescue ArgumentError
18
+ false
16
19
  end
17
20
 
18
21
  private
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sensei_eod_utils'
5
- s.version = '0.0.27'
5
+ s.version = '0.0.28'
6
6
  s.date = '2019-12-20'
7
7
  s.summary = 'Sensei trader utility functions and Eod api facade'
8
8
  s.authors = ['Nishant Shah']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensei_eod_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nishant Shah
@@ -70,6 +70,7 @@ files:
70
70
  - lib/eod_facade/options.rb
71
71
  - lib/eod_models/instrument_type.rb
72
72
  - lib/eod_models/option_type.rb
73
+ - lib/eod_models/trade_action.rb
73
74
  - lib/eod_services/contract.rb
74
75
  - lib/eod_services/instrument_type.rb
75
76
  - lib/sensei_eod_utils.rb