Safe Haskell | None |
---|---|
Language | Haskell98 |
Type for individual market information returned from API.
- data GMarket p q dt t = Market {
- mktMarketid :: Text
- mktLabel :: Text
- mktLastTradePrice :: p
- mktVolume :: q
- mktLastTradeTime :: dt
- mktPrimaryName :: Text
- mktPrimaryCode :: Text
- mktSecondaryName :: Text
- mktSecondaryCode :: Text
- mktRecentTrades :: Vector (GTrade dt p q t)
- mktSellOrders :: Vector (GOrder p q t)
- mktBuyOrders :: Vector (GOrder p q t)
- type Market = GMarket CryptsyNum CryptsyNum CryptsyTime CryptsyNum
- parseMarket :: (Value -> Parser p) -> (Value -> Parser q) -> (Value -> Parser dt) -> (Value -> Parser t) -> Value -> Parser (GMarket p q dt t)
- module Cryptsy.API.Public.Types.Num
- module Cryptsy.API.Public.Types.Order
- module Cryptsy.API.Public.Types.Time
- module Cryptsy.API.Public.Types.Trade
Documentation
generalized market
Market | |
|
type Market = GMarket CryptsyNum CryptsyNum CryptsyTime CryptsyNum Source
default market
:: (Value -> Parser p) | price parser |
-> (Value -> Parser q) | quantity parser |
-> (Value -> Parser dt) | date/time parser |
-> (Value -> Parser t) | total parser |
-> Value | |
-> Parser (GMarket p q dt t) |
Combine component parsers into JSON Object parser.
module Cryptsy.API.Public.Types.Num