Basic BeeWallet API
The BeeWallet API is a RESTful API based on HTTPS requests and JSON responses.
BeeWallet addresses by default require two signatures for all withdrawals: yours, and BeeWallet's. This method provides exponentially higher security for your Wallets and applications than single-signature addresses. This way, you spend coins yourself, without trusting BeeWallet with your credentials.
“ All addresses generated using this API are considered Green, i.e., they can send and receive funds without waiting for confirmations. This is possible since BeeWallet guarantees coins can never be spent twice. Furthermore, all transactions occur on the Blockchain.
Develop your applications together with BeeWallet and get worthy reward.”
-
Getting Started
Getting Started
First, you will need your personal
TOKEN
(Located in "Your profile" > Security > Token)You can access the API by making calls to links of this format:
https://app.beeqb.com/api/2/balance_wallet/?token=TOKEN
Actions for BeeWallet
Get BeeWallet balance
Returns the BeeWallet balance as numbers to 8 decimal points, as strings.
/api/2/balance_wallet/?token=TOKEN
Action parameters:
token=TOKEN // authorization token (required)
Action answer:
{
"wallet": { // BeeWallet balance
"BTC": ...,
"ETH": ...,
"USD": ...,
"USDT": ...,
"BEE": ...
}
"exchange": { // Balance on exchange
"BTC": ...,
"ETH": ...,
"USD": ...,
"USDT": ...,
"BEE": ...
}
"order": { // Traded balance (funds in orders)
"BTC": ...,
"ETH": ...,
"USD": ...,
"USDT": ...,
"BEE": ...
}
}
Actions for Exchange
Get exchange balance
Returns the Exchange balance as numbers to 8 decimal points, as strings.
/api/2/exchange/balance?token=TOKEN
Action parameters:
token=TOKEN // authorization token (required)
Action answer:
{
"currency": "ETH",
"available": 420.72435
}
Get exchange pairs list
Returns the Exchange actual pairs list with market datas.
/api/2/exchange/pairs
Action parameters:
// No parameters
Action answer:
{
"code": "ETH", // Base currency
"currency": "SVD”, // Trading currency
"name": "SVD/ETH", // Pair's name
"change": "0.00", // rate changes in the last 24 hours
"price": 0, // current price of traded currency in base currency
"volume": 0 // trading volume in the last 24 hours
}
Get exchange executed orders list (Time & Sales)
Returns the Exchange Time&Sales list.
/api/2/exchange/time_sales?pair=CURRENCY_CODE
Action parameters:
pair=CURRENCY_CODE // CURRENCY - Trading currency; CODE - Base currency (required)
Action answer:
{
"type": "...", // SELL or BUY
"price": "...”, // price in base currency
"amount": "...", // Amount of traded currency
"date": "...", // Date and time with milliseconds (like DD-MM-YYYY HH.MM.SS.ssssss)
}
Get exchange order book
Returns the Exchange order book for dedicate trading pair like ETH/BTC.
/api/2/exchange/order-book?pair=CURRENCY_CODE&token=TOKEN
Action parameters:
pair=CURRENCY_CODE // CURRENCY - Trading currency; CODE - Base currency (required)
token=TOKEN // authorization token (required)
Action answer:
{
"buydata_x": "...", // Purchase prices
"buydata_y": "...”, // Purchase amount
"selldata_x": "...", // Selling prices
"selldata_y": "...", // Selling amount
"labels": ..., // scale with all the prices of orders
"buydata_num": ... // the number of purchase orders in the specified price (the number of orders does not include own orders)
"selldata_num": ... // the number of selling orders in the specified price (the number of orders does not include own orders)
}
Create limit order
Returns order's number.
/api/2/exchange/order?pair=CURRENCY_CODE&token=TOKEN&type=TYPE&stop=PRICE&amount=AMOUNT&price=PRICE
Action parameters:
pair=CURRENCY_CODE // CURRENCY - Trading currency; CODE - Base currency (required)
token=TOKEN // authorization token (required)
type=TYPE // "sell" or "buy" (required)
stop=PRICE // price in base currency
amount=AMOUNT // amount of trading currency (required)
price=PRICE // price in vase currency (required)
Action answer:
{
"result": "...", // TRUE or FALSE
"error": "...”, // error description
"number": "...", // new order number
}
Create market order
Returns order's number.
/api/2/exchange/order_market?pair=CURRENCY_CODE&token=TOKEN&type=TYPE&stop=PRICE&amount=AMOUNT
Action parameters:
pair=CURRENCY_CODE // CURRENCY - Trading currency; CODE - Base currency (required)
token=TOKEN // authorization token (required)
type=TYPE // "sell" or "buy" (required)
stop=PRICE // price in base currency
amount=AMOUNT // amount of trading currency (required)
Action answer:
{
"result": "...", // TRUE or FALSE
"error": "...”, // error description
"number": "...", // new order number
}
Orders list
Returns list of user's orders.
/api/2/exchange/order_list?token=TOKEN&pair=CURRENCY_CODE&type=TYPE
Action parameters:
token=TOKEN // authorization token (required)
pair=CURRENCY_CODE // CURRENCY - Trading currency; CODE - Base currency
type=TYPE // "sell" or "buy"
Action answer:
{
"id": "...", // order's number
"amount": "...", // trading currency amount
"price": "...", // price in base currency
"execute": "...", // executed order amount
"status": "...", // DONE - executed order, CANCEL - canceled order or WAITING - active order
"type": "...", // SELL or BUY
"stop": "...", // price in base currency
}
Cancel order (performed instantly)
Returns action result.
/api/2/exchange/order/cancel?number=NUMBER&token=TOKEN
Action parameters:
number=NUMBER // active order's number (required)
token=TOKEN // authorization token (required)
Action answer:
{
"result": "...", // TRUE or FALSE
"error": "...”, // error description
}