public class SalesSwapSpotQuoteBuilder extends Object
SalesSwapSpotQuote
interface.
This should be used as part of creating a SalesSwapQuote
Modifier and Type | Method and Description |
---|---|
SalesSwapSpotQuote |
build()
Builds the quote.
|
static SalesSwapSpotQuoteBuilder |
create()
Creates a SalesSwapSpotQuoteBuilder to be used for constructing a SalesSwapSpotQuote.
|
SalesSwapSpotQuoteBuilder |
defaultSpotAskMargin(String defaultSpotAskMargin)
Sets the ask rate's default SPOT margin
|
SalesSwapSpotQuoteBuilder |
defaultSpotBidMargin(String defaultSpotBidMargin)
Sets the bid rate's default SPOT margin
|
SalesSwapSpotQuoteBuilder |
profitAskRate(String profitAskRate)
The ask rate that can be used to calculate the profit on the ask side in the given currency
|
SalesSwapSpotQuoteBuilder |
profitBidRate(String profitBidRate)
The bid rate that can be used to calculate the profit on the bid side in the given currency
|
SalesSwapSpotQuoteBuilder |
profitCurrency(String profitCurrency)
The currency that the Profit Bid Rate and Profit Ask Rate relate to
|
SalesSwapSpotQuoteBuilder |
profitCurrencyDPS(String profitCurrencyDPS)
The number of decimal places that should be used for formatting the profit currency
|
SalesSwapSpotQuoteBuilder |
swapSpotQuote(SwapSpotQuote swapSpotQuote)
Sets the underlying swap spot quote, user
SwapSpotQuote to build one |
SalesSwapSpotQuoteBuilder |
traderSpotAskRate(String traderSpotAskRate) |
SalesSwapSpotQuoteBuilder |
traderSpotBidRate(String traderSpotBidRate) |
public SalesSwapSpotQuoteBuilder swapSpotQuote(SwapSpotQuote swapSpotQuote)
SwapSpotQuote
to build oneswapSpotQuote
- The underlying swap spot quote, user SwapSpotQuote
to build onepublic SalesSwapSpotQuoteBuilder defaultSpotBidMargin(String defaultSpotBidMargin)
defaultSpotBidMargin
- The bid rate's default SPOT marginpublic SalesSwapSpotQuoteBuilder defaultSpotAskMargin(String defaultSpotAskMargin)
defaultSpotAskMargin
- The ask rate's default SPOT marginpublic SalesSwapSpotQuoteBuilder profitCurrency(String profitCurrency)
profitCurrency
- The currency that the Profit Bid Rate and Profit Ask Rate relate topublic SalesSwapSpotQuoteBuilder profitCurrencyDPS(String profitCurrencyDPS)
profitCurrencyDPS
- The number of decimal places that should be used for formatting the profit currencypublic SalesSwapSpotQuoteBuilder profitBidRate(String profitBidRate)
profitBidRate
- The bid rate that can be used to calculate the profit on the bid side in the given currencypublic SalesSwapSpotQuoteBuilder profitAskRate(String profitAskRate)
profitAskRate
- The ask rate that can be used to calculate the profit on the ask side in the given currencypublic SalesSwapSpotQuoteBuilder traderSpotBidRate(String traderSpotBidRate)
public SalesSwapSpotQuoteBuilder traderSpotAskRate(String traderSpotAskRate)
public SalesSwapSpotQuote build()
public static SalesSwapSpotQuoteBuilder create()
Copyright © 2015 Caplin Systems.