Method SetClientOrderId
- Namespace
- WhalesSecret.TradeScriptLib.Utils.Orders
- Assembly
- WhalesSecret.TradeScriptLib.dll
SetClientOrderId(string)
Sets client order ID.
public OrderRequestBuilder<TOrderRequest> SetClientOrderId(string clientOrderId)
Parameters
clientOrderId
stringClient order ID to set.
Returns
- OrderRequestBuilder<TOrderRequest>
Builder to use in fluent syntax.
Remarks
Required by all order types but automatically generated when not provided.
Format and maximum length of clientOrderId
identifiers both are exchange-specific.
However, it is considered safe to use up to 36 ASCII characters long identifiers.
Exceptions
- InvalidArgumentException
Thrown if
clientOrderId
isnull
.