1 {-# LANGUAGE FlexibleContexts #-}
2 -- |Request for market data in old format, with ambiguous keys
3 module Cryptsy
.API
.Public
.MarketData
.Old
5 , module Cryptsy
.API
.Public
.Types
.MarketData
6 , module Cryptsy
.API
.Public
.Types
.Monad
11 import Data
.Aeson
(FromJSON
(..))
14 import Cryptsy
.API
.Public
.Internal
15 import Cryptsy
.API
.Public
.Types
.MarketData
16 import Cryptsy
.API
.Public
.Types
.Monad
18 marketdataURL
:: String
19 marketdataURL
= pubURL
"marketdata"
21 -- |Request all markets in old format.
22 oldMarketData
:: FromJSON
(GMarketData p q dt t
)
23 => PubCryptsy
(GMarketData p q dt t
)
24 oldMarketData
= pubCryptsy marketdataURL
$ onMarkets parseJSON
25 {-# INLINABLE oldMarketData #-}