Class: DhanHQ::Risk::Checks::ProductSupport
- Inherits:
-
Object
- Object
- DhanHQ::Risk::Checks::ProductSupport
- Defined in:
- lib/DhanHQ/risk/checks/product_support.rb
Overview
Validates that the instrument supports the requested product type (BO/CO).
Class Method Summary collapse
Class Method Details
.run!(args:, instrument:, **_unused) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/DhanHQ/risk/checks/product_support.rb', line 8 def self.run!(args:, instrument:, **_unused) product_type = args["product_type"] return unless product_type enforce_bracket_support!(product_type, instrument) enforce_cover_support!(product_type, instrument) end |