gdax-0.6.0.0: API Wrapping for Coinbase's GDAX exchange.

Safe HaskellNone
LanguageHaskell2010

Network.GDAX.Types.Feed

Documentation

newtype Subscribe #

Constructors

Subscribe 

Instances

Show Subscribe # 
Generic Subscribe # 

Associated Types

type Rep Subscribe :: * -> * #

ToJSON Subscribe # 
FromJSON Subscribe # 
type Rep Subscribe # 
type Rep Subscribe = D1 * (MetaData "Subscribe" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" True) (C1 * (MetaCons "Subscribe" PrefixI True) (S1 * (MetaSel (Just Symbol "unSubscribe") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Subscriptions)))

data Channel #

Instances

Eq Channel # 

Methods

(==) :: Channel -> Channel -> Bool #

(/=) :: Channel -> Channel -> Bool #

Ord Channel # 
Show Channel # 
Generic Channel # 

Associated Types

type Rep Channel :: * -> * #

Methods

from :: Channel -> Rep Channel x #

to :: Rep Channel x -> Channel #

ToJSON Channel # 
FromJSON Channel # 
type Rep Channel # 
type Rep Channel = D1 * (MetaData "Channel" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) ((:+:) * ((:+:) * (C1 * (MetaCons "ChannelHeartbeat" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ChannelTicker" PrefixI False) (U1 *)) (C1 * (MetaCons "ChannelLevel2" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "ChannelUser" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ChannelMatches" PrefixI False) (U1 *)) (C1 * (MetaCons "ChannelFull" PrefixI False) (U1 *)))))

data FeedError #

Constructors

FeedError 

Instances

Show FeedError # 
Generic FeedError # 

Associated Types

type Rep FeedError :: * -> * #

FromJSON FeedError # 
type Rep FeedError # 
type Rep FeedError = D1 * (MetaData "FeedError" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) (C1 * (MetaCons "FeedError" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_errMessage") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_errOriginal") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Value))))

data Ticker #

Instances

Show Ticker # 
Generic Ticker # 

Associated Types

type Rep Ticker :: * -> * #

Methods

from :: Ticker -> Rep Ticker x #

to :: Rep Ticker x -> Ticker #

FromJSON Ticker # 
type Rep Ticker # 

data Level2Item #

Constructors

Level2Item 

Instances

Show Level2Item # 
Generic Level2Item # 

Associated Types

type Rep Level2Item :: * -> * #

FromJSON Level2Item # 
type Rep Level2Item # 
type Rep Level2Item = D1 * (MetaData "Level2Item" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) (C1 * (MetaCons "Level2Item" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_l2itemPrice") SourceUnpack NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_l2itemSize") SourceUnpack NoSourceStrictness DecidedStrict) (Rec0 * Double))))

data Match #

Instances

Show Match # 

Methods

showsPrec :: Int -> Match -> ShowS #

show :: Match -> String #

showList :: [Match] -> ShowS #

Generic Match # 

Associated Types

type Rep Match :: * -> * #

Methods

from :: Match -> Rep Match x #

to :: Rep Match x -> Match #

FromJSON Match # 
type Rep Match # 

data Received #

Instances

Show Received # 
Generic Received # 

Associated Types

type Rep Received :: * -> * #

Methods

from :: Received -> Rep Received x #

to :: Rep Received x -> Received #

FromJSON Received # 
type Rep Received # 
type Rep Received = D1 * (MetaData "Received" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) ((:+:) * (C1 * (MetaCons "ReceivedLimit" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)) (S1 * (MetaSel (Just Symbol "_receivedSequence") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Sequence)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedOrderId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderId)) (S1 * (MetaSel (Just Symbol "_receivedSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedPrice") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_receivedSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side)))))) (C1 * (MetaCons "ReceivedMarket" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)) (S1 * (MetaSel (Just Symbol "_receivedSequence") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Sequence)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedOrderId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderId)) ((:*:) * (S1 * (MetaSel (Just Symbol "_receivedFunds") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_receivedSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side)))))))

data Reason #

Instances

Eq Reason # 

Methods

(==) :: Reason -> Reason -> Bool #

(/=) :: Reason -> Reason -> Bool #

Ord Reason # 
Show Reason # 
Generic Reason # 

Associated Types

type Rep Reason :: * -> * #

Methods

from :: Reason -> Rep Reason x #

to :: Rep Reason x -> Reason #

FromJSON Reason # 
type Rep Reason # 
type Rep Reason = D1 * (MetaData "Reason" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) ((:+:) * (C1 * (MetaCons "ReasonFilled" PrefixI False) (U1 *)) (C1 * (MetaCons "ReasonCanceled" PrefixI False) (U1 *)))

data Open #

data Done #

Instances

Show Done # 

Methods

showsPrec :: Int -> Done -> ShowS #

show :: Done -> String #

