Esecuzione degli ordini con latenza sub-millisecondo grazie all'infrastruttura co-locata nei principali data center finanziari.
API REST complete per operazioni standard e WebSocket per streaming dati in tempo reale e notifiche istantanee.
Autenticazione HMAC-SHA256, rate limiting configurabile, IP whitelisting e chiavi API con permessi granulari.
SLA garantito con infrastruttura ridondante e failover automatico. Monitoraggio 24/7 e supporto dedicato.
import hmac
import hashlib
import requests
import time
API_KEY = "your_api_key"
API_SECRET = "your_api_secret"
BASE_URL = "https://api.bitchangepro.com"
def sign_request(method, path, body=""):
timestamp = str(int(time.time() * 1000))
message = timestamp + method + path + body
signature = hmac.new(
API_SECRET.encode(),
message.encode(),
hashlib.sha256
).hexdigest()
return timestamp, signature
# Get account balance
path = "/v1/account/balance"
timestamp, signature = sign_request("GET", path)
headers = {
"X-API-KEY": API_KEY,
"X-TIMESTAMP": timestamp,
"X-SIGNATURE": signature
}
response = requests.get(BASE_URL + path, headers=headers)
print(response.json())| Metodo | Endpoint |
|---|---|
| GET | /v1/markets |
| GET | /v1/ticker/{symbol} |
| GET | /v1/orderbook/{symbol} |
| GET | /v1/trades/{symbol} |
| Metodo | Endpoint |
|---|---|
| POST | /v1/orders |
| GET | /v1/orders/{id} |
| DELETE | /v1/orders/{id} |
| GET | /v1/orders/open |
| Metodo | Endpoint |
|---|---|
| GET | /v1/account/balance |
| GET | /v1/account/positions |
| GET | /v1/account/history |
| GET | /v1/account/fees |