T
- A class that extends, AbstractSubjectInfo
which encapsulates
the parameters of the client's subscription.public class ESPQuote<T extends AbstractSubjectInfo> extends Object implements FXQuote
Constructor and Description |
---|
ESPQuote(T info,
FXQuote quote,
String gfa)
Constructs the ESPQuote for the given subject info, quote and gfa.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAllInAskRate()
Returns the all in ask rate.
|
String |
getAllInBidRate()
Returns the all in bid rate.
|
String |
getAskPips()
Returns the ask pips.
|
String |
getAskPoints()
Returns the ask points.
|
String |
getAskQuoteId()
Returns the AskQuoteID
|
String |
getBidPips()
Returns the bid pips.
|
String |
getBidPoints()
Returns the bid points.
|
String |
getBidQuoteId()
Returns the Bid Quote ID
|
String |
getFwdAskPips()
Deprecated.
use
getAskPips() instead. |
String |
getFwdAskPoints()
Deprecated.
use
getAskPoints() instead. |
String |
getFwdBidPips()
Deprecated.
use
getBidPips() instead |
String |
getFwdBidPoints()
Deprecated.
use
getBidPoints() instead |
String |
getGFA()
Returns the "Good For Amount".
|
String |
getNumberOfDigitsBeforeDecimalPoint()
Returns the "number of digits before the decimal point".
|
String |
getNumberOfDigitsBeforePips()
Returns the "number of digits before the pips", this is a Precision-related
field that tells the client how to display rates.
|
String |
getNumberOfFractionalPips()
Returns the "number of fractional pips", this is a Precision-related field
that tells the client how to display rates.
|
String |
getNumberOfPips()
Returns the "number of pips", this is a Precision-related field that tells
the client how to display rates.
|
Map<String,String> |
getQuoteFields()
Returns the fields that will be sent to the client for a Quote.
|
String |
getQuoteId()
The ID of this quote.
|
String |
getSpotAskRate()
Returns the spot ask rate.
|
String |
getSpotBidRate()
Returns the spot bid rate.
|
String |
getSubject()
Returns the subject of the original request
|
T |
getSubjectInfo()
Returns the AbstractSubjectInfo
|
String |
getSwapAskPips()
Deprecated.
use
getAskPips() instead. |
String |
getSwapBidPips()
Deprecated.
use
getBidPips() instead. |
String |
getSwapGFA()
Returns the "Good For Amount" for Forward and Swap quotes.
|
String |
getTimePriceReceived()
Returns the time of when the price was recieved.
|
int |
hashCode() |
void |
setAllInAskRate(String allInAskRate)
Sets the all in ask rate.
|
void |
setAllInBidRate(String allInBidRate)
Sets the all in bid rate.
|
void |
setAskPips(String askPips)
Sets the ask pips.
|
void |
setAskPoints(String askPoints)
Sets the ask points.
|
void |
setAskQuoteId(String askQuoteId)
Set the AskQuoteID
|
void |
setBidPips(String bidPips)
Sets the bid pips.
|
void |
setBidPoints(String bidPoints)
Sets the bid points.
|
void |
setBidQuoteId(String bidQuoteId)
sets the BidQuoteID
|
void |
setFwdAskPips(String fwdAskPips)
Deprecated.
use
setAskPips(String) instead. |
void |
setFwdAskPoints(String fwdAskPoints)
Deprecated.
use
setAskPoints(String) instead. |
void |
setFwdBidPips(String fwdBidPips)
Deprecated.
use
setBidPips(String) instead. |
void |
setFwdBidPoints(String fwdBidPoints)
Deprecated.
|
void |
setGFA(String gfa)
Sets the "Good For Amount".
|
void |
setNumberOfDigitsBeforeDecimalPoint(String numberOfDigitsBeforeDecimalPoint)
Sets the "number of digits before the decimal point", this is a
Precision-related field that tells the client how to display rates.
|
void |
setNumberOfDigitsBeforePips(String numberOfDigitsBeforePips)
Sets the "number of digits before the pips", this is a Precision-related
field that tells the client how to display rates.
|
void |
setNumberOfFractionalPips(String numberOfFractionalPips)
Sets the "number of fractional pips", this is a Precision-related field
that tells the client how to display rates.
|
void |
setNumberOfPips(String numberOfPips)
Sets the "number of pips", this is a Precision-related field that tells
the client how to display rates.
|
void |
setQuoteId(String quoteId)
Sets the ID of this quote
|
void |
setSpotAskRate(String spotAskRate)
Sets the spot ask rate.
|
void |
setSpotBidRate(String spotBidRate)
Sets the spot bid rate.
|
void |
setSwapAskPips(String fwdAskPips)
Deprecated.
use
setAskPips(String) instead. |
void |
setSwapBidPips(String swapBidPips)
Deprecated.
use
setBidPips(String) instead. |
void |
setSwapGFA(String swapGFA)
Sets the "Good for Amount" for Forward and Swap quotes.
|
void |
setTimePriceReceived(String timePriceReceived)
Sets the time the price was the received.
|
public ESPQuote(T info, FXQuote quote, String gfa)
info
- The SubjectInfo containing the client request information.squote
- The quote containing some combination of a bid, ask and mid rate.gfa
- The 'Good For Amount' denoting the maximum amount that can be traded as an ESP.public String getQuoteId()
public void setQuoteId(String quoteId)
quoteId
- the ID of the quotepublic T getSubjectInfo()
public String getSubject()
public Map<String,String> getQuoteFields()
FXQuote
getQuoteFields
in interface FXQuote
public String getBidQuoteId()
public void setBidQuoteId(String bidQuoteId)
bidQuoteId
- The bid quote ID.public String getAskQuoteId()
public void setAskQuoteId(String askQuoteId)
askQuoteId
- The ask quote ID.public String getSpotBidRate()
public void setSpotBidRate(String spotBidRate)
spotBidRate
- The spot bid rate.public String getSpotAskRate()
public void setSpotAskRate(String spotAskRate)
spotAskRate
- The spot ask rate.public String getAllInBidRate()
public void setAllInBidRate(String allInBidRate)
allInBidRate
- The all in bid rate.public String getAllInAskRate()
public void setAllInAskRate(String allInAskRate)
allInAskRate
- The all in ask rate.@Deprecated public String getFwdBidPips()
getBidPips()
insteadpublic String getBidPips()
@Deprecated public void setFwdBidPips(String fwdBidPips)
setBidPips(String)
instead.fwdBidPips
- The forward bid pipspublic void setBidPips(String bidPips)
bidPips
- The bid pips.@Deprecated public String getFwdAskPips()
getAskPips()
instead.public String getAskPips()
@Deprecated public void setFwdAskPips(String fwdAskPips)
setAskPips(String)
instead.fwdAskPips
- The ask pips.public void setAskPips(String askPips)
askPips
- The ask pips.@Deprecated public String getFwdBidPoints()
getBidPoints()
insteadpublic String getBidPoints()
@Deprecated public void setFwdBidPoints(String fwdBidPoints)
setBidPoints(String)
fwdBidPoints
- The bid points.public void setBidPoints(String bidPoints)
bidPoints
- The bid points.@Deprecated public String getFwdAskPoints()
getAskPoints()
instead.public String getAskPoints()
@Deprecated public void setFwdAskPoints(String fwdAskPoints)
setAskPoints(String)
instead.fwdAskPoints
- The ask points.public void setAskPoints(String askPoints)
askPoints
- The ask points.@Deprecated public String getSwapBidPips()
getBidPips()
instead.@Deprecated public void setSwapBidPips(String swapBidPips)
setBidPips(String)
instead.swapBidPips
- The ask pips.@Deprecated public String getSwapAskPips()
getAskPips()
instead.@Deprecated public void setSwapAskPips(String fwdAskPips)
setAskPips(String)
instead.fwdAskPips
- The ask pips.public String getNumberOfDigitsBeforeDecimalPoint()
Returns the "number of digits before the decimal point". this is a Precision-related field that tells the client how to display rates.
This is the maximum number of digits that can appear to the left of the decimal point, not the current number of digits left of the point for the current update. For example, EURJPY hovers around the 99.000 mark and can go over 100, so EURJPY rates will sometimes have 2 digits left of the point and sometimes 3. But the value of this DigitsBeforePoints field should always be 3.
public void setNumberOfDigitsBeforeDecimalPoint(String numberOfDigitsBeforeDecimalPoint)
Sets the "number of digits before the decimal point", this is a Precision-related field that tells the client how to display rates.
This is the maximum number of digits that can appear to the left of the decimal point, not the current number of digits left of the point for the current update. For example, EURJPY hovers around the 99.000 mark and can go over 100, so EURJPY rates will sometimes have 2 digits left of the point and sometimes 3. But the value of this DigitsBeforePoints field should always be 3.
numberOfDigitsBeforeDecimalPoint
- The number of digits before the decimal point that the client should displaypublic String getNumberOfDigitsBeforePips()
Returns the "number of digits before the pips", this is a Precision-related field that tells the client how to display rates.
This is the number of digits between the decimal point and the pips (i.e the "big digits" that the client wants to look at). For most currency pairs the value of this field will be 2, for example for a GBPUSD rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
public void setNumberOfDigitsBeforePips(String numberOfDigitsBeforePips)
Sets the "number of digits before the pips", this is a Precision-related field that tells the client how to display rates.
This is the number of digits between the decimal point and the pips (i.e the "big digits" that the client wants to look at). For most currency pairs the value of this field will be 2, for example for a GBPUSD rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
numberOfDigitsBeforePips
- The number of digits that exist before the pips.public String getNumberOfPips()
Returns the "number of pips", this is a Precision-related field that tells the client how to display rates.
This is the number of pips the client wants to look at. Normally this value is always 2.
public void setNumberOfPips(String numberOfPips)
Sets the "number of pips", this is a Precision-related field that tells the client how to display rates.
This is the number of pips the client wants to look at. Normally this value is always 2.
numberOfPips
- The number of pipspublic String getNumberOfFractionalPips()
Returns the "number of fractional pips", this is a Precision-related field that tells the client how to display rates. This is the number of digits after the pips.
For example for a GBPUSD rate of 1.23456 the pips are the 45 and there is one digit (the 6) after the pips, so the value of the NumberOfFractionalPips field should be 1.
There are typically more fractional pips on forward rates than spot rates.
public void setNumberOfFractionalPips(String numberOfFractionalPips)
Sets the "number of fractional pips", this is a Precision-related field that tells the client how to display rates. This is the number of digits after the pips.
For example for a GBPUSD rate of 1.23456 the pips are the 45 and there is one digit (the 6) after the pips, so the value of the NumberOfFractionalPips field should be 1.
There are typically more fractional pips on forward rates than spot rates.
numberOfFractionalPips
- The number of fractional pips.public String getGFA()
public void setGFA(String gfa)
gfa
- The Good For Amount.public String getSwapGFA()
public void setSwapGFA(String swapGFA)
swapGFA
- The "Good For Amount" for Forward and Swap quotes.public String getTimePriceReceived()
public void setTimePriceReceived(String timePriceReceived)
timePriceReceived
- The time the price was received.Copyright © 2015 Caplin Systems.