ایک دستخط شدہ REST API جو پورے TradeMire پلیٹ فارم کا احاطہ کرتا ہے: عوامی مارکیٹ ڈیٹا (مارکیٹس، اثاثے، ایکسچینجز، چینز، میکرو انڈیکیٹرز) اور آپ کی نجی تجوریاں، اسٹریٹیجیز، نوڈز، اور آرڈرز - سب HMAC-SHA256 سے تصدیق شدہ اور ہر جگہ pagination کے ساتھ۔
بیس URLhttps://trademire.ai/api
Path پریفکس/v1/{apiKey}
ورژنv1
تصدیقHMAC-SHA256
ریٹ لمٹہر endpoint کے مطابق مختلف
SDK@trademire/platform-api
GETTING STARTED · QUICK START
کوئیک اسٹارٹ
آپ کی پہلی دستخط شدہ کال کے لیے تین مراحل: SDK انسٹال کریں، اپنی تصدیقی معلومات ترتیب دیں، اور markets.list() کال کریں۔
1 - SDK انسٹال کریں
npm install @trademire/platform-api
2 - کلائنٹ ترتیب دیں
import { PlatformApiClient } from "@trademire/platform-api";
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
3 - اپنی پہلی کال کریں
let res = await client.markets.list({ pagination: { page: 1, limit: 10 } });
if (!res.success) {
console.error("Auth or upstream failure:", res.message);
} else {
for (let m of res.items) {
console.log(m.pair, m.lastPrice, m.priceQuote);
}
}
SDK ہر درخواست کے لیے شفاف طریقے سے {anyKey} تیار کرتا ہے، HMAC-SHA256 کے ساتھ باڈی پر دستخط کرتا ہے، تمام چار درکار ہیڈرز منسلک کرتا ہے، اور JSON جواب کو پارس کرتا ہے۔ آپ کبھی بھی دستخط کرنے والے بنیادی اجزاء کو براہ راست نہیں چھوتے۔ اگر آپ SDK کے بغیر API کال کرتے ہیں (cURL، حسب ضرورت HTTP کلائنٹس، دیگر زبانیں)، تو مکمل دستخط کی ترکیب کے لیے نیچے Authentication دیکھیں۔
GETTING STARTED · AUTHENTICATION
تصدیق
یہ سیکشن درخواست پر دستخط کرنے کے عمل کا گہرائی سے جائزہ ہے۔ اگر آپ @trademire/platform-api SDK استعمال کرتے ہیں، تو دستخط خودکار طور پر ہوتے ہیں اور آپ اسے سرسری طور پر دیکھ کر آگے بڑھ سکتے ہیں - نیچے دی گئی ترکیب دستی طور پر دستخط کرنے والے کالرز (cURL، لو-لیول HTTP کلائنٹس، دیگر زبانوں) کے لیے ہے۔ ہر Platform API کال - عوامی لسٹنگز کے ساتھ ساتھ نجی پول کارروائیاں بھی - خام JSON درخواست باڈی پر HMAC-SHA256 کے ساتھ دستخط شدہ ہوتی ہے۔ دستخط یہ ثابت کرتا ہے کہ آپ کے پاس API سیکرٹ موجود ہے بغیر اسے کبھی منتقل کیے، اور ٹائم اسٹیمپ ہر درخواست کو 5 منٹ کی ری پلے ونڈو تک محدود کرتا ہے۔ وہی تین ہیڈرز (key، signature، timestamp) ہر چیز کی تصدیق کرتے ہیں؛ PRIVATE endpoints آپ کی API key کے تخلیق کے وقت منسلک کردہ پول تک محدود ہوتے ہیں، اس لیے باڈی میں کالر کی جانب سے فراہم کردہ poolKey کو نظرانداز کر دیا جاتا ہے۔ نیچے دیے گئے ہر endpoint کو اس کے معیاری میتھڈ کے ساتھ دستاویزی شکل دی گئی ہے - بغیر باڈی کے خالص reads کے لیے GET، اور باڈی رکھنے والی یا حالت تبدیل کرنے والی کسی بھی چیز کے لیے POST۔ SDK دستاویزی verb خودکار طور پر بھیجتا ہے - بغیر باڈی کے reads کے لیے GET (معیاری خالی آبجیکٹ کے طور پر دستخط شدہ) اور باڈی رکھنے والی کالز کے لیے POST۔
ہر endpoint ایک HTTP میتھڈ اعلان کرتا ہے: بغیر باڈی کے reads کے لیے GET، اور باڈی رکھنے والے سوالات (list، search، OHLC) کے ساتھ ساتھ حالت تبدیل کرنے والی تحریروں (رن ٹائم پروفائل سیٹ کرنا، لائف سائیکل کارروائیاں) کے لیے POST۔ ایک خالی یا غیر موجود باڈی {} کے طور پر دستخط ہوتی ہے (کبھی بھی خالی سٹرنگ کے طور پر نہیں)، اور /help ڈسکوری endpoints بغیر تصدیقی ہیڈرز کے فراہم کیے جاتے ہیں۔ SDK دستاویزی میتھڈ خودکار طور پر دستخط اور بھیجتا ہے؛ خام HTTP کالرز کو ہر endpoint پر اعلان کردہ verb استعمال کرنا لازمی ہے۔
کیا چیز دستخط ہوتی ہے
// Generate HMAC-SHA256 signature from the raw request body as lowercase hex
signature = HMAC_SHA256(apiSecret, requestBody).toHex()
صرف خام JSON باڈی پر دستخط ہوتے ہیں۔ Path، {apiKey}، query string، اور timestamp دستخط شدہ پے لوڈ کا حصہ نہیں ہیں۔ باڈی کو آپ کی منتقل کردہ چیز سے بائٹ کے اعتبار سے یکساں ہونا لازمی ہے - ایک بار سیریلائز کریں، اسی صحیح سٹرنگ پر دستخط کریں، اور اسے درخواست باڈی کے طور پر بھیجیں۔
جب آپ باڈی بناتے ہیں، تو آبجیکٹ keys کو بڑھتی ہوئی حروف تہجی کی ترتیب میں ترتیب دیں (canonical JSON)۔ Arrays اپنی اعلان کردہ ترتیب برقرار رکھتی ہیں اور undefined ویلیوز ہٹا دی جاتی ہیں۔ SDK یہ خودکار طور پر لاگو کرتا ہے؛ دستی طور پر دستخط کرنے والوں کو اسے بائٹ بہ بائٹ مطابقت دینا لازمی ہے ورنہ دستخط کی تصدیق نہیں ہوگی۔
درکار ہیڈرز
نام
لازمی
تفصیل
Content-Type
لازمی
application/json ہونا لازمی ہے۔
X-API-Key
لازمی
پلیٹ فارم ڈیش بورڈ سے جاری کردہ API key کا عوامی شناخت کنندہ۔ متعلقہ سیکرٹ کبھی شیئر نہ کریں۔
X-API-Signature
لازمی
خام درخواست باڈی کا lowercase hex-encoded HMAC-SHA256، جو API سیکرٹ کو key کے طور پر استعمال کر کے شمار کیا جاتا ہے۔
X-API-Timestamp
لازمی
Unix epoch ملی سیکنڈز میں درخواست کی تخلیق کا وقت۔ سرور 5 منٹ کی ڈرفٹ ونڈو سے باہر ٹائم اسٹیمپس کو مسترد کرتا ہے (ری پلے تحفظ)۔
درخواست URL
ہر endpoint ایک ہی شکل کی پیروی کرتا ہے:
POST/:path
ہر endpoint /v1/{apiKey} کے تحت آتا ہے۔ {apiKey} path جزو آپ کی عوامی API key ہے (وہی ویلیو جو X-API-Key ہیڈر میں بھیجی جاتی ہے) اور یہ دستخط شدہ پے لوڈ کا حصہ نہیں ہے۔
لمبا فیچر ایڈریس https://trademire.ai/api/platform-api/{apiKey}/v1 بالکل انہی endpoints کا جواب دیتا ہے اور ان انضمامات کے لیے کھلا رہتا ہے جو پہلے ہی اس پر بنائے جا چکے ہیں۔ دونوں شکلیں انہی سرورز تک پہنچتی ہیں، انہی ریٹ لمٹس کی حامل ہیں اور وہی دستخط لیتی ہیں۔
درخواست پر دستخط کرنا
آپ کی منتقل کردہ باڈی کی صحیح بائٹ ترتیب پر HMAC شمار کریں۔ اپنی زبان منتخب کریں:
import crypto from "crypto";
// 1. Build the request body and per-request metadata
let apiKey = process.env.API_KEY;
let body = JSON.stringify({ pagination: { page: 1, limit: 50 } });
let timestamp = Date.now().toString();
// 2. Sign the raw body with HMAC-SHA256 using your API secret
let signature = crypto
.createHmac("sha256", process.env.API_SECRET)
.update(body)
.digest("hex");
// 3. Send the signed request with all four required auth headers
let res = await fetch(`https://trademire.ai/api/v1/${apiKey}/markets/list`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": apiKey,
"X-API-Signature": signature,
"X-API-Timestamp": timestamp,
},
body,
});
کسی بھی تصدیقی ناکامی کے لیے - غائب ہیڈر، خراب دستخط، ختم شدہ ٹائم اسٹیمپ، معطل key، بلاک شدہ IP، یا غیر مجاز زمرہ - سرور وہی عام MessageAccessForbidden جواب دیتا ہے۔ مخصوص وجہ جان بوجھ کر کالر کو ظاہر نہیں کی جاتی (تصدیقی معلومات کی گنتی اور oracle حملوں کو روکتا ہے)۔ دوبارہ کوشش کرنے سے پہلے اپنی مقامی درخواست کا جائزہ لیں:
کیا باڈی اس سٹرنگ سے بائٹ کے اعتبار سے یکساں ہے جس پر آپ نے دستخط کیے تھے؟ دوبارہ سیریلائز کرنے سے whitespace اور key کی ترتیب بدل سکتی ہے، جو دونوں hash کو خراب کر دیں گی۔
کیا آپ کی مقامی گھڑی UTC کے 5 منٹ کے اندر ہے؟ X-API-Timestampملی سیکنڈز میں ہے، سیکنڈز میں نہیں۔
کیا آپ نے API سیکرٹ کے ساتھ دستخط کیے (API key کے ساتھ نہیں)؟
کیا دستخط lowercase hex ہے (0-9a-f)؟
کیا آپ کا IP آپ کی key کی allowlist میں ہے (اگر آپ نے ڈیش بورڈ میں ایک ترتیب دی تھی)؟
GETTING STARTED · ERRORS
خرابیاں
یہ ایرر کوڈز ہر endpoint پر لاگو ہوتے ہیں۔ ہر ایرر جواب میں ایک rayId ہوتا ہے جسے آپ سپورٹ سے رابطہ کرتے وقت حوالے کے طور پر استعمال کر سکتے ہیں۔
کوڈ
تفصیل
MessageAccessForbidden
کسی بھی تصدیقی ناکامی (غائب، خراب، یا غلط دستخط، ختم شدہ ٹائم اسٹیمپ، معطل key، بلاک شدہ IP) کے لیے واپس کیا جاتا ہے۔ گنتی کے حملوں کو روکنے کے لیے مخصوص وجہ جان بوجھ کر ظاہر نہیں کی جاتی۔
MessageMissingParameter
ایک لازمی URL پیرامیٹر (مثال کے طور پر فی-مارکیٹ endpoints پر :pair) غائب ہے، خراب ہے، یا الفانیومیرک / لمبائی کی توثیق میں ناکام ہو جاتا ہے۔
MessageRateLimitExceeded
اس endpoint کے لیے فی-key ریٹ لمٹ سے تجاوز کر لیا گیا ہے۔ دوبارہ کوشش کرنے سے پہلے Retry-After جواب ہیڈر کا جائزہ لیں۔
MessageInternalError
ایک غیر متوقع اندرونی خرابی پیش آئی۔ جواب میں ایک rayId شامل ہے جسے آپ سپورٹ سے رابطہ کرتے وقت حوالے کے طور پر استعمال کر سکتے ہیں - کالر کو مزید کوئی تفصیلات ظاہر نہیں کی جاتیں۔
PUBLIC · MARKETS
مارکیٹس کی فہرست
پلیٹ فارم کی جانب سے فی الحال ٹریک کی گئی ہر مارکیٹ کی معیاری اور مختصر فہرست واپس کرتا ہے۔ ہر اندراج میں مقامات کے مطابق تازہ ترین مجتمع قیمت، وہ quote کرنسی جس میں قیمت ظاہر کی گئی ہے، اور ایک فلیگ جو بتاتا ہے کہ آیا مارکیٹ فعال ہے شامل ہیں۔ فلٹرنگ، ترتیب، اور کرسر pagination لاگو کرنے کے لیے باڈی استعمال کریں - فی-جوڑا تفصیل (مکمل ٹکر، لسٹنگ، لمٹ، پروفائل، OHLC) sharded /market/:pair/* endpoints پر موجود ہے۔
ایک ٹریڈنگ جوڑے کے لیے لائیو مجموعی ٹکر واپس کرتا ہے: آخری قیمت اور اس کی 24 گھنٹے کی تبدیلی، spread کے ساتھ بہترین bid/ask، 24 گھنٹے کا base حجم، اور اس قدر کو بنانے والے مقامات کی تعداد۔
GET/market/:pair/ticker
AuthHMAC-SHA256Rate limit30 req/minURL param:pair
URL پیرامیٹرز
نام
لازمی
تفصیل
pair
required
Canonical pair key in BASE_QUOTE form (e.g. BTC_USDT). Alphanumeric, underscore and dash only, max 64 chars.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getTicker("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
ticker
فیلڈ
قسم
تفصیل
pair
string
Canonical market pair key.
baseSymbol
string
Base asset symbol.
quoteSymbol
string
Quote asset symbol.
nrOfExchanges
number
Number of venues contributing to the aggregate.
lastPrice
number
Last aggregated trade price.
change
number
Change of the last aggregated price over the last 24 hours.
bidPrice
number
Current best bid price.
askPrice
number
Current best ask price.
volume
number
24h base-currency volume.
spread
number
Current bid/ask spread.
hasVolumeData
boolean
Whether live volume data is present.
hasPriceData
boolean
Whether live price data is present.
sourceDelaySecs
number
How far behind the live market the price is, in seconds. Left out while the price is live.
کسی ٹریڈنگ جوڑے کے ٹکر کو اسے لسٹ کرنے والے ہر مقام پر الگ دکھانے کے لیے بنایا گیا ہے۔ فی الحال یہ Get Market Ticker کی طرح ایک ہی مجموعی ٹکر واپس کرتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getTickerExchanges("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
item
فی الحال جواب Get Market Ticker کی ticker شکل میں ایک ہی item ہے، ہر مقام کی فہرست نہیں۔
ایک مارکیٹ کے لیے لسٹنگ-دستیابی کی شکل واپس کرتا ہے - فلیگز کا ایک مختصر سیٹ جو بیان کرتا ہے کہ آیا جوڑا لسٹ شدہ ہے، فعال ہے، کھلے عام ٹریڈ کے قابل ہے، اور آیا مارجن ٹریڈنگ کی حمایت کی جاتی ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getListing("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getLimits("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
مارکیٹ پروفائل کی شکل واپس کرتا ہے: ٹیگز کے ساتھ ساتھ Get Market Listing جیسا ہی لسٹنگ/سرگرمی میٹا ڈیٹا۔ اسے اس وقت استعمال کریں جب آپ ایک ہی کال میں دستیابی کے فلیگز کے ساتھ وضاحتی میٹا ڈیٹا چاہتے ہوں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getProfile("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
ایک مارکیٹ کے لیے OHLC کینڈل سیریز واپس کرتا ہے۔ طے شدہ طور پر aggLast (آخری-ٹریڈ) کینڈلز، جبکہ حجم کینڈلز کے لیے aggVol دستیاب ہے۔ ٹائم فریم اور وقت کی حد باڈی میں بھیجی جاتی ہے۔
POST/market/:pair/ohlc
AuthHMAC-SHA256Rate limit30 req/min
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
field
string
optional
One of aggLast (default) or aggVol.
interval
string
optional
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getOhlc("BTC_USDT", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
ohlc
فیلڈ
قسم
تفصیل
pair
string
Canonical market pair key
field
string
Snapshotted field that drove the bins.
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
ایک مارکیٹ کی قیمت کینڈلز سے اس کے تمام شمار کردہ تکنیکی انڈیکیٹرز واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیے جاتے ہیں تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.indicators("BTC_USDT", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
market-indicators[":pair"]
فیلڈ
قسم
تفصیل
pair
string
Canonical market pair key
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
tComputed
number
Unix time of the calculation moment
changePct_val
number
Percentage change between the first and last candle of the window
changePct_periods
number
Candles used for the change percentage
changePct9_val
number
Percentage change over the last 9 candles
changePct9_periods
number
Candles used for the 9 candle change percentage
changePct12_val
number
Percentage change over the last 12 candles
changePct12_periods
number
Candles used for the 12 candle change percentage
changePct25_val
number
Percentage change over the last 25 candles
changePct25_periods
number
Candles used for the 25 candle change percentage
sma20_val
number
Simple moving average of the candle closes, over 20 candles
sma20_periods
number
Candles used for the 20 candle simple moving average
sma50_val
number
Simple moving average of the candle closes, over 50 candles
sma50_periods
number
Candles used for the 50 candle simple moving average
sma200_val
number
Simple moving average of the candle closes, over 200 candles, the long trend line
sma200_periods
number
Candles used for the 200 candle simple moving average
ema9_val
number
Exponential moving average of the candle closes, over 9 candles
ema9_periods
number
Candles used for the 9 candle exponential moving average
ema21_val
number
Exponential moving average of the candle closes, over 21 candles
ema21_periods
number
Candles used for the 21 candle exponential moving average
ema50_val
number
Exponential moving average of the candle closes, over 50 candles
ema50_periods
number
Candles used for the 50 candle exponential moving average
rsi9_val
number
Fast relative strength index between 0 and 100, over 9 candles
rsi9_periods
number
Candles used for the fast relative strength index
rsi14_val
number
Relative strength index between 0 and 100, over 14 candles
rsi14_periods
number
Candles used for the relative strength index
rsi21_val
number
Slow relative strength index between 0 and 100, over 21 candles
rsi21_periods
number
Candles used for the slow relative strength index
atr7_val
number
Average true range over 7 candles
atr7_periods
number
Candles used for the 7 candle average true range
atr14_val
number
Average true range over 14 candles
atr14_periods
number
Candles used for the 14 candle average true range
atr21_val
number
Average true range over 21 candles
atr21_periods
number
Candles used for the 21 candle average true range
bollinger1sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger1sd_upper
number
Bollinger upper band, the middle band plus one standard deviation
bollinger1sd_lower
number
Bollinger lower band, the middle band minus one standard deviation
bollinger1sd_periods
number
Candles used for the bollinger bands
bollinger2sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger2sd_upper
number
Bollinger upper band, the middle band plus two standard deviations
bollinger2sd_lower
number
Bollinger lower band, the middle band minus two standard deviations
bollinger2sd_periods
number
Candles used for the bollinger bands
bollinger3sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger3sd_upper
number
Bollinger upper band, the middle band plus three standard deviations
bollinger3sd_lower
number
Bollinger lower band, the middle band minus three standard deviations
bollinger3sd_periods
number
Candles used for the bollinger bands
macd_val
number
Moving average convergence divergence line, using 12, 26 and 9 candles
macd_signal
number
Signal line of the convergence divergence indicator
macd_histogram
number
Distance between the convergence divergence line and its signal line
macd_periods
number
Candles used for the convergence divergence indicator
macd535_val
number
Moving average convergence divergence line, using 5, 35 and 5 candles
macd535_signal
number
Signal line of the 5, 35 and 5 convergence divergence indicator
macd535_histogram
number
Distance between the 5, 35 and 5 convergence divergence line and its signal line
macd535_periods
number
Candles used for the 5, 35 and 5 convergence divergence indicator
relativeVolume10_val
number
Latest daily volume reading against the average of the previous 10 readings, where one means the usual pace
relativeVolume10_periods
number
Readings used for the 10 reading relative volume
relativeVolume20_val
number
Latest daily volume reading against the average of the previous 20 readings, where one means the usual pace
relativeVolume20_periods
number
Readings used for the 20 reading relative volume
relativeVolume50_val
number
Latest daily volume reading against the average of the previous 50 readings, where one means the usual pace
relativeVolume50_periods
number
Readings used for the 50 reading relative volume
rollingHigh10_val
number
Highest price seen over the last 10 candles
rollingHigh10_periods
number
Candles used for the 10 candle rolling high
rollingHigh20_val
number
Highest price seen over the last 20 candles
rollingHigh20_periods
number
Candles used for the 20 candle rolling high
rollingHigh55_val
number
Highest price seen over the last 55 candles
rollingHigh55_periods
number
Candles used for the 55 candle rolling high
rollingLow10_val
number
Lowest price seen over the last 10 candles
rollingLow10_periods
number
Candles used for the 10 candle rolling low
rollingLow20_val
number
Lowest price seen over the last 20 candles
rollingLow20_periods
number
Candles used for the 20 candle rolling low
rollingLow55_val
number
Lowest price seen over the last 55 candles
rollingLow55_periods
number
Candles used for the 55 candle rolling low
vwap_val
number
Volume weighted average price over whole days, each day weighted by what it traded
vwap_periods
number
Whole days used for the volume weighted average price
rankPct20_val
number
Share of the last 20 candles that closed at or below the latest one, from 0 to 100
rankPct20_periods
number
Candles used for the 20 candle rank
rankPct50_val
number
Share of the last 50 candles that closed at or below the latest one, from 0 to 100
rankPct50_periods
number
Candles used for the 50 candle rank
<indicator>_periodsNeeded
number
Lookback a reading waits to fill, published with its periods only while it has no value; each new candle adds one to the periods
ایک مارکیٹ کی قیمت کینڈلز سے اس کا ایک شمار کردہ تکنیکی انڈیکیٹر واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیا جاتا ہے تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.indicator("BTC_USDT", "rsi14", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
market-indicators[":pair"]
فیلڈ
قسم
تفصیل
pair
string
Canonical market pair key
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
Markets زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
پلیٹ فارم کی جانب سے ٹریک کیے گئے ہر اثاثے کی معیاری اور مختصر فہرست - آخری مجتمع قیمت، اثاثے کی قسم، اور لسٹنگ کی حیثیت۔ فلٹرنگ، ترتیب، اور کرسر پیجینیشن کی حمایت کی جاتی ہے۔
POST/assets/list
AuthHMAC-SHA256Rate limit10 req/minPagination
باڈی پیرامیٹرز
List Markets جیسی ہی شکل: filtering، sorting، pagination۔ تلاش کی اصطلاح کا اثاثے کے سمبل اور نام کے فیلڈز سے موازنہ کیا جاتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
قیمت، 24 گھنٹے کے حجم، تبدیلی، غلبے، اسے لسٹ کرنے والے ایکسچینجز کی تعداد، مجتمع حدود، اور نیٹ ورک شناخت کنندہ کی بنیاد پر فی-نیٹ ورک حدود کے ساتھ ایک اثاثہ واپس کرتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.get("BTC");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
asset
فیلڈ
قسم
تفصیل
assetType / isListed
string / bool
Type and listing flag.
lastPrice / priceQuote
number / string
Latest aggregated price and its quote currency.
volume24h / change24h / dominance
number
24h volume, percent change, and market dominance share.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.getProfile("BTC");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
profile
فیلڈ
قسم
تفصیل
description
string
Asset description text.
supplyCirculating / supplyTotal / supplyMax
number
Supply figures.
urls
array
Array of { key, value } URL entries (social, web, explorer).
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.getOhlc("BTC", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
asset-ohlc[":symbol"]
فیلڈ
قسم
تفصیل
symbol
string
Global asset symbol
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
ایک اثاثے کی قیمت کینڈلز سے اس کے تمام شمار کردہ تکنیکی انڈیکیٹرز واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیے جاتے ہیں تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.indicators("BTC", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
asset-indicators[":symbol"]
فیلڈ
قسم
تفصیل
symbol
string
Asset symbol
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
tComputed
number
Unix time of the calculation moment
changePct_val
number
Percentage change between the first and last candle of the window
changePct_periods
number
Candles used for the change percentage
changePct9_val
number
Percentage change over the last 9 candles
changePct9_periods
number
Candles used for the 9 candle change percentage
changePct12_val
number
Percentage change over the last 12 candles
changePct12_periods
number
Candles used for the 12 candle change percentage
changePct25_val
number
Percentage change over the last 25 candles
changePct25_periods
number
Candles used for the 25 candle change percentage
sma20_val
number
Simple moving average of the candle closes, over 20 candles
sma20_periods
number
Candles used for the 20 candle simple moving average
sma50_val
number
Simple moving average of the candle closes, over 50 candles
sma50_periods
number
Candles used for the 50 candle simple moving average
sma200_val
number
Simple moving average of the candle closes, over 200 candles, the long trend line
sma200_periods
number
Candles used for the 200 candle simple moving average
ema9_val
number
Exponential moving average of the candle closes, over 9 candles
ema9_periods
number
Candles used for the 9 candle exponential moving average
ema21_val
number
Exponential moving average of the candle closes, over 21 candles
ema21_periods
number
Candles used for the 21 candle exponential moving average
ema50_val
number
Exponential moving average of the candle closes, over 50 candles
ema50_periods
number
Candles used for the 50 candle exponential moving average
rsi9_val
number
Fast relative strength index between 0 and 100, over 9 candles
rsi9_periods
number
Candles used for the fast relative strength index
rsi14_val
number
Relative strength index between 0 and 100, over 14 candles
rsi14_periods
number
Candles used for the relative strength index
rsi21_val
number
Slow relative strength index between 0 and 100, over 21 candles
rsi21_periods
number
Candles used for the slow relative strength index
atr7_val
number
Average true range over 7 candles
atr7_periods
number
Candles used for the 7 candle average true range
atr14_val
number
Average true range over 14 candles
atr14_periods
number
Candles used for the 14 candle average true range
atr21_val
number
Average true range over 21 candles
atr21_periods
number
Candles used for the 21 candle average true range
bollinger1sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger1sd_upper
number
Bollinger upper band, the middle band plus one standard deviation
bollinger1sd_lower
number
Bollinger lower band, the middle band minus one standard deviation
bollinger1sd_periods
number
Candles used for the bollinger bands
bollinger2sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger2sd_upper
number
Bollinger upper band, the middle band plus two standard deviations
bollinger2sd_lower
number
Bollinger lower band, the middle band minus two standard deviations
bollinger2sd_periods
number
Candles used for the bollinger bands
bollinger3sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger3sd_upper
number
Bollinger upper band, the middle band plus three standard deviations
bollinger3sd_lower
number
Bollinger lower band, the middle band minus three standard deviations
bollinger3sd_periods
number
Candles used for the bollinger bands
macd_val
number
Moving average convergence divergence line, using 12, 26 and 9 candles
macd_signal
number
Signal line of the convergence divergence indicator
macd_histogram
number
Distance between the convergence divergence line and its signal line
macd_periods
number
Candles used for the convergence divergence indicator
macd535_val
number
Moving average convergence divergence line, using 5, 35 and 5 candles
macd535_signal
number
Signal line of the 5, 35 and 5 convergence divergence indicator
macd535_histogram
number
Distance between the 5, 35 and 5 convergence divergence line and its signal line
macd535_periods
number
Candles used for the 5, 35 and 5 convergence divergence indicator
relativeVolume10_val
number
Latest daily volume reading against the average of the previous 10 readings, where one means the usual pace
relativeVolume10_periods
number
Readings used for the 10 reading relative volume
relativeVolume20_val
number
Latest daily volume reading against the average of the previous 20 readings, where one means the usual pace
relativeVolume20_periods
number
Readings used for the 20 reading relative volume
relativeVolume50_val
number
Latest daily volume reading against the average of the previous 50 readings, where one means the usual pace
relativeVolume50_periods
number
Readings used for the 50 reading relative volume
rollingHigh10_val
number
Highest price seen over the last 10 candles
rollingHigh10_periods
number
Candles used for the 10 candle rolling high
rollingHigh20_val
number
Highest price seen over the last 20 candles
rollingHigh20_periods
number
Candles used for the 20 candle rolling high
rollingHigh55_val
number
Highest price seen over the last 55 candles
rollingHigh55_periods
number
Candles used for the 55 candle rolling high
rollingLow10_val
number
Lowest price seen over the last 10 candles
rollingLow10_periods
number
Candles used for the 10 candle rolling low
rollingLow20_val
number
Lowest price seen over the last 20 candles
rollingLow20_periods
number
Candles used for the 20 candle rolling low
rollingLow55_val
number
Lowest price seen over the last 55 candles
rollingLow55_periods
number
Candles used for the 55 candle rolling low
vwap_val
number
Volume weighted average price over whole days, each day weighted by what it traded
vwap_periods
number
Whole days used for the volume weighted average price
rankPct20_val
number
Share of the last 20 candles that closed at or below the latest one, from 0 to 100
rankPct20_periods
number
Candles used for the 20 candle rank
rankPct50_val
number
Share of the last 50 candles that closed at or below the latest one, from 0 to 100
rankPct50_periods
number
Candles used for the 50 candle rank
<indicator>_periodsNeeded
number
Lookback a reading waits to fill, published with its periods only while it has no value; each new candle adds one to the periods
ایک اثاثے کی قیمت کینڈلز سے اس کا ایک شمار کردہ تکنیکی انڈیکیٹر واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیا جاتا ہے تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.indicator("BTC", "rsi14", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
asset-indicators[":symbol"]
فیلڈ
قسم
تفصیل
symbol
string
Asset symbol
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
Assets زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
متحد لسٹنگ ڈیٹا کے ساتھ تمام ٹریک شدہ ایکسچینجز واپس کرتا ہے: اثاثوں اور مارکیٹس کی تعداد، 24 گھنٹے کا حجم، ٹرسٹ اسکور اور رینک، ملک، قیام کا سال، صلاحیتیں، اور غلبہ۔
POST/exchanges/list
AuthHMAC-SHA256Rate limit10 req/minPagination
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.get("binance");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getProfile("binance");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getOhlc("binance", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-ohlc[":exchangeKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
field
string
Snapshotted field: aggVol (default) or aggDom
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarkets("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
مکمل لائیو قیمت ڈیٹا کے ساتھ فی-ایکسچینج مارکیٹ ٹکرز: مقام پر ہر جوڑے کے لیے آخری، 24 گھنٹے کی زیادہ سے زیادہ/کم سے کم، تبدیلی، حجم، bid/ask، اور اسپریڈ۔
POST/exchange/:exchangeKey/markets/tickers
AuthHMAC-SHA256Rate limit10 req/minPagination
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarketsTickers("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
items[]
ہر آئٹم marketKey، localPair، baseSymbol، quoteSymbol، lastPrice، highPrice24h، lowPrice24h، change، volume، bidPrice، askPrice، spread، اور isActive رکھتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketsOhlc("binance", { pagination: { page: 1, limit: 50 }, interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarketsLimits("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarket("binance", "BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketTicker("binance", "BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketProfile("binance", "BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketOhlc("binance", "BTC_USDT", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-market-ohlc[":marketKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
marketKey
string
Global pair symbol
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listAssets("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listAssetsTickers("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listAssetsLimits("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAsset("binance", "BTC");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAssetProfile("binance", "BTC");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAssetOhlc("binance", "BTC", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-asset-ohlc[":assetKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
assetKey
string
Global asset symbol
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
ایک ایکسچینج پر ایک اثاثے کی قیمت کینڈلز سے اس کے تمام شمار کردہ تکنیکی انڈیکیٹرز واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیے جاتے ہیں تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAssetIndicators("binance", "BTC", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-asset-indicators[":assetKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
assetKey
string
Global asset symbol
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
tComputed
number
Unix time of the calculation moment
changePct_val
number
Percentage change between the first and last candle of the window
changePct_periods
number
Candles used for the change percentage
changePct9_val
number
Percentage change over the last 9 candles
changePct9_periods
number
Candles used for the 9 candle change percentage
changePct12_val
number
Percentage change over the last 12 candles
changePct12_periods
number
Candles used for the 12 candle change percentage
changePct25_val
number
Percentage change over the last 25 candles
changePct25_periods
number
Candles used for the 25 candle change percentage
sma20_val
number
Simple moving average of the candle closes, over 20 candles
sma20_periods
number
Candles used for the 20 candle simple moving average
sma50_val
number
Simple moving average of the candle closes, over 50 candles
sma50_periods
number
Candles used for the 50 candle simple moving average
sma200_val
number
Simple moving average of the candle closes, over 200 candles, the long trend line
sma200_periods
number
Candles used for the 200 candle simple moving average
ema9_val
number
Exponential moving average of the candle closes, over 9 candles
ema9_periods
number
Candles used for the 9 candle exponential moving average
ema21_val
number
Exponential moving average of the candle closes, over 21 candles
ema21_periods
number
Candles used for the 21 candle exponential moving average
ema50_val
number
Exponential moving average of the candle closes, over 50 candles
ema50_periods
number
Candles used for the 50 candle exponential moving average
rsi9_val
number
Fast relative strength index between 0 and 100, over 9 candles
rsi9_periods
number
Candles used for the fast relative strength index
rsi14_val
number
Relative strength index between 0 and 100, over 14 candles
rsi14_periods
number
Candles used for the relative strength index
rsi21_val
number
Slow relative strength index between 0 and 100, over 21 candles
rsi21_periods
number
Candles used for the slow relative strength index
atr7_val
number
Average true range over 7 candles
atr7_periods
number
Candles used for the 7 candle average true range
atr14_val
number
Average true range over 14 candles
atr14_periods
number
Candles used for the 14 candle average true range
atr21_val
number
Average true range over 21 candles
atr21_periods
number
Candles used for the 21 candle average true range
bollinger1sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger1sd_upper
number
Bollinger upper band, the middle band plus one standard deviation
bollinger1sd_lower
number
Bollinger lower band, the middle band minus one standard deviation
bollinger1sd_periods
number
Candles used for the bollinger bands
bollinger2sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger2sd_upper
number
Bollinger upper band, the middle band plus two standard deviations
bollinger2sd_lower
number
Bollinger lower band, the middle band minus two standard deviations
bollinger2sd_periods
number
Candles used for the bollinger bands
bollinger3sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger3sd_upper
number
Bollinger upper band, the middle band plus three standard deviations
bollinger3sd_lower
number
Bollinger lower band, the middle band minus three standard deviations
bollinger3sd_periods
number
Candles used for the bollinger bands
macd_val
number
Moving average convergence divergence line, using 12, 26 and 9 candles
macd_signal
number
Signal line of the convergence divergence indicator
macd_histogram
number
Distance between the convergence divergence line and its signal line
macd_periods
number
Candles used for the convergence divergence indicator
macd535_val
number
Moving average convergence divergence line, using 5, 35 and 5 candles
macd535_signal
number
Signal line of the 5, 35 and 5 convergence divergence indicator
macd535_histogram
number
Distance between the 5, 35 and 5 convergence divergence line and its signal line
macd535_periods
number
Candles used for the 5, 35 and 5 convergence divergence indicator
relativeVolume10_val
number
Latest daily volume reading against the average of the previous 10 readings, where one means the usual pace
relativeVolume10_periods
number
Readings used for the 10 reading relative volume
relativeVolume20_val
number
Latest daily volume reading against the average of the previous 20 readings, where one means the usual pace
relativeVolume20_periods
number
Readings used for the 20 reading relative volume
relativeVolume50_val
number
Latest daily volume reading against the average of the previous 50 readings, where one means the usual pace
relativeVolume50_periods
number
Readings used for the 50 reading relative volume
rollingHigh10_val
number
Highest price seen over the last 10 candles
rollingHigh10_periods
number
Candles used for the 10 candle rolling high
rollingHigh20_val
number
Highest price seen over the last 20 candles
rollingHigh20_periods
number
Candles used for the 20 candle rolling high
rollingHigh55_val
number
Highest price seen over the last 55 candles
rollingHigh55_periods
number
Candles used for the 55 candle rolling high
rollingLow10_val
number
Lowest price seen over the last 10 candles
rollingLow10_periods
number
Candles used for the 10 candle rolling low
rollingLow20_val
number
Lowest price seen over the last 20 candles
rollingLow20_periods
number
Candles used for the 20 candle rolling low
rollingLow55_val
number
Lowest price seen over the last 55 candles
rollingLow55_periods
number
Candles used for the 55 candle rolling low
vwap_val
number
Volume weighted average price over whole days, each day weighted by what it traded
vwap_periods
number
Whole days used for the volume weighted average price
rankPct20_val
number
Share of the last 20 candles that closed at or below the latest one, from 0 to 100
rankPct20_periods
number
Candles used for the 20 candle rank
rankPct50_val
number
Share of the last 50 candles that closed at or below the latest one, from 0 to 100
rankPct50_periods
number
Candles used for the 50 candle rank
<indicator>_periodsNeeded
number
Lookback a reading waits to fill, published with its periods only while it has no value; each new candle adds one to the periods
ایک ایکسچینج پر ایک اثاثے کی قیمت کینڈلز سے اس کا ایک شمار کردہ تکنیکی انڈیکیٹر واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیا جاتا ہے تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAssetIndicator("binance", "BTC", "rsi14", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-asset-indicators[":assetKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
assetKey
string
Global asset symbol
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
ایک ایکسچینج پر ایک مارکیٹ کی قیمت کینڈلز سے اس کے تمام شمار کردہ تکنیکی انڈیکیٹرز واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیے جاتے ہیں تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketIndicators("binance", "BTC_USDT", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-market-indicators[":marketKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
marketKey
string
Global market pair key
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
tComputed
number
Unix time of the calculation moment
changePct_val
number
Percentage change between the first and last candle of the window
changePct_periods
number
Candles used for the change percentage
changePct9_val
number
Percentage change over the last 9 candles
changePct9_periods
number
Candles used for the 9 candle change percentage
changePct12_val
number
Percentage change over the last 12 candles
changePct12_periods
number
Candles used for the 12 candle change percentage
changePct25_val
number
Percentage change over the last 25 candles
changePct25_periods
number
Candles used for the 25 candle change percentage
sma20_val
number
Simple moving average of the candle closes, over 20 candles
sma20_periods
number
Candles used for the 20 candle simple moving average
sma50_val
number
Simple moving average of the candle closes, over 50 candles
sma50_periods
number
Candles used for the 50 candle simple moving average
sma200_val
number
Simple moving average of the candle closes, over 200 candles, the long trend line
sma200_periods
number
Candles used for the 200 candle simple moving average
ema9_val
number
Exponential moving average of the candle closes, over 9 candles
ema9_periods
number
Candles used for the 9 candle exponential moving average
ema21_val
number
Exponential moving average of the candle closes, over 21 candles
ema21_periods
number
Candles used for the 21 candle exponential moving average
ema50_val
number
Exponential moving average of the candle closes, over 50 candles
ema50_periods
number
Candles used for the 50 candle exponential moving average
rsi9_val
number
Fast relative strength index between 0 and 100, over 9 candles
rsi9_periods
number
Candles used for the fast relative strength index
rsi14_val
number
Relative strength index between 0 and 100, over 14 candles
rsi14_periods
number
Candles used for the relative strength index
rsi21_val
number
Slow relative strength index between 0 and 100, over 21 candles
rsi21_periods
number
Candles used for the slow relative strength index
atr7_val
number
Average true range over 7 candles
atr7_periods
number
Candles used for the 7 candle average true range
atr14_val
number
Average true range over 14 candles
atr14_periods
number
Candles used for the 14 candle average true range
atr21_val
number
Average true range over 21 candles
atr21_periods
number
Candles used for the 21 candle average true range
bollinger1sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger1sd_upper
number
Bollinger upper band, the middle band plus one standard deviation
bollinger1sd_lower
number
Bollinger lower band, the middle band minus one standard deviation
bollinger1sd_periods
number
Candles used for the bollinger bands
bollinger2sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger2sd_upper
number
Bollinger upper band, the middle band plus two standard deviations
bollinger2sd_lower
number
Bollinger lower band, the middle band minus two standard deviations
bollinger2sd_periods
number
Candles used for the bollinger bands
bollinger3sd_val
number
Bollinger middle band over 20 candles, the simple average of the recent closes
bollinger3sd_upper
number
Bollinger upper band, the middle band plus three standard deviations
bollinger3sd_lower
number
Bollinger lower band, the middle band minus three standard deviations
bollinger3sd_periods
number
Candles used for the bollinger bands
macd_val
number
Moving average convergence divergence line, using 12, 26 and 9 candles
macd_signal
number
Signal line of the convergence divergence indicator
macd_histogram
number
Distance between the convergence divergence line and its signal line
macd_periods
number
Candles used for the convergence divergence indicator
macd535_val
number
Moving average convergence divergence line, using 5, 35 and 5 candles
macd535_signal
number
Signal line of the 5, 35 and 5 convergence divergence indicator
macd535_histogram
number
Distance between the 5, 35 and 5 convergence divergence line and its signal line
macd535_periods
number
Candles used for the 5, 35 and 5 convergence divergence indicator
relativeVolume10_val
number
Latest daily volume reading against the average of the previous 10 readings, where one means the usual pace
relativeVolume10_periods
number
Readings used for the 10 reading relative volume
relativeVolume20_val
number
Latest daily volume reading against the average of the previous 20 readings, where one means the usual pace
relativeVolume20_periods
number
Readings used for the 20 reading relative volume
relativeVolume50_val
number
Latest daily volume reading against the average of the previous 50 readings, where one means the usual pace
relativeVolume50_periods
number
Readings used for the 50 reading relative volume
rollingHigh10_val
number
Highest price seen over the last 10 candles
rollingHigh10_periods
number
Candles used for the 10 candle rolling high
rollingHigh20_val
number
Highest price seen over the last 20 candles
rollingHigh20_periods
number
Candles used for the 20 candle rolling high
rollingHigh55_val
number
Highest price seen over the last 55 candles
rollingHigh55_periods
number
Candles used for the 55 candle rolling high
rollingLow10_val
number
Lowest price seen over the last 10 candles
rollingLow10_periods
number
Candles used for the 10 candle rolling low
rollingLow20_val
number
Lowest price seen over the last 20 candles
rollingLow20_periods
number
Candles used for the 20 candle rolling low
rollingLow55_val
number
Lowest price seen over the last 55 candles
rollingLow55_periods
number
Candles used for the 55 candle rolling low
vwap_val
number
Volume weighted average price over whole days, each day weighted by what it traded
vwap_periods
number
Whole days used for the volume weighted average price
rankPct20_val
number
Share of the last 20 candles that closed at or below the latest one, from 0 to 100
rankPct20_periods
number
Candles used for the 20 candle rank
rankPct50_val
number
Share of the last 50 candles that closed at or below the latest one, from 0 to 100
rankPct50_periods
number
Candles used for the 50 candle rank
<indicator>_periodsNeeded
number
Lookback a reading waits to fill, published with its periods only while it has no value; each new candle adds one to the periods
ایک ایکسچینج پر ایک مارکیٹ کی قیمت کینڈلز سے اس کا ایک شمار کردہ تکنیکی انڈیکیٹر واپس کرتا ہے، جو صرف بند شدہ کینڈلز سے تیار کیا جاتا ہے تاکہ اگلی کینڈل بند ہونے تک ریڈنگ برقرار رہے۔ ہر کینڈل لمبائی پر ہر ریڈنگ دستیاب نہیں ہوتی - جو ریڈنگ دستیاب نہ ہو اسے جواب سے خارج کر دیا جاتا ہے، اور موجود ہر ریڈنگ ان کینڈلز کا نام بتاتی ہے جن سے وہ تیار کی گئی ہے۔ ema50 جیسی lookback کے نام والی ریڈنگ بھی تب تک جواب میں شامل نہیں ہوتی جب تک سیریز میں اتنی کینڈلز نہ ہو جائیں؛ تب تک اس کا periods فیلڈ اب تک موجود کینڈلز گنتا ہے اور periodsNeeded فیلڈ بتاتا ہے کہ کتنی درکار ہیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketIndicator("binance", "BTC_USDT", "rsi14", { interval: "15m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
exchange-market-indicators[":marketKey"]
فیلڈ
قسم
تفصیل
exchangeKey
string
Exchange short key
marketKey
string
Global market pair key
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
Exchanges زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
پلیٹ فارم کی جانب سے ٹریک کیے گئے ہر بلاک چین نیٹ ورک کی فہرست، متحد لسٹنگ ڈیٹا کے ساتھ واپس کرتا ہے۔ فلٹرنگ، ترتیب، اور کرسر پیجینیشن کی حمایت کی جاتی ہے۔
POST/chains/list
AuthHMAC-SHA256Rate limit10 req/minPagination
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.get("ethereum");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getProfile("ethereum");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listGasPrices();
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getGasPrice("ethereum");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getGasOhlc("ethereum", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
chain-gas-ohlc[":chainId"]
فیلڈ
قسم
تفصیل
chainKey
string
Chain short key (e.g. eth)
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
ایک مخصوص چین کے لیے token کی فہرست، بشمول ERC-20-طرز کا میٹا ڈیٹا، واپس کرتا ہے۔ فلٹرنگ، ترتیب، اور کرسر پیجینیشن کی حمایت کی جاتی ہے۔
POST/chain/:chainId/tokens
AuthHMAC-SHA256Rate limit10 req/minPagination
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
متعلقہ endpoints
واحد token: POST /v1/chain/:chainId/token/:tokenAddress ہولڈرز: POST /v1/chain/:chainId/token/:tokenAddress/holders ٹرانسفرز: POST /v1/chain/:chainId/token/:tokenAddress/transfers والیٹ پورٹ فولیو: POST /v1/chain/:chainId/wallet/:walletAddress/portfolio
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listTokens("ethereum", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getToken("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listTokenHolders("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getTokenHolder("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listTokenTransfers("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getTokenTransfer("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x1234abcd5678ef901234567890abcdef1234567890abcdef1234567890abcdef");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getWalletPortfolio("ethereum", "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getWalletBalance("ethereum", "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48");
// 3. Inspect the parsed response
console.log(res);
Chains زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
پلیٹ فارم کی جانب سے ٹریک کی گئی ہر میکرو انڈیکیٹر قسم واپس کرتا ہے (مثال کے طور پر، ریفرنس ریٹس، ولیٹیلیٹی انڈیکس)۔ واپس کیے گئے macroType keys کو نیچے دیے گئے ویلیوز اور OHLC endpoints کے ساتھ استعمال کریں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.listTypes();
// 3. Inspect the parsed response
console.log(res);
دیے گئے میکرو انڈیکیٹر قسم کے لیے تازہ ترین ویلیوز واپس کرتا ہے (مثال کے طور پر، reference-rates)۔ دستیاب اقسام دریافت کرنے کے لیے لسٹنگ endpoint استعمال کریں۔
POST/macro/values/:macroType
AuthHMAC-SHA256Rate limit10 req/minPagination
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.listValues("policy_rate", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getValue("policy_rate", { country: "YOUR_COUNTRY" });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getOhlc("policy_rate", { interval: "5m", country: "TR" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
macro-ohlc[":macroType"]
فیلڈ
قسم
تفصیل
macroType
string
Macro type the series belongs to
country
string
Country code the series belongs to
summary
object
Aggregate change summary over the window
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
series
array
OHLC bars: {tOpen, tClose, open, high, low, close}. For sparse macro observations the bar is degenerate (open = high = low = close = value).
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.listIndexes({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
macro-index-list[":indexKey"]
فیلڈ
قسم
تفصیل
indexKey
string
Unique index key
name
string
Human readable index name
lastValue
number
Latest index value
change24h
number
Move since the previous reading, in index points on a bounded scale and as a percentage otherwise
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getIndex("fearGreed");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
macro-index-get[":indexKey"]
فیلڈ
قسم
تفصیل
indexKey
string
Unique index key
name
string
Human readable index name
description
string
What the index measures and how to read it
methodology
string
How the index is built: equal weight, market cap weight, or external when it is published by another party and read as is
source
string
Publisher an externally sourced index is credited to, absent when the platform computes the index itself
lastValue
number
Latest index value
change24h
number
Move since the previous reading, in index points on a bounded scale and as a percentage otherwise. Measured against the last available reading, so a skipped day is not read as no change
nrOfConstituents
number
Number of assets composing the index, absent for indexes that are not built from a basket
tComputed
number
Unix time the latest value last moved, so a source that went quiet shows as stale rather than freshly published
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getIndexOhlc("fearGreed", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
macro-index-ohlc[":indexKey"]
فیلڈ
قسم
تفصیل
indexKey
string
Unique index key
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
series
array
Sorted OHLC bins: { tOpen, tClose, open, high, low, close }. History is recorded from the moment an index starts being tracked, so the longer candles fill in over time rather than reaching back before that point
Macro زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
ایک پول کی جانب سے ظاہر کردہ ہر directive کی موجودہ ویلیو، یا صرف نامزد کردہ کی۔ یہ وہ پتہ ہے جسے ایک اسٹریٹیجی بار بار پوچھتی ہے، اس لیے یہ چھوٹا رہتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
directive-value[":directiveKey"]
فیلڈ
قسم
تفصیل
directiveKey
string
Short name the pool gave this directive
kind
number
Which kind of control this directive is
raw
object
The value as it is stored, wrapped so any kind of value fits
entries
object
The named entries of a directive that holds a set, such as one reading per asset. Name the entry to read one of them; empty for every other kind of directive
number
number
The value as a plain number, when the directive holds one
text
string
The value written out as a short line of text
hash
string
Fingerprint of the current value, quoted back on a write so nobody is overwritten
updatedOn
number
When the value last changed, as a stamp
updatedVia
number
Which door the last change came through - the browser, this api, an assistant, or the platform itself
The kind decides which field carries a usable value. Switch 10 answers 1 or 0 in number and its on or off label in text; slider 20 and number 30 answer the figure in number and the figure with its unit in text; text 40 and select 50 answer only text, and a select answers the label of the choice rather than its key; map 60 answers its named entries in entries, with text holding only a short summary of the first few. updatedVia says which door the change came through - 10 the browser, 20 this interface, 30 an assistant, 40 the platform itself. A directive the pool never opened for reading is left out of the listing entirely. For how each one is designed, see List Directive Definitions.
PRIVATE · POOLS
Directive تعریفات کی فہرست
ایک پول کی جانب سے ظاہر کردہ ہر directive کیسے ڈیزائن کی گئی ہے۔ ڈیزائن شاذ و نادر ہی تبدیل ہوتا ہے، اس لیے دوبارہ پوچھنے کے بجائے اسے یاد رکھنا بہتر ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.listDefs({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
directive-definition[":directiveKey"]
فیلڈ
قسم
تفصیل
directiveKey
string
Short name the pool gave this directive
kind
number
Which kind of control this directive is
label
string
Readable name shown for the directive
description
string
What the directive is for, in the words of whoever created it
details
object
How the directive is defined - its bounds, steps, choices or named entries
allowExternalWrite
boolean
Whether the owner of the directive lets an outside caller change its value
updatedOn
number
When the definition last changed, as a stamp
relPoolKey
string
The pool this directive belongs to
جواب کی مثال
200 OKAPPLICATION/JSON
{
"success": true,
"items": [
{
"directiveKey": "greed_xckdf1",
"kind": 20,
"label": "Risk Appetite",
"description": "How much risk the pool is willing to carry right now",
"details": {
"kind": 20,
"label": "Risk Appetite",
"description": "How much risk the pool is willing to carry right now",
"icon": "pace",
"defSlider": {
"min": 0,
"max": 100,
"step": 1,
"valUnit": "%",
"valDefault": 50
}
},
"raw": { "v": 35 },
"entries": {},
"number": 35,
"text": "35%",
"hash": "b70e4d2c8f1a63950dc7e21b845f3a06c9d18e47b2306fa5e8c14d97b0532fae",
"allowExternalWrite": true,
"updatedOn": 1756555200000,
"updatedVia": 20,
"relPoolKey": "pl-9df31a"
}
],
"pagination": {
"currentPage": 1,
"totalPages": 1,
"pageSize": 50,
"totalRows": 1
}
}
The shape of details follows the kind. A switch carries defSwitch with its default and its two labels; a slider carries defSlider with min, max, step and valUnit; a number carries defNumber; a text carries defText with maxLength and an optional pattern; a select carries defSelect with its declared options; and a map carries defMap with keyMaxLength, maxEntries, its valKind and, for a choice-valued map, its valOptions. Only one of the six is ever present. A design changes very rarely, so remember this answer rather than asking for it every round - the current value belongs to List Directive Values, which is the address to poll. Note that updatedOn here is when the design last changed, not the value.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.get("greed_xckdf1");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
directive-value[":directiveKey"]
فیلڈ
قسم
تفصیل
directiveKey
string
Short name the pool gave this directive
kind
number
Which kind of control this directive is
raw
object
The value as it is stored, wrapped so any kind of value fits
entries
object
The named entries of a directive that holds a set, such as one reading per asset. Name the entry to read one of them; empty for every other kind of directive
number
number
The value as a plain number, when the directive holds one
text
string
The value written out as a short line of text
hash
string
Fingerprint of the current value, quoted back on a write so nobody is overwritten
updatedOn
number
When the value last changed, as a stamp
updatedVia
number
Which door the last change came through - the browser, this api, an assistant, or the platform itself
A directive the pool never opened for reading answers exactly like one that does not exist - success: false with isEntityNotFound - so no caller can map a pool's directives by comparing failures. Carry the hash into Set Directive Value as expectedHash and a change somebody else made in the meantime is reported instead of being overwritten.
PRIVATE · POOLS
Directive تعریف حاصل کریں
ایک directive کیسے ڈیزائن کی گئی ہے یہ واپس کرتا ہے - اس کی حدیں، مراحل، انتخاب یا نامزد اندراجات، اور آیا کوئی بیرونی کالر اسے تبدیل کر سکتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.getDef("greed_xckdf1");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
directive-definition[":directiveKey"]
فیلڈ
قسم
تفصیل
directiveKey
string
Short name the pool gave this directive
kind
number
Which kind of control this directive is
label
string
Readable name shown for the directive
description
string
What the directive is for, in the words of whoever created it
details
object
How the directive is defined - its bounds, steps, choices or named entries
allowExternalWrite
boolean
Whether the owner of the directive lets an outside caller change its value
Read allowExternalWrite before trying to write. It is false here, so Set Directive Value on this directive is refused with isPermissionDenied however the credential is scoped. The bounds in details are what a value is checked against: a map entry has to match keyPattern and be one of valOptions, and the whole set has to stay within maxEntries.
PRIVATE · POOLS
Directive تبدیلیوں کی فہرست
ایک directive کی ریکارڈ شدہ تبدیلیوں کی فہرست، تازہ ترین پہلے، ساتھ میں یہ کہ ہر تبدیلی کس نے کی۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.listRevs("greed_xckdf1", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
directive-revision[":directiveKey"]
فیلڈ
قسم
تفصیل
directiveKey
string
Short name the pool gave this directive
revNr
number
Where this change sits in the trail of the directive, counting up
revKind
number
What the change was about - a new directive, a new value, a new definition or a removal
raw
object
The value this change stored, as it is kept
number
number
The value this change stored, as a plain number
entries
object
The named entries of a directive that holds a set, such as one reading per asset. Name the entry to read one of them; empty for every other kind of directive
text
string
The value this change stored, written out as text
changedVia
number
Which door the change came through, such as the browser or this interface
changedBy
string
The person the change is credited to, when there is one
changedOn
number
When the change was recorded, as a stamp
changeNote
string
The reason given for the change, when one was given
revKind says what the change was about - 10 the directive being created, 20 a new value, 30 a new design, 40 a removal. Newest first. A trail is kept to the last 500 changes of a directive, so a busy directive loses its oldest entries. The person credited in changedBy is present only when a change had one behind it, so a change made by the platform itself carries none. Neither the address a change came from nor the client that made it is ever published here.
PRIVATE · POOLS
Directive ویلیو سیٹ کریں
ایک directive کے لیے نئی ویلیو محفوظ کرتا ہے۔ آپ کی پڑھی گئی ویلیو کے فنگر پرنٹ کو expectedHash کے طور پر حوالہ دیں اور کسی اور کی جانب سے کی گئی تبدیلی کو اوور رائٹ کرنے کے بجائے رپورٹ کیا جائے گا۔
Directive name chosen by the pool (e.g. greed_xckdf1, kill_switch).
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
value
any
required
The value to store. Its shape follows the kind of the directive - a yes or no, a number, a line of text, one of the declared choices, or a set of named entries.
expectedHash
string
optional
Fingerprint of the version you read, quoted back so a change somebody else made is reported instead of overwritten.
note
string
optional
Reason recorded beside the change, up to 256 characters.
درخواست کی مثال
cURL
curl -X POST "https://trademire.ai/api/v1/$API_KEY/pool/directive/greed_xckdf1/set" \
-H "Content-Type: application/json" \
-H "X-API-Key: $API_KEY" \
-H "X-API-Signature: $SIG" \
-H "X-API-Timestamp: $TS" \
--data '{"value":35,"expectedHash":"$HASH","note":"Trimmed ahead of the rate decision"}'
Node.js
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.set("greed_xckdf1", 35);
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
Whether the value was stored.
isUnchanged
boolean
Present and true when the value sent was the one already stored. Nothing is written and no change is recorded.
item
object
The stored value afterwards, in the same shape as Get Directive Value - including the new hash to carry into the next write.
isConflict
boolean
The value moved since the expectedHash you quoted was read. Nothing was written; read it again and decide.
isPermissionDenied
boolean
The directive exists and is readable, but its owner has not opened it for outside writing.
isInvalidValue
boolean
The value does not fit what the directive accepts. message says why.
And the same call refused, because the value moved after the expectedHash was read:
200 OKAPPLICATION/JSON
{
"success": false,
"isConflict": true,
"message": "The value changed since it was read, please look again"
}
A refusal is an ordinary answer, not an error. The call still returns 200 with success: false and one of the three flags above, so a caller reads the flag rather than a status code. expectedHash is optional and is how you avoid overwriting somebody: quote the hash you read, and a value that moved in between is reported instead. Sending the value that is already stored is not a refusal - it answers isUnchanged, writes nothing and leaves the trail alone. The shape value takes follows the directive's kind, so check its design at Get Directive Definition first: true or false for a switch, a figure inside the declared bounds and on the declared step for a slider or a number, a line of text within its length for a text, one of the declared option keys for a select, and a plain object of named entries for a map. A value that fits none of these is refused with isInvalidValue rather than being rounded into shape.
PRIVATE · POOLS
Directive ویلیوز سیٹ کریں
ایک ہی کال میں کئی directives کے لیے نئی ویلیوز محفوظ کرتا ہے۔ items بیگ میں ہر directive key کے لیے ایک اندراج ہوتا ہے، اور ہر اندراج ایک آبجیکٹ ہے جس میں value، اور اختیاری طور پر expectedHash اور note شامل ہوتے ہیں۔
POST/pool/directives/set
AuthHMAC + pool-bound keyRate limit10 req/min
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
items
object
required
One entry per directive, keyed by its name: { "<directiveKey>": { "value": ..., "expectedHash": "...", "note": "..." } }. Only value is needed; expectedHash and note are optional per entry, exactly as on the single write. Up to 20 entries in one call.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.setMany({ "greed_xckdf1": { value: 35 }, "kill_switch": { value: false, note: "Halting for maintenance" } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
Whether the call itself was accepted. It is true even when some rows were refused - each row carries its own outcome.
items
object
One outcome per directive key you sent, keyed the same way.
items[key].success
boolean
Whether that row was stored.
items[key].isUnchanged
boolean
That row already held the value sent, so nothing was written.
items[key].item
object
The stored value of that row afterwards, in the same shape as Get Directive Value.
items[key].isEntityNotFound
boolean
No such directive, or one the pool never opened for reading.
items[key].isConflict
boolean
That row quoted an expectedHash that no longer matches.
items[key].isPermissionDenied
boolean
That directive is not open to outside writing.
items[key].isInvalidValue
boolean
That value does not fit what the directive accepts.
Rows are settled one at a time and a refused row never stops the rest. That is why the call answers success: true while a row inside it failed - read each row's own success rather than the one at the top. A row sent without a value key is refused as an invalid value rather than being treated as a request to clear the directive. The allowance is 10 calls a minute whether you send one directive or twenty, so a batch is the cheaper way to move several at once.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
جواب کی مثال
200 OKAPPLICATION/JSON
{
"success": true,
"category": "pools",
"help": {
"paths": {
"/pool/directives/list": {
"method": "ALL",
"description": "Current value of every directive a pool exposes, or only of the ones named. This is the address a strategy asks repeatedly, so it stays small",
"rateLimit": 60,
"nominalRefreshSecs": 5,
"params": {
"required": [],
"optional": ["directiveKeys", "filtering", "sorting", "pagination"]
},
"isListing": true,
"fieldGroups": ["directive-value[\":directiveKey\"]"]
}
},
"fieldGroups": {
"directive-value[\":directiveKey\"]": {
"number": {
"type": "number",
"description": "The value as a plain number, when the directive holds one",
"supportsMetrics": true,
"canonicalPath": "pools.directiveValue.number",
"supportsVenue": false,
"params": [
{
"name": "directiveKey",
"kind": "selector",
"isRequired": false,
"description": "Short name the pool gave this directive"
}
]
}
}
}
}
}
This is the one pools address served without authentication, like every other help map, so it can be read before a key exists. It only describes the category - it never names a pool or any of its directives. The answer is trimmed above: the real one carries all eight paths and all three field groups. Since a design changes very rarely, read it once at start-up rather than each round.
اسٹریٹیجی پیمانے کے نام
پلیٹ فارم پر چلنے والی ایک اسٹریٹیجی خود ان پتوں کو کال کرنے کے بجائے ایک directive کو ایک پیمانے کے طور پر پڑھ سکتی ہے۔ نیچے دیا گیا ہر نام اوپر دیے گئے help map میں شائع کیا گیا ہے، اس تخفیف کے ساتھ جو اسے درکار ہے: ایک نمبر جیسا ہے ویسے ہی استعمال کیا جاتا ہے، متن کی ایک سطر کو ایک تک کم کرنا ہوتا ہے، اور ایک گروپ شدہ ویلیو کو پہلے روٹ کرنا ہوتا ہے۔ directive کا نام خود پیمانے پر رکھا جاتا ہے، کیونکہ تینوں بنڈلز میں سے ہر ایک کو اسی کے ذریعے انڈیکس کیا جاتا ہے۔
پیمانے کا نام
قسم
تفصیل
pools.directiveValue.number
number
The value as a plain number. A switch reads as one or zero, so a strategy can gate on it directly.
pools.directiveValue.text
string
The value in its readable form - a choice shows its name and a switch its on or off wording. Reduce it with equals, oneOf, length or toNumber, and remember a name can be reworded.
pools.directiveValue.entries
object
The named entries of a directive that holds a set. Route into one by name, such as the entry for an asset.
pools.directiveValue.raw
object
The stored value in its wrapper. Route through the wrapper key to reach it, which is the way to read the key behind a choice rather than its name.
pools.directiveValue.hash
string
Fingerprint of the current value.
pools.directiveValue.updatedOn
number
When the value last changed, as a stamp in milliseconds. Useful for ignoring an instruction nobody has touched for too long.
pools.directiveValue.updatedVia
number
Which door the last change came through.
pools.directiveDefinition.label
string
Readable name of the directive.
pools.directiveDefinition.description
string
What the directive is for.
pools.directiveDefinition.details
object
How the directive is defined - its bounds, steps, choices or named entries.
pools.directiveDefinition.allowExternalWrite
boolean
Whether an outside caller may change the value.
pools.directiveDefinition.updatedOn
number
When the definition last changed, as a stamp in milliseconds.
pools.directiveRevision.revNr
number
Where a change sits in the trail of the directive, counting up.
pools.directiveRevision.revKind
number
What the change was about.
pools.directiveRevision.number
number
The value a change stored, as a plain number.
pools.directiveRevision.text
string
The value a change stored, as text.
pools.directiveRevision.entries
object
The named entries a change stored.
pools.directiveRevision.raw
object
The value a change stored, in its wrapper.
pools.directiveRevision.changedVia
number
Which door a change came through.
pools.directiveRevision.changedBy
string
The person a change is credited to.
pools.directiveRevision.changedOn
number
When a change was recorded, as a stamp in milliseconds.
pools.directiveRevision.changeNote
string
The reason given for a change.
جوابات میں شامل دو ویلیوز کو پیمانے کے ناموں کے طور پر پیش نہیں کیا جاتا۔ ایک directive کا نام پول کا اپنا انتخاب ہوتا ہے، اس لیے اسے دوبارہ پڑھنے سے صرف وہی واپس آئے گا جو کالر نے فراہم کیا تھا؛ اور directive کی قسم یہ بتاتی ہے کہ اس کی ویلیو کو کیسے پڑھا جانا چاہیے نہ کہ خود ایک ریڈنگ ہونا۔
PRIVATE · VAULTS
تجوریوں کی فہرست
ایک پول سے تعلق رکھنے والی ہر تجوری کی مختصر خلاصہ فہرست واپس کرتا ہے: شناخت کنندہ، نام، اور حیثیت۔ ترتیب، تلاش، اور کرسر پیجینیشن کی حمایت کی جاتی ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.getSummary("vlt-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.get("vlt-abc123");
// 3. Inspect the parsed response
console.log(res);
ایک تجوری کے لیے رن ٹائم پروفائل کو { profile: object, hash: string } کی شکل میں واپس کرتا ہے۔ hash کلائنٹس کو پروفائل کے غیر تبدیل شدہ ہونے پر دوبارہ رینڈرنگ چھوڑنے کی اجازت دیتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.getRuntimeProfile("vlt-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.setRuntimeProfile("vlt-abc123", { profile: {} });
// 3. Inspect the parsed response
console.log(res);
جواب کی مثال
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · VAULTS
تجوری کارروائیاں
ایک یا زیادہ تجوریوں کے لیے ایک action verb بھیجتا ہے (deploy|start|stop|undeploy|reconfigure|unpark|reply-to-prompt|execute-flow|cancel-flow|query-flow)۔ verb url میں سفر کرتا ہے اور items map میں فی تجوری ایک اندراج ہوتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.action("deploy", { items: { "vlt-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Vaults زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
ایک پول سے تعلق رکھنے والی ہر اسٹریٹیجی کی مختصر خلاصہ فہرست واپس کرتا ہے: شناخت کنندہ، نام، اور حیثیت۔ ترتیب، تلاش، اور کرسر پیجینیشن کی حمایت کی جاتی ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.getSummary("str-abc123");
// 3. Inspect the parsed response
console.log(res);
id کے ذریعے اسٹریٹیجی کی مکمل تفصیل واپس کرتا ہے - ترتیب، signal پائپ لائن، ایکسپوژر کے قواعد، اور رن ٹائم حیثیت۔ رن ٹائم پہلو حاصل کرنے کے لیے POST /v1/strategy/:strategyId/runtime-profile کے ساتھ جوڑیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.get("str-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.getRuntimeProfile("str-abc123");
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
strategy-runtime-profile[":strategyId"]
فیلڈ
قسم
تفصیل
profile
object
Runtime profile JSON payload
hash
string
Content hash for optimistic concurrency
controlDetails
object
Control details blob from the parent strategy row
tuneProfile
boolean
Whether the strategy has profile tuning capabilities activated. When false, runtime profile updates are rejected.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.setRuntimeProfile("str-abc123", { profile: {} });
// 3. Inspect the parsed response
console.log(res);
جواب کی مثال
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · STRATEGIES
اسٹریٹیجی کارروائیاں
ایک یا زیادہ اسٹریٹیجیز کے لیے ایک action verb بھیجتا ہے (deploy|start|stop|undeploy|reconfigure|hard-restart|enable-console|disable-console|unpark|execute-flow|cancel-flow|query-flow)۔ verb url میں سفر کرتا ہے اور items map میں فی آئٹم ایک اندراج ہوتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.action("deploy", { items: { "str-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Strategies زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.getSummary("nod-abc123");
// 3. Inspect the parsed response
console.log(res);
id کے ذریعے نوڈ کی مکمل تفصیل واپس کرتا ہے - ترتیب، منسلک اسٹریٹیجیز، اور رن ٹائم حیثیت۔ نوڈ پر لائف سائیکل (start، stop، restart) چلانے کے لیے POST /v1/nodes/action استعمال کریں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.get("nod-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.getRuntimeProfile("nod-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.setRuntimeProfile("nod-abc123", { profile: {} });
// 3. Inspect the parsed response
console.log(res);
جواب کی مثال
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · NODES
نوڈ کارروائیاں
ایک یا زیادہ نوڈز کے لیے ایک کارروائی کا فعل بھیجتا ہے (deploy|start|stop|undeploy|hard-restart|reconfigure|enable-console|disable-console|park|unpark|execute-flow|cancel-flow|query-flow)۔ یہ فعل url میں شامل ہوتا ہے اور items map میں ہر آئٹم کے لیے ایک اندراج ہوتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.action("deploy", { items: { "nod-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Nodes زمرے میں ہر endpoint کا منظم JSON map واپس کرتا ہے - HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، نیز ہر endpoint کی جانب سے واپس کیے گئے فیلڈ گروپس۔ SDK اور ایجنٹ introspection کے لیے مفید۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.getSummary("srv-abc123");
// 3. Inspect the parsed response
console.log(res);
id کے ذریعے سرور کی مکمل تفصیلات واپس کرتا ہے - ہارڈویئر پروفائل، نیٹ ورک کی حالت، اور رن ٹائم حیثیت۔ لائف سائیکل آپریشنز کے لیے POST /v1/servers/action کے ساتھ جوڑیں۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.get("srv-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.getRuntimeProfile("srv-abc123");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.setRuntimeProfile("srv-abc123", { profile: {} });
// 3. Inspect the parsed response
console.log(res);
جواب کی مثال
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · SERVERS
سرور کارروائیاں
ایک یا زیادہ سرورز کے لیے ایک کارروائی کا فعل بھیجتا ہے (deploy|start|stop|undeploy|hard-restart|reconfigure|enable-console|disable-console|spawn-node|kill-node|park|unpark)۔ یہ فعل url میں شامل ہوتا ہے اور items map میں ہر آئٹم کے لیے ایک اندراج ہوتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.action("deploy", { items: { "srv-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Servers زمرے میں موجود ہر endpoint کا ایک منظم JSON map واپس کرتا ہے - HTTP طریقہ، تفصیل، rate limit، لازمی اور اختیاری پیرامیٹرز، اور ہر endpoint کے واپس کردہ فیلڈ گروپس۔ SDK اور ایجنٹس کی خود شناسی کے لیے مفید ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.help();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
فیلڈ
قسم
تفصیل
success
boolean
آیا کال کامیاب ہوئی۔
category
string
وہ زمرہ جسے یہ help map بیان کرتا ہے۔
help
object
Help map کنٹینر۔ paths ہر endpoint کے path کو اس کے میٹا ڈیٹا (HTTP میتھڈ، تفصیل، ریٹ لمٹ، لازمی اور اختیاری پیرامیٹرز، جہاں قابل اطلاق ہو isListing فلیگ، اور وہ فیلڈ گروپس جن کا یہ حوالہ دیتا ہے) کے ساتھ میپ کرتا ہے۔ fieldGroups ہر گروپ کے نام کو اس کے فیلڈ ڈسکرپٹرز (قسم اور تفصیل) کے ساتھ میپ کرتا ہے جن کا path اندراجات سے حوالہ دیا جاتا ہے۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.help();
// 3. Inspect the parsed response
console.log(res);
PRIVATE · TRADING
پوزیشنز کی فہرست
کسی pool کی کھلی فیوچرز پوزیشنز کی فہرست (فی کنٹریکٹ فی اکاؤنٹ قسم)۔
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.positions.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
position[":contractSymbol"]
فیلڈ
قسم
تفصیل
contractSymbol
string
Futures contract identifier (e.g. BTCUSDT)
side
number
Position side (OneWay / Long / Short, see PositionSide enum)
quantity
number
Position size in contracts
entryPrice
number
Average entry price
markPrice
number
Current mark price
liquidationPrice
number
Estimated liquidation price (0 when not provided)
leverage
number
Position leverage
isIsolated
boolean
Margin mode (true = isolated, false = cross)
marginAmount
number
Margin allocated to the position (isolated only)
unrealizedPnl
number
Unrealized profit and loss
timestampOpened
number
When the position was opened (ms epoch)
accType
number
Account type (one of the futures family values)
PRIVATE · TRADING
آرڈرز کی فہرست
ایک پول کے لیے آرڈر کی تاریخ واپس کرتا ہے، جو منسلک API key کی اجازتوں تک محدود ہے۔ search، sorting، اور کرسر pagination کی حمایت کرتا ہے؛ حیثیت، مارکیٹ، یا تاریخ کی حد کے مطابق محدود کرنے کے لیے filter آبجیکٹ استعمال کریں۔
POST/orders/list
AuthHMAC + pool-bound keyRate limit30 req/min
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.orders.list();
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.orders.get("ord-abc123");
// 3. Inspect the parsed response
console.log(res);
ایک پول کے لیے ٹریڈ کی تاریخ واپس کرتا ہے۔ ہر آئٹم ایک fill ہے (maker یا taker) جس میں قیمت، مقدار، فیس، کردار، اور parent آرڈر id شامل ہیں۔ معیاری search / sort / کرسر pagination کی حمایت کی جاتی ہے۔
POST/trades/list
AuthHMAC + pool-bound keyRate limit30 req/min
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.trades.list();
// 3. Inspect the parsed response
console.log(res);
ایک پول کے لیے فی اثاثہ بیلنسز واپس کرتا ہے۔ ہر آئٹم available (نئے آرڈرز کے لیے آزاد)، locked (کھلے آرڈرز کی جانب سے محفوظ شدہ)، اور total رکھتا ہے۔ معیاری search / sort / کرسر pagination کی حمایت کی جاتی ہے۔
POST/balances/list
AuthHMAC + pool-bound keyRate limit30 req/min
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.balances.list();
// 3. Inspect the parsed response
console.log(res);
ایک پول کے لیے on/off-ramp لیجر واپس کرتا ہے: ڈپازٹس، نکاسیاں، اور پلیٹ فارم فیس۔ ہر آئٹم قسم، اثاثہ، رقم، حیثیت، اور ایک اختیاری آن-چین tx hash رکھتا ہے۔ معیاری search / sort / کرسر pagination کی حمایت کی جاتی ہے۔
POST/transactions/list
AuthHMAC + pool-bound keyRate limit30 req/min
باڈی پیرامیٹرز
نام
قسم
لازمی
تفصیل
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.transactions.list();
// 3. Inspect the parsed response
console.log(res);
جواب کا اسکیما
transaction[":transactionId"]
فیلڈ
قسم
تفصیل
type
string
Transaction type (deposit, withdrawal, fee, ...)
symbol
string
Asset symbol
amount
number
Transaction amount
fee
number
Network or platform fee
status
string
Transaction status (pending, confirmed, failed, ...)
MCP کے ذریعے اپنا AI ایجنٹ جوڑیں۔ یا کوئی تیار اسٹریٹیجی منتخب کریں، یا اپنی خود ڈیزائن کریں۔
1
آپ کہیں
ہر 5% گراوٹ پر BTC خریدو، فی آرڈر زیادہ سے زیادہ $200ہر 5% گراوٹ پر BTC خریدو، فی آرڈر زیادہ سے زیادہ $200
2
آپ کا ایجنٹ اسٹریٹیجی لکھتا ہےasset: BTCbuy_on_dip: 5%max_order: $200
3
TradeMire اسے چلاتا ہےچل رہا ہے
اپنی اسٹریٹیجی بتائیں۔ TradeMire اسے حقیقت بنائے۔
Silver$9.99/ماہ
After launch $19.99/mo
Goldمقبول$24.99/ماہ
After launch $49.99/mo
Platinum$49.99/ماہ
After launch $99.99/mo
Explorer مفت رہے گا، کریڈٹ کارڈ کی ضرورت نہیں۔
آفر کی تفصیلات
نشستیں
First 500 members
اختتام
December 10
مقررہ قیمت
5 years
Launch price stays fixed for 5 years while your subscription remains active. The price is fixed in US dollars; payments in Turkish lira use the day's exchange rate. Offer ends December 10, 2026 or at 500 members, whichever comes first. Trading involves risk.