Copyright | (c) Ivan A. Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan A. Malison |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides utility functions for retrieving data about crypto assets.
Documentation
newtype SymbolToCoinGeckoId Source #
newtype CryptoPriceInfo Source #
newtype CryptoPriceChannel (a :: Symbol) Source #
getCryptoPriceChannel :: KnownSymbol a => TaffyIO (CryptoPriceChannel a) Source #
data CoinGeckoInfo Source #
CoinGeckoInfo | |
|
Instances
FromJSON CoinGeckoInfo Source # | |
Defined in System.Taffybar.Information.Crypto parseJSON :: Value -> Parser CoinGeckoInfo # parseJSONList :: Value -> Parser [CoinGeckoInfo] # | |
Show CoinGeckoInfo Source # | |
Defined in System.Taffybar.Information.Crypto showsPrec :: Int -> CoinGeckoInfo -> ShowS # show :: CoinGeckoInfo -> String # showList :: [CoinGeckoInfo] -> ShowS # |
buildCryptoPriceChannel :: forall a. KnownSymbol a => Double -> SymbolToCoinGeckoId -> TaffyIO (CryptoPriceChannel a) Source #
getCryptoMeta :: MonadIO m => String -> String -> m ByteString Source #