एक साइन की गई REST API जो पूरे TradeMire प्लेटफॉर्म को कवर करती है: सार्वजनिक बाज़ार डेटा (मार्केट, संपत्तियां, एक्सचेंज, चेन, मैक्रो इंडिकेटर) और आपके निजी वॉल्ट, रणनीतियां, नोड, और ऑर्डर - सभी HMAC-SHA256 से प्रमाणित और पूरी तरह पेजिनेटेड।
बेस 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 क्लाइंट, अन्य भाषाएं), तो पूर्ण साइनिंग विधि के लिए नीचे प्रमाणीकरण देखें।
GETTING STARTED · AUTHENTICATION
प्रमाणीकरण
यह भाग अनुरोध साइनिंग पर विस्तृत जानकारी देता है। यदि आप @trademire/platform-api SDK का उपयोग करते हैं, तो साइनिंग स्वचालित रूप से होती है और आप इसे सरसरी तौर पर देख सकते हैं या आगे बढ़ सकते हैं - नीचे दी गई विधि मैन्युअल रूप से साइन करने वाले कॉलर (cURL, लो-लेवल HTTP क्लाइंट, अन्य भाषाओं) के लिए है। हर Platform API कॉल - सार्वजनिक लिस्टिंग के साथ-साथ निजी पूल क्रियाएं भी - रॉ JSON अनुरोध बॉडी पर HMAC-SHA256 के साथ साइन की जाती है। हस्ताक्षर यह साबित करता है कि आपके पास API सीक्रेट है, बिना उसे कभी प्रेषित किए, और टाइमस्टैंप हर अनुरोध को 5-मिनट के रीप्ले विंडो तक सीमित करता है। वही तीन हेडर (key, signature, timestamp) सब कुछ प्रमाणित करते हैं; PRIVATE endpoints उस पूल तक सीमित हैं जिससे आपकी API कुंजी निर्माण के समय जुड़ी है, इसलिए बॉडी में कॉलर द्वारा दी गई poolKey को नज़रअंदाज़ कर दिया जाता है। नीचे दिए गए हर endpoint को उसकी कैनोनिकल विधि के साथ दस्तावेज़ित किया गया है - बिना बॉडी वाले शुद्ध रीड के लिए GET, बॉडी ले जाने वाले या स्थिति बदलने वाले किसी भी अनुरोध के लिए POST। SDK दस्तावेज़ित क्रिया को स्वचालित रूप से भेजता है - बिना बॉडी वाले रीड के लिए GET (कैनोनिकल खाली ऑब्जेक्ट के रूप में साइन किया गया) और बॉडी ले जाने वाली कॉल के लिए POST।
प्रत्येक endpoint एक HTTP विधि घोषित करता है: बिना बॉडी वाले रीड के लिए GET, और बॉडी ले जाने वाली क्वेरी (list, search, OHLC) के साथ-साथ स्थिति-बदलने वाले राइट (runtime profile सेट करना, जीवनचक्र क्रियाएं) के लिए POST। खाली या अनुपस्थित बॉडी को {} के रूप में साइन किया जाता है (कभी खाली स्ट्रिंग नहीं), और /help डिस्कवरी endpoints बिना प्रमाणीकरण हेडर के परोसे जाते हैं। SDK दस्तावेज़ित विधि को स्वचालित रूप से साइन और डिस्पैच करता है; रॉ HTTP कॉलर को हर endpoint पर घोषित क्रिया का उपयोग करना होगा।
क्या साइन किया जाता है
// Generate HMAC-SHA256 signature from the raw request body as lowercase hex
signature = HMAC_SHA256(apiSecret, requestBody).toHex()
केवल रॉ JSON बॉडी साइन की जाती है। Path, {apiKey}, query string, और timestamp साइन किए गए पेलोड का हिस्सा नहीं हैं। बॉडी आपके द्वारा प्रेषित बॉडी के बाइट-समान होनी चाहिए - एक बार सीरियलाइज़ करें, उसी सटीक स्ट्रिंग को साइन करें, और इसे अनुरोध बॉडी के रूप में भेजें।
जब आप बॉडी बनाते हैं, तो ऑब्जेक्ट कुंजियों को बढ़ते हुए वर्णानुक्रम में क्रमबद्ध करें (कैनोनिकल JSON)। ऐरे अपना घोषित क्रम बनाए रखते हैं और undefined मान हटा दिए जाते हैं। SDK इसे स्वचालित रूप से लागू करता है; मैन्युअल साइनर को इसे बाइट दर बाइट मिलाना होगा अन्यथा हस्ताक्षर सत्यापित नहीं होगा।
आवश्यक हेडर
नाम
आवश्यक
विवरण
Content-Type
आवश्यक
application/json होना चाहिए।
X-API-Key
आवश्यक
प्लेटफॉर्म डैशबोर्ड से जारी की गई API कुंजी का सार्वजनिक पहचानकर्ता। मिलान करने वाला सीक्रेट कभी साझा न करें।
X-API-Signature
आवश्यक
रॉ अनुरोध बॉडी का लोअरकेस hex-एन्कोडेड HMAC-SHA256, API सीक्रेट को कुंजी के रूप में उपयोग करके गणना किया गया।
X-API-Timestamp
आवश्यक
Unix epoch मिलीसेकंड में अनुरोध निर्माण समय। सर्वर 5-मिनट के ड्रिफ्ट विंडो (रीप्ले सुरक्षा) से बाहर के टाइमस्टैंप को अस्वीकार करता है।
अनुरोध URL
हर endpoint एक ही आकार का पालन करता है:
POST/:path
हर endpoint /v1/{apiKey} के अंतर्गत आता है। {apiKey} path घटक आपकी सार्वजनिक API कुंजी है (वही मान जो X-API-Key हेडर में भेजा जाता है) और साइन किए गए पेलोड का हिस्सा नहीं है।
लंबा feature पता 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,
});
किसी भी प्रमाणीकरण विफलता के लिए - अनुपस्थित हेडर, गलत हस्ताक्षर, समाप्त टाइमस्टैंप, निलंबित कुंजी, अवरुद्ध IP, या अनधिकृत श्रेणी - सर्वर वही सामान्य MessageAccessForbidden प्रतिक्रिया लौटाता है। विशिष्ट कारण जानबूझकर कॉलर को नहीं दिखाया जाता (क्रेडेंशियल एन्यूमरेशन और oracle हमलों को रोकने के लिए)। दोबारा प्रयास करने से पहले अपने स्थानीय अनुरोध की जांच करें:
क्या बॉडी उस स्ट्रिंग के बाइट-समान है जिसे आपने साइन किया था? फिर से सीरियलाइज़ करने से व्हाइटस्पेस और कुंजी क्रम बदल सकते हैं, जो दोनों hash को तोड़ देंगे।
क्या आपकी स्थानीय घड़ी UTC के 5 मिनट के भीतर है? X-API-Timestampमिलीसेकंड में है, सेकंड में नहीं।
क्या आपने API सीक्रेट से साइन किया (API कुंजी से नहीं)?
क्या हस्ताक्षर लोअरकेस hex (0-9a-f) में है?
क्या आपका IP आपकी कुंजी की allowlist में है (यदि आपने डैशबोर्ड में एक कॉन्फ़िगर किया है)?
GETTING STARTED · ERRORS
त्रुटियां
ये त्रुटि कोड हर endpoint पर लागू होते हैं। प्रत्येक त्रुटि प्रतिक्रिया में एक rayId होता है जिसे आप सहायता से संपर्क करते समय उद्धृत कर सकते हैं।
कोड
विवरण
MessageAccessForbidden
किसी भी प्रमाणीकरण विफलता (अनुपस्थित, गलत, या अमान्य हस्ताक्षर, समाप्त टाइमस्टैंप, निलंबित कुंजी, अवरुद्ध IP) के लिए लौटाया जाता है। एन्यूमरेशन को रोकने के लिए विशिष्ट कारण जानबूझकर प्रकट नहीं किया जाता।
MessageMissingParameter
एक आवश्यक URL पैरामीटर (जैसे, प्रति-मार्केट endpoints पर :pair) अनुपस्थित है, गलत है, या अल्फ़ान्यूमेरिक / लंबाई सत्यापन में विफल रहता है।
MessageRateLimitExceeded
इस endpoint के लिए प्रति-कुंजी दर-सीमा पार हो गई है। दोबारा प्रयास करने से पहले Retry-After प्रतिक्रिया हेडर की जांच करें।
MessageInternalError
एक अप्रत्याशित आंतरिक त्रुटि हुई। प्रतिक्रिया में एक rayId शामिल है जिसे आप सहायता से संपर्क करते समय उद्धृत कर सकते हैं - कॉलर को कोई और विवरण नहीं दिया जाता।
PUBLIC · MARKETS
मार्केट की सूची प्राप्त करें
प्लेटफॉर्म द्वारा वर्तमान में ट्रैक किए जा रहे हर मार्केट की कैनोनिकल संक्षिप्त सूची लौटाता है। प्रत्येक प्रविष्टि में स्थलों में नवीनतम एकत्रित मूल्य, वह quote मुद्रा जिसमें मूल्य दर्शाया गया है, और यह दर्शाने वाला फ़्लैग कि मार्केट सक्रिय है या नहीं, शामिल हैं। फ़िल्टरिंग, सॉर्टिंग, और कर्सर पेजिनेशन लागू करने के लिए बॉडी का उपयोग करें - प्रति-जोड़ा विवरण (पूर्ण टिकर, लिस्टिंग, लिमिट, प्रोफ़ाइल, 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);
मार्केट प्रोफ़ाइल आकार लौटाता है: टैग के साथ-साथ "मार्केट लिस्टिंग प्राप्त करें" जैसा ही लिस्टिंग/गतिविधि मेटाडेटा। इसका उपयोग तब करें जब आप एक ही कॉल में उपलब्धता फ़्लैग के साथ वर्णनात्मक मेटाडेटा चाहते हैं।
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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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
मार्केट श्रेणी में हर 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 पथ को उसके मेटाडेटा (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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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
संपत्तियां श्रेणी में हर 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 पथ को उसके मेटाडेटा (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
किसी विशिष्ट एक्सचेंज पर उपलब्ध मार्केट की सूची लौटाता है, जो उस स्थल तक सीमित है। बॉडी के माध्यम से फ़िल्टरिंग, सॉर्टिंग, और कर्सर पेजिनेशन का समर्थन करता है।
POST/exchange/:exchangeKey/markets/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.listMarkets("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.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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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 जैसी लुकबैक के नाम वाली रीडिंग तब तक उत्तर से बाहर रहती है जब तक सीरीज़ में उतनी कैंडल न हो जाएँ; तब तक उसका 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
एक्सचेंज श्रेणी में हर 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 पथ को उसके मेटाडेटा (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);
चेन श्रेणी में हर 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 पथ को उसके मेटाडेटा (HTTP विधि, विवरण, दर-सीमा, आवश्यक और वैकल्पिक पैरामीटर, लागू होने पर isListing फ़्लैग, और उसके संदर्भित फ़ील्ड समूह) से मैप करता है। fieldGroups हर समूह नाम को path प्रविष्टियों से संदर्भित उसके फ़ील्ड विवरणकों (प्रकार और विवरण) से मैप करता है।
प्लेटफॉर्म द्वारा ट्रैक किया गया हर मैक्रो इंडिकेटर प्रकार लौटाता है (जैसे, संदर्भ दरें, अस्थिरता सूचकांक)। लौटाई गई macroType कुंजियों का उपयोग नीचे दिए गए मान और 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
मैक्रो श्रेणी में हर 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 पथ को उसके मेटाडेटा (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.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
डायरेक्टिव परिभाषाओं की सूची प्राप्त करें
किसी पूल द्वारा उजागर किया गया हर डायरेक्टिव कैसे डिज़ाइन किया गया है। डिज़ाइन बहुत कम ही बदलता है, इसलिए इसे बार-बार पूछने के बजाय याद रखना बेहतर है।
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
डायरेक्टिव परिभाषा प्राप्त करें
एक डायरेक्टिव कैसे डिज़ाइन किया गया है यह लौटाता है - उसकी सीमाएं, चरण, विकल्प या नामित प्रविष्टियां, और क्या कोई बाहरी कॉलर इसे बदल सकता है।
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
डायरेक्टिव परिवर्तनों की सूची प्राप्त करें
एक डायरेक्टिव के दर्ज किए गए परिवर्तनों की सूची, सबसे नए पहले, हर परिवर्तन किसने किया इसके साथ।
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
डायरेक्टिव मान सेट करें
एक डायरेक्टिव के लिए नया मान संग्रहीत करता है। आपके द्वारा पढ़े गए मान की fingerprint को 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
कई डायरेक्टिव मान सेट करें
एक ही कॉल में कई डायरेक्टिव के लिए नया मान संग्रहीत करता है। items बैग में प्रति डायरेक्टिव कुंजी एक प्रविष्टि होती है, और हर प्रविष्टि एक ऑब्जेक्ट है जिसमें 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 पथ को उसके मेटाडेटा (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.
रणनीति मेट्रिक नाम
प्लेटफॉर्म पर चल रही कोई रणनीति इन पतों को स्वयं कॉल करने के बजाय किसी डायरेक्टिव को मेट्रिक के रूप में पढ़ सकती है। नीचे दिया गया हर नाम ऊपर दिए गए help map में प्रकाशित है, साथ में उसे आवश्यक न्यूनीकरण भी: एक संख्या को जैसी है वैसी उपयोग किया जाता है, टेक्स्ट की एक पंक्ति को एक में न्यून करना पड़ता है, और एक समूहीकृत मान को पहले रूट करना पड़ता है। डायरेक्टिव का नाम मेट्रिक पर ही रखा जाता है, क्योंकि तीनों बंडलों में से हर एक उसी से इंडेक्स किया जाता है।
मेट्रिक नाम
प्रकार
विवरण
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.
उत्तरों में मौजूद दो मान मेट्रिक नामों के रूप में उपलब्ध नहीं कराए जाते। किसी डायरेक्टिव का नाम पूल की अपनी पसंद होता है, इसलिए उसे वापस पढ़ने से केवल वही मिलेगा जो कॉलर ने दिया था; और किसी डायरेक्टिव का प्रकार यह बताता है कि उसका मान कैसे पढ़ा जाना चाहिए, न कि स्वयं एक रीडिंग होता है।
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);
एक ही वॉल्ट के लिए संक्षिप्त वॉल्ट सारांश (id, नाम, स्थिति) लौटाता है। सस्ता और कैश करने योग्य - जब आपको केवल मुख्य स्थिति चाहिए तो इसे प्राथमिकता दें।
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
वॉल्ट क्रियाएं
एक या अधिक वॉल्ट के लिए एक क्रिया क्रिया-पद भेजता है (deploy|start|stop|undeploy|reconfigure|unpark|reply-to-prompt|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.vaults.action("deploy", { items: { "vlt-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
वॉल्ट श्रेणी में हर 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 पथ को उसके मेटाडेटा (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
रणनीति क्रियाएं
एक या अधिक रणनीतियों के लिए एक क्रिया क्रिया-पद भेजता है (deploy|start|stop|undeploy|reconfigure|hard-restart|enable-console|disable-console|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.strategies.action("deploy", { items: { "str-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
रणनीतियां श्रेणी में हर 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 पथ को उसके मेटाडेटा (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);
नोड श्रेणी में हर 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 पथ को उसके मेटाडेटा (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);
सर्वर श्रेणी में हर 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.servers.help();
// 3. Inspect the parsed response
console.log(res);
प्रतिक्रिया स्कीमा
फ़ील्ड
प्रकार
विवरण
success
boolean
क्या कॉल सफल रही।
category
string
वह श्रेणी जिसे यह help map वर्णित करता है।
help
object
Help map कंटेनर। paths हर endpoint पथ को उसके मेटाडेटा (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 कुंजी अनुमतियों तक सीमित है। search, sorting, और कर्सर pagination का समर्थन करता है; स्थिति, मार्केट, या तिथि सीमा के अनुसार सीमित करने के लिए फ़िल्टर ऑब्जेक्ट का उपयोग करें।
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);
किसी पूल के लिए ट्रेड इतिहास लौटाता है। प्रत्येक आइटम मूल्य, मात्रा, शुल्क, भूमिका, और मूल ऑर्डर id के साथ एक फिल (maker या taker) है। मानक search / sort / cursor 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 / cursor 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 / cursor 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, ...)
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.