using Screener.Portfolio.Model.Brokerage.CommisionTerms;

namespace Screener.Portfolio.Model.Brokerage
{
    public class TermsCreationGroup
    {
        public IComissionTerms Terms { get; }
        public string[] Exchanges { get; }

        public TermsCreationGroup(IComissionTerms terms, params string[] exchanges)
        {
            Terms = terms;
            Exchanges = exchanges;
        }

        public TermsCreationGroup(ComissionConditionBase condition, ComissionActionBase action, params string[] exchanges) : this((IComissionTerms) new ComissionContainer(condition, action), exchanges)
        {

        }
    }
}