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 programmatically 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 (e.g.: |
-> IO (Either ErrorMessage Ticker) |
Used to get the current tick values for a market.
getMarketSummaries :: IO (Either ErrorMessage [MarketSummary]) Source #
This function returns a summary of the last 24 hours for all active exchanges.
:: MarketName | A string literal for the market (e.g.: |
-> IO (Either ErrorMessage [MarketSummary]) |
This function returns a summary of the last 24 hours for the given market.
:: MarketName | A string literal for the market (e.g.: |
-> IO (Either ErrorMessage [OrderBookEntry]) |
Used to get retrieve the orderbook for a given market
:: MarketName | A string literal for the market (e.g.: |
-> IO (Either ErrorMessage [OrderBookEntry]) |
Used to get retrieve the orderbook for a given market
:: MarketName | A string literal for the market (e.g.: |
-> IO (Either ErrorMessage [MarketHistory]) |
Used to retrieve the latest trades that have occured for a specific market.
Market
:: APIKeys | Your Bittrex API credentials. |
-> MarketName | A string literal for the market (e.g.: |
-> 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 | Your Bittrex API credentials. |
-> MarketName | A string literal for the market (e.g.: |
-> 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 | Your Bittrex API credentials. |
-> UUID | The UUID of the buy or sell order. |
-> IO (Either ErrorMessage (Maybe Text)) |
Used to cancel a buy or sell order.
:: APIKeys | Your Bittrex API credentials. |
-> MarketName | String literal for the market (e.g.: |
-> IO (Either ErrorMessage [OpenOrder]) |
Get all orders that you currently have opened.
A specific market can be requested using the MarketName
parameter.
Account
:: APIKeys | Your Bittrex API credentials. |
-> IO (Either ErrorMessage [Balance]) |
Used to retrieve all balances from your account
:: APIKeys | Your Bittrex API credentials. |
-> CurrencyName | A string literal for the currency (e.g.: |
-> IO (Either ErrorMessage Balance) |
Used to retrieve the balance from your account for a specific currency.
:: APIKeys | Your Bittrex API credentials. |
-> CurrencyName | A string literal for the currency (e.g.: |
-> 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 | Your Bittrex API credentials. |
-> CurrencyName | A string literal for the currency (e.g.: |
-> Quantity | The quantity of coins to withdraw |
-> Address | The address where to send the funds. |
-> Maybe PaymentId | used for the optional field representing the memo / payment ID on CryptoNotes, BitShareX, and Nxt transactions. |
-> IO (Either ErrorMessage UUID) |
Used to withdraw funds from your account. note: please account for txfee.
:: APIKeys | Your 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 | Your Bittrex API credentials. |
-> Maybe MarketName | A string literal for the market (e.g.: |
-> IO (Either ErrorMessage [OrderHistory]) |
Used to retrieve your order history.
:: APIKeys | Your Bittrex API credentials. |
-> CurrencyName | A string literal for the currency (e.g.: |
-> IO (Either ErrorMessage [WithdrawalHistory]) |
Used to retrieve your withdrawal history.
:: APIKeys | Your Bittrex API credentials. |
-> Maybe CurrencyName | A string literal for the currency (e.g.: |
-> IO (Either ErrorMessage [DepositHistory]) |
Used to retrieve your deposit history.