ABCoin API
API mạnh mẽ và dễ sử dụng để tích hợp dữ liệu crypto, trading bot và ứng dụng blockchain
Tính năng API
Tất cả những gì bạn cần để xây dựng ứng dụng crypto chuyên nghiệp
Real-time WebSocket
Dữ liệu thời gian thực về giá, order book và trades với độ trễ dưới 10ms
Bảo mật cao
API key với quyền hạn tùy chỉnh, HMAC SHA256 signature và IP whitelist
High Performance
Rate limit 1200 requests/phút, uptime 99.9% và CDN toàn cầu
Tài liệu đầy đủ
Documentation chi tiết với examples, SDKs và sandbox environment
API Endpoints
Các endpoint chính để truy cập dữ liệu thị trường và giao dịch
/api/v1/ticker/24hr
Lấy thống kê 24h của tất cả trading pairs
Response Example:
{
"symbol": "BTCUSDT",
"priceChange": "1234.56",
"priceChangePercent": "2.34",
"lastPrice": "45678.90",
"volume": "123.456",
"quoteVolume": "5678901.23"
}
/api/v1/depth
Lấy order book depth cho một trading pair
Response Example:
{
"lastUpdateId": 1027024,
"bids": [
["45600.00", "0.123"],
["45599.99", "0.456"]
],
"asks": [
["45601.00", "0.789"],
["45601.01", "0.234"]
]
}
/api/v1/order
Đặt lệnh mua/bán (cần API key và signature)
Response Example:
{
"symbol": "BTCUSDT",
"side": "BUY",
"type": "LIMIT",
"quantity": "0.1",
"price": "45000.00",
"timeInForce": "GTC"
}
/api/v1/account
Lấy thông tin tài khoản và balance (cần API key)
Response Example:
{
"balances": [
{
"asset": "BTC",
"free": "1.234567",
"locked": "0.000000"
},
{
"asset": "USDT",
"free": "12345.67",
"locked": "123.45"
}
]
}
Official SDKs
Thư viện chính thức cho các ngôn ngữ lập trình phổ biến
Python
Python SDK với async support
Installation:
pip install abcoin-python
Example:
import abcoin
client = abcoin.Client(api_key, api_secret)
ticker = await client.get_ticker('BTCUSDT')
print(ticker['lastPrice'])
Node.js
JavaScript/TypeScript SDK
Installation:
npm install abcoin-api
Example:
const ABCoin = require('abcoin-api');
const client = new ABCoin({
apiKey: 'your_api_key',
apiSecret: 'your_api_secret'
});
const ticker = await client.ticker('BTCUSDT');
console.log(ticker.lastPrice);
Go
Golang SDK với high performance
Installation:
go get github.com/abcoin/go-api
Example:
package main
import "github.com/abcoin/go-api"
client := abcoin.NewClient("api_key", "api_secret")
ticker, err := client.GetTicker("BTCUSDT")
fmt.Println(ticker.LastPrice)
Bắt đầu sử dụng API
5 bước đơn giản để tích hợp ABCoin API vào ứng dụng của bạn
Tạo tài khoản ABCoin
Đăng ký tài khoản và hoàn thành xác thực KYC để có thể sử dụng API
Tạo API Key
Vào phần "API Management" trong settings để tạo API key và secret
Cấu hình quyền hạn
Thiết lập quyền read-only hoặc trading, whitelist IP nếu cần
Test với Sandbox
Sử dụng test environment để thử nghiệm trước khi deploy production
Go Live
Chuyển sang production endpoint và bắt đầu sử dụng
Sẵn sàng bắt đầu?
Tạo API key miễn phí ngay hôm nay và bắt đầu xây dựng ứng dụng crypto của bạn