packages feed

bittrex 0.3.0.0 → 0.4.0.0

raw patch · 4 files changed

+171/−81 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Bittrex.Types: [marketHistoryFillType] :: MarketHistory -> Text
- Bittrex.Types: [marketHistoryId] :: MarketHistory -> Integer
- Bittrex.Types: [marketHistoryOrderType] :: MarketHistory -> Text
- Bittrex.Types: [marketHistoryPrice] :: MarketHistory -> Double
- Bittrex.Types: [marketHistoryQuantity] :: MarketHistory -> Double
- Bittrex.Types: [marketHistoryTimeStamp] :: MarketHistory -> Time
- Bittrex.Types: [marketHistoryTotal] :: MarketHistory -> Double
- Bittrex.Types: [mhAsk] :: MarketSummary -> Scientific
- Bittrex.Types: [mhBaseVolume] :: MarketSummary -> Scientific
- Bittrex.Types: [mhBid] :: MarketSummary -> Scientific
- Bittrex.Types: [mhCreated] :: MarketSummary -> Text
- Bittrex.Types: [mhDisplayMarketName] :: MarketSummary -> Maybe Text
- Bittrex.Types: [mhHigh] :: MarketSummary -> Scientific
- Bittrex.Types: [mhLast] :: MarketSummary -> Scientific
- Bittrex.Types: [mhLow] :: MarketSummary -> Scientific
- Bittrex.Types: [mhMarketName] :: MarketSummary -> MarketName
- Bittrex.Types: [mhOpenBuyOrders] :: MarketSummary -> Scientific
- Bittrex.Types: [mhOpenSellOrders] :: MarketSummary -> Scientific
- Bittrex.Types: [mhPrevDay] :: MarketSummary -> Scientific
- Bittrex.Types: [mhVolume] :: MarketSummary -> Scientific
- Bittrex.Types: [oOpen] :: Order -> Text
- Bittrex.Types: [oSentinal] :: Order -> Text
- Bittrex.Types: [oTimeStamp] :: Order -> Time
- Bittrex.Types: type Quantity = Scientific
- Bittrex.Types: type Rate = Scientific
+ Bittrex.Types: Amount :: (Fixed E8) -> Amount
+ Bittrex.Types: Ask :: (Fixed E8) -> Ask
+ Bittrex.Types: Available :: (Fixed E8) -> Available
+ Bittrex.Types: Balance' :: (Fixed E8) -> Balance'
+ Bittrex.Types: BaseVolume :: (Fixed E8) -> BaseVolume
+ Bittrex.Types: Bid :: (Fixed E8) -> Bid
+ Bittrex.Types: Commission :: (Fixed E8) -> Commission
+ Bittrex.Types: CommissionPaid :: (Fixed E8) -> CommissionPaid
+ Bittrex.Types: CommissionReserveRemaining :: (Fixed E8) -> CommissionReserveRemaining
+ Bittrex.Types: CommissionReserved :: (Fixed E8) -> CommissionReserved
+ Bittrex.Types: High :: (Fixed E8) -> High
+ Bittrex.Types: Last :: (Fixed E8) -> Last
+ Bittrex.Types: Limit :: (Fixed E8) -> Limit
+ Bittrex.Types: Low :: (Fixed E8) -> Low
+ Bittrex.Types: MinTradeSize :: (Fixed E8) -> MinTradeSize
+ Bittrex.Types: Pending :: (Fixed E8) -> Pending
+ Bittrex.Types: PrevDay :: (Fixed E8) -> PrevDay
+ Bittrex.Types: Price :: (Fixed E8) -> Price
+ Bittrex.Types: Quantity :: (Fixed E8) -> Quantity
+ Bittrex.Types: QuantityRemaining :: (Fixed E8) -> QuantityRemaining
+ Bittrex.Types: Rate :: (Fixed E8) -> Rate
+ Bittrex.Types: ReserveRemaining :: (Fixed E8) -> ReserveRemaining
+ Bittrex.Types: Reserved :: (Fixed E8) -> Reserved
+ Bittrex.Types: Total :: (Fixed E8) -> Total
+ Bittrex.Types: TxCost :: (Fixed E8) -> TxCost
+ Bittrex.Types: TxFee :: (Fixed E8) -> TxFee
+ Bittrex.Types: Volume :: (Fixed E8) -> Volume
+ Bittrex.Types: [mhFillType] :: MarketHistory -> Text
+ Bittrex.Types: [mhId] :: MarketHistory -> Integer
+ Bittrex.Types: [mhOrderType] :: MarketHistory -> Text
+ Bittrex.Types: [mhPrice] :: MarketHistory -> Price
+ Bittrex.Types: [mhQuantity] :: MarketHistory -> Quantity
+ Bittrex.Types: [mhTotal] :: MarketHistory -> Total
+ Bittrex.Types: [msAsk] :: MarketSummary -> Ask
+ Bittrex.Types: [msBaseVolume] :: MarketSummary -> BaseVolume
+ Bittrex.Types: [msBid] :: MarketSummary -> Bid
+ Bittrex.Types: [msCreated] :: MarketSummary -> Time
+ Bittrex.Types: [msDisplayMarketName] :: MarketSummary -> Maybe Text
+ Bittrex.Types: [msHigh] :: MarketSummary -> High
+ Bittrex.Types: [msLast] :: MarketSummary -> Last
+ Bittrex.Types: [msLow] :: MarketSummary -> Low
+ Bittrex.Types: [msMarketName] :: MarketSummary -> MarketName
+ Bittrex.Types: [msOpenBuyOrders] :: MarketSummary -> Int
+ Bittrex.Types: [msOpenSellOrders] :: MarketSummary -> Int
+ Bittrex.Types: [msPrevDay] :: MarketSummary -> PrevDay
+ Bittrex.Types: [msTimeStamp] :: MarketSummary -> Time
+ Bittrex.Types: [msVolume] :: MarketSummary -> Volume
+ Bittrex.Types: [oClosed] :: Order -> Maybe Time
+ Bittrex.Types: [oConditionTarget] :: Order -> Maybe Text
+ Bittrex.Types: [oOpened] :: Order -> Time
+ Bittrex.Types: [oSentinel] :: Order -> Text
+ Bittrex.Types: [ohConditionTarget] :: OrderHistory -> Maybe Text
+ Bittrex.Types: [ohCondition] :: OrderHistory -> Text
+ Bittrex.Types: data E8
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Amount
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Ask
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Available
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Balance'
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.BaseVolume
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Bid
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Commission
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.CommissionPaid
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.CommissionReserveRemaining
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.CommissionReserved
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.High
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Last
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Limit
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Low
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.MinTradeSize
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Pending
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.PrevDay
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Price
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Quantity
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.QuantityRemaining
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Rate
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.ReserveRemaining
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Reserved
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Total
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.TxCost
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.TxFee
+ Bittrex.Types: instance Data.Aeson.Types.FromJSON.FromJSON Bittrex.Types.Volume
+ Bittrex.Types: instance Data.Fixed.HasResolution Bittrex.Types.E8
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Amount
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Ask
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Available
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Balance'
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.BaseVolume
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Bid
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Commission
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.CommissionPaid
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.CommissionReserveRemaining
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.CommissionReserved
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.High
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Last
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Limit
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Low
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.MinTradeSize
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Pending
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.PrevDay
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Price
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Quantity
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.QuantityRemaining
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Rate
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.ReserveRemaining
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Reserved
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Total
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.TxCost
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.TxFee
+ Bittrex.Types: instance GHC.Classes.Eq Bittrex.Types.Volume
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Amount
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Ask
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Available
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Balance'
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.BaseVolume
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Bid
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Commission
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.CommissionPaid
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.CommissionReserveRemaining
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.CommissionReserved
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.High
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Last
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Limit
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Low
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.MinTradeSize
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Pending
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.PrevDay
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Price
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Quantity
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.QuantityRemaining
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Rate
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.ReserveRemaining
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Reserved
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Total
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.TxCost
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.TxFee
+ Bittrex.Types: instance GHC.Num.Num Bittrex.Types.Volume
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Amount
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Ask
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Available
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Balance'
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.BaseVolume
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Bid
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Commission
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.CommissionPaid
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.CommissionReserveRemaining
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.CommissionReserved
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.High
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Last
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Limit
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Low
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.MinTradeSize
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Pending
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.PrevDay
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Price
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Quantity
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.QuantityRemaining
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Rate
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.ReserveRemaining
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Reserved
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Total
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.TxCost
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.TxFee
+ Bittrex.Types: instance GHC.Show.Show Bittrex.Types.Volume
+ Bittrex.Types: newtype Amount
+ Bittrex.Types: newtype Ask
+ Bittrex.Types: newtype Available
+ Bittrex.Types: newtype Balance'
+ Bittrex.Types: newtype BaseVolume
+ Bittrex.Types: newtype Bid
+ Bittrex.Types: newtype Commission
+ Bittrex.Types: newtype CommissionPaid
+ Bittrex.Types: newtype CommissionReserveRemaining
+ Bittrex.Types: newtype CommissionReserved
+ Bittrex.Types: newtype High
+ Bittrex.Types: newtype Last
+ Bittrex.Types: newtype Limit
+ Bittrex.Types: newtype Low
+ Bittrex.Types: newtype MinTradeSize
+ Bittrex.Types: newtype Pending
+ Bittrex.Types: newtype PrevDay
+ Bittrex.Types: newtype Price
+ Bittrex.Types: newtype Quantity
+ Bittrex.Types: newtype QuantityRemaining
+ Bittrex.Types: newtype Rate
+ Bittrex.Types: newtype ReserveRemaining
+ Bittrex.Types: newtype Reserved
+ Bittrex.Types: newtype Total
+ Bittrex.Types: newtype TxCost
+ Bittrex.Types: newtype TxFee
+ Bittrex.Types: newtype Volume
- Bittrex.Types: Balance :: Text -> Scientific -> Scientific -> Scientific -> Text -> Maybe Text -> Balance
+ Bittrex.Types: Balance :: Text -> Balance' -> Available -> Pending -> Text -> Maybe Text -> Balance
- Bittrex.Types: Currency :: Text -> Text -> Int -> Double -> Bool -> Text -> Maybe Text -> Currency
+ Bittrex.Types: Currency :: Text -> Text -> Int -> TxFee -> Bool -> Text -> Maybe Text -> Currency
- Bittrex.Types: Market :: Text -> Text -> Text -> Text -> Double -> Text -> Bool -> Text -> Market
+ Bittrex.Types: Market :: Text -> Text -> Text -> Text -> MinTradeSize -> MarketName -> Bool -> Time -> Market
- Bittrex.Types: MarketHistory :: Integer -> Time -> Double -> Double -> Double -> Text -> Text -> MarketHistory
+ Bittrex.Types: MarketHistory :: Integer -> Time -> Quantity -> Price -> Total -> Text -> Text -> MarketHistory
- Bittrex.Types: MarketSummary :: MarketName -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Time -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Text -> Maybe Text -> MarketSummary
+ Bittrex.Types: MarketSummary :: MarketName -> High -> Low -> Volume -> Last -> BaseVolume -> Time -> Bid -> Ask -> Int -> Int -> PrevDay -> Time -> Maybe Text -> MarketSummary
- Bittrex.Types: OpenOrder :: Maybe Text -> Text -> Text -> OrderType -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Maybe Scientific -> Text -> Maybe Text -> Bool -> Bool -> Bool -> Maybe Text -> Maybe Text -> OpenOrder
+ Bittrex.Types: OpenOrder :: Maybe Text -> Text -> Text -> OrderType -> Quantity -> QuantityRemaining -> Limit -> CommissionPaid -> Price -> Maybe Price -> Time -> Maybe Time -> Bool -> Bool -> Bool -> Maybe Text -> Maybe Text -> OpenOrder
- Bittrex.Types: Order :: Maybe Text -> Text -> Text -> OrderType -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Maybe Scientific -> Text -> Bool -> Text -> Time -> Scientific -> Bool -> Bool -> Bool -> Text -> Order
+ Bittrex.Types: Order :: Maybe Text -> Text -> Text -> OrderType -> Quantity -> QuantityRemaining -> Limit -> Reserved -> ReserveRemaining -> CommissionReserved -> CommissionReserveRemaining -> CommissionPaid -> Price -> Maybe Price -> Time -> Maybe Time -> Bool -> Text -> Commission -> Bool -> Bool -> Bool -> Text -> Maybe Text -> Order
- Bittrex.Types: OrderBookEntry :: Double -> Double -> OrderBookEntry
+ Bittrex.Types: OrderBookEntry :: Quantity -> Rate -> OrderBookEntry
- Bittrex.Types: OrderHistory :: Text -> Text -> Time -> OrderType -> Scientific -> Scientific -> Scientific -> Scientific -> Scientific -> Maybe Scientific -> Bool -> Bool -> OrderHistory
+ Bittrex.Types: OrderHistory :: Text -> Text -> Time -> OrderType -> Limit -> Quantity -> QuantityRemaining -> Commission -> Price -> Maybe Price -> Bool -> Text -> Maybe Text -> Bool -> OrderHistory
- Bittrex.Types: Ticker :: Double -> Double -> Double -> Ticker
+ Bittrex.Types: Ticker :: Bid -> Ask -> Last -> Ticker
- Bittrex.Types: WithdrawalHistory :: Text -> Text -> Scientific -> Text -> Text -> Bool -> Bool -> Scientific -> Text -> Bool -> Bool -> WithdrawalHistory
+ Bittrex.Types: WithdrawalHistory :: Text -> Text -> Amount -> Text -> Text -> Bool -> Bool -> Scientific -> Text -> Bool -> Bool -> WithdrawalHistory
- Bittrex.Types: [ask] :: Ticker -> Double
+ Bittrex.Types: [ask] :: Ticker -> Ask
- Bittrex.Types: [bAvailable] :: Balance -> Scientific
+ Bittrex.Types: [bAvailable] :: Balance -> Available
- Bittrex.Types: [bBalance] :: Balance -> Scientific
+ Bittrex.Types: [bBalance] :: Balance -> Balance'
- Bittrex.Types: [bPending] :: Balance -> Scientific
+ Bittrex.Types: [bPending] :: Balance -> Pending
- Bittrex.Types: [bid] :: Ticker -> Double
+ Bittrex.Types: [bid] :: Ticker -> Bid
- Bittrex.Types: [created] :: Market -> Text
+ Bittrex.Types: [created] :: Market -> Time
- Bittrex.Types: [last] :: Ticker -> Double
+ Bittrex.Types: [last] :: Ticker -> Last
- Bittrex.Types: [marketName] :: Market -> Text
+ Bittrex.Types: [marketName] :: Market -> MarketName
- Bittrex.Types: [mhTimeStamp] :: MarketSummary -> Time
+ Bittrex.Types: [mhTimeStamp] :: MarketHistory -> Time
- Bittrex.Types: [minTradeSize] :: Market -> Double
+ Bittrex.Types: [minTradeSize] :: Market -> MinTradeSize
- Bittrex.Types: [oCommissionPaid] :: Order -> Scientific
+ Bittrex.Types: [oCommissionPaid] :: Order -> CommissionPaid
- Bittrex.Types: [oCommissionReserveRemaining] :: Order -> Scientific
+ Bittrex.Types: [oCommissionReserveRemaining] :: Order -> CommissionReserveRemaining
- Bittrex.Types: [oCommissionReserved] :: Order -> Scientific
+ Bittrex.Types: [oCommissionReserved] :: Order -> CommissionReserved
- Bittrex.Types: [oCommission] :: Order -> Scientific
+ Bittrex.Types: [oCommission] :: Order -> Commission
- Bittrex.Types: [oLimit] :: Order -> Scientific
+ Bittrex.Types: [oLimit] :: Order -> Limit
- Bittrex.Types: [oPricePerUnit] :: Order -> Maybe Scientific
+ Bittrex.Types: [oPricePerUnit] :: Order -> Maybe Price
- Bittrex.Types: [oPrice] :: Order -> Scientific
+ Bittrex.Types: [oPrice] :: Order -> Price
- Bittrex.Types: [oQuantityRemaining] :: Order -> Scientific
+ Bittrex.Types: [oQuantityRemaining] :: Order -> QuantityRemaining
- Bittrex.Types: [oQuantity] :: Order -> Scientific
+ Bittrex.Types: [oQuantity] :: Order -> Quantity
- Bittrex.Types: [oReservedRemaining] :: Order -> Scientific
+ Bittrex.Types: [oReservedRemaining] :: Order -> ReserveRemaining
- Bittrex.Types: [oReserved] :: Order -> Scientific
+ Bittrex.Types: [oReserved] :: Order -> Reserved
- Bittrex.Types: [ohCommission] :: OrderHistory -> Scientific
+ Bittrex.Types: [ohCommission] :: OrderHistory -> Commission
- Bittrex.Types: [ohLimit] :: OrderHistory -> Scientific
+ Bittrex.Types: [ohLimit] :: OrderHistory -> Limit
- Bittrex.Types: [ohPricePerUnit] :: OrderHistory -> Maybe Scientific
+ Bittrex.Types: [ohPricePerUnit] :: OrderHistory -> Maybe Price
- Bittrex.Types: [ohPrice] :: OrderHistory -> Scientific
+ Bittrex.Types: [ohPrice] :: OrderHistory -> Price
- Bittrex.Types: [ohQuantityRemaining] :: OrderHistory -> Scientific
+ Bittrex.Types: [ohQuantityRemaining] :: OrderHistory -> QuantityRemaining
- Bittrex.Types: [ohQuantity] :: OrderHistory -> Scientific
+ Bittrex.Types: [ohQuantity] :: OrderHistory -> Quantity
- Bittrex.Types: [ooClosed] :: OpenOrder -> Maybe Text
+ Bittrex.Types: [ooClosed] :: OpenOrder -> Maybe Time
- Bittrex.Types: [ooCommissionPaid] :: OpenOrder -> Scientific
+ Bittrex.Types: [ooCommissionPaid] :: OpenOrder -> CommissionPaid
- Bittrex.Types: [ooLimit] :: OpenOrder -> Scientific
+ Bittrex.Types: [ooLimit] :: OpenOrder -> Limit
- Bittrex.Types: [ooOpened] :: OpenOrder -> Text
+ Bittrex.Types: [ooOpened] :: OpenOrder -> Time
- Bittrex.Types: [ooPricePerUnit] :: OpenOrder -> Maybe Scientific
+ Bittrex.Types: [ooPricePerUnit] :: OpenOrder -> Maybe Price
- Bittrex.Types: [ooPrice] :: OpenOrder -> Scientific
+ Bittrex.Types: [ooPrice] :: OpenOrder -> Price
- Bittrex.Types: [ooQuantityRemaining] :: OpenOrder -> Scientific
+ Bittrex.Types: [ooQuantityRemaining] :: OpenOrder -> QuantityRemaining
- Bittrex.Types: [ooQuantity] :: OpenOrder -> Scientific
+ Bittrex.Types: [ooQuantity] :: OpenOrder -> Quantity
- Bittrex.Types: [quantity] :: OrderBookEntry -> Double
+ Bittrex.Types: [quantity] :: OrderBookEntry -> Quantity
- Bittrex.Types: [rate] :: OrderBookEntry -> Double
+ Bittrex.Types: [rate] :: OrderBookEntry -> Rate
- Bittrex.Types: [txFee] :: Currency -> Double
+ Bittrex.Types: [txFee] :: Currency -> TxFee
- Bittrex.Types: [whAmount] :: WithdrawalHistory -> Scientific
+ Bittrex.Types: [whAmount] :: WithdrawalHistory -> Amount

