Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CBAuthT m a = CBAuthT {}
- runCbAuthT :: Runner a -> CoinbaseProCredentials -> CBAuthT ClientM a -> IO a
- runDefCbAuthT :: Environment -> CoinbaseProCredentials -> CBAuthT ClientM a -> IO a
- data CoinbaseProCredentials = CoinbaseProCredentials {}
- newtype CBSecretKey = CBSecretKey String
- type AuthGet a = CBAuthAPI "CBAuth" Get a
- type AuthPost a = CBAuthAPI "CBAuth" Post a
- type AuthDelete a = CBAuthAPI "CBAuth" Delete a
- authRequest :: Method -> RequestPath -> Body -> (AuthenticatedRequest (AuthProtect "CBAuth") -> ClientM b) -> CBAuthT ClientM b
- mkCBAccessSign :: CBSecretKey -> CBAccessTimeStamp -> Method -> RequestPath -> Body -> CBAccessSign
- mkCBAccessTimeStamp :: IO CBAccessTimeStamp
Documentation
Instances
MonadTrans CBAuthT Source # | |
Defined in CoinbasePro.Authenticated.Request | |
Monad m => Monad (CBAuthT m) Source # | |
Functor m => Functor (CBAuthT m) Source # | |
Applicative m => Applicative (CBAuthT m) Source # | |
Defined in CoinbasePro.Authenticated.Request | |
MonadIO m => MonadIO (CBAuthT m) Source # | |
Defined in CoinbasePro.Authenticated.Request | |
MonadThrow m => MonadThrow (CBAuthT m) Source # | |
Defined in CoinbasePro.Authenticated.Request | |
MonadCatch m => MonadCatch (CBAuthT m) Source # | |
MonadMask m => MonadMask (CBAuthT m) Source # | |
Defined in CoinbasePro.Authenticated.Request |
runCbAuthT :: Runner a -> CoinbaseProCredentials -> CBAuthT ClientM a -> IO a Source #
runDefCbAuthT :: Environment -> CoinbaseProCredentials -> CBAuthT ClientM a -> IO a Source #
Sequences ClientM
actions using the same auth credentials
Should be used over runCbAuthT
unless a bespoke Runner
needs to be used.
newtype CBSecretKey Source #
Instances
Eq CBSecretKey Source # | |
Defined in CoinbasePro.Authenticated.Request (==) :: CBSecretKey -> CBSecretKey -> Bool # (/=) :: CBSecretKey -> CBSecretKey -> Bool # |
type AuthDelete a = CBAuthAPI "CBAuth" Delete a Source #
authRequest :: Method -> RequestPath -> Body -> (AuthenticatedRequest (AuthProtect "CBAuth") -> ClientM b) -> CBAuthT ClientM b Source #
mkCBAccessSign :: CBSecretKey -> CBAccessTimeStamp -> Method -> RequestPath -> Body -> CBAccessSign Source #