|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Instrument>
com.dukascopy.api.Instrument
public enum Instrument
Defines all currency pairs traded by Dukascopy
Enum Constant Summary | |
---|---|
AUDJPY
|
|
AUDNZD
|
|
AUDUSD
|
|
CADJPY
|
|
CHFJPY
|
|
EURAUD
|
|
EURCAD
|
|
EURCHF
|
|
EURDKK
|
|
EURGBP
|
|
EURHKD
|
|
EURJPY
|
|
EURNOK
|
|
EURSEK
|
|
EURUSD
|
|
GBPCHF
|
|
GBPJPY
|
|
GBPUSD
|
|
NZDUSD
|
|
USDCAD
|
|
USDCHF
|
|
USDDKK
|
|
USDHKD
|
|
USDJPY
|
|
USDMXN
|
|
USDNOK
|
|
USDSEK
|
|
USDSGD
|
|
USDTRY
|
Method Summary | |
---|---|
static boolean |
contains(String instrumentString)
Returns true if specified instrument is one of the traded instruments |
static Instrument |
fromString(String instrumentAsString)
Returns corresponding instrument for string in "CUR1/CUR2" format |
static String |
getPairsSeparator()
Returns currency separator |
int |
getPipScale()
|
double |
getPipValue()
Returns value of one pip for this currency pair |
Currency |
getPrimaryCurrency()
Returns primary currency of this currency pair |
Currency |
getSecondaryCurrency()
Returns secondary currency of this currency pair |
static boolean |
isInverted(String instrumentStr)
Returns true if instrument is inverted (such as USD/EUR or JPY/USD) |
String |
toString()
|
static Set<String> |
toStringSet(Collection<Instrument> instruments)
Returns set of strings, which are instruments in "CUR1/CUR2" format |
static Instrument |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Instrument[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Instrument AUDJPY
public static final Instrument AUDNZD
public static final Instrument AUDUSD
public static final Instrument CADJPY
public static final Instrument CHFJPY
public static final Instrument EURAUD
public static final Instrument EURCAD
public static final Instrument EURCHF
public static final Instrument EURDKK
public static final Instrument EURGBP
public static final Instrument EURHKD
public static final Instrument EURJPY
public static final Instrument EURNOK
public static final Instrument EURSEK
public static final Instrument EURUSD
public static final Instrument GBPCHF
public static final Instrument GBPJPY
public static final Instrument GBPUSD
public static final Instrument NZDUSD
public static final Instrument USDCAD
public static final Instrument USDCHF
public static final Instrument USDDKK
public static final Instrument USDHKD
public static final Instrument USDJPY
public static final Instrument USDMXN
public static final Instrument USDNOK
public static final Instrument USDSEK
public static final Instrument USDSGD
public static final Instrument USDTRY
Method Detail |
---|
public static Instrument[] values()
for (Instrument c : Instrument.values()) System.out.println(c);
public static Instrument valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Instrument>
public static String getPairsSeparator()
public static Instrument fromString(String instrumentAsString)
instrumentAsString
- string in "CUR1/CUR2" format
public static boolean isInverted(String instrumentStr)
instrumentStr
- instrument string representation
public static Set<String> toStringSet(Collection<Instrument> instruments)
instruments
- collection of instruments
public static boolean contains(String instrumentString)
instrumentString
- instrument to check
public Currency getPrimaryCurrency()
public Currency getSecondaryCurrency()
public double getPipValue()
public int getPipScale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |