Popularity
7.2
Declining
Activity
0.0
Stable
23
3
4

Monthly Downloads: 36
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web    
Latest version: v0.6

bittrex alternatives and similar packages

Based on the "Web" category.
Alternatively, view bittrex alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of bittrex or a related project?

Add another 'Web' Package

README

bittrex

Hackage Haskell Programming Language BSD3 License Build Status

About

Haskell bindings to the Bittrex cryptocurrency exchange.

Usage

module Main where

import           Bittrex
import           Control.Monad
import           Data.Text     (Text)
import qualified Data.Text.IO  as T

main :: IO ()
main = do
  [api,secret] <- lines <$> readFile "/Users/david/.bittrex"
  let keys = APIKeys api secret

  -- Public Usage
  putStrLn "Markets"
  Right ms <- getMarkets
  forM_ ms (print . marketName)

  putStrLn "Currencies"
  Right cs <- getCurrencies
  mapM_ print cs

  putStrLn "Ticker for BTC-DOGE market"
  t <- getTicker (MarketName BTC_DOGE)
  print t

  putStrLn "Summary of BTC-DOGE market"
  Right t <- getMarketSummary (MarketName BTC_DOGE)
  print t

  putStrLn "Get market summaries"
  Right t <- getMarketSummaries
  print t

  putStrLn "Order book sells for for BTC-DOGE market"
  book <- getOrderBookSells (MarketName BTC_DOGE)
  print book

  putStrLn "Order book buys for for BTC-DOGE market"
  book <- getOrderBookBuys (MarketName BTC_DOGE)
  print book

  putStrLn "Market history for BTC-DOGE"
  Right history <- getMarketHistory (MarketName BTC_DOGE)
  forM_ history print

  -- Market usage
  putStrLn "Retrieve your open orders"
  Right openOrders <- getOpenOrders keys (MarketName BTC_DOGE)
  forM_ openOrders print

  -- Account usage,
  putStrLn "Check your balances (for all currencies)"
  Right balances <- getBalances keys
  forM_ balances print

License

[BSD3](LICENSE) © David Johnson


*Note that all licence references and agreements mentioned in the bittrex README section above are relevant to that project's source code only.