Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getMarkets :: IO (Either ErrorMessage [Market])
- getCurrencies :: IO (Either ErrorMessage [Currency])
- getTicker :: MarketName -> IO (Either ErrorMessage Ticker)
- getMarketSummaries :: IO (Either ErrorMessage [MarketSummary])
- getMarketSummary :: MarketName -> IO (Either ErrorMessage [MarketSummary])
- getOrderBookBuys :: MarketName -> IO (Either ErrorMessage [OrderBookEntry])
- getOrderBookSells :: MarketName -> IO (Either ErrorMessage [OrderBookEntry])
- getMarketHistory :: MarketName -> IO (Either ErrorMessage [MarketHistory])
- buyLimit :: APIKeys -> MarketName -> Quantity -> Rate -> IO (Either ErrorMessage UUID)
- sellLimit :: APIKeys -> MarketName -> Quantity -> Rate -> IO (Either ErrorMessage UUID)
- cancel :: APIKeys -> UUID -> IO (Either ErrorMessage (Maybe Text))
- getOpenOrders :: APIKeys -> MarketName -> IO (Either ErrorMessage [OpenOrder])
- getBalances :: APIKeys -> IO (Either ErrorMessage [Balance])
- getBalance :: APIKeys -> CurrencyName -> IO (Either ErrorMessage Balance)
- getDepositAddress :: APIKeys -> CurrencyName -> IO (Either ErrorMessage DepositAddress)
- withdraw :: APIKeys -> CurrencyName -> Quantity -> Address -> Maybe PaymentId -> IO (Either ErrorMessage UUID)
- getOrder :: APIKeys -> UUID -> IO (Either ErrorMessage Order)
- getOrderHistory :: APIKeys -> Maybe MarketName -> IO (Either ErrorMessage [OrderHistory])
- getWithdrawalHistory :: APIKeys -> CurrencyName -> IO (Either ErrorMessage [WithdrawalHistory])
- getDepositHistory :: APIKeys -> Maybe CurrencyName -> IO (Either ErrorMessage [DepositHistory])
Overview
Bittrex provides a simple and powerful REST API to allow you to programatically perform nearly all actions you can from our web interface.
All requests use the application/json content type and go over https. The base url is https://bittrex.com/api/{version}/.
All requests are GET requests and all responses come in a default response object with the result in the result field. Always check the success flag to ensure that your API call succeeded.
We are currently restricting orders to 500 open orders and 200,000 orders a day. We reserve the right to change these settings as we tune the system. If you are affected by these limits as an active trader, please email support@bittrex.com.
If you have any questions, feedback or recommendation for API support you can post a question in our support center.
Public
getMarkets :: IO (Either ErrorMessage [Market]) Source #
Used to get the open and available trading markets at Bittrex along with other meta data.
getCurrencies :: IO (Either ErrorMessage [Currency]) Source #
Used to get all supported currencies at Bittrex along with other meta data.
:: MarketName | a string literal for the market (ex: `BTC-LTC`) |
-> IO (Either ErrorMessage Ticker) |
Used to get the current tick values for a market.
getMarketSummaries :: IO (Either ErrorMessage [MarketSummary]) Source #
Used to get the last 24 hour summary of all active exchanges
:: MarketName | a string literal for the market (ex: `BTC-LTC`) |
-> IO (Either ErrorMessage [MarketSummary]) |
Used to get the last 24 hour summary of all active exchanges
:: MarketName | a string literal for the market (ex: `BTC-LTC`) -> OrderBookType -- ^ buy, sell or both to identify the type of orderbook to return. |
-> IO (Either ErrorMessage [OrderBookEntry]) |
Used to get retrieve the orderbook for a given market
:: MarketName | a string literal for the market (ex: `BTC-LTC`) -> OrderBookType -- ^ buy, sell or both to identify the type of orderbook to return. |
-> IO (Either ErrorMessage [OrderBookEntry]) |
Used to get retrieve the orderbook for a given market
:: MarketName | string literal for the market (ex: `BTC-LTC`) |
-> IO (Either ErrorMessage [MarketHistory]) |
Used to retrieve the latest trades that have occured for a specific market.
Market
:: APIKeys | Bittrex API credentials |
-> MarketName | A string literal for the market (ex: BTC-LTC) |
-> Quantity | The amount to purchase |
-> Rate | The rate at which to place the order. |
-> IO (Either ErrorMessage UUID) |
Used to place a buy order in a specific market. Use buylimit to place limit orders. Make sure you have the proper permissions set on your API keys for this call to work
:: APIKeys | Bittrex API credentials |
-> MarketName | A string literal for the market (ex: BTC-LTC) |
-> Quantity | The amount to purchase |
-> Rate | The rate at which to place the order |
-> IO (Either ErrorMessage UUID) |
Used to place an sell order in a specific market. Use selllimit to place limit orders. Make sure you have the proper permissions set on your API keys for this call to workn
:: APIKeys | Bittrex API credentials |
-> UUID | uuid of buy or sell order |
-> IO (Either ErrorMessage (Maybe Text)) |
Used to cancel a buy or sell order.
:: APIKeys | Bittrex API credentials |
-> MarketName | String literal for the market (ie. BTC-LTC) |
-> IO (Either ErrorMessage [OpenOrder]) |
Get all orders that you currently have opened. A specific market can be requested
Account
:: APIKeys | Bittrex API credentials |
-> IO (Either ErrorMessage [Balance]) |
Used to retrieve all balances from your account
:: APIKeys | Bittrex API credentials |
-> CurrencyName | a string literal for the currency (ex: LTC) |
-> IO (Either ErrorMessage Balance) |
Used to retrieve the balance from your account for a specific currency.
:: APIKeys | Bittrex API credentials |
-> CurrencyName | a string literal for the currency (ie. BTC) |
-> IO (Either ErrorMessage DepositAddress) |
Used to retrieve or generate an address for a specific currency. If one does not exist, the call will fail and return ADDRESS_GENERATING until one is available.
:: APIKeys | Bittrex API credentials |
-> CurrencyName | A string literal for the currency (ie. BTC) |
-> Quantity | The quantity of coins to withdraw |
-> Address | The address where to send the funds. |
-> Maybe PaymentId | used for CryptoNotesBitShareXNxt optional field (memo/paymentid) |
-> IO (Either ErrorMessage UUID) |
Used to withdraw funds from your account. note: please account for txfee.
:: APIKeys | Bittrex API credentials |
-> UUID | the uuid of the buy or sell order |
-> IO (Either ErrorMessage Order) |
Used to retrieve a single order by uuid.
:: APIKeys | Bittrex API credentials |
-> Maybe MarketName | a string literal for the market (ie. BTC-LTC). If ommited, will return for all markets |
-> IO (Either ErrorMessage [OrderHistory]) |
Used to retrieve your order history.
:: APIKeys | Bittrex API credentials |
-> CurrencyName | |
-> IO (Either ErrorMessage [WithdrawalHistory]) |
Used to retrieve your withdrawal history.
:: APIKeys | Bittrex API credentials |
-> Maybe CurrencyName | A string literal for the currecy (ie. BTC). If |
-> IO (Either ErrorMessage [DepositHistory]) |
Used to retrieve your deposit history.