Package org.knowm.xchange.derivative
Class FuturesContract
java.lang.Object
org.knowm.xchange.instrument.Instrument
org.knowm.xchange.derivative.FuturesContract
- All Implemented Interfaces:
Serializable
,Comparable<FuturesContract>
,Derivative
public class FuturesContract extends Instrument implements Derivative, Comparable<FuturesContract>, Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FuturesContract(String symbol)
FuturesContract(CurrencyPair currencyPair, String prompt)
-
Method Summary
Modifier and Type Method Description int
compareTo(FuturesContract that)
boolean
equals(Object o)
Currency
getBase()
Currency
getCounter()
CurrencyPair
getCurrencyPair()
String
getPrompt()
int
hashCode()
boolean
isPerpetual()
String
toString()
-
Constructor Details
-
FuturesContract
-
FuturesContract
-
-
Method Details
-
getCurrencyPair
- Specified by:
getCurrencyPair
in interfaceDerivative
-
getPrompt
-
isPerpetual
public boolean isPerpetual() -
compareTo
- Specified by:
compareTo
in interfaceComparable<FuturesContract>
-
equals
-
hashCode
public int hashCode() -
getBase
- Specified by:
getBase
in classInstrument
-
getCounter
- Specified by:
getCounter
in classInstrument
-
toString
-