coinbase-exchange-0.4.0.0: Connector library for the coinbase exchange.

Safe HaskellNone
LanguageHaskell2010

Coinbase.Exchange.Types.Socket

Synopsis

Documentation

data SendExchangeMessage Source #

Messages we can send to the exchange

Instances

Eq SendExchangeMessage Source # 
Data SendExchangeMessage Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SendExchangeMessage -> c SendExchangeMessage #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SendExchangeMessage #

toConstr :: SendExchangeMessage -> Constr #

dataTypeOf :: SendExchangeMessage -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SendExchangeMessage) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SendExchangeMessage) #

gmapT :: (forall b. Data b => b -> b) -> SendExchangeMessage -> SendExchangeMessage #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SendExchangeMessage -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SendExchangeMessage -> r #

gmapQ :: (forall d. Data d => d -> u) -> SendExchangeMessage -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SendExchangeMessage -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SendExchangeMessage -> m SendExchangeMessage #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SendExchangeMessage -> m SendExchangeMessage #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SendExchangeMessage -> m SendExchangeMessage #

Read SendExchangeMessage Source # 
Show SendExchangeMessage Source # 
Generic SendExchangeMessage Source # 
ToJSON SendExchangeMessage Source # 
NFData SendExchangeMessage Source # 

Methods

rnf :: SendExchangeMessage -> () #

type Rep SendExchangeMessage Source # 
type Rep SendExchangeMessage = D1 (MetaData "SendExchangeMessage" "Coinbase.Exchange.Types.Socket" "coinbase-exchange-0.4.0.0-KDeprrDmLO86gY1hPoWgDg" False) ((:+:) (C1 (MetaCons "Subscribe" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [ProductId]))) (C1 (MetaCons "SetHeartbeat" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))

data ExchangeMessage Source #

Messages they send back to us

Constructors

Heartbeat 
ReceivedLimit 
ReceivedMarket 
Open 
Match 
Done 
ChangeLimit 
ChangeMarket 
Error 

Fields

Instances

Eq ExchangeMessage Source # 
Data ExchangeMessage Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ExchangeMessage -> c ExchangeMessage #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ExchangeMessage #

toConstr :: ExchangeMessage -> Constr #

dataTypeOf :: ExchangeMessage -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ExchangeMessage) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ExchangeMessage) #

gmapT :: (forall b. Data b => b -> b) -> ExchangeMessage -> ExchangeMessage #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ExchangeMessage -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ExchangeMessage -> r #

gmapQ :: (forall d. Data d => d -> u) -> ExchangeMessage -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ExchangeMessage -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ExchangeMessage -> m ExchangeMessage #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ExchangeMessage -> m ExchangeMessage #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ExchangeMessage -> m ExchangeMessage #

Read ExchangeMessage Source # 
Show ExchangeMessage Source # 
Generic ExchangeMessage Source # 
ToJSON ExchangeMessage Source #

Convenience/storage instance; never sent to exchange

FromJSON ExchangeMessage Source # 
NFData ExchangeMessage Source # 

Methods

rnf :: ExchangeMessage -> () #

type Rep ExchangeMessage Source # 
type Rep ExchangeMessage = D1 (MetaData "ExchangeMessage" "Coinbase.Exchange.Types.Socket" "coinbase-exchange-0.4.0.0-KDeprrDmLO86gY1hPoWgDg" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Heartbeat" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId))) ((:*:) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)) (S1 (MetaSel (Just Symbol "msgLastTradeId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TradeId))))) (C1 (MetaCons "ReceivedLimit" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId))) ((:*:) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)) (S1 (MetaSel (Just Symbol "msgOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side)) (S1 (MetaSel (Just Symbol "msgClientOid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ClientOrderId)))) ((:*:) (S1 (MetaSel (Just Symbol "msgPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Price)) (S1 (MetaSel (Just Symbol "msgSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Size))))))) ((:+:) (C1 (MetaCons "ReceivedMarket" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) ((:*:) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId)) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side))) ((:*:) (S1 (MetaSel (Just Symbol "msgClientOid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ClientOrderId))) (S1 (MetaSel (Just Symbol "msgMarketBounds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Either Size (Maybe Size, Cost)))))))) (C1 (MetaCons "Open" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) ((:*:) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId)) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side))) ((:*:) (S1 (MetaSel (Just Symbol "msgRemainingSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Size)) (S1 (MetaSel (Just Symbol "msgPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Price)))))))) ((:+:) ((:+:) (C1 (MetaCons "Match" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId))) ((:*:) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTradeId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TradeId)) (S1 (MetaSel (Just Symbol "msgMakerOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId))) ((:*:) (S1 (MetaSel (Just Symbol "msgTakerOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)) ((:*:) (S1 (MetaSel (Just Symbol "msgSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Size)) (S1 (MetaSel (Just Symbol "msgPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Price))))))) (C1 (MetaCons "Done" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId))) ((:*:) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)) (S1 (MetaSel (Just Symbol "msgOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side)) (S1 (MetaSel (Just Symbol "msgReason") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Reason))) ((:*:) (S1 (MetaSel (Just Symbol "msgMaybePrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Price))) (S1 (MetaSel (Just Symbol "msgMaybeRemSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Size)))))))) ((:+:) (C1 (MetaCons "ChangeLimit" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId))) ((:*:) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)) (S1 (MetaSel (Just Symbol "msgOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side)) (S1 (MetaSel (Just Symbol "msgMaybePrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Price)))) ((:*:) (S1 (MetaSel (Just Symbol "msgNewSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Size)) (S1 (MetaSel (Just Symbol "msgOldSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Size)))))) ((:+:) (C1 (MetaCons "ChangeMarket" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) ((:*:) (S1 (MetaSel (Just Symbol "msgProductId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ProductId)) (S1 (MetaSel (Just Symbol "msgSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequence)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "msgOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OrderId)) (S1 (MetaSel (Just Symbol "msgSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side))) ((:*:) (S1 (MetaSel (Just Symbol "msgNewFunds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Cost)) (S1 (MetaSel (Just Symbol "msgOldFunds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Cost)))))) (C1 (MetaCons "Error" PrefixI True) (S1 (MetaSel (Just Symbol "msgMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))))))