Table of Contents

Class OrderRequest

Namespace
WhalesSecret.TradeScriptLib.Entities
Assembly
WhalesSecret.TradeScriptLib.dll

Base order request representation.

[JsonDerivedType(typeof(LimitOrderRequest), "LimitOrderRequest")]
[JsonDerivedType(typeof(MarketOrderRequest), "MarketOrderRequest")]
[JsonDerivedType(typeof(StopLimitOrderRequest), "StopLimitOrderRequest")]
[JsonDerivedType(typeof(StopLossOrderRequest), "StopLossOrderRequest")]
[JsonDerivedType(typeof(TakeProfitOrderRequest), "TakeProfitOrderRequest")]
[JsonDerivedType(typeof(TakeProfitLimitOrderRequest), "TakeProfitLimitOrderRequest")]
public abstract class OrderRequest : IEquatable<OrderRequest>
Inheritance
OrderRequest
Implements
Derived
Inherited Members
Extension Methods

Remarks

Each OrderType requires different pieces of information to place an order.

Constructors

OrderRequest(OrderType, string?, SymbolPair, OrderSide, decimal, bool)

Creates a new instance of the object.

Fields

ValidClientOrderIdRegexString

Regular expression string to validate client order IDs.

Properties

ClientOrderId

Client order ID, or null if no such identifier was assigned.

OrderType

Order type.

Side

Order side.

Size

Order size.

SizeInBaseSymbol

true if the size is specified in terms of the base symbol, false if the order size is specified in terms of the quote symbol.

SymbolPair

Order's symbol pair.

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

Equals(OrderRequest?)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Operators

operator ==(OrderRequest?, OrderRequest?)

Determines whether two specified order requests have the same value.

operator !=(OrderRequest?, OrderRequest?)

Determines whether two specified order requests have different values.