Class SpreadDetails
Inheritance
Object
SpreadDetails
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Assembly: tt-net-api.dll
Syntax
public class SpreadDetails
Constructors
SpreadDetails(String)
Declaration
public SpreadDetails(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Properties
Color
Declaration
public Color Color { get; set; }
Property Value
DefaultReloadOffset
Declaration
public int DefaultReloadOffset { get; set; }
Property Value
DefaultReloadQty
Declaration
public int DefaultReloadQty { get; set; }
Property Value
InstrumentKey
Declaration
public InstrumentKey InstrumentKey { get; }
Property Value
Item[Int32]
Declaration
public SpreadLegDetails this[int idx] { get; }
Parameters
Type |
Name |
Description |
Int32 |
idx |
|
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
Declaration
public string PriceFormula { get; set; }
Property Value
PricingModel
Declaration
public PricingModel PricingModel { get; set; }
Property Value
ReloadDelay
Declaration
public int ReloadDelay { get; set; }
Property Value
ReloadFlag
Declaration
public bool ReloadFlag { get; set; }
Property Value
TickSizeDenominator
Declaration
public long TickSizeDenominator { get; set; }
Property Value
TickSizeNumerator
Declaration
public long TickSizeNumerator { get; set; }
Property Value
UserDefinedDenominator
Declaration
public ulong? UserDefinedDenominator { get; set; }
Property Value
Type |
Description |
Nullable<UInt64> |
|
UserDefinedNumerator
Declaration
public ulong? UserDefinedNumerator { get; set; }
Property Value
Type |
Description |
Nullable<UInt64> |
|
UsingUserDefinedTickSize
Declaration
public bool UsingUserDefinedTickSize { get; set; }
Property Value
Methods
AppendLeg(SpreadLegDetails)
Declaration
public void AppendLeg(SpreadLegDetails leg)
Parameters
AppendRule(SpreadRule)
Declaration
public void AppendRule(SpreadRule rule)
Parameters
ClearLegs()
Declaration
ClearRules()
Declaration
CopyLegsTo(SpreadLegDetails[], Int32)
Declaration
public void CopyLegsTo(SpreadLegDetails[] array, int arrayIdx)
Parameters
EnableRule(String, Boolean)
Declaration
public void EnableRule(string ruleName, bool enabled)
Parameters
Type |
Name |
Description |
String |
ruleName |
|
Boolean |
enabled |
|
GetLeg(Int32)
Declaration
public SpreadLegDetails GetLeg(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetLeg(InstrumentKey)
Declaration
public SpreadLegDetails GetLeg(InstrumentKey instKey)
Parameters
Returns
GetRule(Int32)
Declaration
public SpreadRule GetRule(int ruleIdx)
Parameters
Type |
Name |
Description |
Int32 |
ruleIdx |
|
Returns
GetRule(String)
Declaration
public SpreadRule GetRule(string ruleName)
Parameters
Type |
Name |
Description |
String |
ruleName |
|
Returns
InsertLeg(Int32, SpreadLegDetails)
Declaration
public void InsertLeg(int idx, SpreadLegDetails leg)
Parameters
InsertRule(Int32, SpreadRule)
Declaration
public void InsertRule(int idx, SpreadRule rule)
Parameters
LegCount()
Declaration
Returns
MoveRuleDown(String)
Declaration
public void MoveRuleDown(string ruleName)
Parameters
Type |
Name |
Description |
String |
ruleName |
|
MoveRuleUp(String)
Declaration
public void MoveRuleUp(string ruleName)
Parameters
Type |
Name |
Description |
String |
ruleName |
|
RemoveLeg(Int32)
Declaration
public void RemoveLeg(int idx)
Parameters
Type |
Name |
Description |
Int32 |
idx |
|
RemoveRule(Int32)
Declaration
public void RemoveRule(int ruleIdx)
Parameters
Type |
Name |
Description |
Int32 |
ruleIdx |
|
RemoveRule(String)
Declaration
public void RemoveRule(string ruleName)
Parameters
Type |
Name |
Description |
String |
ruleName |
|
RuleCount()
Declaration
Returns
UpdateLeg(Int32, SpreadLegDetails)
Declaration
public void UpdateLeg(int idx, SpreadLegDetails leg)
Parameters
UpdateRulesToLatest()
Declaration
public void UpdateRulesToLatest()