Changelog for coinbase-pro-0.8.0.0
Version 0.8.0.0
Breaking API changes:
-
Environment
concept has been introduced. This allows the user to specify an endpoint (production, sandbox) in which to query or stream.run
(and associated functions) now take anEnvironment
as the first parameter.runSandbox
and associated functions have been removed.runWithManager
now has different parameter ordering. Signature isrunWithManager :: Manager -> Environment -> ClientM a -> IO a
runCbAuthT
now takes aRunner a
, whereRunner a = ClientM a -> IO a
; allows users to specify an environment in which to run
-
placeOrder
now hasMaybe ClientOrderId
as the first parameter that allows users to assignclient_oid
to submitted orders. Theclient_oid
field is visible on theFull
channel. -
CoinbasePro.WebSocketFeed.subscribeToFeed
has two additional parameters:Environment
Maybe CoinbaseProCredentials
: allows users to authenticate on subscription. SeeUser
-
Moved
UserId
andProfileId
toCoinbasePro.Types
fromCoinbasePro.WebSocketFeed.Channel.Full.Activate
Additional Features:
-
Added
User
channel functionality that allows users to seeuser_id
andprofile_id
on messages that pertain to the subscriber. See documentation for more detailsuser_id
andprofile_id
fields are now parsed fromFull
channel messages if available.
-
CoinbasePro.Types.ClientOrderId
has been introduced to specifyclient_oid
inplaceOrder
API request.client_oid
is now parsed from `CoinbasePro.WebSocketFeed.Channel.Full.Received.
-
CoinbasePro.Authenticated.getOrder
allows users to query status of order -
CoinbasePro.Authenticated.getClientOrder
allows users to query status of order usingclient_oid
Misc
- minor cleanups of unused imports
Version 0.7.2.0
- Upgraded to stack lts-14.17
Version 0.7.1.0
- Fixed broken examples
Version 0.7.0.0
-
Unauthenticated requests are now all in the
ClientM
monad.CoinbasePro.Request.run
is now required to operate in the IO monad.Example:
run (trades (ProductId "BTC-USD")) >>= print
-
Added
run_
,runSandbox
,runSandboxWithManager
inCoinbasePro.Request
-
Added
currencies
,fees
, andtrailingVolume
queries