সম্পূর্ণ TradeMire প্ল্যাটফর্ম কভার করে একটি স্বাক্ষরিত REST API: পাবলিক মার্কেট তথ্য (বাজার, সম্পদ, এক্সচেঞ্জ, চেইন, ম্যাক্রো ইন্ডিকেটর) এবং আপনার প্রাইভেট ভল্ট, কৌশল, নোড, এবং অর্ডার - সবকিছু HMAC-SHA256 দিয়ে প্রমাণীকৃত এবং সর্বত্র পেজিনেটেড।
বেস URLhttps://trademire.ai/api
পাথ প্রিফিক্স/v1/{apiKey}
সংস্করণv1
প্রমাণীকরণHMAC-SHA256
রেট লিমিটপ্রতি এন্ডপয়েন্টে ভিন্ন
SDK@trademire/platform-api
GETTING STARTED · QUICK START
কুইক স্টার্ট
আপনার প্রথম স্বাক্ষরিত কলের জন্য তিনটি ধাপ: SDK ইনস্টল করুন, আপনার পরিচয়পত্র সেট করুন, এবং markets.list() কল করুন।
1 - SDK ইনস্টল করুন
npm install @trademire/platform-api
2 - ক্লায়েন্ট কনফিগার করুন
import { PlatformApiClient } from "@trademire/platform-api";
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
3 - আপনার প্রথম কল করুন
let res = await client.markets.list({ pagination: { page: 1, limit: 10 } });
if (!res.success) {
console.error("Auth or upstream failure:", res.message);
} else {
for (let m of res.items) {
console.log(m.pair, m.lastPrice, m.priceQuote);
}
}
SDK প্রতি অনুরোধে স্বচ্ছভাবে {anyKey} তৈরি করে, HMAC-SHA256 দিয়ে বডি স্বাক্ষর করে, সবগুলো চারটি প্রয়োজনীয় হেডার সংযুক্ত করে, এবং JSON প্রতিক্রিয়া পার্স করে। আপনি কখনো সরাসরি স্বাক্ষরকরণ প্রিমিটিভ স্পর্শ করেন না। যদি আপনি SDK ছাড়া API কল করেন (cURL, কাস্টম HTTP ক্লায়েন্ট, অন্যান্য ভাষা), সম্পূর্ণ স্বাক্ষরকরণ প্রক্রিয়ার জন্য নিচে Authentication দেখুন।
GETTING STARTED · AUTHENTICATION
প্রমাণীকরণ
এই বিভাগটি অনুরোধ স্বাক্ষরকরণের গভীর আলোচনা। যদি আপনি @trademire/platform-api SDK ব্যবহার করেন, তাহলে স্বাক্ষরকরণ স্বয়ংক্রিয়ভাবে ঘটে এবং আপনি এড়িয়ে যেতে পারেন - নিচের প্রক্রিয়াটি ম্যানুয়ালি স্বাক্ষরকারী কলারদের জন্য (cURL, নিম্ন-স্তরের HTTP ক্লায়েন্ট, অন্যান্য ভাষা)। প্রতিটি Platform API কল - পাবলিক লিস্টিং এবং প্রাইভেট পুল কার্যক্রম উভয়ই - রো JSON অনুরোধ বডির উপর HMAC-SHA256 দিয়ে স্বাক্ষরিত। স্বাক্ষর প্রমাণ করে যে আপনি API সিক্রেট ধারণ করেন তা কখনো প্রেরণ না করেই, এবং টাইমস্ট্যাম্প প্রতিটি অনুরোধকে একটি 5-মিনিটের রিপ্লে উইন্ডোতে আবদ্ধ করে। একই তিনটি হেডার (key, signature, timestamp) সবকিছু প্রমাণীকরণ করে; PRIVATE এন্ডপয়েন্ট সেই পুলে সীমাবদ্ধ যার সাথে আপনার API কী তৈরির সময় আবদ্ধ, তাই বডিতে কলার-প্রদত্ত poolKey উপেক্ষা করা হয়। নিচের প্রতিটি এন্ডপয়েন্ট তার প্রামাণিক পদ্ধতিসহ নথিভুক্ত - বডি ছাড়া বিশুদ্ধ পাঠের জন্য GET, বডি বহনকারী অথবা অবস্থা পরিবর্তনকারী যেকোনো কিছুর জন্য POST। SDK স্বয়ংক্রিয়ভাবে নথিভুক্ত ভার্ব পাঠায় - বডি-বিহীন পাঠের জন্য GET (প্রামাণিক খালি অবজেক্ট হিসেবে স্বাক্ষরিত) এবং বডি-বহনকারী কলের জন্য POST।
প্রতিটি এন্ডপয়েন্ট একটি HTTP পদ্ধতি ঘোষণা করে: বডি-বিহীন পাঠের জন্য GET, এবং বডি-বহনকারী কোয়েরি (list, search, OHLC) এবং অবস্থা-পরিবর্তনকারী রাইট (set runtime profile, lifecycle actions) উভয়ের জন্য POST। একটি খালি বা অনুপস্থিত বডি {} হিসেবে স্বাক্ষরিত হয় (কখনো খালি স্ট্রিং নয়), এবং /help ডিসকভারি এন্ডপয়েন্টগুলো প্রমাণীকরণ হেডার ছাড়া পরিবেশিত হয়। SDK স্বয়ংক্রিয়ভাবে নথিভুক্ত পদ্ধতি স্বাক্ষর করে এবং পাঠায়; রো HTTP কলারদের অবশ্যই প্রতিটি এন্ডপয়েন্টে ঘোষিত ভার্ব ব্যবহার করতে হবে।
কী স্বাক্ষরিত হয়
// Generate HMAC-SHA256 signature from the raw request body as lowercase hex
signature = HMAC_SHA256(apiSecret, requestBody).toHex()
শুধুমাত্র রো JSON বডি স্বাক্ষরিত হয়। Path, {apiKey}, কোয়েরি স্ট্রিং, এবং টাইমস্ট্যাম্প স্বাক্ষরিত পেলোডের অংশ নয়। বডি অবশ্যই আপনি যা প্রেরণ করেন তার সাথে বাইট-অভিন্ন হতে হবে - একবার সিরিয়ালাইজ করুন, সেই সঠিক স্ট্রিংটি স্বাক্ষর করুন, এবং এটি অনুরোধ বডি হিসেবে পাঠান।
যখন আপনি বডি তৈরি করেন, অবজেক্ট কী-গুলো ঊর্ধ্বক্রমিক বর্ণানুক্রমিকভাবে সাজান (প্রামাণিক JSON)। অ্যারেগুলো তাদের ঘোষিত ক্রম বজায় রাখে এবং undefined মান বাদ দেওয়া হয়। SDK স্বয়ংক্রিয়ভাবে এটি প্রয়োগ করে; ম্যানুয়াল স্বাক্ষরকারীদের অবশ্যই এটি বাইট বাই বাইট মিলাতে হবে নয়তো স্বাক্ষর যাচাই হবে না।
প্রয়োজনীয় হেডার
নাম
প্রয়োজনীয়
বিবরণ
Content-Type
প্রয়োজনীয়
অবশ্যই application/json হতে হবে।
X-API-Key
প্রয়োজনীয়
প্ল্যাটফর্ম ড্যাশবোর্ড থেকে ইস্যু করা API কী-এর পাবলিক শনাক্তকারী। মিলে যাওয়া সিক্রেট কখনো শেয়ার করবেন না।
X-API-Signature
প্রয়োজনীয়
রো অনুরোধ বডির লোয়ারকেস হেক্স-এনকোডেড HMAC-SHA256, API সিক্রেটকে কী হিসেবে ব্যবহার করে গণনা করা।
X-API-Timestamp
প্রয়োজনীয়
Unix epoch মিলিসেকেন্ডে অনুরোধ তৈরির সময়। সার্ভার 5-মিনিটের ড্রিফট উইন্ডোর বাইরের টাইমস্ট্যাম্প প্রত্যাখ্যান করে (রিপ্লে সুরক্ষা)।
অনুরোধ URL
প্রতিটি এন্ডপয়েন্ট একই শেপ অনুসরণ করে:
POST/:path
প্রতিটি এন্ডপয়েন্ট /v1/{apiKey}-এর অধীনে থাকে। {apiKey} পাথ কম্পোনেন্টটি আপনার পাবলিক API কী (X-API-Key হেডারে পাঠানো একই মান) এবং স্বাক্ষরিত পেলোডের অংশ নয়।
দীর্ঘতর ফিচার ঠিকানা https://trademire.ai/api/platform-api/{apiKey}/v1 ঠিক একই এন্ডপয়েন্টের উত্তর দেয় এবং এর উপর ইতিমধ্যে তৈরি করা ইন্টিগ্রেশনের জন্য খোলা থাকে। উভয় ফর্ম একই সার্ভারে পৌঁছায়, একই রেট লিমিট বহন করে এবং একই স্বাক্ষর নেয়।
অনুরোধ স্বাক্ষর করা
আপনি যে বডি প্রেরণ করেন তার সঠিক বাইট সিকোয়েন্সের উপর 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 প্রতিক্রিয়া ফেরত দেয়। নির্দিষ্ট কারণটি ইচ্ছাকৃতভাবে কলারের কাছে প্রকাশ করা হয় না (পরিচয়পত্র এনুমারেশন এবং ওরাকল আক্রমণ প্রতিরোধ করে)। পুনরায় চেষ্টা করার আগে আপনার স্থানীয় অনুরোধ পরীক্ষা করুন:
বডি কি আপনার স্বাক্ষরিত স্ট্রিংয়ের সাথে বাইট-অভিন্ন? পুনরায় সিরিয়ালাইজ করলে হোয়াইটস্পেস এবং কী-এর ক্রম পরিবর্তন হতে পারে, উভয়ই হ্যাশ ভেঙে দেবে।
আপনার স্থানীয় ঘড়ি কি UTC-এর 5 মিনিটের মধ্যে? X-API-Timestampমিলিসেকেন্ডে, সেকেন্ডে নয়।
আপনি কি API সিক্রেট দিয়ে স্বাক্ষর করেছেন (API কী দিয়ে নয়)?
স্বাক্ষর কি লোয়ারকেস হেক্স (0-9a-f)?
আপনার IP কি আপনার কী-এর অ্যালাউলিস্টে আছে (যদি আপনি ড্যাশবোর্ডে একটি কনফিগার করে থাকেন)?
GETTING STARTED · ERRORS
ত্রুটি
এই ত্রুটি কোডগুলো প্রতিটি এন্ডপয়েন্টে প্রযোজ্য। প্রতিটি ত্রুটি প্রতিক্রিয়া একটি rayId বহন করে যা আপনি সাপোর্টের সাথে যোগাযোগ করার সময় উদ্ধৃত করতে পারেন।
কোড
বিবরণ
MessageAccessForbidden
যেকোনো প্রমাণীকরণ ব্যর্থতার জন্য ফেরত দেওয়া হয় (অনুপস্থিত, ত্রুটিপূর্ণ, অথবা অবৈধ স্বাক্ষর, মেয়াদোত্তীর্ণ টাইমস্ট্যাম্প, স্থগিত কী, ব্লক করা IP)। এনুমারেশন প্রতিরোধ করতে নির্দিষ্ট কারণ ইচ্ছাকৃতভাবে প্রকাশ করা হয় না।
MessageMissingParameter
একটি প্রয়োজনীয় URL প্যারামিটার (যেমন প্রতি-বাজার এন্ডপয়েন্টে :pair) অনুপস্থিত, ত্রুটিপূর্ণ, অথবা আলফানিউমেরিক / দৈর্ঘ্য যাচাইকরণে ব্যর্থ হয়।
MessageRateLimitExceeded
এই এন্ডপয়েন্টের জন্য প্রতি-কী রেট লিমিট অতিক্রম করা হয়েছে। পুনরায় চেষ্টা করার আগে Retry-After প্রতিক্রিয়া হেডার পরীক্ষা করুন।
MessageInternalError
একটি অপ্রত্যাশিত অভ্যন্তরীণ ত্রুটি ঘটেছে। প্রতিক্রিয়ায় একটি rayId অন্তর্ভুক্ত থাকে যা আপনি সাপোর্টের সাথে যোগাযোগ করার সময় উদ্ধৃত করতে পারেন - কলারের কাছে আর কোনো বিবরণ প্রকাশ করা হয় না।
PUBLIC · MARKETS
বাজার তালিকা
প্ল্যাটফর্ম বর্তমানে ট্র্যাক করে এমন প্রতিটি বাজারের প্রামাণিক সংক্ষিপ্ত তালিকা ফেরত দেয়। প্রতিটি এন্ট্রি ভেন্যু জুড়ে সর্বশেষ সমষ্টিগত মূল্য, মূল্য যে কোট মুদ্রায় প্রকাশ করা হয়, এবং বাজার সক্রিয় কিনা তা নির্দেশকারী একটি ফ্ল্যাগ বহন করে। ফিল্টারিং, সর্টিং, এবং কার্সার পেজিনেশন প্রয়োগ করতে বডি ব্যবহার করুন - প্রতি-পেয়ার বিস্তারিত (সম্পূর্ণ টিকার, লিস্টিং, লিমিট, প্রোফাইল, OHLC) শার্ডেড /market/:pair/* এন্ডপয়েন্টে থাকে।
ফিল্টার অবজেক্ট: { term?: string }। term পেয়ার, বেস প্রতীক, এবং কোট প্রতীক ফিল্ডের সাথে মেলানো হয়।
sorting
body
object
ঐচ্ছিক
সর্ট অবজেক্ট: { field, direction }। সাধারণ ফিল্ড হলো pair, lastPrice, এবং isActive। direction হলো asc অথবা desc।
pagination
body
object
ঐচ্ছিক
কার্সার পেজিনেশন: { limit?: number, cursor?: string }। limit সার্ভার-সাইডে সীমাবদ্ধ, cursor অস্বচ্ছ এবং পূর্ববর্তী প্রতিক্রিয়া দ্বারা ফেরত দেওয়া হয়।
একটি একক ট্রেডিং পেয়ারের জন্য লাইভ সমন্বিত টিকার ফেরত দেয়: শেষ মূল্য ও তার 24 ঘণ্টার পরিবর্তন, spread সহ সেরা বিড/আস্ক, 24 ঘণ্টার বেস ভলিউম, এবং কতগুলো ভেন্যু মিলে এই মান তৈরি করে।
GET/market/:pair/ticker
AuthHMAC-SHA256Rate limit30 req/minURL param:pair
URL প্যারামিটার
নাম
প্রয়োজনীয়
বিবরণ
pair
required
Canonical pair key in BASE_QUOTE form (e.g. BTC_USDT). Alphanumeric, underscore and dash only, max 64 chars.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getTicker("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ticker
ফিল্ড
টাইপ
বিবরণ
pair
string
Canonical market pair key.
baseSymbol
string
Base asset symbol.
quoteSymbol
string
Quote asset symbol.
nrOfExchanges
number
Number of venues contributing to the aggregate.
lastPrice
number
Last aggregated trade price.
change
number
Change of the last aggregated price over the last 24 hours.
bidPrice
number
Current best bid price.
askPrice
number
Current best ask price.
volume
number
24h base-currency volume.
spread
number
Current bid/ask spread.
hasVolumeData
boolean
Whether live volume data is present.
hasPriceData
boolean
Whether live price data is present.
sourceDelaySecs
number
How far behind the live market the price is, in seconds. Left out while the price is live.
একটি ট্রেডিং পেয়ারের টিকার যে প্রতিটি ভেন্যু এটি তালিকাভুক্ত করে সেগুলোতে ভাগ করে দেখানোর জন্য তৈরি। আপাতত এটি Get Market Ticker-এর মতোই একটি একক সমন্বিত টিকার ফেরত দেয়।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getTickerExchanges("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
item
আপাতত উত্তরটি Get Market Ticker-এর ticker শেপে একটি একক item, প্রতিটি ভেন্যুর তালিকা নয়।
একটি একক বাজারের জন্য লিস্টিং-প্রাপ্যতা শেপ ফেরত দেয় - পেয়ারটি তালিকাভুক্ত, সক্রিয়, খোলাখুলি ট্রেডযোগ্য কিনা, এবং মার্জিন ট্রেডিং সমর্থিত কিনা তা বর্ণনাকারী ফ্ল্যাগের একটি সংক্ষিপ্ত সেট।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getListing("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getLimits("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
বাজার প্রোফাইল শেপ ফেরত দেয়: ট্যাগ প্লাস Get Market Listing-এর মতো একই লিস্টিং/কার্যক্রম মেটাডেটা। একটি একক কলে প্রাপ্যতা ফ্ল্যাগের পাশাপাশি বর্ণনামূলক মেটাডেটা চাইলে এটি ব্যবহার করুন।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getProfile("BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
একটি একক বাজারের জন্য OHLC ক্যান্ডেল সিরিজ ফেরত দেয়। ডিফল্টভাবে aggLast (শেষ-ট্রেড) ক্যান্ডেল ব্যবহার করে, ভলিউম ক্যান্ডেলের জন্য aggVol উপলব্ধ। টাইমফ্রেম এবং সময় পরিসর বডিতে পাস করা হয়।
POST/market/:pair/ohlc
AuthHMAC-SHA256Rate limit30 req/min
বডি প্যারামিটার
নাম
টাইপ
প্রয়োজনীয়
বিবরণ
field
string
optional
One of aggLast (default) or aggVol.
interval
string
optional
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.getOhlc("BTC_USDT", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ohlc
ফিল্ড
টাইপ
বিবরণ
pair
string
Canonical market pair key
field
string
Snapshotted field that drove the bins.
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
একটি বাজারের মূল্য ক্যান্ডেল থেকে গণনা করা প্রতিটি টেকনিক্যাল ইন্ডিকেটর ফেরত দেয়, শুধুমাত্র বন্ধ ক্যান্ডেল থেকে তৈরি যাতে পরবর্তী ক্যান্ডেল বন্ধ না হওয়া পর্যন্ত একটি রিডিং স্থির থাকে। প্রতিটি ক্যান্ডেল দৈর্ঘ্যে প্রতিটি রিডিং প্রদান করা হয় না - যে রিডিং প্রদান করা হয় না তা উত্তর থেকে বাদ দেওয়া হয়, এবং উপস্থিত প্রতিটি রিডিং সেই ক্যান্ডেলের নাম উল্লেখ করে যা থেকে এটি তৈরি হয়েছে। ema50-এর মতো লুকব্যাক অনুযায়ী নামকরণ করা রিডিং সিরিজে ততগুলো ক্যান্ডেল না আসা পর্যন্ত উত্তরে থাকে না; ততক্ষণ এর 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
Markets বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
প্ল্যাটফর্ম দ্বারা ট্র্যাক করা প্রতিটি সম্পদের প্রামাণিক সংক্ষিপ্ত তালিকা - শেষ সমষ্টিগত মূল্য, সম্পদের ধরন, এবং লিস্টিং অবস্থা। ফিল্টারিং, সর্টিং, এবং কার্সার পেজিনেশন সমর্থিত।
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
Assets বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
একীভূত লিস্টিং তথ্যসহ সকল ট্র্যাক করা এক্সচেঞ্জ ফেরত দেয়: সম্পদ এবং বাজারের সংখ্যা, 24 ঘণ্টার ভলিউম, ট্রাস্ট স্কোর এবং র্যাঙ্ক, দেশ, প্রতিষ্ঠার বছর, সক্ষমতা, এবং ডমিন্যান্স।
POST/exchanges/list
AuthHMAC-SHA256Rate limit10 req/minPagination
বডি প্যারামিটার
নাম
টাইপ
প্রয়োজনীয়
বিবরণ
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.get("binance");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getProfile("binance");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getOhlc("binance", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
exchange-ohlc[":exchangeKey"]
ফিল্ড
টাইপ
বিবরণ
exchangeKey
string
Exchange short key
field
string
Snapshotted field: aggVol (default) or aggDom
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarkets("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
সম্পূর্ণ লাইভ মূল্য তথ্যসহ প্রতি-এক্সচেঞ্জ বাজার টিকার: ভেন্যুর প্রতিটি পেয়ারের জন্য শেষ, 24 ঘণ্টার সর্বোচ্চ/সর্বনিম্ন, পরিবর্তন, ভলিউম, বিড/আস্ক, এবং স্প্রেড।
POST/exchange/:exchangeKey/markets/tickers
AuthHMAC-SHA256Rate limit10 req/minPagination
বডি প্যারামিটার
নাম
টাইপ
প্রয়োজনীয়
বিবরণ
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarketsTickers("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
items[]
প্রতিটি আইটেম বহন করে marketKey, localPair, baseSymbol, quoteSymbol, lastPrice, highPrice24h, lowPrice24h, change, volume, bidPrice, askPrice, spread, এবং isActive।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketsOhlc("binance", { pagination: { page: 1, limit: 50 }, interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarketsLimits("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarket("binance", "BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketTicker("binance", "BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketProfile("binance", "BTC_USDT");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getMarketOhlc("binance", "BTC_USDT", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
exchange-market-ohlc[":marketKey"]
ফিল্ড
টাইপ
বিবরণ
exchangeKey
string
Exchange short key
marketKey
string
Global pair symbol
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listAssets("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listAssetsTickers("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listAssetsLimits("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAsset("binance", "BTC");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAssetProfile("binance", "BTC");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.getAssetOhlc("binance", "BTC", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
exchange-asset-ohlc[":assetKey"]
ফিল্ড
টাইপ
বিবরণ
exchangeKey
string
Exchange short key
assetKey
string
Global asset symbol
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
একটি এক্সচেঞ্জে একটি সম্পদের মূল্য ক্যান্ডেল থেকে গণনা করা প্রতিটি টেকনিক্যাল ইন্ডিকেটর ফেরত দেয়, শুধুমাত্র বন্ধ ক্যান্ডেল থেকে তৈরি যাতে পরবর্তী ক্যান্ডেল বন্ধ না হওয়া পর্যন্ত একটি রিডিং স্থির থাকে। প্রতিটি ক্যান্ডেল দৈর্ঘ্যে প্রতিটি রিডিং প্রদান করা হয় না - যে রিডিং প্রদান করা হয় না তা উত্তর থেকে বাদ দেওয়া হয়, এবং উপস্থিত প্রতিটি রিডিং সেই ক্যান্ডেলের নাম উল্লেখ করে যা থেকে এটি তৈরি হয়েছে। ema50-এর মতো লুকব্যাক অনুযায়ী নামকরণ করা রিডিং সিরিজে ততগুলো ক্যান্ডেল না আসা পর্যন্ত উত্তরে থাকে না; ততক্ষণ এর 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
Exchanges বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
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
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 }.
সম্পর্কিত এন্ডপয়েন্টসমূহ
একক টোকেন: POST /v1/chain/:chainId/token/:tokenAddress হোল্ডার: POST /v1/chain/:chainId/token/:tokenAddress/holders ট্রান্সফার: POST /v1/chain/:chainId/token/:tokenAddress/transfers ওয়ালেট পোর্টফোলিও: POST /v1/chain/:chainId/wallet/:walletAddress/portfolio
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listTokens("ethereum", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getToken("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listTokenHolders("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getTokenHolder("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.listTokenTransfers("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getTokenTransfer("ethereum", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x1234abcd5678ef901234567890abcdef1234567890abcdef1234567890abcdef");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getWalletPortfolio("ethereum", "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getWalletBalance("ethereum", "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48");
// 3. Inspect the parsed response
console.log(res);
Chains বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
প্ল্যাটফর্ম দ্বারা ট্র্যাক করা প্রতিটি ম্যাক্রো ইন্ডিকেটর টাইপ ফেরত দেয় (যেমন রেফারেন্স রেট, ভোলাটিলিটি ইনডেক্স)। নিচের ভ্যালু এবং OHLC এন্ডপয়েন্টের সাথে ফেরত দেওয়া macroType কী ব্যবহার করুন।
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);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.listValues("policy_rate", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getValue("policy_rate", { country: "YOUR_COUNTRY" });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getOhlc("policy_rate", { interval: "5m", country: "TR" });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
macro-ohlc[":macroType"]
ফিল্ড
টাইপ
বিবরণ
macroType
string
Macro type the series belongs to
country
string
Country code the series belongs to
summary
object
Aggregate change summary over the window
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
series
array
OHLC bars: {tOpen, tClose, open, high, low, close}. For sparse macro observations the bar is degenerate (open = high = low = close = value).
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.listIndexes({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
macro-index-list[":indexKey"]
ফিল্ড
টাইপ
বিবরণ
indexKey
string
Unique index key
name
string
Human readable index name
lastValue
number
Latest index value
change24h
number
Move since the previous reading, in index points on a bounded scale and as a percentage otherwise
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getIndex("fearGreed");
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
macro-index-get[":indexKey"]
ফিল্ড
টাইপ
বিবরণ
indexKey
string
Unique index key
name
string
Human readable index name
description
string
What the index measures and how to read it
methodology
string
How the index is built: equal weight, market cap weight, or external when it is published by another party and read as is
source
string
Publisher an externally sourced index is credited to, absent when the platform computes the index itself
lastValue
number
Latest index value
change24h
number
Move since the previous reading, in index points on a bounded scale and as a percentage otherwise. Measured against the last available reading, so a skipped day is not read as no change
nrOfConstituents
number
Number of assets composing the index, absent for indexes that are not built from a basket
tComputed
number
Unix time the latest value last moved, so a source that went quiet shows as stale rather than freshly published
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getIndexOhlc("fearGreed", { interval: "5m" });
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
macro-index-ohlc[":indexKey"]
ফিল্ড
টাইপ
বিবরণ
indexKey
string
Unique index key
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
series
array
Sorted OHLC bins: { tOpen, tClose, open, high, low, close }. History is recorded from the moment an index starts being tracked, so the longer candles fill in over time rather than reaching back before that point
Macro বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
একটি পুল উন্মুক্ত করে এমন প্রতিটি ডাইরেক্টিভের বর্তমান মান, অথবা শুধুমাত্র নামকৃতগুলোর। এটি সেই ঠিকানা যা একটি কৌশল বারবার জিজ্ঞাসা করে, তাই এটি ছোট থাকে।
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
ডাইরেক্টিভ মান নির্ধারণ করুন
একটি ডাইরেক্টিভের জন্য একটি নতুন মান সংরক্ষণ করে। আপনি যে মান পড়েছেন তার ফিঙ্গারপ্রিন্ট 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
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
প্রতিক্রিয়ার উদাহরণ
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.
কৌশল মেট্রিক নাম
প্ল্যাটফর্মে চলমান একটি কৌশল এই ঠিকানাগুলো নিজে কল করার পরিবর্তে একটি ডাইরেক্টিভকে মেট্রিক হিসেবে পড়তে পারে। নিচের প্রতিটি নাম উপরের হেল্প ম্যাপে প্রকাশিত, তার প্রয়োজনীয় রিডাকশনসহ: একটি সংখ্যা যেমন আছে তেমন ব্যবহৃত হয়, টেক্সটের একটি লাইনকে একটিতে নামিয়ে আনতে হয়, এবং একটি গ্রুপ করা মানকে প্রথমে রুট করতে হয়। ডাইরেক্টিভটি মেট্রিকের উপরেই নামকরণ করা হয়, যেহেতু তিনটি বান্ডেলের প্রতিটি এর দ্বারা ইনডেক্স করা।
মেট্রিক নাম
টাইপ
বিবরণ
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 } হিসেবে ফেরত দেয়। প্রোফাইল অপরিবর্তিত থাকলে হ্যাশ ক্লায়েন্টদের পুনরায়-রেন্ডারিং এড়িয়ে যেতে দেয়।
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 ম্যাপে প্রতি ভল্টে একটি এন্ট্রি থাকে।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.action("deploy", { items: { "vlt-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Vaults বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
একটি পুলের অন্তর্গত প্রতিটি কৌশলের সংক্ষিপ্ত সারসংক্ষেপ তালিকা ফেরত দেয়: শনাক্তকারী, নাম, এবং অবস্থা। সর্টিং, অনুসন্ধান, এবং কার্সার পেজিনেশন সমর্থিত।
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 দ্বারা সম্পূর্ণ কৌশল বিস্তারিত ফেরত দেয় - কনফিগারেশন, সিগন্যাল পাইপলাইন, এক্সপোজার নিয়ম, এবং রানটাইম অবস্থা। রানটাইম দিক আনতে 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 ম্যাপে প্রতি আইটেমে একটি এন্ট্রি থাকে।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.action("deploy", { items: { "str-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Strategies বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
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 ম্যাপ প্রতিটি আইটেমের জন্য একটি এন্ট্রি বহন করে।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.action("deploy", { items: { "nod-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Nodes বিভাগের প্রতিটি এন্ডপয়েন্টের একটি কাঠামোবদ্ধ JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয়। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
একটি পুলের জন্য প্রভিশন করা প্রতিটি সার্ভারের সংক্ষিপ্ত সারসংক্ষেপ তালিকা ফেরত দেয়। অনুসন্ধান, সর্টিং, এবং কার্সার পেজিনেশনসহ স্ট্যান্ডার্ড তালিকা শেপ।
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 ম্যাপ প্রতিটি আইটেমের জন্য একটি এন্ট্রি বহন করে।
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);
সার্ভার ক্যাটাগরির প্রতিটি এন্ডপয়েন্টের একটি কাঠামোগত JSON ম্যাপ ফেরত দেয় - HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় ও ঐচ্ছিক প্যারামিটার, এবং প্রতিটি এন্ডপয়েন্ট যে ফিল্ড গ্রুপ ফেরত দেয় তা সহ। SDK এবং এজেন্ট ইন্ট্রোস্পেকশনের জন্য উপযোগী।
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.help();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
ফিল্ড
টাইপ
বিবরণ
success
boolean
কলটি সফল হয়েছিল কিনা।
category
string
এই হেল্প ম্যাপ যে বিভাগ বর্ণনা করে।
help
object
হেল্প ম্যাপ কন্টেইনার। paths প্রতিটি এন্ডপয়েন্ট পাথকে তার মেটাডেটার সাথে ম্যাপ করে (HTTP পদ্ধতি, বিবরণ, রেট লিমিট, প্রয়োজনীয় এবং ঐচ্ছিক প্যারামিটার, প্রযোজ্য হলে isListing ফ্ল্যাগ, এবং এটি রেফারেন্স করা ফিল্ড গ্রুপ)। fieldGroups প্রতিটি গ্রুপের নামকে পাথ এন্ট্রি থেকে রেফারেন্স করা তার ফিল্ড বর্ণনাকারীর (টাইপ এবং বিবরণ) সাথে ম্যাপ করে।
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। স্ট্যান্ডার্ড search / sort / কার্সার pagination সমর্থিত।
POST/trades/list
AuthHMAC + pool-bound keyRate limit30 req/min
বডি প্যারামিটার
নাম
টাইপ
প্রয়োজনীয়
বিবরণ
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.trades.list();
// 3. Inspect the parsed response
console.log(res);
একটি পুলের জন্য প্রতি-সম্পদ ব্যালেন্স ফেরত দেয়। প্রতিটি আইটেম বহন করে available (নতুন অর্ডারের জন্য মুক্ত), locked (খোলা অর্ডার দ্বারা সংরক্ষিত), এবং total। স্ট্যান্ডার্ড search / sort / কার্সার pagination সমর্থিত।
POST/balances/list
AuthHMAC + pool-bound keyRate limit30 req/min
বডি প্যারামিটার
নাম
টাইপ
প্রয়োজনীয়
বিবরণ
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.balances.list();
// 3. Inspect the parsed response
console.log(res);
একটি পুলের জন্য অন/অফ-র্যাম্প লেজার ফেরত দেয়: জমা, উত্তোলন, এবং প্ল্যাটফর্ম ফি। প্রতিটি আইটেম বহন করে ধরন, সম্পদ, পরিমাণ, অবস্থা, এবং একটি ঐচ্ছিক অন-চেইন tx হ্যাশ। স্ট্যান্ডার্ড search / sort / কার্সার pagination সমর্থিত।
POST/transactions/list
AuthHMAC + pool-bound keyRate limit30 req/min
বডি প্যারামিটার
নাম
টাইপ
প্রয়োজনীয়
বিবরণ
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.transactions.list();
// 3. Inspect the parsed response
console.log(res);
প্রতিক্রিয়া স্কিমা
transaction[":transactionId"]
ফিল্ড
টাইপ
বিবরণ
type
string
Transaction type (deposit, withdrawal, fee, ...)
symbol
string
Asset symbol
amount
number
Transaction amount
fee
number
Network or platform fee
status
string
Transaction status (pending, confirmed, failed, ...)
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.