public class SalesSpotQuoteBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SalesSpotQuoteBuilder.SalesSpotQuoteImpl |
Modifier and Type | Method and Description |
---|---|
SalesSpotQuote |
build()
Builds the quote.
|
static SalesSpotQuoteBuilder |
create()
Creates a SalesSpotQuoteBuilder to be used for constructing a SalesSpotQuote.
|
SalesSpotQuoteBuilder |
defaultSpotAskMargin(String defaultSpotAskMargin)
The default margin to be applied to the Spot Ask Rate
|
SalesSpotQuoteBuilder |
defaultSpotBidMargin(String defaultSpotBidMargin)
The default margin to be applied to the Spot Bid Rate
|
SalesSpotQuoteBuilder |
profitAskRate(String profitAskRate)
The ask rate that can be used to calculate the profit on the ask side in the given currency
|
SalesSpotQuoteBuilder |
profitBidRate(String profitBidRate)
The bid rate that can be used to calculate the profit on the bid side in the given currency
|
SalesSpotQuoteBuilder |
profitCurrency(String profitCurrency)
The currency that the Profit Bid Rate and Profit Ask Rate relate to
|
SalesSpotQuoteBuilder |
profitCurrencyDPS(String profitCurrencyDPS)
The number of decimal places that should be used for formatting the profit currency
|
SalesSpotQuoteBuilder |
spotQuote(SpotQuote spotQuote)
The underlying Spot Quote that contains all the fields a standard
RFS quote would.
|
SalesSpotQuoteBuilder |
traderSpotAskRate(String traderSpotAskRate) |
SalesSpotQuoteBuilder |
traderSpotBidRate(String traderSpotBidRate) |
public SalesSpotQuoteBuilder spotQuote(SpotQuote spotQuote)
spotQuote
- The base RFS spot quotepublic SalesSpotQuoteBuilder defaultSpotBidMargin(String defaultSpotBidMargin)
defaultSpotBidMargin
- The default margin to be applied to the Spot Bid Ratepublic SalesSpotQuoteBuilder defaultSpotAskMargin(String defaultSpotAskMargin)
defaultSpotAskMargin
- The default margin to be applied to the Spot Ask Ratepublic SalesSpotQuoteBuilder profitCurrency(String profitCurrency)
profitCurrency
- The currency that the Profit Bid Rate and Profit Ask Rate relate topublic SalesSpotQuoteBuilder profitCurrencyDPS(String profitCurrencyDPS)
profitCurrencyDPS
- The number of decimal places that should be used for formatting the profit currencypublic SalesSpotQuoteBuilder profitBidRate(String profitBidRate)
profitBidRate
- The bid rate that can be used to calculate the profit on the bid side in the given currencypublic SalesSpotQuoteBuilder profitAskRate(String profitAskRate)
profitAskRate
- The ask rate that can be used to calculate the profit on the ask side in the given currencypublic SalesSpotQuoteBuilder traderSpotBidRate(String traderSpotBidRate)
public SalesSpotQuoteBuilder traderSpotAskRate(String traderSpotAskRate)
public SalesSpotQuote build()
public static SalesSpotQuoteBuilder create()
Copyright © 2015 Caplin Systems.