showList :: [Done] -> ShowS #

Generic Done # 

Associated Types

type Rep Done :: * -> * #

Methods

from :: Done -> Rep Done x #

to :: Rep Done x -> Done #

FromJSON Done # 
type Rep Done # 

data Change #

Instances

Show Change # 
Generic Change # 

Associated Types

type Rep Change :: * -> * #

Methods

from :: Change -> Rep Change x #

to :: Rep Change x -> Change #

FromJSON Change # 
type Rep Change # 
type Rep Change = D1 * (MetaData "Change" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) ((:+:) * (C1 * (MetaCons "ChangeSize" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_changeTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) (S1 * (MetaSel (Just Symbol "_changeSequence") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Sequence))) ((:*:) * (S1 * (MetaSel (Just Symbol "_changeOrderId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderId)) (S1 * (MetaSel (Just Symbol "_changeProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_changeNewSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_changeOldSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_changePrice") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_changSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side)))))) (C1 * (MetaCons "ChangeFunds" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_changeTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) (S1 * (MetaSel (Just Symbol "_changeSequence") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Sequence))) ((:*:) * (S1 * (MetaSel (Just Symbol "_changeOrderId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderId)) (S1 * (MetaSel (Just Symbol "_changeProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_changeNewFunds") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_changeOldFunds") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_changePrice") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_changSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side)))))))

data MarginProfileUpdate #

Instances

Show MarginProfileUpdate # 
Generic MarginProfileUpdate # 
FromJSON MarginProfileUpdate # 
type Rep MarginProfileUpdate # 
type Rep MarginProfileUpdate = D1 * (MetaData "MarginProfileUpdate" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) (C1 * (MetaCons "MarginProfileUpdate" PrefixI True) ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)) (S1 * (MetaSel (Just Symbol "_mpuTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuUserId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UserId)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuProfileId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProfileId)) (S1 * (MetaSel (Just Symbol "_mpuNonce") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Int))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuPosition") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_mpuPositionSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuPositionCompliment") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuPositionMaxSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_mpuCallSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side)))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuCallPrice") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_mpuCallSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuCallFunds") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuCovered") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "_mpuNextExpireTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuBaseBalance") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_mpuBaseFunding") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuQuoteBalance") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mpuQuoteFunding") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_mpuPrivate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool))))))))

data Activate #

Instances

Show Activate # 
Generic Activate # 

Associated Types

type Rep Activate :: * -> * #

Methods

from :: Activate -> Rep Activate x #

to :: Rep Activate x -> Activate #

FromJSON Activate # 
type Rep Activate # 
type Rep Activate = D1 * (MetaData "Activate" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) (C1 * (MetaCons "Activate" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_activateProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)) ((:*:) * (S1 * (MetaSel (Just Symbol "_activateTime") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) (S1 * (MetaSel (Just Symbol "_activateUserId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UserId)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_activateProfileId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProfileId)) ((:*:) * (S1 * (MetaSel (Just Symbol "_activateOrderId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderId)) (S1 * (MetaSel (Just Symbol "_activateStopType") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * StopType))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_activateSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side)) ((:*:) * (S1 * (MetaSel (Just Symbol "_activateStopPrice") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_activateSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_activateFunds") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "_activateTakerFeeRate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_activatePrivate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)))))))

data GdaxMessage #

Instances

Show GdaxMessage # 
Generic GdaxMessage # 

Associated Types

type Rep GdaxMessage :: * -> * #

FromJSON GdaxMessage # 
type Rep GdaxMessage # 
type Rep GdaxMessage = D1 * (MetaData "GdaxMessage" "Network.GDAX.Types.Feed" "gdax-0.6.0.0-CkzqwqygosFBAXFagY6ZPb" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "GdaxSubscriptions" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Subscriptions))) ((:+:) * (C1 * (MetaCons "GdaxHeartbeat" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Heartbeat))) (C1 * (MetaCons "GdaxTicker" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Ticker))))) ((:+:) * (C1 * (MetaCons "GdaxLevel2Snapshot" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Level2Snapshot))) ((:+:) * (C1 * (MetaCons "GdaxLevel2Update" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Level2Update))) (C1 * (MetaCons "GdaxMatch" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Match)))))) ((:+:) * ((:+:) * (C1 * (MetaCons "GdaxReceived" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Received))) ((:+:) * (C1 * (MetaCons "GdaxOpen" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Open))) (C1 * (MetaCons "GdaxDone" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Done))))) ((:+:) * ((:+:) * (C1 * (MetaCons "GdaxChange" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Change))) (C1 * (MetaCons "GdaxMarginProfileUpdate" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * MarginProfileUpdate)))) ((:+:) * (C1 * (MetaCons "GdaxActivate" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Activate))) (C1 * (MetaCons "GdaxFeedError" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * FeedError)))))))