Package com.strategyquant.datalib
Class InstrumentInfo
java.lang.Object
com.strategyquant.datalib.InstrumentInfo
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble,Serializable
public class InstrumentInfo
extends Object
implements com.strategyquant.lib.settings.IXMLAble, Serializable
Instrument definition - holds settings of given instrument, for example tick size, tick step, point value, etc.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe alias.The commissions.The connection.The sector.intThe data type.longThe date from.longThe date to.intThe decimals.doubleThe default slippage.doubleThe default spread.The description.The sector.The filename.The instrument.static org.slf4j.LoggerThe Constant Log.doubleThe orderSizeMultiplier.doubleThe orderSizeStep.doubleThe point value.booleanThe recognized from orders.intThe rows.The sector.The swap.doubleThe tick size.doubleThe tick step.doubleThe tick value in money.The timeframe.intThe total days. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new instrument info.InstrumentInfo(org.jdom2.Element instrumentXML)Instantiates a new instrument info. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone.org.jdom2.ElementgetXML()Gets the xml.voidsetFromXML(org.jdom2.Element element)Sets the from XML.
-
Field Details
-
Log
public static final org.slf4j.Logger LogThe Constant Log. -
connection
The connection. -
instrument
The instrument. -
description
The description. -
tickSize
public double tickSizeThe tick size. -
tickStep
public double tickStepThe tick step. -
tickValueInMoney
public double tickValueInMoneyThe tick value in money. -
filename
The filename. -
dateFrom
public long dateFromThe date from. -
dateTo
public long dateToThe date to. -
rows
public int rowsThe rows. -
totalDays
public int totalDaysThe total days. -
defaultSpread
public double defaultSpreadThe default spread. -
defaultSlippage
public double defaultSlippageThe default slippage. -
decimals
public int decimalsThe decimals. -
timeframe
The timeframe. -
pointValue
public double pointValueThe point value. -
dataType
public int dataTypeThe data type. -
recognizedFromOrders
public boolean recognizedFromOrdersThe recognized from orders. -
alias
The alias. -
exchange
The sector. -
country
The sector. -
sector
The sector. -
commissions
The commissions. -
swap
The swap. -
orderSizeMultiplier
public double orderSizeMultiplierThe orderSizeMultiplier. -
orderSizeStep
public double orderSizeStepThe orderSizeStep.
-
-
Constructor Details
-
InstrumentInfo
public InstrumentInfo()Instantiates a new instrument info. -
InstrumentInfo
public InstrumentInfo(org.jdom2.Element instrumentXML)Instantiates a new instrument info.- Parameters:
instrumentXML- the instrument XML
-
-
Method Details
-
getXML
public org.jdom2.Element getXML()Gets the xml.- Specified by:
getXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Returns:
- the xml
-
setFromXML
public void setFromXML(org.jdom2.Element element)Sets the from XML.- Specified by:
setFromXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Parameters:
element- the new from XML
-
clone
Clone.- Returns:
- the instrument info
-