Interface MarketService

    • 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 pair
        amount - amount
        Returns:
        costs.