Safe Haskell | None |
---|---|
Language | Haskell98 |
Type for individual executed trades from the API.
- data GTrade dt p q t = Trade {
- tradeId :: Text
- tradeTime :: dt
- tradePrice :: p
- tradeQuantity :: q
- tradeTotal :: t
- type Trade = GTrade CryptsyTime CryptsyNum CryptsyNum CryptsyNum
- parseTrade :: (Value -> Parser dt) -> (Value -> Parser p) -> (Value -> Parser q) -> (Value -> Parser t) -> Value -> Parser (GTrade dt p q t)
- module Cryptsy.API.Public.Types.Num
- module Cryptsy.API.Public.Types.Time
Documentation
generalized trade
Trade | |
|
type Trade = GTrade CryptsyTime CryptsyNum CryptsyNum CryptsyNum Source
standard trade
:: (Value -> Parser dt) | date/time parser |
-> (Value -> Parser p) | price parser |
-> (Value -> Parser q) | quantity parser |
-> (Value -> Parser t) | total parser |
-> Value | |
-> Parser (GTrade dt p q t) |
Combine component parsers into JSON Object parser.
module Cryptsy.API.Public.Types.Num