Files

bittrex.cabal view
@@ -1,5 +1,5 @@ name:                bittrex-version:             0.3.0.0+version:             0.4.0.0 synopsis:            API bindings to bittrex.com description:         Haskell bindings to the Bittrex exchange homepage:            https://github.com/dmjio/bittrex@@ -17,7 +17,7 @@   main-is: Main.hs   hs-source-dirs: example   default-language: Haskell2010-  build-depends: base, bittrex+  build-depends: base, bittrex, text  library   exposed-modules:     Bittrex
example/Main.hs view
@@ -1,7 +1,9 @@ module Main where -import Bittrex-import Control.Monad+import           Bittrex+import           Control.Monad+import           Data.Text     (Text)+import qualified Data.Text.IO  as T  main :: IO () main = do@@ -11,8 +13,7 @@   -- Public Usage   putStrLn "Markets"   Right ms <- getMarkets-  forM_ ms $ \m ->-    print (marketName m)+  forM_ ms (print . marketName)    putStrLn "Currencies"   Right cs <- getCurrencies
src/Bittrex/API.hs view
@@ -154,8 +154,8 @@     , keys      = keys     , apiType   = MarketAPI     , qParams   = [ ("market", camelToDash $ show market )-                  , ("quantity", formatScientific Fixed Nothing quantity )-                  , ("rate", formatScientific Fixed Nothing rate )+                  , ("quantity", show quantity )+                  , ("rate", show rate )                   ]     } @@ -173,8 +173,8 @@     , keys      = keys     , apiType   = MarketAPI     , qParams   = [ ("market", camelToDash $ show market )-                  , ("quantity", formatScientific Fixed Nothing quantity )-                  , ("rate", formatScientific Fixed Nothing rate )+                  , ("quantity", show quantity )+                  , ("rate", show rate )                   ]     } @@ -286,7 +286,7 @@     , keys      = keys     , apiType   = AccountAPI     , qParams   = [ ("currency", T.unpack currency )-                  , ("quantity", formatScientific Fixed Nothing quantity )+                  , ("quantity", show quantity )                   , ("address", address )                   ] <> [ ("paymentid", show p )                        | Just p <- pure payment
src/Bittrex/Types.hs view
@@ -1,5 +1,6 @@-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE DeriveGeneric     #-}+{-# LANGUAGE OverloadedStrings          #-}+{-# LANGUAGE DeriveGeneric              #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-} module Bittrex.Types where  import           Bittrex.Util         (parse)@@ -11,12 +12,17 @@ import           Data.Scientific import           Data.Text            (Text) import qualified Data.Text            as T+import           Data.Fixed import           Data.Time import           GHC.Generics import           Text.Read            (readMaybe) +data E8++instance HasResolution E8 where+  resolution _ = 10^8+ type Params = [(String,String)]-type Rate = Scientific  data APIType   = PublicAPI@@ -341,11 +347,86 @@       Nothing -> error $ "Couldn't parse MarketName: " ++ T.unpack s       Just k -> pure k +newtype Bid = Bid (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Ask = Ask (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Last = Last (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype High = High (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Low = Low (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Volume = Volume (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype BaseVolume = BaseVolume (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype PrevDay = PrevDay (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Quantity = Quantity (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Rate = Rate (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Price = Price (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Total = Total (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype QuantityRemaining = QuantityRemaining (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Limit = Limit (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype CommissionPaid = CommissionPaid (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Balance' = Balance' (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Available = Available (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Pending = Pending (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Reserved = Reserved (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype ReserveRemaining = ReserveRemaining (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype CommissionReserved = CommissionReserved (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype CommissionReserveRemaining = CommissionReserveRemaining (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype TxCost = TxCost (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Amount = Amount (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype Commission = Commission (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)+ data Ticker   = Ticker-  { bid :: Double-  , ask :: Double-  , last :: Double+  { bid :: Bid+  , ask :: Ask+  , last :: Last   } deriving (Generic, Show)  instance FromJSON Ticker where@@ -354,16 +435,22 @@            <*> o .: "Ask"            <*> o .: "Last" +newtype MinTradeSize = MinTradeSize (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)++newtype TxFee = TxFee (Fixed E8)+  deriving (Show, Eq, Num, FromJSON)+ data Market   = Market   { marketCurrency :: Text   , baseCurrency :: Text   , marketCurrencyLong :: Text   , baseCurrencyLong :: Text-  , minTradeSize :: Double-  , marketName :: Text+  , minTradeSize :: MinTradeSize+  , marketName :: MarketName   , isActive :: Bool-  , created :: Text+  , created :: Time   } deriving (Show, Eq)  instance FromJSON Market where@@ -382,7 +469,7 @@   { currency :: Text   , currencyLong :: Text   , minConfirmation :: Int-  , txFee :: Double+  , txFee :: TxFee   , currencyIsActive :: Bool   , coinType :: Text   , baseAddress :: Maybe Text@@ -401,8 +488,8 @@  data OrderBookEntry   = OrderBookEntry-  { quantity :: Double-  , rate :: Double+  { quantity :: Quantity+  , rate :: Rate   } deriving (Show, Eq)  instance FromJSON OrderBook where@@ -423,13 +510,13 @@  data MarketHistory   = MarketHistory-  { marketHistoryId :: Integer-  , marketHistoryTimeStamp :: Time-  , marketHistoryQuantity :: Double-  , marketHistoryPrice :: Double-  , marketHistoryTotal :: Double-  , marketHistoryFillType :: Text-  , marketHistoryOrderType :: Text+  { mhId :: Integer+  , mhTimeStamp :: Time+  , mhQuantity :: Quantity+  , mhPrice :: Price+  , mhTotal :: Total+  , mhFillType :: Text+  , mhOrderType :: Text   } deriving (Show, Eq)  instance FromJSON MarketHistory where@@ -442,21 +529,20 @@                   <*> o .: "FillType"                   <*> o .: "OrderType" -type Quantity = Scientific-type Address = String-type PaymentId = String- -- | API Keys data APIKeys = APIKeys   { apiKey :: String   , secretKey :: String   } deriving (Show, Eq) +type Address = String+type PaymentId = String+ data WithdrawalHistory   = WithdrawalHistory   { whPaymentUuid :: Text   , whCurrency :: Text-  , whAmount :: Scientific+  , whAmount :: Amount   , whAddress :: Text   , whOpened :: Text   , whAuthorized :: Bool@@ -511,9 +597,9 @@ data Balance   = Balance   { bCurrency :: Text-  , bBalance :: Scientific-  , bAvailable :: Scientific-  , bPending :: Scientific+  , bBalance :: Balance'+  , bAvailable :: Available+  , bPending :: Pending   , bCryptoAddress :: Text   , bUuid :: Maybe Text   } deriving (Show, Eq, Generic)@@ -538,14 +624,14 @@   , ooOrderUuid :: Text   , ooExchange :: Text   , ooOrderType :: OrderType-  , ooQuantity :: Scientific-  , ooQuantityRemaining :: Scientific-  , ooLimit :: Scientific-  , ooCommissionPaid :: Scientific-  , ooPrice :: Scientific-  , ooPricePerUnit :: Maybe Scientific-  , ooOpened :: Text-  , ooClosed :: Maybe Text+  , ooQuantity :: Quantity+  , ooQuantityRemaining :: QuantityRemaining+  , ooLimit :: Limit+  , ooCommissionPaid :: CommissionPaid+  , ooPrice :: Price+  , ooPricePerUnit :: Maybe Price+  , ooOpened :: Time+  , ooClosed :: Maybe Time   , ooCancelInitiated :: Bool   , ooImmediateOrCancel :: Bool   , ooIsConditional :: Bool@@ -564,13 +650,15 @@     , ohExchange :: Text     , ohTimeStamp :: Time     , ohOrderType :: OrderType-    , ohLimit :: Scientific-    , ohQuantity :: Scientific-    , ohQuantityRemaining :: Scientific-    , ohCommission :: Scientific-    , ohPrice :: Scientific-    , ohPricePerUnit :: Maybe Scientific+    , ohLimit :: Limit+    , ohQuantity :: Quantity+    , ohQuantityRemaining :: QuantityRemaining+    , ohCommission :: Commission+    , ohPrice :: Price+    , ohPricePerUnit :: Maybe Price     , ohIsConditional :: Bool+    , ohCondition :: Text+    , ohConditionTarget :: Maybe Text     , ohImmediateOrCancel :: Bool     } deriving (Show, Eq, Generic) @@ -585,25 +673,26 @@     , oOrderUuid :: Text     , oExchange :: Text     , oOrderType :: OrderType-    , oQuantity :: Scientific-    , oQuantityRemaining :: Scientific-    , oLimit :: Scientific-    , oReserved :: Scientific-    , oReservedRemaining :: Scientific-    , oCommissionReserved :: Scientific-    , oCommissionReserveRemaining :: Scientific-    , oCommissionPaid :: Scientific-    , oPrice :: Scientific-    , oPricePerUnit :: Maybe Scientific-    , oOpen :: Text+    , oQuantity :: Quantity+    , oQuantityRemaining :: QuantityRemaining+    , oLimit :: Limit+    , oReserved :: Reserved+    , oReservedRemaining :: ReserveRemaining+    , oCommissionReserved :: CommissionReserved+    , oCommissionReserveRemaining :: CommissionReserveRemaining+    , oCommissionPaid :: CommissionPaid+    , oPrice :: Price+    , oPricePerUnit :: Maybe Price+    , oOpened :: Time+    , oClosed :: Maybe Time     , oIsOpen :: Bool-    , oSentinal :: Text-    , oTimeStamp :: Time-    , oCommission :: Scientific+    , oSentinel :: Text+    , oCommission :: Commission     , oIsConditional :: Bool-    , oImmediateOrCancel :: Bool     , oCancelInitiated :: Bool+    , oImmediateOrCancel :: Bool     , oCondition :: Text+    , oConditionTarget :: Maybe Text     } deriving (Show, Eq, Generic)  instance FromJSON Order where@@ -613,20 +702,20 @@  data MarketSummary   = MarketSummary-  { mhMarketName :: MarketName-  , mhHigh :: Scientific-  , mhLow :: Scientific-  , mhVolume :: Scientific-  , mhLast :: Scientific-  , mhBaseVolume :: Scientific-  , mhTimeStamp :: Time-  , mhBid :: Scientific-  , mhAsk :: Scientific-  , mhOpenBuyOrders :: Scientific-  , mhOpenSellOrders :: Scientific-  , mhPrevDay :: Scientific-  , mhCreated :: Text-  , mhDisplayMarketName :: Maybe Text+  { msMarketName :: MarketName+  , msHigh :: High+  , msLow :: Low+  , msVolume :: Volume+  , msLast :: Last+  , msBaseVolume :: BaseVolume+  , msTimeStamp :: Time+  , msBid :: Bid+  , msAsk :: Ask+  , msOpenBuyOrders :: Int+  , msOpenSellOrders :: Int+  , msPrevDay :: PrevDay+  , msCreated :: Time+  , msDisplayMarketName :: Maybe Text   } deriving (Show, Eq, Generic)  instance FromJSON MarketSummary where