Introduction
Welcome to the bitexbit API docs!
Service bitexbit.com provides open API for trading operations and broadcasting of all trading events.
HTTP API (v2)
HTTP API endpoint available on https://bitexbit.com/api/v2/
.
Some methods requires authorization read below.
All HTTP methods accept JSON
formats of requests and responses if it not specified by headers.
Authentication
There are few types of authentication
FREE
- no authentication needFULL
- need api key and signature
For FULL
authentication you need:
- Generate API
key
andsecret
in Profile Api. - Make
nonce
- a number that must be unique and must increase with each call to the API - Make
payload
- string, concatenated withpath
,nonce
, andbody
. Wherepath
- relative path without query params (example:/api/v2/private/balance
) andbody
- forPOST
request - json string from request data, forGET
request empty string. - Make
signature
frompayload
andsecret
, using HMAC Authentication with SHA-256. - Send next HTTP headers:
X-API-Key
,X-Nonce
,X-Signature
, whereX-API-Key
-key
,X-Nonce
-nonce
,X-Signature
-signature
as hexadecimal string.
HTTP API (v1)
Read more about API v1 here
HTTP API Gateway
Read more about API Gateway here
Api example
Example
Api Example
const axios = require("axios");
const sha256 = require("js-sha256");
class ApiClient {
constructor(key, secret, baseUrl = "https://www.bitexbit.com") {
this.key = key;
this.secret = secret;
this.client = axios.create({
baseURL: baseUrl,
timeout: 10000,
headers: {
"Content-Type": "application/json; charset=utf-8",
Accept: "application/json",
},
responseType: "json",
});
}
getCurrencies() {
return this._get("/api/v2/public/currencies");
}
getCurrency(symbol) {
return this._get(`/api/v2/public/currency/${symbol}`);
}
getPairs() {
return this._get("/api/v2/public/pairs");
}
getPair(symbol) {
return this._get(`/api/v2/public/pairs/${symbol}`);
}
getOHLCV(symbol, timeframe, filters = null) {
let params = {
symbol: symbol,
timeframe: timeframe,
};
if (filters) {
params = { ...params, ...filters };
}
return this._get("/api/v2/public/ohlcv", params);
}
getTickers(symbols = null) {
let params = {};
if (symbols) {
if (Array.isArray(symbols)) {
params.symbols = symbols.join(",");
} else {
params.symbols = symbols;
}
}
return this._get("/api/v2/public/tickers", params);
}
getOrderbookDepth(symbol, limit = null) {
let params = {
symbol: symbol,
};
if (limit) params.limit = limit;
return this._get(`/api/v2/public/depth`, params);
}
getTrades(symbol, filters = null) {
let params = {
symbol: symbol,
};
if (filters) {
params = { ...params, ...filters };
}
return this._get(`/api/v2/public/trades`, params);
}
getMyOrders(filters = null) {
return this._get("/api/v2/private/orders", filters, true);
}
getMyOrderTrades(orderId) {
return this._get(`/api/v2/private/orders/${orderId}/trades`, {}, true);
}
createOrder(symbol, price, amount, type) {
return this._post("/api/v2/private/order/create", {
symbol: symbol,
price: price.toString(),
amount: amount.toString(),
type: type,
});
}
cancelOrder(orderId) {
return this._post(`/api/v2/private/order/${orderId}/cancel`);
}
getMyTrades(filters = null) {
return this._get("/api/v2/private/trades", filters, true);
}
getBalance(symbols) {
let params = {};
if (symbols) {
if (Array.isArray(symbols)) {
params.symbols = symbols.join(",");
} else {
params.symbols = symbols;
}
}
return this._get("/api/v2/private/balance", params, true);
}
getTradingFees() {
return this._get("/api/v2/private/trading-fees", {}, true);
}
createCoupon(amount, symbol, recipientEmail = null) {
let data = {
amount: amount.toString(),
symbol: symbol,
};
if (recipientEmail) data.recipient_email = recipientEmail;
return this._post("/api/v2/private/coupon/create", data);
}
redeemCoupon(code) {
return this._post("/api/v2/private/coupon/redeem", { code: code });
}
getTransfers(filters = null) {
return this._get("/api/v2/private/transfers/", filters, true);
}
createTransfer(body) {
return this._post("/api/v2/private/transfers/create", body);
}
acceptTransfer(txid) {
return this._post(`/api/v2/private/transfers/${txid}/accept`);
}
cancelTransfer(txid) {
return this._post(`/api/v2/private/transfers/${txid}/cancel`);
}
_get(path, params = null, auth = false) {
let config = {
params: params,
};
if (auth) {
const nonce = new Date().getTime();
const signature = this._getSignature(path, nonce, "");
config.headers = {
"X-API-Key": this.key,
"X-Nonce": nonce,
"X-Signature": signature,
};
}
return this.client.get(path, config);
}
_post(path, data = {}) {
const nonce = new Date().getTime();
const signature = this._getSignature(path, nonce, JSON.stringify(data));
const config = {
headers: {
"X-API-Key": API_KEY,
"X-Nonce": nonce,
"X-Signature": signature,
},
};
return this.client.post(path, data, config);
}
_getSignature(path, nonce, body = "") {
const payload = path + nonce + body;
const hash = sha256.hmac.create(this.secret);
hash.update(payload);
return hash.hex();
}
}
Success responses
Code | Meaning |
---|---|
200 | Returns is response is success. Body of response usually contains object that affected. |
Errors
We are using standard HTTP statuses in responses.
Error Code | Meaning |
---|---|
400 | If response has http status 400 that means that client should change some input parameters to make it success. What exactly wrong returned in response body. |
401 | In case when HTTP endpoint require authentication but provided authentication headers not valid - response with status 401 will be returned and the details in body. |
403 | You do not have access to do the operation. For example when you try to cancel orders that was created by other user. |
429 | We have different rate limits to call API methods. If you reached this - response with status 429 will be returned. |
500 | Nobody is safe to make mistakes. This is the case when error happened on serer side. No details but we are see it. |
502 | Looks like we under high load. Try your request later. |
Public methods
Here all method you can use without any credentials:
Currencies
Returns list of currencies on the exchange. Each element contains info describing currency.
Request
GET /api/v2/public/currencies
Authentication
FREE
Response
Response Example
[
{
"code": "BTC",
"name": "Bitcoin",
"image_url": "https://bitexbit.com/media/currency/BTC/l.TpjkNtFB2Q9QQbBO.png",
"precision": 8,
"is_enabled": true
},
{
"code": "ETH",
"name": "Ethereum",
"image_url": "https://bitexbit.com/media/currency/ETH/l.MN2H93w4xXpDIRhX.png",
"precision": 5,
"is_enabled": true
}
]
Each object in array has next structure:
Key | Type | Description |
---|---|---|
code | string | short unique name of currency |
name | string | full name of currency |
image_url | string | relative url to image of currency |
precision | integer | how many decimal places supported for currency |
is_enabled | boolean | is currency enabled (can be temporary or permanent as well) |
Currency details
Request
GET /api/v2/public/currency/<code>
Query Parameters
Code | Type | Description |
---|---|---|
code | string | short unique name of currency |
Pairs
Returns list of trading pairs listed on exchange. Each element contains info describing pair.
Request
GET /api/v2/public/pairs
Authentication
FREE
Response
Response Example
[
{
"symbol": "BTC_USD",
"label": "BTC/USD",
"base": "BTC",
"quote": "USD",
"price_precision": 3,
"amount_precision": 6,
"min_amount": "0.00001000",
"max_amount": "100000000",
"min_value": "0.00001000",
"can_create_order": true,
"can_cancel_order": true,
"is_enabled": true
},
{
"symbol": "LTC_USD",
"label": "LTC/USD",
"base": "LTC",
"quote": "USD",
"price_precision": 4,
"amount_precision": 8,
"min_amount": "0.00001000",
"max_amount": "100000000",
"min_value": "0.00001000",
"can_create_order": true,
"can_cancel_order": true,
"is_enabled": true
}
]
Each object in array has next structure:
Key | Type | Description |
---|---|---|
symbol | string | unique pair name, that build from first and second currency symbols divided by underscore symbol |
label | string | human readable pair name |
base | string | symbol of first currency. all amount in orders and trades measured in this currency |
quote | string | symbol of second currency |
price_precision | integer | ow many decimal digits can be in price when placing order |
amount_precision | integer | how many decimal digits can be in amount when placing order |
min_amount | decimal string | only acceptable amount greater or equal this value when placing order |
max_amount | decimal string | only acceptable amount lesser or equal this value when placing order |
min_value | decimal string | minimal value of order in quote_currency (amount multiply by price ) |
can_create_order | boolean | can order be places or not by this pair |
can_cancel_order | boolean | can order be cancelled or not by this pair |
is_enabled | boolean | is pair enabled, orders can be places or canceled (can be temporary or permanent as well) |
Pair Details
GET /api/v2/public/pairs/<symbol>
Where symbol
- string; identifier of pair
Open-High-Low-Close-Volume
Returns list of candles by specified candle type and pair
Request
GET /api/v2/public/ohlcv
Authentication
FREE
Parameters
Object with next items:
symbol
- string; identifier of pair Requiredtimeframe
- string; time interval of candle. Allowed values are5
(15 min),15
(15 min),30
(30 min),60
(1 hour),240
(4 hours),D
(24 hours). Requiredsince
- integer; timestamp, minimaldate
of candleuntil
- integer; timestamp, maximaldate
of candlelimit
- integer; max number of results, by default is 100, max value is 1000
Response Example
[
[
1477958400,
"715.00000000",
"720.20000000",
"715.00000000",
"717.00000000",
"0.01924864"
],
[
1478044800,
"717.00000000",
"717.50000000",
"712.00000000",
"716.50000000",
"0.08771271"
]
]
Response
Array of arrays; Each array in response has next items:
1
- integer; timestamp in milliseconds, date of opening candle2
- decimal string; price at the time of opening the candle3
- decimal string; maximal price4
- decimal string; minimal price5
- decimal string; price at the time of closing the candle6
- decimal string; trading volume in currency1 of pair
Tickers
Returns list of tickers objects for all trading pairs
Request
GET /api/v2/public/tickers
Authentication
FREE
Parameters
Object with next items:
symbols
- string; identifier of pair or multiple pair identifiers, separated by comma, example -BTC_USD,BTC_USDT
. Max number of pairs is 5.
Response
Response Example
[
{
"date": 1547535929556,
"symbol": "BTC_USD",
"last": "3781.33900000",
"buy": "3781.33900000",
"sell": "3781.94500000",
"change": "0.00000000",
"vol1": "0.00000000",
"vol2": "0.00000000",
"high": "0.00000000",
"low": "0.00000000"
},
{
"date": 1547535923368,
"symbol": "ETH_USD",
"last": "132.33000000",
"buy": "132.08000000",
"sell": "132.33000000",
"change": "0.00000000",
"vol1": "0.00000000",
"vol2": "0.00000000",
"high": "0.00000000",
"low": "0.00000000"
}
]
Each object in array has next structure:
date
- integer; milliseconds timestamp when was last activity on marketsymbol
- string; identifier of pairlow
- decimal string; lowest trade price last 24 hourshigh
- decimal string; highest trade price last 24 hourschange
- decimal string; difference in percent between price that was 24 hours ago and latest trade; if no trades last 24 hours it will be0
last
- decimal string; price of last trade of pairvol1
- decimal string; 24 hour trading volume on pair measured in first currencyvol2
- decimal string; 24 hour trading volume on pair measured in second currencybuy
- decimal string; current top buy pricesell
- decimal string; current top sell price
Orderbook Depth
Get the depth of orderbook.
Request
GET /api/v2/public/depth
Authentication
FREE
Parameters
Object with next items:
symbol
- string; identifier of orderbook. Requiredlimit
- integer; limit the number of returned records for each bids and asks. Maximum 50
Response
Response Example
{
"date": 1568905003.866091,
"asks": [
[1, 1],
[2, 4]
],
"bids": [
[1, 1],
[2, 4]
],
"sum_bids": 5,
"sum_asks": 5
}
Object with next items:
date
- float; current timestampsymbol
- string; current timestampasks
- array of pairs of aggregated price and amountbids
- array of pairs of aggregated price and amountsum_bids
- float; total amount of bids in orderbooksum_asks
- float; total amount of asks in orderbook
Public Orders
Returns public orders list
Request
GET /api/v2/public/orders
Authentication
FREE
Parameters
symbol
- string; any symbol idtype
- string; buy-limit, sell-limitstatus
- string; active, canceled, donesince
- integer; timestamp, minimaldate
of recorduntil
- integer; timestamp, maximaldate
of recordsince_id
- integer; minimalid
of recorduntil_id
- integer; maximalid
of recordlimit
- integer; max number of results, by default is 100, max value is 1000
Response
Response Example
[
{
"id": 34,
"date": 1478036172902,
"type": "buy-limit",
"symbol": "BTC_USD",
"price": "433.00000000",
"amount": "0.00692841",
"amount_unfilled": "0.00692841",
"amount_filled": null,
"amount_cancelled": null,
"value_filled": null,
"price_avg": null,
"done_at": null,
"state": "submitted"
},
{
"id": 28,
"date": 1478033710751,
"type": "buy-limit",
"symbol": "BTC_USD",
"price": "55.00000000",
"amount": "0.00876952",
"amount_unfilled": "0.00876952",
"amount_filled": null,
"amount_cancelled": null,
"value_filled": null,
"price_avg": null,
"done_at": null,
"state": "submitted"
}
]
Each object in array has next structure:
id
- integer; order iddate
- integer; milliseconds timestamp when order createdtype
- string;buy-limit
,sell-limit
symbol
- string; identifier of pairprice
- string; limit priceamount
- string; amount of order when it is createdamount_unfilled
- string; current amountamount_filled
- string; amount that matched alreadyamount_cancelled
- string; when order canceled this equals to unfilled amount at the moment of cancellationvalue_filled
- string; amount of the second currency that filledprice_avg
- string; average price of filled amountdone_at
- string; milliseconds timestamp when order was filly filled or cancelledstate
- string;submitted
,partial-filled
,filled
,partial-canceled
,canceled
Public Trades
Returns list of trades filtered by parameters
Request
GET /api/v2/public/trades
Authentication
FREE
Parameters
Object with next items:
symbol
- string; identifier of pairtype
- string;sell
orbuy
since
- integer; timestamp, minimaldate
of recorduntil
- integer; timestamp, maximaldate
of recordsince_id
- integer; minimalid
of recorduntil_id
- integer; maximalid
of recordlimit
- integer; max number of results, by default is 100, max value is 1000
Response
Response Example
[
{
"date": 1543252041327,
"id": 17802900,
"symbol": "BTC_USD",
"price": "6609.00000000",
"amount": "0.00075600",
"type": "buy"
},
{
"date": 1541591882904,
"id": 17802242,
"symbol": "BTC_USD",
"price": "6610.00000000",
"amount": "0.00100000",
"type": "buy"
},
{
"date": 1541591750140,
"id": 17802190,
"symbol": "BTC_USD",
"price": "6636.71000000",
"amount": "0.00002335",
"type": "buy"
}
]
Each object in array has next structure:
date
- number; timestamp, date of tradeid
- integer;symbol
- string; identifier of pairprice
- decimal string;amount
- decimal string;type
- integer;sell
orbuy
Private methods
Here all method that requires authentication:
- Create Order
- Cancel Order
- Private Orders
- Private Trades
- Balance
- Trading Fees
- Create coupon
- Redeem coupon
- Transfer list
- Create transfer
- Accept transfer
- Cancel transfer
Create Order
Create order on platform
Currently only limit order. If new order types will be added limit order will be by default
Request
POST /api/v2/private/order/create
Authentication
FULL
, CAN_CREATE_ORDER
Parameters
Object with next items:
symbol
- string; trading pair, market for ordertype
- string;sell-limit
orbuy-limit
price
- decimal string; desired price for orderamount
- decimal string; size of order measured in first currency of trading pair
Response
Response Example
{
"order": {
"id": 33852806,
"date": 1544617382079,
"symbol": "BTC_USD",
"type": "sell-limit",
"price": "1000.00000000",
"amount": "0.00150000",
"amount_unfilled": "0.00150000",
"amount_filled": "0.00000000",
"amount_cancelled": null,
"value_filled": "0.00000000",
"fee_filled": "0.00000000",
"price_avg": null,
"done_at": null,
"state": "submitted"
},
"trades": [],
"funds": [
{
"symbol": "USD",
"available": "5.15245011",
"reserved": "1.49999876"
}
]
}
Object with order data and funds
order
- object with next structure:id
- number; unique identifier of orderdate
- integer; timestamp when operation were performedsymbol
- string; market of the order, equivalent to trading pairtype
- string;sell-limit
orbuy-limit
price
- decimal string; price with what order were createdamount
- decimal string; amount with what order were createdamount_unfilled
- decimal string; current amountamount_filled
- decimal string; amount that already matchedamount_cancelled
- decimal string; when order canceled this equals to unfilled amount at the moment of cancellationvalue_filled
- decimal string; amount of the second currency that filledfee_filled
- decimal string; fee amount that already matchedprice_avg
- decimal string; average price of filled amountdone_at
- integer; date when order was closedstate
- string;submitted
,partial-filled
,filled
,partial-canceled
,canceled
trades
- array; if order were matched with side orders on placing there are some trades will be created;id
- number; unique identifier of tradeprice
- decimal string; price of tradeamount
- decimal string; value of tradeside_order
- integer; identifier of side order that was matched to current order
funds
- array; list of wallets that were changed by operationsymbol
- string; symbol of currencyavailable
- decimal string; available fundsreserved
- decimal string; reserved funds
Cancel Order
Cancel order on platform
Request
POST /api/v2/private/order/<id>/cancel
Authentication
FULL
, CAN_CANCEL_ORDER
Path parameters
Object with next items:
id
- number; id of order that must be canceled
Response
Response Example
{
"cancel": {
"id": 458528,
"date": 1544617682079
},
"order": {
"id": 33852806,
"date": 1544617382079,
"symbol": "BTC_USD",
"type": "sell-limit",
"price": "1000.00000000",
"amount": "0.00150000",
"amount_unfilled": "0.00000000",
"amount_filled": "0.00000000",
"amount_cancelled": "0.00150000",
"value_filled": "0.00000000",
"fee_filled": "0.00000000",
"price_avg": null,
"done_at": 1544617682079,
"state": "canceled"
},
"funds": [
{
"symbol": "USD",
"available": "6.65244888",
"reserved": "0.00000000"
}
]
}
Object with next structure
cancel
- object;id
- number; identifier of operationdate
- number; date of operation
order
- object;id
- number; unique identifier of orderdate
- integer; timestamp when operation were performedsymbol
- string; market of the order, equivalent to trading pairtype
- string;sell-limit
orbuy-limit
price
- decimal string; price with what order were createdamount
- decimal string; amount with what order were createdamount_unfilled
- decimal string; current amountamount_filled
- decimal string; amount that already matchedamount_cancelled
- decimal string; when order canceled this equals to unfilled amount at the moment of cancellationvalue_filled
- decimal string; amount of the second currency that filledfee_filled
- decimal string; fee amount that already matchedprice_avg
- decimal string; average price of filled amountdone_at
- integer; date when order was closedstate
- string;submitted
,partial-filled
,filled
,partial-canceled
,canceled
funds
- array; list of wallets that were changed by operationsymbol
- string; symbol of currencyavailable
- decimal string; available fundsreserved
- decimal string; reserved funds
Private Orders
Returns list of my orders filtered by parameters
Request
GET /api/v2/private/orders
Authentication
FULL
Parameters
symbol
- string; any symbol idtype
- string; buy-limit, sell-limitstatus
- string; active, canceled, donesince
- integer; timestamp, minimaldate
of recorduntil
- integer; timestamp, maximaldate
of recordsince_id
- integer; minimalid
of recorduntil_id
- integer; maximalid
of recordlimit
- integer; max number of results, by default is 100, max value is 1000
Response
Response Example
[
{
"id": 34,
"date": 1478036172902,
"type": "buy-limit",
"symbol": "BTC_USD",
"price": "433.00000000",
"amount": "0.00692841",
"amount_unfilled": "0.00692841",
"amount_filled": null,
"amount_cancelled": null,
"value_filled": null,
"fee_filled": null,
"price_avg": null,
"done_at": null,
"state": "submitted"
},
{
"id": 28,
"date": 1478033710751,
"type": "buy-limit",
"symbol": "BTC_USD",
"price": "55.00000000",
"amount": "0.00876952",
"amount_unfilled": "0.00876952",
"amount_filled": null,
"amount_cancelled": null,
"value_filled": null,
"fee_filled": null,
"price_avg": null,
"done_at": null,
"state": "submitted"
}
]
Each object in array has next structure:
id
- integer; order iddate
- integer; milliseconds timestamp when order createdtype
- string;buy-limit
,sell-limit
price
- string; limit priceamount
- string; amount of order when it is createdamount_unfilled
- string; current amountamount_filled
- string; amount that matched alreadyamount_cancelled
- string; when order canceled this equals to unfilled amount at the moment of cancellationvalue_filled
- string; amount of the second currency that filledfee_filled
- string; amount of fee pair for filled amount or valueprice_avg
- string; average price of filled amountdone_at
- string; milliseconds timestamp when order was filly filled or cancelledstate
- string;submitted
,partial-filled
,filled
,partial-canceled
,canceled
Private Trades
Returns list of my trades filtered by parameters
Request
GET /api/v2/private/trades
Authentication
FULL
Parameters
Object with next items:
symbol
- string; identifier of pairtype
- string;sell
orbuy
since
- integer; timestamp, minimaldate
of recorduntil
- integer; timestamp, maximaldate
of recordsince_id
- integer; minimalid
of recorduntil_id
- integer; maximalid
of recordlimit
- integer; max number of results, by default is 100, max value is 1000
Response
Response Example
[
{
"id": 17802902,
"date": 1544617013258,
"type": "buy",
"symbol": "BTC_USD",
"price": "6585.00000000",
"amount": "1",
"fee_amount": "0.01316842",
"fee_rate": "0.00200000",
"fee_symbol": "USD"
}
]
Each object in array has next structure:
id
- integer; identifier of tradedate
- float; timestamp, date of tradetype
- string;sell
orbuy
symbol
- string; identifier of pairprice
- decimal string; trade priceamount
- decimal string; trade amountfee_amount
- decimal string; fee valuefee_rate
- decimal string; fee rate (rate0.002
mean2%
)fee_symbol
- string; symbol of fee currency
Balance
Returns fund for each symbol available on account
Request
GET /api/v2/private/balance
Authentication
FULL
Parameters
Object with next items:
symbols
- string; identifier of pair or multiple pair identifiers, separated by comma, example -BTC_USD,BTC_USDT
. Max number of pairs is 5.
Response
Response Example
[
{
"symbol": "BTC",
"available": "0.00661226",
"reserved": "0.00000000"
},
{
"symbol": "USD",
"available": "6.65245012",
"reserved": "0.00000124"
}
]
Each object in array has next structure:
symbol
- string; identifier of currencyavailable
- decimal string; available fundsreserved
- decimal string; reserved funds
Object; keys is currencies id of wallets that were changed by operation, values is available balance after operation
Trading Fees
Returns account trading fees
Request
GET /api/v2/private/trading-fees
Authentication
FULL
Response
Response Example
{
"sell_fee_rate": "0.00200000",
"buy_fee_rate": "0.00200000",
"pair_fee_rates": [
{
"symbol": "BTC_USD",
"sell_fee_rate": "0.00000000",
"buy_fee_rate": "0.00000000"
}
]
}
Object has next structure:
taker_fee_rate
- decimal string; fee rate for sell ordersmaker_fee_rate
- decimal string; fee rate for buy orderspair_fee_rates
- array; list of fee rates by pair (it overridestaker_fee_rate
,maker_fee_rate
)symbol
- string; identifier of currencymaker_fee_rate
- decimal string; fee rate for sell orderstaker_fee_rate
- decimal string; fee rate for buy orders
Create coupon
Create Coupon
Read more about Coupons ...
Request
POST /api/v2/private/coupon/create
Authentication
FULL
, CAN_CREATE_COUPON
Parameters
Object with next items:
symbol
- string; id of currency asset of Couponamount
- number; value of Couponrecipient_email
- string; email of recipient, can be skipped of not need. but if set - only user with this email or owner can redeem it
Response
Response Example
{
"code": "BTClYyR9gLNrZCN35KY4DFxc64roF1RJKsxxgEuMyRdnmkp7qmrw5XGVjQrk2UZhccFD",
"coupon": {
"date": 1544695102296,
"opid": 48480429,
"amount": "0.05000000",
"symbol": "BTC",
"recipient_email": null
},
"funds": [
{
"symbol": "BTC",
"available": "0.12060000",
"reserved": "0.00000000"
}
]
}
Object has next structure:
code
- string; code of created coupon. it is your Coupon, save it and keep in safecoupon
- object;date
- number; timestamp when operation was performedopid
- integer; internal id of operationamount
- decimal string; value of couponsymbol
- string; currency symbol of couponrecipient_email
- string; recipient on Coupon, if was requested
funds
- array; list of wallets that were changed by operationsymbol
- string; symbol of currencyavailable
- decimal string; available fundsreserved
- decimal string; reserved funds
Redeem coupon
Redeem Coupon
Request
POST /api/v2/private/coupon/redeem
Authentication
FULL
, CAN_REDEEM_COUPON
Parameters
Object with next items:
code
- string; Coupon that you have
Response
Response Example
{
"redeem": {
"date": 1544696109.65948,
"amount": "0.05000000",
"symbol": "BTC",
}
"funds": [
{
"symbol": "BTC",
"available": "0.12560000",
"reserved": "0.00000000"
}
]
}
Object has next structure:
redeem
- object;date
- number; timestamp when operation was performedamount
- decimal string; value that was added to your fundssymbol
- string; currency symbol of wallet that were promoted
funds
- array; list of wallets that were changed by operationsymbol
- string; symbol of currencyavailable
- decimal string; available fundsreserved
- decimal string; reserved funds
Transfers List
Transfers List
Request
GET /api/v2/private/transfers
Authentication
FULL
Statuses
Key | Label | Description |
---|---|---|
10 | Pending | When transfer has secure code. |
20 | Cancelled | |
30 | Success |
Parameters
Object with next items:
currency
- string; Currency code.status
- number; Transfer status code.is_outgoing
- bool; Is outgoing (You are sender).is_outdated
- bool; Is transfer outdated.
Response
Response Example
{
"count": 7,
"next": null,
"previous": null,
"results": [
{
"txid": "f346a4094fc8a56ba0ad",
"date": "2021-08-30T10:21:26.771489Z",
"amount": "10.00000000",
"currency": {
"code": "USDT",
"name": "Tether USD",
"precision": 2
},
"sender": "BL1314K55FL",
"receiver": {
"uid": "VB4DF1HQ4D7",
"verified": false
},
"status": {
"key": 30,
"label": "Success"
},
"description": null,
"valid_till": "2021-08-31T10:21:26.760408Z",
"is_outgoing": true,
"can_cancel": false,
"can_accept": false
},
],
}
Object has next structure:
count
- decimal; Total transfers count;next
- string; Next page;previous
- string; Previous page;results
- list;txid
- string; Txid of Transfer;date
- datetime; Created at;amount
- decimal string; Value of Transfer;currency
- object;code
- string; Currency code;name
- string; Currency name;precision
- decimal; Currency precision;sender
-string; Sender uid;receiver
-object;uid
-string; Receiver uid;verified
-bool; Is receiver verified;status
- object;key
- decimal; Status key;label
- decimal; Status label;description
- string or null; Description of Transfer;valid_till
- datetime; Valid till date;is_outgoing
- bool;can_cancel
- bool;can_accept
- bool;
Create Transfer
Create Transfer
Request
POST /api/v2/private/transfers/create/
Authentication
FULL
Parameters
Object with next items:
receiver
- string; required; Recepient uid.currency
- string; required; Name of currency asset of Transfer.amount
- number; required; Value of Transfer.security_code
- number; Secure code to accept.valid_days
- number; required if security_code; min 1, max 366; Validity period.description
- string; max length 80; Description of Transfer.
Response
Response Example
{
"receiver": "user@email.com",
"amount": "10.00000000",
"currency": "USDT",
"description": "Smile",
"txid": "12345abc",
"status": {
"key": 10,
"label": "Pending"
},
"valid_till": "2021-08-31T13:07:38.871103Z",
"is_protected": true
}
Object has next structure:
receiver
-string; Recepient email;amount
- decimal string; Value of Transfer;currency
- string; Name of currency asset of Transfer;description
- string or null; Description of Transfer;txid
- string; Txid of Transfer;status
- object;key
- decimal; Status key;label
- decimal; Status label;
valid_till
- datetime; Valid till date;is_protected
- bool; Is protected via secure code;
Accept Transfer
Accept Transfer
Request
POST /api/v2/private/transfers/{{ txid }}/accept/
Authentication
FULL
Parameters
Object with next items:
security_code
- number; Secure code to accept.
Response
Response Example
{
"transfer": {
"txid": "9699f3c5b4b1aa0d2528",
"amount": "10.00000000",
"currency": {
"code": "USDT",
"name": "Tether USD",
"precision": 2
},
"sender": "BL1314K55FL",
"receiver": {
"uid": "VB4DF1HQ4D7",
"verified": false
},
"status": {
"key": 20,
"label": "Cancelled"
},
"description": null,
"valid_till": "2021-08-31T12:38:05.859390Z"
}
}
Object has next structure:
txid
- string; Transfer txid;amount
- decimal string; Value of Transfer;receiver
-string; Recepient email;currency
- obj;code
- string; Currency code.name
- string; Currency name.precision
- number; Currency precision.
sender
- string; Sender uid;receiver
- obj;uid
- string; Recipient uid;verified
- bool; Is Recipient virified;
status
- obj;key
- number; Status key;label
- string; Status label;
description
- string or null; Description of Transfer;valid_till
- datetime; Vilid till date;
Cancel Transfer
Cancel Transfer
Request
POST /api/v2/private/transfers/{{ txid }}/cancel/
Authentication
FULL
Response
Response Example
{
"transfer": {
"txid": "9699f3c5b4b1aa0d2528",
"amount": "10.00000000",
"currency": {
"code": "USDT",
"name": "Tether USD",
"precision": 2
},
"sender": "BL1314K55FL",
"receiver": {
"uid": "VB4DF1HQ4D7",
"verified": false
},
"status": {
"key": 20,
"label": "Cancelled"
},
"description": null,
"valid_till": "2021-08-31T12:38:05.859390Z"
}
}
Object has next structure:
txid
- string; Transfer txid;amount
- decimal string; Value of Transfer;receiver
-string; Recepient email;currency
- obj;code
- string; Currency code.name
- string; Currency name.precision
- number; Currency precision.
sender
- string; Sender uid;receiver
- obj;uid
- string; Recipient uid;verified
- bool; Is Recipient virified;
status
- obj;key
- number; Status key;label
- string; Status label;
description
- string or null; Description of Transfer;valid_till
- datetime; Vilid till date;