Interface MarketService
-
- All Known Implementing Classes:
MarketServiceXChangeImplementation
public interface MarketService
Service giving information about market price.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<CurrencyAmountDTO>
getEstimatedBuyingCost(CurrencyPairDTO currencyPair, BigDecimal amount)
Returns the cost of buying an amount of a currency pair.Optional<TickerDTO>
getTicker(CurrencyPairDTO currencyPair)
Returns a ticker for a currency pair.
-
-
-
Method Detail
-
getTicker
Optional<TickerDTO> getTicker(CurrencyPairDTO currencyPair)
Returns a ticker for a currency pair.- Parameters:
currencyPair
- currency pair- Returns:
- ticker
-
getEstimatedBuyingCost
Optional<CurrencyAmountDTO> getEstimatedBuyingCost(CurrencyPairDTO currencyPair, BigDecimal amount)
Returns the cost of buying an amount of a currency pair.- Parameters:
currencyPair
- currency pairamount
- amount- Returns:
- costs.
-
-