Class SpreadDetails
Inheritance
SpreadDetails
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
IsOwner
Indicates whether the spread is owned by the current user.
Declaration
public bool IsOwner { get; }
Property Value
IsShared
Indicates whether the spread is shared or not. To share, set to true and save the spread details.
To unshare, set to false and save. On a new spread, the default is false (not shared).
Declaration
public bool IsShared { get; set; }
Property Value
this[int]
Declaration
public SpreadLegDetails this[int idx] { get; }
Parameters
Type |
Name |
Description |
int |
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
UserDefinedNumerator
Declaration
public ulong? UserDefinedNumerator { get; set; }
Property Value
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[], int)
Declaration
public void CopyLegsTo(SpreadLegDetails[] array, int arrayIdx)
Parameters
EnableRule(string, bool)
Declaration
public void EnableRule(string ruleName, bool enabled)
Parameters
Type |
Name |
Description |
string |
ruleName |
|
bool |
enabled |
|
GetLeg(int)
Declaration
public SpreadLegDetails GetLeg(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
GetLeg(InstrumentKey)
Declaration
public SpreadLegDetails GetLeg(InstrumentKey instKey)
Parameters
Returns
GetRule(int)
Declaration
public SpreadRule GetRule(int ruleIdx)
Parameters
Type |
Name |
Description |
int |
ruleIdx |
|
Returns
GetRule(string)
Declaration
public SpreadRule GetRule(string ruleName)
Parameters
Type |
Name |
Description |
string |
ruleName |
|
Returns
InsertLeg(int, SpreadLegDetails)
Declaration
public void InsertLeg(int idx, SpreadLegDetails leg)
Parameters
InsertRule(int, 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(int)
Declaration
public void RemoveLeg(int idx)
Parameters
Type |
Name |
Description |
int |
idx |
|
RemoveRule(int)
Declaration
public void RemoveRule(int ruleIdx)
Parameters
Type |
Name |
Description |
int |
ruleIdx |
|
RemoveRule(string)
Declaration
public void RemoveRule(string ruleName)
Parameters
Type |
Name |
Description |
string |
ruleName |
|
RuleCount()
Declaration
Returns
UpdateLeg(int, SpreadLegDetails)
Declaration
public void UpdateLeg(int idx, SpreadLegDetails leg)
Parameters
UpdateRulesToLatest()
Declaration
public void UpdateRulesToLatest()