BitVest API Documentation
Welcome to the BitVest Developer Platform. Our API provides programmatic access to all market data, trading, and account management features.
Base URL
https://api.bitvest.pro/api/v1Rate Limits
Public endpoints: 10 req/sec
Private endpoints: 50 req/sec
Authentication
Private endpoints require authentication using an API Key and Secret. You can generate these in your Dashboard Settings.
Headers
| Header | Description |
|---|---|
| X-MBX-APIKEY | Your unique API Key. |
| X-MBX-SIGNATURE | HMAC SHA256 signature of your query string. |
Market Data
24hr Ticker Price Change
/api/v1/ticker/24hrGet 24-hour rolling window price change statistics for all symbols.
Parameters
symbolstringTrading pair symbol (e.g. BTCUSDT)
Response
[
{
"symbol": "BTCUSDT",
"priceChange": "-94.99000000",
"priceChangePercent": "-0.095",
"lastPrice": "98420.50000000",
"volume": "12405.34000000"
}
]Order Book
/api/v1/depthGet current order book snapshot.
Parameters
symbolstringTrading pair symbol
* RequiredlimitintegerDefault 100; max 5000.
Response
{
"lastUpdateId": 1027024,
"bids": [
[ "4.00000000", "431.00000000" ]
],
"asks": [
[ "4.00000200", "12.00000000" ]
]
}Candlestick Data
/api/v1/klinesKline/candlestick bars for a symbol. Klines are uniquely identified by their open time.
Parameters
symbolstringTrading pair symbol
* Requiredintervalenum1m, 5m, 1h, 4h, 1d, 1w
* RequiredlimitintegerDefault 500; max 1000.
Response
[
[
1499040000000, // Open time
"0.01634790", // Open
"0.80000000", // High
"0.01575800", // Low
"0.01577100", // Close
"148976.11427815", // Volume
1499644799999, // Close time
]
]Recent Trades
/api/v1/tradesGet recent trades list.
Parameters
symbolstringTrading pair symbol
* RequiredlimitintegerDefault 500; max 1000.
Response
[
{
"id": 28457,
"price": "4.00000100",
"qty": "12.00000000",
"time": 1499865549590,
"isBuyerMaker": true,
"isBestMatch": true
}
]Trading & Account
New Order
/api/v1/orderSend in a new order. Requires API Key signature.
Parameters
symbolstringTrading pair symbol
* RequiredsideenumBUY or SELL
* RequiredtypeenumLIMIT, MARKET, STOP_LOSS
* RequiredquantitydecimalOrder quantity
* RequiredpricedecimalRequired for LIMIT orders
Response
{
"symbol": "BTCUSDT",
"orderId": 28,
"clientOrderId": "6gCrw2kRUAF9CvJDGP16IP",
"transactTime": 1507725176595,
"price": "1.00000000",
"origQty": "10.00000000",
"executedQty": "10.00000000",
"status": "FILLED",
"type": "MARKET",
"side": "SELL"
}Query Order
/api/v1/orderCheck an order's status.
Parameters
symbolstringTrading pair symbol
* RequiredorderIdlongOrder ID
Response
{
"symbol": "LTCBTC",
"orderId": 1,
"clientOrderId": "myOrder1",
"price": "0.1",
"origQty": "1.0",
"executedQty": "0.0",
"status": "NEW",
"timeInForce": "GTC",
"type": "LIMIT",
"side": "BUY",
"stopPrice": "0.0",
"time": 1499827319559
}Cancel Order
/api/v1/orderCancel an active order.
Parameters
symbolstringTrading pair symbol
* RequiredorderIdlongOrder ID
Response
{
"symbol": "LTCBTC",
"origClientOrderId": "myOrder1",
"orderId": 1,
"status": "CANCELED"
}Account Information
/api/v1/accountGet current account information and balances.
Parameters
Response
{
"makerCommission": 15,
"takerCommission": 15,
"buyerCommission": 0,
"sellerCommission": 0,
"canTrade": true,
"canWithdraw": true,
"canDeposit": true,
"updateTime": 123456789,
"balances": [
{
"asset": "BTC",
"free": "4723846.89208129",
"locked": "0.00000000"
},
{
"asset": "LTC",
"free": "4763368.68006011",
"locked": "0.00000000"
}
]
}