cryptsy-api-0.2.1: Bindings for Cryptsy cryptocurrency exchange API.

Safe HaskellNone
LanguageHaskell98

Cryptsy.API.Public.Types.Order

Description

Type for individual orders (order book entries) from the API.

Synopsis

Documentation

data GOrder p q t Source

generalized order

Constructors

Order 

Fields

orderPrice :: p
 
orderQuantity :: q
 
orderTotal :: t
 

Instances

(Show p, Show q, Show t) => Show (GOrder p q t) 
(FromJSON p, FromJSON q, FromJSON t) => FromJSON (GOrder p q t) 

parseOrder Source

Arguments

:: (Value -> Parser p)

price parser

-> (Value -> Parser q)

quantity parser

-> (Value -> Parser t)

total parser

-> Value 
-> Parser (GOrder p q t) 

Combine component parsers into JSON Object parser.