LUSID C# SDK
Public Member Functions | Protected Member Functions | Properties | List of all members
Lusid.Sdk.Model.BlockRequest Class Reference

A request to create or update an Order. More...

Inheritance diagram for Lusid.Sdk.Model.BlockRequest:
Inheritance graph
[legend]

Public Member Functions

 BlockRequest (ResourceId id=default(ResourceId), List< ResourceId > orderIds=default(List< ResourceId >), Dictionary< string, PerpetualProperty > properties=default(Dictionary< string, PerpetualProperty >), Dictionary< string, string > instrumentIdentifiers=default(Dictionary< string, string >), decimal quantity=default(decimal), string side=default(string), string type=default(string), string timeInForce=default(string), DateTimeOffset createdDate=default(DateTimeOffset), CurrencyAndAmount limitPrice=default(CurrencyAndAmount), CurrencyAndAmount stopPrice=default(CurrencyAndAmount))
 Initializes a new instance of the BlockRequest class. More...
 
override string ToString ()
 Returns the string presentation of the object More...
 
virtual string ToJson ()
 Returns the JSON string presentation of the object More...
 
override bool Equals (object input)
 Returns true if objects are equal More...
 
bool Equals (BlockRequest input)
 Returns true if BlockRequest instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Protected Member Functions

 BlockRequest ()
 Initializes a new instance of the BlockRequest class. More...
 

Properties

ResourceId Id [get, set]
 Gets or Sets Id More...
 
List< ResourceIdOrderIds [get, set]
 The related order ids. More...
 
Dictionary< string, PerpetualPropertyProperties [get, set]
 Client-defined properties associated with this block. More...
 
Dictionary< string, string > InstrumentIdentifiers [get, set]
 The instrument ordered. More...
 
decimal Quantity [get, set]
 The total quantity of given instrument ordered. More...
 
string Side [get, set]
 The client&#39;s representation of the block&#39;s side (buy, sell, short, etc) More...
 
string Type [get, set]
 The block order&#39;s type (examples: Limit, Market, ...) More...
 
string TimeInForce [get, set]
 The block orders&#39; time in force (examples: Day, GoodTilCancel, ...) More...
 
DateTimeOffset CreatedDate [get, set]
 The date on which the block was made More...
 
CurrencyAndAmount LimitPrice [get, set]
 Gets or Sets LimitPrice More...
 
CurrencyAndAmount StopPrice [get, set]
 Gets or Sets StopPrice More...
 

Detailed Description

A request to create or update an Order.

Constructor & Destructor Documentation

◆ BlockRequest() [1/2]

Lusid.Sdk.Model.BlockRequest.BlockRequest ( )
inlineprotected

Initializes a new instance of the BlockRequest class.

◆ BlockRequest() [2/2]

Lusid.Sdk.Model.BlockRequest.BlockRequest ( ResourceId  id = default(ResourceId),
List< ResourceId orderIds = default(List<ResourceId>),
Dictionary< string, PerpetualProperty properties = default(Dictionary<string, PerpetualProperty>),
Dictionary< string, string >  instrumentIdentifiers = default(Dictionary<string, string>),
decimal  quantity = default(decimal),
string  side = default(string),
string  type = default(string),
string  timeInForce = default(string),
DateTimeOffset  createdDate = default(DateTimeOffset),
CurrencyAndAmount  limitPrice = default(CurrencyAndAmount),
CurrencyAndAmount  stopPrice = default(CurrencyAndAmount) 
)
inline

Initializes a new instance of the BlockRequest class.

Parameters
idid (required).
orderIdsThe related order ids. (required).
propertiesClient-defined properties associated with this block..
instrumentIdentifiersThe instrument ordered. (required).
quantityThe total quantity of given instrument ordered. (required).
sideThe client&#39;s representation of the block&#39;s side (buy, sell, short, etc) (required).
typeThe block order&#39;s type (examples: Limit, Market, ...) (required).
timeInForceThe block orders&#39; time in force (examples: Day, GoodTilCancel, ...) (required).
createdDateThe date on which the block was made (required).
limitPricelimitPrice.
stopPricestopPrice.

Member Function Documentation

◆ Equals() [1/2]

bool Lusid.Sdk.Model.BlockRequest.Equals ( BlockRequest  input)
inline

Returns true if BlockRequest instances are equal

Parameters
inputInstance of BlockRequest to be compared
Returns
Boolean

◆ Equals() [2/2]

override bool Lusid.Sdk.Model.BlockRequest.Equals ( object  input)
inline

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ GetHashCode()

override int Lusid.Sdk.Model.BlockRequest.GetHashCode ( )
inline

Gets the hash code

Returns
Hash code

◆ ToJson()

virtual string Lusid.Sdk.Model.BlockRequest.ToJson ( )
inlinevirtual

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

◆ ToString()

override string Lusid.Sdk.Model.BlockRequest.ToString ( )
inline

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ CreatedDate

DateTimeOffset Lusid.Sdk.Model.BlockRequest.CreatedDate
getset

The date on which the block was made

The date on which the block was made

◆ Id

ResourceId Lusid.Sdk.Model.BlockRequest.Id
getset

Gets or Sets Id

◆ InstrumentIdentifiers

Dictionary<string, string> Lusid.Sdk.Model.BlockRequest.InstrumentIdentifiers
getset

The instrument ordered.

The instrument ordered.

◆ LimitPrice

CurrencyAndAmount Lusid.Sdk.Model.BlockRequest.LimitPrice
getset

Gets or Sets LimitPrice

◆ OrderIds

List<ResourceId> Lusid.Sdk.Model.BlockRequest.OrderIds
getset

The related order ids.

The related order ids.

◆ Properties

Dictionary<string, PerpetualProperty> Lusid.Sdk.Model.BlockRequest.Properties
getset

Client-defined properties associated with this block.

Client-defined properties associated with this block.

◆ Quantity

decimal Lusid.Sdk.Model.BlockRequest.Quantity
getset

The total quantity of given instrument ordered.

The total quantity of given instrument ordered.

◆ Side

string Lusid.Sdk.Model.BlockRequest.Side
getset

The client&#39;s representation of the block&#39;s side (buy, sell, short, etc)

The client&#39;s representation of the block&#39;s side (buy, sell, short, etc)

◆ StopPrice

CurrencyAndAmount Lusid.Sdk.Model.BlockRequest.StopPrice
getset

Gets or Sets StopPrice

◆ TimeInForce

string Lusid.Sdk.Model.BlockRequest.TimeInForce
getset

The block orders&#39; time in force (examples: Day, GoodTilCancel, ...)

The block orders&#39; time in force (examples: Day, GoodTilCancel, ...)

◆ Type

string Lusid.Sdk.Model.BlockRequest.Type
getset

The block order&#39;s type (examples: Limit, Market, ...)

The block order&#39;s type (examples: Limit, Market, ...)


The documentation for this class was generated from the following file: