|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oanda.fxtrade.api.API
public class API
API is a factory class with static methods for creation of different class instances used to utilise OANDA fxTrade API.
Constructor Summary | |
---|---|
API()
|
Method Summary | |
---|---|
static FXClient |
createFXClient(ServerInfo serverInfo)
|
static FXClient |
createFXGame()
Creates new instance of FXGame class |
static FXPair |
createFXPair()
Creates new instance of FXPair class |
static FXPair |
createFXPair(java.lang.String pair)
Creates new instance of FXPair class |
static FXPair |
createFXPair(java.lang.String base,
java.lang.String quote)
Creates new instance of FXPair class |
static FXTick |
createFXTick(long timestamp,
double bid,
double ask)
Creates new instance of FXTick class |
static FXClient |
createFXTrade()
Creates new instance of FXTrade class |
static LimitOrder |
createLimitOrder()
Creates new instance of LimitOrder class |
static MarketOrder |
createMarketOrder()
Creates new instance of MarketOrder class |
static MarketTransferOrder |
createMarketTransferOrder()
|
static ServerInfo |
createServerInfo()
|
static StopLossOrder |
createStopLossOrder(double stopLoss)
Creates new instance of StopLossOrder class |
static TakeProfitOrder |
createTakeProfitOrder(double takeProfit)
Creates new instance of TakeProfitOrder class |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public API()
Method Detail |
---|
public static FXClient createFXGame()
FXClient
public static FXClient createFXTrade()
FXClient
public static FXClient createFXClient(ServerInfo serverInfo)
public static ServerInfo createServerInfo()
public static FXPair createFXPair()
public static FXPair createFXPair(java.lang.String pair)
pair
- string representing pair symbol
public static FXPair createFXPair(java.lang.String base, java.lang.String quote)
base
- base part of pairquote
- quote part of pair
public static LimitOrder createLimitOrder()
public static MarketOrder createMarketOrder()
public static MarketTransferOrder createMarketTransferOrder()
public static StopLossOrder createStopLossOrder(double stopLoss)
stopLoss
- value of stop loss
public static TakeProfitOrder createTakeProfitOrder(double takeProfit)
takeProfit
- value of take profit
public static FXTick createFXTick(long timestamp, double bid, double ask)
timestamp
- unix time-stampbid
- value of bidask
- value of ask
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |