Client and backend. Every class listed here is shared: the same code is compiled into your app and into your server.

package com.codename1.crypto.market

Prices: the PriceFeed interface and its Quote, CoinGeckoFeed, the template-driven JsonPriceFeed for any JSON price API, and CachingPriceFeed. Feeds send through a RpcTransport, so they run in applications and on the backend.

Types

class CachingPriceFeedA PriceFeed that remembers each pair’s answer for a while.
class CoinGeckoFeedPrices from CoinGecko’s simple/price API.
class JsonPriceFeedA feed over any HTTP API that answers one price in JSON.
interface PriceFeedA source of prices.
class QuoteA price: one unit of base costs price units of quote, as a source reported it at a time.