Class: DhanHQ::Contracts::MultiOrderContract
- Inherits:
-
BaseContract
- Object
- Dry::Validation::Contract
- BaseContract
- DhanHQ::Contracts::MultiOrderContract
- Defined in:
- lib/DhanHQ/contracts/multi_order_contract.rb
Overview
Validation contract for POST /v2/alerts/multi/orders (basket orders).
A multi order places up to MAX_ORDERS unconditional orders in a single
request. Each leg carries a sequence that identifies it in the response.
Constant Summary collapse
- MAX_ORDERS =
Maximum legs the API accepts in one basket.
15- TRANSACTION_TYPES =
DhanHQ::Constants::TransactionType::ALL
- EXCHANGE_SEGMENTS =
DhanHQ::Constants::ExchangeSegment::ALL
- PRODUCT_TYPES =
DhanHQ::Constants::ProductType::MARGIN_CALC_ALL
- ORDER_TYPES =
DhanHQ::Constants::OrderType::ALL
- VALIDITY_TYPES =
DhanHQ::Constants::Validity::ALL
- AMO_TIMES =
DhanHQ::Constants::AmoTime::ALL
- TRIGGERED_ORDER_TYPES =
Order types that require a trigger price on each leg.
[ DhanHQ::Constants::OrderType::STOP_LOSS, DhanHQ::Constants::OrderType::STOP_LOSS_MARKET ].freeze
Constants included from DhanHQ::Constants
DhanHQ::Constants::ALERT_CONDITION_SEGMENTS, DhanHQ::Constants::ALERT_TIMEFRAMES, DhanHQ::Constants::AMO_TIMINGS, DhanHQ::Constants::BO, DhanHQ::Constants::BSE, DhanHQ::Constants::BSE_FNO, DhanHQ::Constants::BUY, DhanHQ::Constants::CHART_EXCHANGE_SEGMENTS, DhanHQ::Constants::CHART_INTERVALS, DhanHQ::Constants::CNC, DhanHQ::Constants::CO, DhanHQ::Constants::COMPACT_CSV_URL, DhanHQ::Constants::COMPARISON_TYPES, DhanHQ::Constants::CUR, DhanHQ::Constants::DATA_API_PREFIXES, DhanHQ::Constants::DAY, DhanHQ::Constants::DETAILED_CSV_URL, DhanHQ::Constants::DHAN_ERROR_MAPPING, DhanHQ::Constants::FNO, DhanHQ::Constants::FOREVER_ORDER_PRODUCT_TYPES, DhanHQ::Constants::FOREVER_ORDER_SEGMENTS, DhanHQ::Constants::GLOBAL_STOCKS_LEG_NAMES, DhanHQ::Constants::GLOBAL_STOCKS_ORDER_TYPES, DhanHQ::Constants::GLOBAL_STOCKS_SEGMENTS, DhanHQ::Constants::INDEX, DhanHQ::Constants::INSTRUMENTS, DhanHQ::Constants::INTRA, DhanHQ::Constants::IOC, DhanHQ::Constants::Instrument, DhanHQ::Constants::LIMIT, DhanHQ::Constants::MARGIN, DhanHQ::Constants::MARGIN_CALCULATOR_SEGMENTS, DhanHQ::Constants::MARGIN_PRODUCT_TYPES, DhanHQ::Constants::MARKET, DhanHQ::Constants::MCX, DhanHQ::Constants::MTF, DhanHQ::Constants::MUTATING_PATH_PREFIXES, DhanHQ::Constants::NSE, DhanHQ::Constants::NSE_FNO, DhanHQ::Constants::OPERATORS, DhanHQ::Constants::OPTION_CHAIN_UNDERLYING_SEGMENTS, DhanHQ::Constants::ORDER_PLACEMENT_PATH_PREFIXES, DhanHQ::Constants::ORDER_STATUSES, DhanHQ::Constants::PAYLOAD_REQUIRES_DHAN_CLIENT_ID_PREFIXES, DhanHQ::Constants::SEGMENT_MAP, DhanHQ::Constants::SELL, DhanHQ::Constants::SL, DhanHQ::Constants::SLM