Auxite Intelligence API
Zaten bağladığınız borsa hesapları için tek bir API. Paranızı hiç tutmayız: anahtarınız, güvenlik limitiniz içinde kendi hesabınızda emir verir. Paper ile başlayın (canlı fiyatla simülasyon), hazır olunca canlıya geçin.
Kimlik doğrulama
Geliştiriciler sayfasında bir anahtar oluşturun. Bearer token olarak ya da iki başlık halinde gönderin. Anahtarların yetkileri (read, trade), isteğe bağlı IP listesi ve modu (paper ya da live) vardır. Gizli kısım bir kez gösterilir.
Authorization: Bearer ak_xxxxxxxxxxxxxxxx.sk_…
# or
X-Auxite-Key-Id: ak_xxxxxxxxxxxxxxxx
X-Auxite-Secret: sk_…
Base URL: https://api.auxite.ai/v1 (also https://auxite.ai/api/v1)Paper ve canlı
Paper anahtarlar (varsayılan) canlı fiyatlara karşı simüle edilir; her borsa için sanal 10.000 USDT (POST /paper/reset ile sıfırlanır). Canlı anahtarlar web uygulamasıyla aynı motordan gerçek emir gönderir: kabul edilmiş koşullar ve aktif abonelik gerekir, her emir emir başına güvenlik limitinize sayılır.
Hızlı başlangıç
# 1) your connected accounts
curl https://api.auxite.ai/v1/accounts \
-H "Authorization: Bearer $AUXITE_KEY"
# 2) a paper market buy (venue works on paper keys; live keys need account_id)
curl -X POST https://api.auxite.ai/v1/orders \
-H "Authorization: Bearer $AUXITE_KEY" -H "Content-Type: application/json" \
-d '{"venue":"binance","symbol":"btc_usdt","side":"buy","type":"market","qty":0.001,"client_order_id":"demo-1"}'
# 3) a bracket: entry at market, take-profit and stop-loss held until it fills
curl -X POST https://api.auxite.ai/v1/orders \
-H "Authorization: Bearer $AUXITE_KEY" -H "Content-Type: application/json" \
-d '{"venue":"binance","symbol":"btc_usdt","side":"buy","type":"market","qty":0.001,
"order_class":"bracket","take_profit":{"limit_price":120000},"stop_loss":{"stop_price":90000}}'const key = process.env.AUXITE_KEY; // "ak_….sk_…"
const r = await fetch("https://api.auxite.ai/v1/orders", {
method: "POST",
headers: { Authorization: `Bearer ${key}`, "Content-Type": "application/json" },
body: JSON.stringify({ account_id: "<from /accounts>", symbol: "btc_usdt", side: "sell",
type: "stop", stop_price: 90000, qty: 0.001, client_order_id: crypto.randomUUID() }),
});
console.log(r.status, await r.json());import os, requests
H = {"Authorization": f"Bearer {os.environ['AUXITE_KEY']}"}
draft = requests.post("https://api.auxite.ai/v1/intents", headers=H,
json={"account_id": "<id>", "text": "sell 0.01 btc if it drops 5% from its high"}).json()
print(draft["reply"], draft["drafts"])
# nothing is placed until you confirm:
order = requests.post("https://api.auxite.ai/v1/orders", headers=H,
json={"intent_id": draft["id"], "draft_index": 0}).json()Uç noktalar
| GET | /account | The calling key: mode, scopes, per-order limit |
| GET | /venues | Supported exchanges and whether each is live |
| GET | /accounts | Your connected exchange accounts |
| GET | /accounts/{id}/balances | Balances (virtual on paper keys) |
| GET | /market/{venue}/{symbol} | Last price |
| POST | /orders | Place an order |
| GET | /orders | List orders |
| GET | /orders/{id} | Get an order |
| DELETE | /orders/{id} | Cancel an order (and its legs) |
| GET | /strategies | Live conditional strategies (live keys) |
| POST | /strategies | Create a strategy in the worker's native shape (live keys) |
| DELETE | /strategies/{id} | Cancel a strategy |
| GET | /positions | Open futures positions (live keys) |
| POST | /intents | Sentence → draft orders. Nothing executes until POST /orders with intent_id + draft_index. |
| POST | /paper/reset | Reset a paper balance to 10,000 USDT |
Emirler
Türler: market, limit, stop, stop_limit, trailing_stop. Sınıflar: simple, bracket, oco, oto. Paper hepsini destekler. Canlıda şu an: basit market/limit, stop satış (zarar durdur), stop alış (kırılım), trailing_stop satış ve oco satış; diğerleri 422 not_supported_live döner. Desteklenen borsalarda canlı zarar durdur borsanın kendisinde durur. Tekrar denemeleri güvenli yapmak için client_order_id gönderin.
Niyetler (cümleyle emir)
POST /intents bir cümleyi emir taslaklarına çevirir ve hiçbir şey yürütmez. Taslağı POST /orders {intent_id, draft_index} ile verirsiniz. Böylece açık onay olmadan hiçbir şey çalışmaz.
Webhook'lar
Geliştiriciler sayfasında bir HTTPS adresi tanımlayın. Olaylar: order.filled, order.canceled, order.rejected, position.opened, position.closed. X-Auxite-Signature başlığını doğrulayın: t=<ms>,v1=HMAC-SHA256(secret, t + '.' + body). WebSocket akışı sırada; o zamana kadar webhook ya da GET /orders kullanın.
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(header, body, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const mac = createHmac("sha256", secret).update(`${t}.${body}`).digest("hex");
return Math.abs(Date.now() - Number(t)) < 300_000 && timingSafeEqual(Buffer.from(mac), Buffer.from(v1));
}Hatalar ve sınırlar
Hatalar JSON {code, message} döner. Anahtar başına dakikada 120 okuma ve 30 işlem isteği (429 rate_limited). Niyetler: kullanıcı başına saatte 40.
401 unauthorized · 403 forbidden_scope | ip_not_allowed | terms_required | subscription_required | plan_upgrade_required
404 not_found | account_not_found | intent_not_found · 409 duplicate_in_flight
422 over_user_limit | not_supported_live · 429 rate_limited · 502 price_unavailable | venue_error | upstream_unavailableYapay zekâ ajanları için MCP sunucusu
Ajana önce paper anahtarınızı verin. Canlı anahtarda place_order gerçek emirdir: ajan emri kullanıcıya gösterip onay almalı.
{
"mcpServers": {
"auxite": {
"command": "npx",
"args": ["-y", "@auxite/mcp"],
"env": { "AUXITE_API_KEY": "ak_….sk_…" }
}
}
}Tools: get_accounts, get_balances, get_quote, place_order, cancel_order, list_orders, draft_order.
Fiyat
API erişimi planlara dahil: partner borsalar aylık 14,95 $, tüm borsalar aylık 29,90 $. Paper ücretsiz.