Complete Trading API for Professional Market Makers
Base URL
https://mm.cetoex.com/api/market-making
All endpoints require:
investor_id - Your unique IDapi_key - Your API keyStandard: 100/min
Bulk: 10/min
Per investor_id
GET /status
Check API health
Get your account balance and complete portfolio information
{
"investor_id": 12345,
"api_key": "your_api_key_here"
}
curl -X POST https://mm.cetoex.com/api/market-making/account/info \
-H "Content-Type: application/json" \
-d '{
"investor_id": 12345,
"api_key": "your_api_key"
}'
{
"success": true,
"data": {
"investor_id": 12345,
"usdt_balance": 1000.50,
"total_portfolio_value": 2500.75,
"portfolio": [
{
"symbol": "BTC",
"balance": 0.05,
"current_price": 45000.00,
"value_usdt": 2250.00
}
],
"timestamp": "2024-01-15T10:30:00.000Z"
}
}
Get real-time market data for specific symbol or all symbols
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"symbol": "BTC"
}
Note: symbol is optional. Omit to get all symbols.
{
"success": true,
"data": {
"symbol": "BTC",
"price": 45000.00,
"volume_24h": 1234567.89,
"change_24h": 2.5,
"high_24h": 46000.00,
"low_24h": 44000.00
},
"timestamp": "2024-01-15T10:30:00.000Z"
}
Get orderbook (buy/sell orders) for a specific symbol
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"symbol": "BTC",
"limit": 20
}
{
"success": true,
"data": {
"symbol": "BTC",
"bids": [
[44950.00, 0.5],
[44940.00, 1.2]
],
"asks": [
[45050.00, 0.8],
[45060.00, 0.3]
]
}
}
Get recent trade history for a specific symbol
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"symbol": "BTC",
"limit": 50
}
{
"success": true,
"data": {
"symbol": "BTC",
"trades": [
{
"timestamp": "2024-01-15T10:30:00Z",
"price": 45000.00,
"amount": 0.1,
"side": "buy"
}
]
}
}
Place a new buy or sell order (limit or market)
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"symbol": "BTC",
"side": "buy",
"type": "limit",
"amount": 0.1,
"price": 44000.00
}
Parameters:
• side: "buy" | "sell"
• type: "limit" | "market"
• Minimum order: 5 USDT
{
"success": true,
"data": {
"order_id": 12345,
"symbol": "BTC",
"side": "buy",
"type": "limit",
"amount": 0.1,
"price": 44000.00,
"status": "open",
"timestamp": "2024-01-15T10:30:00Z"
}
}
Cancel an existing open order
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"order_id": 12345
}
{
"success": true,
"data": {
"order_id": 12345,
"status": "cancelled",
"message": "Order cancelled successfully"
}
}
Get all your currently open orders
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"symbol": "BTC"
}
Note: symbol is optional for filtering.
{
"success": true,
"data": {
"orders": [
{
"order_id": 12345,
"symbol": "BTC",
"side": "buy",
"type": "limit",
"amount": 0.1,
"price": 44000.00,
"status": "open",
"created_at": "2024-01-15T10:30:00Z"
}
],
"total": 1
}
}
Get your order history (all orders)
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"symbol": "BTC",
"limit": 50
}
{
"success": true,
"data": {
"orders": [
{
"order_id": 12345,
"symbol": "BTC",
"side": "buy",
"type": "limit",
"amount": 0.1,
"status": "filled",
"created_at": "2024-01-15T10:30:00Z"
}
],
"total": 1
}
}
Rate Limit: Bulk operations are limited to 10 requests per minute and stricter validation.
Place multiple orders in a single request (max 20 orders)
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"orders": [
{
"symbol": "BTC",
"side": "buy",
"type": "limit",
"amount": 0.1,
"price": 44000.00
},
{
"symbol": "ETH",
"side": "sell",
"type": "limit",
"amount": 1.0,
"price": 3000.00
}
]
}
{
"success": true,
"data": {
"total_orders": 2,
"successful": 2,
"failed": 0,
"results": [
{
"index": 0,
"success": true,
"order_id": 12345,
"symbol": "BTC"
},
{
"index": 1,
"success": true,
"order_id": 12346,
"symbol": "ETH"
}
]
}
}
Cancel multiple orders in a single request (max 50 orders)
{
"investor_id": 12345,
"api_key": "your_api_key_here",
"order_ids": [12345, 12346, 12347]
}
{
"success": true,
"data": {
"total_orders": 3,
"successful": 2,
"failed": 1,
"results": [
{
"order_id": 12345,
"success": true,
"status": "cancelled"
},
{
"order_id": 12346,
"success": false,
"error": "ORDER_NOT_FOUND"
}
]
}
}
All errors return in this standardized format:
{
"error": "ERROR_CODE",
"message": "Human readable error message"
}
INVALID_CREDENTIALS
Invalid investor_id or api_key
RATE_LIMIT_EXCEEDED
Too many requests
INSUFFICIENT_BALANCE
Not enough balance
ORDER_NOT_FOUND
Order doesn't exist
SYMBOL_NOT_FOUND
Trading pair not found
ORDER_TOO_SMALL
Order below 5 USDT minimum
INVALID_PARAMS
Invalid or missing parameters
© 2024 CetoEX. All rights reserved.
Professional Market Making API