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

Safe HaskellNone
LanguageHaskell2010

Network.GDAX.Types.Shared

Documentation

newtype UserId #

Constructors

UserId 

Fields

Instances

Eq UserId # 

Methods

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

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

Ord UserId # 
Show UserId # 
IsString UserId # 

Methods

fromString :: String -> UserId #

Generic UserId # 

Associated Types

type Rep UserId :: * -> * #

Methods

from :: UserId -> Rep UserId x #

to :: Rep UserId x -> UserId #

Hashable UserId # 

Methods

hashWithSalt :: Int -> UserId -> Int #

hash :: UserId -> Int #

ToJSON UserId # 
FromJSON UserId # 
type Rep UserId # 
type Rep UserId = D1 * (MetaData "UserId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "UserId" PrefixI True) (S1 * (MetaSel (Just Symbol "unUserId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))

newtype OrderId #

Constructors

OrderId 

Fields

Instances

Eq OrderId # 

Methods

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

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

Ord OrderId # 
Show OrderId # 
Generic OrderId # 

Associated Types

type Rep OrderId :: * -> * #

Methods

from :: OrderId -> Rep OrderId x #

to :: Rep OrderId x -> OrderId #

Hashable OrderId # 

Methods

hashWithSalt :: Int -> OrderId -> Int #

hash :: OrderId -> Int #

ToJSON OrderId # 
FromJSON OrderId # 
type Rep OrderId # 
type Rep OrderId = D1 * (MetaData "OrderId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "OrderId" PrefixI True) (S1 * (MetaSel (Just Symbol "unOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * UUID)))

data OrderType #

Constructors

OrderLimit 
OrderMarket 

Instances

Show OrderType # 
Generic OrderType # 

Associated Types

type Rep OrderType :: * -> * #

Hashable OrderType # 
FromJSON OrderType # 
type Rep OrderType # 
type Rep OrderType = D1 * (MetaData "OrderType" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "OrderLimit" PrefixI False) (U1 *)) (C1 * (MetaCons "OrderMarket" PrefixI False) (U1 *)))

newtype StopType #

Constructors

StopType 

Fields

newtype ProductId #

Constructors

ProductId 

Fields

newtype Sequence #

Constructors

Sequence 

Fields

Instances

Enum Sequence # 
Eq Sequence # 
Ord Sequence # 
Show Sequence # 
Generic Sequence # 

Associated Types

type Rep Sequence :: * -> * #

Methods

from :: Sequence -> Rep Sequence x #

to :: Rep Sequence x -> Sequence #

Hashable Sequence # 

Methods

hashWithSalt :: Int -> Sequence -> Int #

hash :: Sequence -> Int #

ToJSON Sequence # 
FromJSON Sequence # 
type Rep Sequence # 
type Rep Sequence = D1 * (MetaData "Sequence" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "Sequence" PrefixI True) (S1 * (MetaSel (Just Symbol "unSequence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int64)))

newtype TradeId #

Constructors

TradeId 

Fields

Instances

data Side #

Constructors

Buy 
Sell 

Instances

Show Side # 

Methods

showsPrec :: Int -> Side -> ShowS #

show :: Side -> String #

showList :: [Side] -> ShowS #

Generic Side # 

Associated Types

type Rep Side :: * -> * #

Methods

from :: Side -> Rep Side x #

to :: Rep Side x -> Side #

Hashable Side # 

Methods

hashWithSalt :: Int -> Side -> Int #

hash :: Side -> Int #

ToJSON Side # 
FromJSON Side # 
type Rep Side # 
type Rep Side = D1 * (MetaData "Side" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "Buy" PrefixI False) (U1 *)) (C1 * (MetaCons "Sell" PrefixI False) (U1 *)))

newtype CurrencyId #

Constructors

CurrencyId 

Fields

Instances

newtype EntryId #

Constructors

EntryId 

Fields

Instances

Eq EntryId # 

Methods

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

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

Ord EntryId # 
Show EntryId # 
Generic EntryId # 

Associated Types

type Rep EntryId :: * -> * #

Methods

from :: EntryId -> Rep EntryId x #

to :: Rep EntryId x -> EntryId #

Hashable EntryId # 

Methods

hashWithSalt :: Int -> EntryId -> Int #

hash :: EntryId -> Int #

ToJSON EntryId # 
FromJSON EntryId # 
type Rep EntryId # 
type Rep EntryId = D1 * (MetaData "EntryId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "EntryId" PrefixI True) (S1 * (MetaSel (Just Symbol "unEntryId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int64)))

data EntryType #

Instances

Eq EntryType # 
Show EntryType # 
Generic EntryType # 

Associated Types

type Rep EntryType :: * -> * #

Hashable EntryType # 
FromJSON EntryType # 
type Rep EntryType # 
type Rep EntryType = D1 * (MetaData "EntryType" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "EntryMatch" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "EntryFee" PrefixI False) (U1 *)) (C1 * (MetaCons "EntryTransfer" PrefixI False) (U1 *))))

newtype TransferId #

Constructors

TransferId 

Fields

newtype HoldId #

Constructors

HoldId 

Fields

Instances

Eq HoldId # 

Methods

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

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

Ord HoldId # 
Show HoldId # 
Generic HoldId # 

Associated Types

type Rep HoldId :: * -> * #

Methods

from :: HoldId -> Rep HoldId x #

to :: Rep HoldId x -> HoldId #

Hashable HoldId # 

Methods

hashWithSalt :: Int -> HoldId -> Int #

hash :: HoldId -> Int #

