BrokerOptionsProfile

Models & Types · AiDotNet.Finance.Options

A broker’s mapping from the stable OptionStrategyClass archetypes to its own approval OptionsApprovalLevel numbers, plus the level this account is authorized for. Brokers differ, so this is configurable; Default is the common scheme (covered/secured = L1, long premium = L2, defined-risk spreads = L3, naked equity = L4, naked index = L5).

Constructors

Constructor Summary
BrokerOptionsProfile(OptionsApprovalLevel authorized, IReadOnlyDictionary<OptionStrategyClass, OptionsApprovalLevel> map) Creates a profile for an account authorized up to authorized.

Properties

Property Summary
BrokerOptionsProfile Default { get; } A fully-authorized default-scheme profile (Level5) — convenient for tests/research.
OptionsApprovalLevel Authorized { get; } The approval level this account is cleared for; strategies above it are refused.

Methods

Method Summary
OptionsApprovalLevel LevelFor(OptionStrategyClass cls) The broker approval level that cls requires.
bool IsPermitted(OptionStrategy strategy) Whether this account may place strategy: options are authorized and the strategy’s required level is at most Authorized.
string Deny(OptionStrategy strategy) Null if permitted, else a human-readable denial reason.

Fields

Field Summary
IReadOnlyDictionary<OptionStrategyClass, OptionsApprovalLevel> DefaultMap The common five-tier scheme.