TransactionHelper

StockSharp.Plaza

Вспомогательный класс для работы с Transaction.

Methods

SetClientCode
public static Transaction SetClientCode(Transaction transaction, string portfolio)
result = TransactionHelper.SetClientCode(transaction, portfolio)

Установить ClientCode.

transaction
Транзакция.
portfolio
Портфель.

Returns: Транзакция.

SetExpiryDate
public static Transaction SetExpiryDate(Transaction transaction, DateTime expiryDate)
result = TransactionHelper.SetExpiryDate(transaction, expiryDate)

Установить ExpiryDate.

transaction
Транзакция.
expiryDate
Дата истечения заявки.

Returns: Транзакция.

SetFirstPrice
public static Transaction SetFirstPrice(Transaction transaction, decimal price)
result = TransactionHelper.SetFirstPrice(transaction, price)

Установить FirstPrice.

transaction
Транзакция.
price
Новая цена для первой заявки.

Returns: Транзакция.

SetMoveMode
public static Transaction SetMoveMode(Transaction transaction, bool changeVolume)
result = TransactionHelper.SetMoveMode(transaction, changeVolume)

Установить MoveMode.

transaction
Транзакция.
changeVolume
Признак необходимости изменения объема заявок.

Returns: Транзакция.

SetOrderType
public static Transaction SetOrderType(Transaction transaction, bool? isUsual)
result = TransactionHelper.SetOrderType(transaction, isUsual)

Установить OrderType.

transaction
Транзакция.
isUsual
Признак обычных заявок. Если параметр не указан будут отобраны все заявки.

Returns: Транзакция.

SetPrice
public static Transaction SetPrice(Transaction transaction, decimal price)
result = TransactionHelper.SetPrice(transaction, price)

Установить Price.

transaction
Транзакция.
price
Цена заявки.

Returns: Транзакция.

SetRepoMode
public static Transaction SetRepoMode(Transaction transaction, bool isRepo)
result = TransactionHelper.SetRepoMode(transaction, isRepo)

Установить RepoMode.

transaction
Транзакция.
isRepo
Признак заявки РЕПО.

Returns: Транзакция.

SetSecondPrice
public static Transaction SetSecondPrice(Transaction transaction, decimal price)
result = TransactionHelper.SetSecondPrice(transaction, price)

Установить SecondPrice.

transaction
Транзакция.
price
Новая цена для второй заявки.

Returns: Транзакция.

SetSide
public static Transaction SetSide(Transaction transaction, Sides? side)
result = TransactionHelper.SetSide(transaction, side)

Установить Direction.

transaction
Транзакция.
side
Направление заявки.

Returns: Транзакция.

SetSwapPrice
public static Transaction SetSwapPrice(Transaction transaction, decimal swapPrice)
result = TransactionHelper.SetSwapPrice(transaction, swapPrice)

Установить SwapPrice.

transaction
Транзакция.
swapPrice
Цена для заявки по составному инструменту

Returns: Транзакция.

SetTimeInForce
public static Transaction SetTimeInForce(Transaction transaction, TimeInForce timeInForce)
result = TransactionHelper.SetTimeInForce(transaction, timeInForce)

Установить TimeInForce.

transaction
Транзакция.
timeInForce
Время жизни лимитной заявки.

Returns: Транзакция.

ToPlazaString
private static string ToPlazaString(decimal value)
result = TransactionHelper.ToPlazaString(value)

Конвертирует значение типа Decimal в строку.

value
Значение типа Decimal.

Returns: Строка.

ToPlazaString
private static string ToPlazaString(DateTime value)
result = TransactionHelper.ToPlazaString(value)

Конвертирует значение типа DateTime в формат Plaza

value
Значение типа DateTime.

Returns: Строка.