public EntityResponse <List <OptionPositionInformation> > GetOptionPositions(OptionPositionsArguments optionPositionsArguments) { List <SZKingdomArgument> arguments = new List <SZKingdomArgument>(); if (optionPositionsArguments.CustomerCode == null && optionPositionsArguments.CustomerAccountCode == null) { return(EntityResponse <List <OptionPositionInformation> > .Error( ErrorCode.SZKingdomLibraryError, ErrorMessages.SZKingdom_CustAndAccCodeNull)); } arguments.Add(SZKingdomArgument.CustomerCode(optionPositionsArguments.CustomerCode)); arguments.Add(SZKingdomArgument.CustomerAccountCode(optionPositionsArguments.CustomerAccountCode)); arguments.Add(SZKingdomArgument.TradeAccount(optionPositionsArguments.TradeAccount)); arguments.Add(SZKingdomArgument.OptionNumber(optionPositionsArguments.OptionNumber)); arguments.Add(SZKingdomArgument.TradeUnit(optionPositionsArguments.TradeUnit)); arguments.Add(SZKingdomArgument.OptionSide(optionPositionsArguments.OptionSide)); arguments.Add(SZKingdomArgument.OptionCoveredFlag(optionPositionsArguments.OptionCoveredFlag)); arguments.Add(SZKingdomArgument.QueryPosition(optionPositionsArguments.QueryPosition)); EntityResponse <List <OptionPositionInformation> > result = _marketDataLibrary.ExecuteCommandList <OptionPositionInformation>(SZKingdomRequest.OptionPositions, arguments); return(result); }