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

Safe HaskellNone
LanguageHaskell98

Cryptsy.API.Public.Types.Market

Description

Type for individual market information returned from API.

Synopsis

Documentation

data GMarket p q dt t Source

generalized market

Instances

(Show p, Show q, Show dt, Show t) => Show (GMarket p q dt t) 
(FromJSON p, FromJSON q, FromJSON dt, FromJSON t) => FromJSON (GMarket p q dt t) 

parseMarket Source

Arguments

:: (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.