| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
CoinbasePro.Authenticated.Request
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
Constructors
| CBAuthT | |
Fields | |
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.
data CoinbaseProCredentials Source #
Constructors
| CoinbaseProCredentials | |
Fields | |
Instances
| Eq CoinbaseProCredentials Source # | |
Defined in CoinbasePro.Authenticated.Request Methods (==) :: CoinbaseProCredentials -> CoinbaseProCredentials -> Bool # (/=) :: CoinbaseProCredentials -> CoinbaseProCredentials -> Bool # | |
newtype CBSecretKey Source #
Constructors
| CBSecretKey String |
Instances
| Eq CBSecretKey Source # | |
Defined in CoinbasePro.Authenticated.Request | |
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 #