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

Safe HaskellNone
LanguageHaskell2010

Network.GDAX.Types.Private

Documentation

data Account #

data MarginAccount #

Instances

Show MarginAccount # 
Generic MarginAccount # 

Associated Types

type Rep MarginAccount :: * -> * #

type Rep MarginAccount # 
type Rep MarginAccount = D1 * (MetaData "MarginAccount" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "MarginAccount" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_maccountFundedAmount") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_maccountDefaultAmount") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))))

data NewLimitOrder #

Instances

Show NewLimitOrder # 
Generic NewLimitOrder # 

Associated Types

type Rep NewLimitOrder :: * -> * #

ToJSON NewLimitOrder # 
type Rep NewLimitOrder # 

data NewMarketOrder #

data NewStopOrder #

data MarketDesire #

Constructors

DesireSize Double

Desired amount in commodity (e.g. BTC)

DesireFunds Double

Desired amount in quote currency (e.g. USD)

Instances

data TimeInForce #

data SelfTradePolicy #

Instances

Eq SelfTradePolicy # 
Ord SelfTradePolicy # 
Show SelfTradePolicy # 
Generic SelfTradePolicy # 
ToJSON SelfTradePolicy # 
FromJSON SelfTradePolicy # 
type Rep SelfTradePolicy # 
type Rep SelfTradePolicy = D1 * (MetaData "SelfTradePolicy" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) ((:+:) * ((:+:) * (C1 * (MetaCons "DecreaseOrCancel" PrefixI False) (U1 *)) (C1 * (MetaCons "CancelOldest" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "CancelNewest" PrefixI False) (U1 *)) (C1 * (MetaCons "CancelBoth" PrefixI False) (U1 *))))

data Order #

Instances

Show Order # 

Methods

showsPrec :: Int -> Order -> ShowS #

show :: Order -> String #

showList :: [Order] -> ShowS #

Generic Order # 

Associated Types

type Rep Order :: * -> * #

Methods

from :: Order -> Rep Order x #

to :: Rep Order x -> Order #

FromJSON Order # 
type Rep Order # 
type Rep Order = D1 * (MetaData "Order" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "Order" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_orderId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderId)) ((:*:) * (S1 * (MetaSel (Just Symbol "_orderPrice") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_orderSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_orderProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId)) (S1 * (MetaSel (Just Symbol "_orderSide") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Side))) ((:*:) * (S1 * (MetaSel (Just Symbol "_orderSelfTradePrevention") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * SelfTradePolicy)) (S1 * (MetaSel (Just Symbol "_orderType") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderType))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_orderTimeInForce") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * TimeInForce)) (S1 * (MetaSel (Just Symbol "_orderPostOnly") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_orderCreatedAt") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) (S1 * (MetaSel (Just Symbol "_orderFillFees") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_orderFilledSize") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_orderExecutedValue") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double))) ((:*:) * (S1 * (MetaSel (Just Symbol "_orderStatus") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * OrderStatus)) (S1 * (MetaSel (Just Symbol "_orderSettled") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)))))))

data Fill #

Instances

Show Fill # 

Methods

showsPrec :: Int -> Fill -> ShowS #

show :: Fill -> String #

showList :: [Fill] -> ShowS #

Generic Fill # 

Associated Types

type Rep Fill :: * -> * #

Methods

from :: Fill -> Rep Fill x #

to :: Rep Fill x -> Fill #

FromJSON Fill # 
type Rep Fill # 

data Funding #

Instances

Show Funding # 
Generic Funding # 

Associated Types

type Rep Funding :: * -> * #

Methods

from :: Funding -> Rep Funding x #

to :: Rep Funding x -> Funding #

FromJSON Funding # 
type Rep Funding # 

data MarginTransfer #

Instances

Show MarginTransfer # 
Generic MarginTransfer # 

Associated Types

type Rep MarginTransfer :: * -> * #

FromJSON MarginTransfer # 
type Rep MarginTransfer # 
type Rep MarginTransfer = D1 * (MetaData "MarginTransfer" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "MarginTransfer" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mtCreatedAt") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mtId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * MarginTransferId)) (S1 * (MetaSel (Just Symbol "_mtUserId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UserId)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mtProfileId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProfileId)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mtMarginProfileId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProfileId)) (S1 * (MetaSel (Just Symbol "_mtType") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * MarginType))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mtAmount") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "_mtCurrency") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * CurrencyId)) (S1 * (MetaSel (Just Symbol "_mtAccountId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * AccountId)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mtMarginAccountId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * AccountId)) (S1 * (MetaSel (Just Symbol "_mtMarginProductId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * ProductId))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mtStatus") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * MarginStatus)) (S1 * (MetaSel (Just Symbol "_mtNonce") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Int64)))))))

