Table of Contents

Method Build

Namespace
WhalesSecret.TradeScriptLib.Utils.Orders
Assembly
WhalesSecret.TradeScriptLib.dll

Build()

Builds an order entity from builder parameters.

public TOrderRequest Build()

Returns

TOrderRequest

New order instance.

Remarks

ClientOrderId is set automatically if it is not set.

Exceptions

InvalidStateException

Thrown if:

  • Any of the required parameters is null, or
  • TOrderRequest does not correspond with set WhalesSecret.TradeScriptLib.Utils.Orders.OrderRequestBuilder<TOrderRequest>.orderType, or
  • the requested order size is below the limit imposed by the exchange,
  • unsupported symbol pair is used,
  • invalid order type is used.