| Copyright | (c) Ivan A. Malison | 
|---|---|
| License | BSD3-style (see LICENSE) | 
| Maintainer | Ivan A. Malison | 
| Stability | unstable | 
| Portability | unportable | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
System.Taffybar.Information.Crypto
Description
This module provides utility functions for retrieving data about crypto assets.
Documentation
newtype SymbolToCoinGeckoId Source #
Constructors
| SymbolToCoinGeckoId (Map Text Text) | 
newtype CryptoPriceInfo Source #
Constructors
| CryptoPriceInfo | |
newtype CryptoPriceChannel (a :: Symbol) Source #
Constructors
| CryptoPriceChannel (BroadcastChan In CryptoPriceInfo, MVar CryptoPriceInfo) | 
getCryptoPriceChannel :: KnownSymbol a => TaffyIO (CryptoPriceChannel a) Source #
data CoinGeckoInfo Source #
Constructors
| CoinGeckoInfo | |
| Fields 
 | |
Instances
| FromJSON CoinGeckoInfo Source # | |
| Defined in System.Taffybar.Information.Crypto Methods parseJSON :: Value -> Parser CoinGeckoInfo # parseJSONList :: Value -> Parser [CoinGeckoInfo] # | |
| Show CoinGeckoInfo Source # | |
| Defined in System.Taffybar.Information.Crypto Methods 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 #