data Position #

Instances

Show Position # 
Generic Position # 

Associated Types

type Rep Position :: * -> * #

Methods

from :: Position -> Rep Position x #

to :: Rep Position x -> Position #

FromJSON Position # 
type Rep Position # 

data OutstandingFunding #

Instances

data PositionAccount #

data Deposit #

Instances

Show Deposit # 
Generic Deposit # 

Associated Types

type Rep Deposit :: * -> * #

Methods

from :: Deposit -> Rep Deposit x #

to :: Rep Deposit x -> Deposit #

ToJSON Deposit # 
type Rep Deposit # 
type Rep Deposit = D1 * (MetaData "Deposit" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "Deposit" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_depositAmount") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) ((:*:) * (S1 * (MetaSel (Just Symbol "_depositCurrency") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * CurrencyId)) (S1 * (MetaSel (Just Symbol "_depositPaymentMethod") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * PaymentMethodId)))))

data PaymentMethod #

Instances

Show PaymentMethod # 
Generic PaymentMethod # 

Associated Types

type Rep PaymentMethod :: * -> * #

FromJSON PaymentMethod # 
type Rep PaymentMethod # 
type Rep PaymentMethod = D1 * (MetaData "PaymentMethod" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "PaymentMethod" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * PaymentMethodId)) (S1 * (MetaSel (Just Symbol "_pmethType") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * PaymentMethodType))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethName") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethCurrency") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * CurrencyId)) (S1 * (MetaSel (Just Symbol "_pmethPrimaryBuy") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethPrimarySell") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)) ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethAllowBuy") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "_pmethAllowSell") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethAllowDeposit") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)) ((:*:) * (S1 * (MetaSel (Just Symbol "_pmethAllowWithdraw") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "_pmethLimits") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Limits)))))))

data Limit #

Instances

Show Limit # 

Methods

showsPrec :: Int -> Limit -> ShowS #

show :: Limit -> String #

showList :: [Limit] -> ShowS #

Generic Limit # 

Associated Types

type Rep Limit :: * -> * #

Methods

from :: Limit -> Rep Limit x #

to :: Rep Limit x -> Limit #

FromJSON Limit # 
type Rep Limit # 
type Rep Limit = D1 * (MetaData "Limit" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "Limit" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_limitPeriodInDays") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Word)) ((:*:) * (S1 * (MetaSel (Just Symbol "_limitTotal") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * LimitValue)) (S1 * (MetaSel (Just Symbol "_limitRemaining") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * LimitValue)))))

data LimitValue #

Instances

Show LimitValue # 
Generic LimitValue # 

Associated Types

type Rep LimitValue :: * -> * #

FromJSON LimitValue # 
type Rep LimitValue # 
type Rep LimitValue = D1 * (MetaData "LimitValue" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "LimitValue" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lvalAmount") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_lvalCurrency") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * CurrencyId))))

data CoinbaseAccount #

Instances

Show CoinbaseAccount # 
Generic CoinbaseAccount # 
FromJSON CoinbaseAccount # 
type Rep CoinbaseAccount # 

data WireDepositInfo #

Instances

Show WireDepositInfo # 
Generic WireDepositInfo # 
FromJSON WireDepositInfo # 
type Rep WireDepositInfo # 

data Country #

Constructors

Country 

Instances

Show Country # 
Generic Country # 

Associated Types

type Rep Country :: * -> * #

Methods

from :: Country -> Rep Country x #

to :: Rep Country x -> Country #

FromJSON Country # 
type Rep Country # 
type Rep Country = D1 * (MetaData "Country" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "Country" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_countryCode") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_countryName") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * Text))))

data SepaDepositInfo #

Instances

Show SepaDepositInfo # 
Generic SepaDepositInfo # 
FromJSON SepaDepositInfo # 
type Rep SepaDepositInfo # 

data Report #

Instances

Show Report # 
Generic Report # 

Associated Types

type Rep Report :: * -> * #

Methods

from :: Report -> Rep Report x #

to :: Rep Report x -> Report #

FromJSON Report # 
type Rep Report # 

data ReportParams #

Instances

Show ReportParams # 
Generic ReportParams # 

Associated Types

type Rep ReportParams :: * -> * #

FromJSON ReportParams # 
type Rep ReportParams # 
type Rep ReportParams = D1 * (MetaData "ReportParams" "Network.GDAX.Types.Private" "gdax-0.6.0.0-ChZNUseR4NS91FoXMnoY6q" False) (C1 * (MetaCons "ReportParams" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rparamStartDate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime)) (S1 * (MetaSel (Just Symbol "_rparamEndDate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 * UTCTime))))