com.oanda.fxtrade.api
Interface Transfer

All Known Subinterfaces:
MarketTransferOrder

public interface Transfer


Method Summary
 int getAccountIdBuy()
          Returns the account Id of the buy account.
 int getAccountIdSell()
          Returns the account Id of the sell account.
 double getAmountBuy()
          Returns the amount to buy.
 double getAmountSell()
          Returns the amount to sell.
 FXPair getPair()
          Returns the currency pair (FXPair) for this transfer.
 double getPrice()
          Returns the price of this transfer.
 long getTimestamp()
          Returns the timestamp for this transfer.
 long getTransactionNumber()
          Returns the OANDA transaction number
 java.lang.String getType()
          Returns the transfer type (either BuyMarket or SellMarket)
 void setAccountIdBuy(int accountId)
          Sets the account Id for the buy account.
 void setAccountIdSell(int accountId)
          Sets the account Id for the sell account.
 void setAmountBuy(double amountBuy)
          Sets the amount to buy.
 void setAmountSell(double amountSell)
          Sets the amount to sell.
 void setPair(FXPair pair)
          Sets the currency pair for this transfer
 void setType(java.lang.String type)
          Sets the type for this transfer.
 

Method Detail

getPair

FXPair getPair()
Returns the currency pair (FXPair) for this transfer.

Returns:
the FXPair

getTransactionNumber

long getTransactionNumber()
Returns the OANDA transaction number

Returns:
the OANDA transaction number

getTimestamp

long getTimestamp()
Returns the timestamp for this transfer.

Returns:
the timestamp for this transfer.

getPrice

double getPrice()
Returns the price of this transfer.

Returns:
the price of this transfer

getAmountBuy

double getAmountBuy()
Returns the amount to buy. The value is in the base currency of the buy account.

Returns:
the amount to buy

getAmountSell

double getAmountSell()
Returns the amount to sell. The value is in the base currency of the sell account.

Returns:
the amount to sell

getAccountIdSell

int getAccountIdSell()
Returns the account Id of the sell account.

Returns:
the account Id of the sell account

getAccountIdBuy

int getAccountIdBuy()
Returns the account Id of the buy account.

Returns:
the account Id of the buy account

getType

java.lang.String getType()
Returns the transfer type (either BuyMarket or SellMarket)

Returns:
the transfer type

setPair

void setPair(FXPair pair)
Sets the currency pair for this transfer

Parameters:
pair - the FXPair for this transfer

setAmountBuy

void setAmountBuy(double amountBuy)
Sets the amount to buy. The amount is in the base currency of the buy account.

Parameters:
amountBuy - the amount to buy

setAmountSell

void setAmountSell(double amountSell)
Sets the amount to sell. The amount is in the base currency of the sell account.

Parameters:
amountSell - the amount to sell

setType

void setType(java.lang.String type)
Sets the type for this transfer. Must be BuyMarket or SellMarket.

Parameters:
type - the type for this transfer

setAccountIdSell

void setAccountIdSell(int accountId)
Sets the account Id for the sell account.

Parameters:
accountId - the account Id of the sell account

setAccountIdBuy

void setAccountIdBuy(int accountId)
Sets the account Id for the buy account.

Parameters:
accountId - the account Id of the buy account


Copyright © 2005 OANDA Corporation. All Rights Reserved.