Safe Haskell | None |
---|
Cryptsy.API.Public.Types.Trade
Description
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
Constructors
Trade | |
Fields
|
type Trade = GTrade CryptsyTime CryptsyNum CryptsyNum CryptsyNumSource
standard trade
Arguments
:: (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