Dashboard

Overview of your API usage and account status.

Quick Start

Use your API Key in the Authorization header:

curl -H "X-DC-API-Key: YOUR_KEY" -H "X-DC-Timestamp: N" -H "X-DC-Signature: S" https://api.autotrading.io/api/v1/data/symbols

API Keys

Manage your API credentials. Secret is shown only once after creation.

Loading...

API Documentation

Reference for all available endpoints.

API Request Format / API 请求格式

All REST market-data requests use HMAC headers. Sign only the path part, not the query string.

GET https://api.autotrading.io/api/v1/data/{venue}/{symbol}/{data_type}?start={date}&end={date}&limit={limit} Headers: X-DC-API-Key: YOUR_API_KEY X-DC-Timestamp: UNIX_SECONDS X-DC-Signature: HMAC_SHA256_HEX

Path Parameters / 路径参数

NameRequiredExampleDescription
venueYesBINANCEExchange venue. Current production support is BINANCE.
symbolYesBTCUSDTRaw market symbol.
data_typeYesdepthOne of: depth, trade, kline, funding, oi, ls_ratio, liquidation, mark_index, options_mark, options_oi, spot, stablecoin, chain_data.

REST Endpoints / REST 接口

GET /api/v1/data/{venue}/{symbol}/{data_type} GET /api/v1/data/{venue}/{symbol}/bars GET /api/v1/data/{venue}/{symbol}/latest GET /api/v1/data/{venue}/{symbol}/features

Available data_type values:

data_typeMeaningMain fields
depthOrder book depth snapshotsts, bids, asks, last_update_id
tradeAggregated tradests, price, qty, side, trade_id
klineRealtime 5m exchange K-line streamopen, high, low, close, volume, closed
fundingFunding rate and premium indexrate, next_funding_ts, mark_price, index_price
oiOpen interestoi
ls_ratioLong/short account ratiolong_ratio, short_ratio, ls_ratio
liquidationForce liquidation eventsside, price, qty, notional
mark_indexMark/index pricemark_price, index_price, pred_funding
options_markOptions mark price and Greeksmark_price, bid_iv, ask_iv, delta, gamma, theta, vega
options_oiOptions open interestopen_interest, sum_open_interest
spotSpot ticker pricespot_price, source
stablecoinUSDT/USDC liquidityusdt_mcap, usdc_mcap, source
chain_dataBTC on-chain contextmempool_size_mb, whale_tx_count_1h

Response Format / 响应格式

{ "venue": "BINANCE", "symbol": "BTCUSDT", "data_type": "kline", "start_date": "2026-06-23", "end_date": "2026-06-23", "limit": 100, "offset": 0, "data": [ { "ts": 1782180000000, "symbol": "BINANCE:BTC/USDT:PERP", "open": 64156.0, "high": 64183.33, "low": 64121.92, "close": 64138.0, "closed": false } ], "total": 1, "has_more": false, "next_cursor": null }

Latest Snapshot Format / 最新快照格式

/latest returns the latest depth snapshot plus the realtime exchange K-line cache.

{ "venue": "BINANCE", "symbol": "BTCUSDT", "bar": { "ts": 1782180000000, "symbol": "BINANCE:BTC/USDT:PERP", "bids": [[64130.0, 1.2]], "asks": [[64131.0, 0.8]] }, "realtime_kline": { "interval": "5m", "open": 64156.0, "high": 64183.33, "low": 64121.92, "close": 64138.0, "closed": false }, "date": "2026-06-23" }

curl Example / curl 示例

curl \ -H "X-DC-API-Key: YOUR_API_KEY" \ -H "X-DC-Timestamp: 1782180146" \ -H "X-DC-Signature: YOUR_SIGNATURE" \ "https://api.autotrading.io/api/v1/data/BINANCE/BTCUSDT/kline?limit=100"

Common Query Parameters

All endpoints share the same query parameters.

ParamTypeDefaultDescription
startstringtodayStart date/time YYYY-MM-DD or YYYY-MM-DDThh:mm:ss
endstringtodayEnd date/time YYYY-MM-DD or YYYY-MM-DDThh:mm:ss
limitint100Rows per page (1-1000)
offsetint0Row offset
after_tsint-ts >= after_ts (ms)
before_tsint-ts < before_ts (ms)

Pagination: increment offset += limit until has_more == false. Or use next_cursor as before_ts.

WebSocket Request Format

Real-time trades, depth, kline, funding, OI, and long/short ratio via WebSocket. WebSocket access requires enterprise tier.

wss://api.autotrading.io/api/v1/ws/{venue}/{symbol}?api_key=YOUR_API_KEY Example: wss://api.autotrading.io/api/v1/ws/BINANCE/BTCUSDT?api_key=YOUR_API_KEY

WebSocket Message Format

{ "type": "kline", "venue": "BINANCE", "symbol": "BTCUSDT", "ts": 1782180146021, "data": { "wire_version": "2", "data_type": "kline", "payload": { "close": 64138.0, "closed": false } } }

HMAC-SHA256 Signature

All authenticated REST requests require three headers:

Authentication Headers

X-DC-API-Key: your_api_key X-DC-Timestamp: unix_timestamp_seconds X-DC-Signature: hex_hmac_sha256(signature_payload, api_secret)

Signature Payload

METHOD|/path|body|timestamp GET example, empty body: GET|/api/v1/data/BINANCE/BTCUSDT/latest||1782180146 POST example: POST|/api/v1/member/license/purchase|{"tier":"pro"}|1782180146

Node.js Example

const crypto = require("crypto"); const method = "GET"; const path = "/api/v1/data/BINANCE/BTCUSDT/kline"; const body = ""; const timestamp = Math.floor(Date.now() / 1000).toString(); const payload = `${method}|${path}|${body}|${timestamp}`; const signature = crypto.createHmac("sha256", API_SECRET).update(payload).digest("hex");

Timestamp must be within 30 seconds of server time.

Billing & License

Current plan and available upgrades. Payment via USDT.

Current Plan

Loading...

Upgrade Plan

License History

Loading...
Back to Billing

Upgrade Plan

Complete the payment and submit your transaction hash to activate.

Order Summary

Loading...

How to Upgrade

1

Copy the USDT Address

Copy the TRC-20 address above. Supports USDT on TRON network only.

2

Transfer USDT

Send the exact amount from your wallet (Binance, OKX, etc.). TRC-20 transfers usually confirm within 1-2 minutes.

3

Paste the TxID

After sending, copy the transaction hash (TxID) from your wallet and paste it above.

4

Wait for Activation

Admin will verify the payment and activate your license. Usually within a few hours.

Profile

Account information.

Loading...