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
Modifier and TypeFieldDescriptionThe alias.The commissions.The connection.The sector.int
The data type.long
The date from.long
The date to.int
The decimals.double
The default slippage.double
The default spread.The description.The sector.The filename.The instrument.static org.slf4j.Logger
The Constant Log.double
The orderSizeMultiplier.double
The orderSizeStep.double
The point value.boolean
The recognized from orders.int
The rows.The sector.The swap.double
The tick size.double
The tick step.double
The tick value in money.The timeframe.int
The total days. -
Constructor Summary
ConstructorDescriptionInstantiates a new instrument info.InstrumentInfo(org.jdom2.Element instrumentXML)
Instantiates a new instrument info. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone.org.jdom2.Element
getXML()
Gets the xml.void
setFromXML(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:
getXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Returns:
- the xml
-
setFromXML
public void setFromXML(org.jdom2.Element element)Sets the from XML.- Specified by:
setFromXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Parameters:
element
- the new from XML
-
clone
Clone.- Returns:
- the instrument info
-