Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type RequestPath = String
- type Body = String
- type CBGet a = UserAgentHeader :> Get '[JSON] a
- type CBRequest a = UserAgent -> ClientM a
- run :: ClientM a -> IO a
- run_ :: ClientM a -> IO ()
- runWithManager :: Manager -> ClientM a -> IO a
- runSandbox :: ClientM a -> IO a
- runSandbox_ :: ClientM a -> IO ()
- runSandboxWithManager :: Manager -> ClientM a -> IO a
Documentation
type RequestPath = String Source #
Production
run :: ClientM a -> IO a Source #
Runs a coinbase pro HTTPS request and returns the result a
run products >>= print
runWithManager :: Manager -> ClientM a -> IO a Source #
Allows the user to use their own ManagerSettings
with run
do $ mgr <- newManager tlsManagerSettings prds <- runWithManager mgr products print prds
Sandbox
runSandbox :: ClientM a -> IO a Source #
Runs a coinbase pro HTTPS request in sandbox and returns the result a
run products >>= print
runSandbox_ :: ClientM a -> IO () Source #
Same as runSandbox
, except uses '()' instead of a type a
runSandboxWithManager :: Manager -> ClientM a -> IO a Source #
Allows the user to use their own ManagerSettings
do $ mgr <- newManager tlsManagerSettings prds <- runSandboxWithManager mgr products print prds