ToJSON HoldId # 
FromJSON HoldId # 
type Rep HoldId # 
type Rep HoldId = D1 * (MetaData "HoldId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "HoldId" PrefixI True) (S1 * (MetaSel (Just Symbol "unHoldId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * UUID)))

newtype ClientOrderId #

Constructors

ClientOrderId 

Instances

Eq ClientOrderId # 
Ord ClientOrderId # 
Show ClientOrderId # 
Generic ClientOrderId # 

Associated Types

type Rep ClientOrderId :: * -> * #

Hashable ClientOrderId # 
ToJSON ClientOrderId # 
FromJSON ClientOrderId # 
type Rep ClientOrderId # 
type Rep ClientOrderId = D1 * (MetaData "ClientOrderId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "ClientOrderId" PrefixI True) (S1 * (MetaSel (Just Symbol "unClientOrderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * UUID)))

data OrderStatus #

Instances

Show OrderStatus # 
Generic OrderStatus # 

Associated Types

type Rep OrderStatus :: * -> * #

Hashable OrderStatus # 
ToJSON OrderStatus # 
FromJSON OrderStatus # 
type Rep OrderStatus # 
type Rep OrderStatus = D1 * (MetaData "OrderStatus" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * ((:+:) * (C1 * (MetaCons "OrderOpen" PrefixI False) (U1 *)) (C1 * (MetaCons "OrderPending" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "OrderActive" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "OrderDone" PrefixI False) (U1 *)) (C1 * (MetaCons "OrderSettled" PrefixI False) (U1 *)))))

data Liquidity #

Instances

Show Liquidity # 
Generic Liquidity # 

Associated Types

type Rep Liquidity :: * -> * #

Hashable Liquidity # 
ToJSON Liquidity # 
FromJSON Liquidity # 
type Rep Liquidity # 
type Rep Liquidity = D1 * (MetaData "Liquidity" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "LiquidityMaker" PrefixI False) (U1 *)) (C1 * (MetaCons "LiquidityTaker" PrefixI False) (U1 *)))

data MarginType #

Instances

Show MarginType # 
Generic MarginType # 

Associated Types

type Rep MarginType :: * -> * #

Hashable MarginType # 
ToJSON MarginType # 
FromJSON MarginType # 
type Rep MarginType # 
type Rep MarginType = D1 * (MetaData "MarginType" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "MarginDeposit" PrefixI False) (U1 *)) (C1 * (MetaCons "MarginWithdraw" PrefixI False) (U1 *)))

newtype MarginTransferId #

Constructors

MarginTransferId 

Instances

Eq MarginTransferId # 
Ord MarginTransferId # 
Show MarginTransferId # 
Generic MarginTransferId # 
Hashable MarginTransferId # 
ToJSON MarginTransferId # 
FromJSON MarginTransferId # 
type Rep MarginTransferId # 
type Rep MarginTransferId = D1 * (MetaData "MarginTransferId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "MarginTransferId" PrefixI True) (S1 * (MetaSel (Just Symbol "unMarginTransferId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * UUID)))

data MarginStatus #

Constructors

MarginCompleted 

data PositionType #

Instances

newtype PaymentMethodId #

Constructors

PaymentMethodId 

Instances

Eq PaymentMethodId # 
Ord PaymentMethodId # 
Show PaymentMethodId # 
Generic PaymentMethodId # 
Hashable PaymentMethodId # 
ToJSON PaymentMethodId # 
FromJSON PaymentMethodId # 
type Rep PaymentMethodId # 
type Rep PaymentMethodId = D1 * (MetaData "PaymentMethodId" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" True) (C1 * (MetaCons "PaymentMethodId" PrefixI True) (S1 * (MetaSel (Just Symbol "unPaymentMethodId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * UUID)))

newtype WithdrawId #

Constructors

WithdrawId 

Fields

data PaymentMethodType #

Instances

Eq PaymentMethodType # 
Ord PaymentMethodType # 
Show PaymentMethodType # 
Generic PaymentMethodType # 
Hashable PaymentMethodType # 
ToJSON PaymentMethodType # 
FromJSON PaymentMethodType # 
type Rep PaymentMethodType # 
type Rep PaymentMethodType = D1 * (MetaData "PaymentMethodType" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "MethodFiatAccount" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "MethodBankWire" PrefixI False) (U1 *)) (C1 * (MetaCons "MethodACHBankAccount" PrefixI False) (U1 *))))

newtype ReportId #

Constructors

ReportId 

Fields

data ReportType #

Constructors

ReportFills 
ReportAccount 

Instances

Show ReportType # 
Generic ReportType # 

Associated Types

type Rep ReportType :: * -> * #

Hashable ReportType # 
ToJSON ReportType # 
FromJSON ReportType # 
type Rep ReportType # 
type Rep ReportType = D1 * (MetaData "ReportType" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "ReportFills" PrefixI False) (U1 *)) (C1 * (MetaCons "ReportAccount" PrefixI False) (U1 *)))

data ReportStatus #

Instances

Show ReportStatus # 
Generic ReportStatus # 

Associated Types

type Rep ReportStatus :: * -> * #

Hashable ReportStatus # 
ToJSON ReportStatus # 
FromJSON ReportStatus # 
type Rep ReportStatus # 
type Rep ReportStatus = D1 * (MetaData "ReportStatus" "Network.GDAX.Types.Shared" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * (C1 * (MetaCons "ReportPending" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ReportCreating" PrefixI False) (U1 *)) (C1 * (MetaCons "ReportReady" PrefixI False) (U1 *))))