private static Object getOrderLine(TimeInForceField timeinforce, PriceType type, MarketSideField side, String acct, double price, double stop, double offset)
	{
		if (side.equals(MarketSideField.BUY_TO_COVER))
		{
			if (price > 0)
			{
				if (type.equals(PriceType.STOP))
				{
					return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" AcctTyp=\"5\" StopPx=\"" + price + "\" Acct=\"" + acct + "\">";
				}
				else if (type.equals(PriceType.STOP_LIMIT))
				{
					return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" AcctTyp=\"5\" Px=\"\"" + price + " StopPx=\"" + stop + "\" Acct=\"" + acct + "\">";
				}
				else
				{
					return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" AcctTyp=\"5\" Px=\"" + price + "\" Acct=\"" + acct + "\">";
				}
			}
			else if (offset != 0)
			{
				return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" AcctTyp=\"5\"" + "\" Acct=\"" + acct + "\" ExecInst=\"a\">";
			}
			else
			{
				return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" AcctTyp=\"5\" Acct=\"" + acct + "\">";
			}
		}
		else
		{
			if (price > 0)
			{
				if (type.equals(PriceType.STOP))
				{
					return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" StopPx=\"" + price + "\" Acct=\"" + acct + "\">";

				}
				else if (type.equals(PriceType.STOP_LIMIT))
				{
					return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" Px=\"" + price + "\" StopPx=\"" + stop + "\" Acct=\"" + acct + "\">";
				}
				else
				{
					return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" Px=\"" + price + "\" Acct=\"" + acct + "\">";
				}
			}
			else if (offset != 0)
			{
				return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" Acct=\"" + acct + "\" ExecInst=\"a\">";
			}
			else
			{
				return "<Order TmInForce=\"" + timeinforce + "\" Typ=\"" + type + "\" Side=\"" + side + "\" Acct=\"" + acct + "\">";
			}
		}
	}