Isang pinirmahang REST API na sumasaklaw sa buong plataporma ng TradeMire: pampublikong market data (markets, assets, exchanges, chains, macro indicator) at ang iyong pribadong vault, estratehiya, node, at order - lahat ay authenticated gamit ang HMAC-SHA256 at may pagination sa kabuuan.
Base URLhttps://trademire.ai/api
Prefix ng Path/v1/{apiKey}
Bersyonv1
AuthHMAC-SHA256
Limitasyon sa RateNag-iiba kada endpoint
SDK@trademire/platform-api
GETTING STARTED · QUICK START
Mabilisang Simula
Tatlong hakbang tungo sa iyong unang pinirmahang tawag: i-install ang SDK, itakda ang iyong mga kredensyal, at tawagan ang markets.list().
1 - I-install ang SDK
npm install @trademire/platform-api
2 - I-configure ang client
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 - Gawin ang iyong unang tawag
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);
}
}
Transparenteng bumubuo ang SDK ng {anyKey} kada request, pinipirmahan ang body gamit ang HMAC-SHA256, idinadaikit ang lahat ng apat na kinakailangang header, at ina-parse ang JSON na tugon. Hindi mo kailanman direktang hinahawakan ang mga signing primitive. Kung tatawagin mo ang API nang walang SDK (cURL, custom na HTTP client, iba pang wika), tingnan ang Pagpapatunay sa ibaba para sa buong recipe ng pagpirma.
GETTING STARTED · AUTHENTICATION
Pagpapatunay
Ang seksyong ito ang malalim na paliwanag tungkol sa pagpirma ng request. Kung ginagamit mo ang @trademire/platform-api SDK, awtomatikong nangyayari ang pagpirma at maaari mo itong laktawan o balewalain - ang recipe sa ibaba ay para sa mga tumatawag na nagpipirma nang manwal (cURL, low-level na HTTP client, iba pang wika). Bawat tawag sa Platform API - mga pampublikong listing pati na rin ang mga pribadong aksyon sa pool - ay pinipirmahan gamit ang HMAC-SHA256 sa raw JSON request body. Pinatutunayan ng signature na hawak mo ang API secret nang hindi ito ipinapadala, at itinatakda ng timestamp ang bawat request sa isang 5-minutong replay window. Ang parehong tatlong header (key, signature, timestamp) ang nagpapatunay sa lahat; ang mga PRIVATE endpoint ay nakatuon sa pool na kinatalian ng iyong API key sa oras ng paglikha nito, kaya't binabalewala ang poolKey na ibinigay ng tumatawag sa body. Bawat endpoint sa ibaba ay dinodokumento kasama ang canonical na method nito - GET para sa purong basa nang walang body, POST para sa anumang may dalang body o nagbabago ng state. Awtomatikong ipinapadala ng SDK ang dokumentadong verb - GET para sa mga basang walang body (pinipirmahan bilang canonical na walang laman na object) at POST para sa mga tawag na may dalang body.
Idinedeklara ng bawat endpoint ang isang HTTP method: GET para sa mga basang walang body, at POST para sa mga query na may dalang body (list, search, OHLC) pati na rin ang mga pagsusulat na nagbabago ng state (pagtakda ng runtime profile, mga aksyon sa lifecycle). Ang walang laman o wala sa body ay pinipirmahan bilang {} (hindi kailanman ang walang lamang string), at ang mga discovery endpoint na /help ay isinasalin nang walang authentication header. Awtomatikong pinipirmahan at ipinapadala ng SDK ang dokumentadong method; kailangang gamitin ng mga raw HTTP na tumatawag ang verb na idineklara sa bawat endpoint.
Ano ang pinipirmahan
// Generate HMAC-SHA256 signature from the raw request body as lowercase hex
signature = HMAC_SHA256(apiSecret, requestBody).toHex()
Ang raw JSON body lamang ang pinipirmahan. Ang path, {apiKey}, query string, at timestamp ay hindi bahagi ng pinipirmahang payload. Dapat byte-identical ang body sa ipinapadala mo - i-serialize nang isang beses, pirmahan ang eksaktong string na iyon, at ipadala ito bilang request body.
Kapag binubuo mo ang body, ayusin ang mga key ng object nang paakyat na alpabetikal na pagkakasunud-sunod (canonical JSON). Pinapanatili ng mga array ang kanilang idineklarang pagkakasunud-sunod at inaalis ang mga value na undefined. Awtomatikong inilalapat ito ng SDK; kailangang tumugma nang eksakto ang mga manwal na tagapagpirma o hindi ma-veverify ang signature.
Mga kinakailangang header
Pangalan
Kinakailangan
Paglalarawan
Content-Type
kinakailangan
Dapat ay application/json.
X-API-Key
kinakailangan
Pampublikong identifier ng API key na inilabas mula sa dashboard ng plataporma. Huwag kailanman ibahagi ang katugmang secret.
X-API-Signature
kinakailangan
Lowercase na hex-encoded na HMAC-SHA256 ng raw request body, kinakalkula gamit ang API secret bilang key.
X-API-Timestamp
kinakailangan
Oras ng paglikha ng request sa Unix epoch na millisecond. Tinatanggihan ng server ang mga timestamp na lampas sa 5-minutong drift window (proteksyon laban sa replay).
URL ng Request
Sinusunod ng bawat endpoint ang parehong hugis:
POST/:path
Bawat endpoint ay nasa ilalim ng /v1/{apiKey}. Ang bahaging path na {apiKey} ay ang iyong pampublikong API key (ang parehong value na ipinapadala sa header na X-API-Key) at hindi bahagi ng pinipirmahang payload.
Ang mas mahabang feature address na https://trademire.ai/api/platform-api/{apiKey}/v1 ay sumasagot din sa parehong mga endpoint at nananatiling bukas para sa mga integrasyong nabuo na dito. Parehong nakararating ang dalawang anyo sa mga parehong server, may dalang parehong rate limit, at gumagamit ng parehong signature.
Pagpirma sa request
Kalkulahin ang HMAC sa eksaktong byte sequence ng body na ipinapadala mo. Piliin ang iyong wika:
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,
});
Para sa anumang kabiguan sa authentication - nawawalang header, maling signature, lipas na timestamp, na-suspindi na key, naharang na IP, o hindi awtorisadong kategorya - ibinabalik ng server ang parehong generic na tugon na MessageAccessForbidden. Sinadyang hindi ipinapakita ang tiyak na dahilan sa tumatawag (pumipigil sa credential enumeration at oracle attack). Suriin ang iyong lokal na request bago muling subukan:
Byte-identical ba ang body sa string na pinirmahan mo? Ang muling pag-serialize ay maaaring baguhin ang whitespace at pagkakasunud-sunod ng key, na parehong makakasira sa hash.
Nasa loob ba ng 5 minuto ng UTC ang iyong lokal na orasan? Ang X-API-Timestamp ay nasa millisecond, hindi segundo.
Pinirmahan mo ba gamit ang API secret (hindi ang API key)?
Lowercase hex ba ang signature (0-9a-f)?
Nasa allowlist ba ng iyong key ang iyong IP (kung nag-configure ka ng isa sa dashboard)?
GETTING STARTED · ERRORS
Mga Error
Naaangkop ang mga error code na ito sa bawat endpoint. May dalang rayId ang bawat tugon ng error na maaari mong banggitin kapag nakikipag-ugnayan sa suporta.
Code
Paglalarawan
MessageAccessForbidden
Ibinabalik para sa anumang kabiguan sa authentication (nawawala, maling anyo, o invalid na signature, lipas na timestamp, na-suspindi na key, naharang na IP). Sinadyang hindi isinisiwalat ang tiyak na dahilan upang maiwasan ang enumeration.
MessageMissingParameter
Isang kinakailangang parameter ng URL (hal. :pair sa mga endpoint kada market) ay wala, may maling anyo, o hindi pumasa sa validation ng alphanumeric / haba.
MessageRateLimitExceeded
Nalampasan na ang rate limit kada key para sa endpoint na ito. Suriin ang header ng tugon na Retry-After bago muling subukan.
MessageInternalError
Nagkaroon ng hindi inaasahang internal na error. Kasama sa tugon ang rayId na maaari mong banggitin kapag nakikipag-ugnayan sa suporta - walang karagdagang detalyeng inilalantad sa tumatawag.
PUBLIC · MARKETS
Ilista ang mga Market
Ibinabalik ang canonical at lean na listahan ng bawat market na kasalukuyang sinusubaybayan ng plataporma. May dala ang bawat entry ng pinakabagong pinagsama-samang presyo sa lahat ng venue, ang quote currency kung saan tinutukoy ang presyo, at isang flag na nagsasaad kung aktibo ang market. Gamitin ang body upang ilapat ang filtering, sorting, at cursor pagination - ang detalye kada pair (buong ticker, listing, limit, profile, OHLC) ay nasa mga sharded na endpoint na /market/:pair/*.
POST/markets/list
AuthHMAC-SHA256Limitasyon sa Rate10 req/minPaginationNilalamanapplication/json
Mga Parameter ng Body
Pangalan
Sa
Uri
Kinakailangan
Paglalarawan
BODY NG REQUEST
filtering
body
object
opsyonal
Filter object: { term?: string }. Itinutugma ang term sa mga field ng pair, base symbol, at quote symbol.
sorting
body
object
opsyonal
Sort object: { field, direction }. Ang mga karaniwang field ay pair, lastPrice, at isActive. Ang direction ay asc o desc.
pagination
body
object
opsyonal
Cursor pagination: { limit?: number, cursor?: string }. Ang limit ay may takda sa server-side, ang cursor ay opaque at ibinabalik ng nakaraang tugon.
Schema ng Tugon
items[]
Field
Uri
Paglalarawan
pair
string
Canonical na key ng market pair sa anyong BASE_QUOTE (hal. BTC_USDT).
baseSymbol
string
Simbolo ng base asset ng market.
quoteSymbol
string
Simbolo ng quote asset ng market.
isActive
boolean
Kung ang market ay kasalukuyang aktibo at nangangalakal sa kahit isang sinusubaybayang venue.
lastPrice
number
Pinakabagong pinagsama-samang presyo sa lahat ng venue, nasa denominasyong priceQuote.
priceQuote
string
Quote currency kung saan tinutukoy ang lastPrice (karaniwan ay USDT o USD).
sourceDelaySecs
number
Kung gaano kalayo sa likod ng live na merkado ang presyong ito, sa segundo. Wala kapag live ang presyo, na siyang kaso para sa mga crypto asset.
pagination
Field
Uri
Paglalarawan
currentPage
integer
1-based na index ng pahinang ibinalik ng tugong ito.
totalPages
integer
Kabuuang bilang ng mga pahinang available para sa kasalukuyang filter at limit.
pageSize
integer
Epektibong laki ng pahina na inilapat ng server (maaaring mas mababa kaysa sa hiniling na limit).
totalRows
integer
Kabuuang bilang ng mga row na tumutugma sa filter sa lahat ng pahina.
Ibinabalik ang live na pinagsamang ticker para sa iisang trading pair: huling presyo at ang pagbabago nito sa loob ng 24 oras, pinakamahusay na bid/ask kasama ang spread nito, 24-oras na base volume, at kung ilang venue ang bumubuo sa pagbasa.
GET/market/:pair/ticker
AuthHMAC-SHA256Rate limit30 req/minURL param:pair
Mga parameter ng URL
Pangalan
Kinakailangan
Paglalarawan
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);
Schema ng Tugon
ticker
Field
Uri
Paglalarawan
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.
Ginawa para hatiin ang ticker ng isang trading pair sa bawat venue na naglilista nito. Sa ngayon, ibinabalik nito ang iisang pinagsamang ticker, kapareho ng 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);
Schema ng Tugon
item
Sa ngayon, ang sagot ay iisang item na may hugis ng ticker mula sa Get Market Ticker, hindi listahan bawat venue.
Ibinabalik ang hugis ng listing-availability para sa iisang market - isang compact na hanay ng mga flag na naglalarawan kung nakalista, aktibo, bukas na maikakalakal ang pair, at kung suportado ang margin trading.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang na-sanitize na mga limitasyon sa pangangalakal at bayarin para sa iisang market: precision, mga hangganan ng presyo/dami, tick size, notional bounds, at mga rate ng bayad na maker/taker.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang hugis ng market profile: mga tag kasama ang parehong metadata ng listing/aktibidad tulad ng Get Market Listing. Gamitin ito kung gusto mo ng deskriptibong metadata kasabay ng mga flag ng availability sa iisang tawag.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang serye ng OHLC candle para sa iisang market. Default sa aggLast (huling-kalakal) na candle, na may aggVol available para sa volume candle. Ipinapasa ang timeframe at saklaw ng oras sa body.
POST/market/:pair/ohlc
AuthHMAC-SHA256Rate limit30 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Schema ng Tugon
ohlc
Field
Uri
Paglalarawan
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
Ibinabalik ang bawat kinakalkulang teknikal na indicator ng isang market mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
market-indicators[":pair"]
Field
Uri
Paglalarawan
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
Ibinabalik ang isang kinakalkulang teknikal na indicator ng isang market mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
market-indicators[":pair"]
Field
Uri
Paglalarawan
pair
string
Canonical market pair key
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Markets - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.markets.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Canonical at lean na listahan ng bawat asset na sinusubaybayan ng plataporma - huling pinagsama-samang presyo, uri ng asset, at katayuan ng listing. Suportado ang filtering, sorting, at cursor pagination.
POST/assets/list
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Parehong hugis ng List Markets: filtering, sorting, pagination. Itinutugma ang search term sa mga field ng simbolo at pangalan ng asset.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang iisang asset kasama ang presyo, 24-oras na volume, pagbabago, dominance, bilang ng mga exchange na naglilista nito, pinagsama-samang limitasyon, at mga limitasyon kada network na naka-key sa identifier ng network.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
asset
Field
Uri
Paglalarawan
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.
Ibinabalik ang deskriptibong metadata ng profile para sa iisang asset: paglalarawan, mga bilang ng supply, mga URL ng social/web, mga key ng tag, at mga entry ng rating.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
profile
Field
Uri
Paglalarawan
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);
Schema ng Tugon
asset-ohlc[":symbol"]
Field
Uri
Paglalarawan
symbol
string
Global asset symbol
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
Ibinabalik ang bawat kinakalkulang teknikal na indicator ng isang asset mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
asset-indicators[":symbol"]
Field
Uri
Paglalarawan
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
Ibinabalik ang isang kinakalkulang teknikal na indicator ng isang asset mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
asset-indicators[":symbol"]
Field
Uri
Paglalarawan
symbol
string
Asset symbol
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Assets - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.assets.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Ibinabalik ang lahat ng sinusubaybayang exchange kasama ang pinag-isang data ng listing: bilang ng asset at market, 24-oras na volume, trust score at ranggo, bansa, taon ng pagkakatatag, kakayahan, at dominance.
POST/exchanges/list
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Schema ng Tugon
exchange-ohlc[":exchangeKey"]
Field
Uri
Paglalarawan
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
Ibinabalik ang listahan ng mga market na available sa isang tiyak na exchange, nakatuon sa venue na iyon. Sinusuportahan ang filtering, sorting, at cursor pagination sa pamamagitan ng body.
POST/exchange/:exchangeKey/markets/list
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.listMarkets("binance", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
Mga market ticker kada exchange na may buong live na data ng presyo: huli, 24-oras na high/low, pagbabago, volume, bid/ask, at spread para sa bawat pair sa venue.
POST/exchange/:exchangeKey/markets/tickers
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Schema ng Tugon
items[]
May dalang marketKey, localPair, baseSymbol, quoteSymbol, lastPrice, highPrice24h, lowPrice24h, change, volume, bidPrice, askPrice, spread, at isActive ang bawat 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.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);
Schema ng Tugon
exchange-market-ohlc[":marketKey"]
Field
Uri
Paglalarawan
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);
Schema ng Tugon
exchange-asset-ohlc[":assetKey"]
Field
Uri
Paglalarawan
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
Ibinabalik ang bawat kinakalkulang teknikal na indicator ng isang asset sa isang exchange mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
exchange-asset-indicators[":assetKey"]
Field
Uri
Paglalarawan
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
Ibinabalik ang isang kinakalkulang teknikal na indicator ng isang asset sa isang exchange mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
exchange-asset-indicators[":assetKey"]
Field
Uri
Paglalarawan
exchangeKey
string
Exchange short key
assetKey
string
Global asset symbol
interval
string
Length of one candle: 1m, 5m, 15m, 1h, 4h, 1d or 1w
Ibinabalik ang bawat kinakalkulang teknikal na indicator ng isang market sa isang exchange mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
exchange-market-indicators[":marketKey"]
Field
Uri
Paglalarawan
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
Ibinabalik ang isang kinakalkulang teknikal na indicator ng isang market sa isang exchange mula sa mga presyong candle nito, binuo lamang mula sa mga saradong candle upang manatiling nakatakda ang isang reading hanggang magsara ang susunod na candle. Hindi lahat ng reading ay inaalok sa bawat haba ng candle - ang reading na hindi inaalok ay hindi isinasama sa sagot, at pinapangalanan ng bawat naroroong reading ang mga candle na pinagmulan nito. Ang reading na pinangalanan ayon sa lookback, gaya ng ema50, ay hindi rin kasama hanggang may ganoong dami ng candle ang serye; hanggang doon, binibilang ng periods field nito ang mga candle na hawak na at sinasabi ng periodsNeeded field kung ilan ang kailangan nito.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
exchange-market-indicators[":marketKey"]
Field
Uri
Paglalarawan
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
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Exchanges - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.exchanges.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Ibinabalik ang listahan ng bawat blockchain network na sinusubaybayan ng plataporma, kasama ang pinag-isang data ng listing. Suportado ang filtering, sorting, at cursor pagination.
POST/chains/list
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
filtering
object
optional
Filter object: { term?: string }. Free-text term matched against the listing.
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.get("ethereum");
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.getProfile("ethereum");
// 3. Inspect the parsed response
console.log(res);
Ibinabalik ang kasalukuyang presyo ng gas para sa bawat suportadong chain sa iisang payload. Gamitin ito upang patakbuhin ang multi-chain fee selector o routing layer.
GET/chains/gas-prices/list
AuthHMAC-SHA256Rate limit10 req/minPagination
Kaugnay na endpoint
Presyo kada chain: POST /v1/chain/gas-price/:chainId. Parehong hugis, nakatuon sa iisang chain.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
chain-gas-ohlc[":chainId"]
Field
Uri
Paglalarawan
chainKey
string
Chain short key (e.g. eth)
interval
string
Length of one candle: 1s, 1m, 5m, 4h, 12h, 73h or 0.5M
Ibinabalik ang listahan ng token para sa isang tiyak na chain, kabilang ang metadata na estilong ERC-20. Suportado ang filtering, sorting, at cursor pagination.
POST/chain/:chainId/tokens
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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 }.
Mga kaugnay na endpoint
Iisang token: POST /v1/chain/:chainId/token/:tokenAddress Mga May-ari: POST /v1/chain/:chainId/token/:tokenAddress/holders Mga Paglipat: POST /v1/chain/:chainId/token/:tokenAddress/transfers Portfolio ng Wallet: 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);
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Chains - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.chains.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Ibinabalik ang bawat uri ng macro indicator na sinusubaybayan ng plataporma (hal. reference rates, volatility indices). Gamitin ang ibinalik na mga key ng macroType kasama ang mga endpoint ng values at OHLC sa ibaba.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang pinakabagong value para sa ibinigay na uri ng macro indicator (hal. reference-rates). Gamitin ang listing endpoint upang matuklasan ang mga available na uri.
POST/macro/values/:macroType
AuthHMAC-SHA256Rate limit10 req/minPagination
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
sorting
object
optional
Sort object: { field, direction }. Direction is asc or desc.
pagination
object
optional
Page-based pagination: { page: number, limit: number }. page is 1-based; limit is between 10 and 100 (default 10). Response carries { currentPage, totalPages, pageSize, totalRows }.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.listValues("policy_rate", { pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.getValue("policy_rate", { country: "YOUR_COUNTRY" });
// 3. Inspect the parsed response
console.log(res);
Ibinabalik ang serye ng OHLC candle para sa isang uri ng macro indicator. Naaangkop ang standard na mga parameter ng body na timeframe, tOldest, tNewest.
POST/macro/ohlc/:macroType
AuthHMAC-SHA256Rate limit30 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
country
string
required
Country code the observation belongs to (e.g. US, TR, DE).
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.macro.getOhlc("policy_rate", { interval: "5m", country: "TR" });
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
macro-ohlc[":macroType"]
Field
Uri
Paglalarawan
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);
Schema ng Tugon
macro-index-list[":indexKey"]
Field
Uri
Paglalarawan
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);
Schema ng Tugon
macro-index-get[":indexKey"]
Field
Uri
Paglalarawan
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);
Schema ng Tugon
macro-index-ohlc[":indexKey"]
Field
Uri
Paglalarawan
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
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Macro - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.macro.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Kasalukuyang value ng bawat directive na inilalantad ng isang pool, o ng mga pinangalanan lamang. Ito ang address na paulit-ulit na tinatanong ng isang estratehiya, kaya't pinapanatili itong maliit.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
directive-value[":directiveKey"]
Field
Uri
Paglalarawan
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
Ilista ang mga Kahulugan ng Directive
Kung paano dinisenyo ang bawat directive na inilalantad ng isang pool. Bihirang magbago ang disenyo, kaya't mas mainam alalahanin ito kaysa muling itanong.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
directive-definition[":directiveKey"]
Field
Uri
Paglalarawan
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
Halimbawa ng Tugon
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.
PRIVATE · POOLS
Kunin ang Value ng Directive
Ibinabalik ang kasalukuyang value ng isang directive.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.pools.directives.get("greed_xckdf1");
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
directive-value[":directiveKey"]
Field
Uri
Paglalarawan
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
Kunin ang Kahulugan ng Directive
Ibinabalik kung paano dinisenyo ang isang directive - ang mga hangganan, hakbang, pagpipilian o pinangalanang entry nito, at kung maaari itong baguhin ng panlabas na tumatawag.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
directive-definition[":directiveKey"]
Field
Uri
Paglalarawan
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
Ilista ang mga Pagbabago sa Directive
Listahan ng mga itinalang pagbabago ng isang directive, pinakabago muna, kasama kung sino ang gumawa ng bawat isa.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
directive-revision[":directiveKey"]
Field
Uri
Paglalarawan
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
Itakda ang Value ng Directive
Iniimbak ang bagong value para sa isang directive. Isama ang fingerprint ng value na binasa mo bilang expectedHash, at ang pagbabagong ginawa ng iba ay iaanunsyo sa halip na ma-overwrite.
Directive name chosen by the pool (e.g. greed_xckdf1, kill_switch).
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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.
Halimbawa ng Request
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);
Schema ng Tugon
Field
Uri
Paglalarawan
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
Itakda ang mga Value ng Directive
Iniimbak ang bagong value para sa ilang directive sa iisang tawag. Ang items bag ay naghahawak ng isang entry kada directive key, at ang bawat entry ay isang object na may dalang value, at opsyonal na expectedHash at note.
POST/pool/directives/set
AuthHMAC + pool-bound keyRate limit10 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Schema ng Tugon
Field
Uri
Paglalarawan
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);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Halimbawa ng Tugon
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.
Mga pangalan ng metric ng estratehiya
Ang isang estratehiyang tumatakbo sa plataporma ay maaaring magbasa ng directive bilang isang metric sa halip na tawagan mismo ang mga address na ito. Ang bawat pangalan sa ibaba ay nakalathala sa help map sa itaas, kasama ang reduction na kinakailangan nito: ginagamit ang numero nang buo, kailangang bawasan sa isa ang isang linya ng teksto, at kailangang i-route muna ang isang pinagsama-samang value. Napapangalanan ang directive sa mismong metric, dahil ang bawat isa sa tatlong bundle ay naka-index dito.
Pangalan ng Metric
Uri
Paglalarawan
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.
May dalawang value na dala ng mga sagot na hindi inaalok bilang mga pangalan ng metric. Ang pangalan ng isang directive ay sariling pili ng pool, kaya ang pagbabasa nito pabalik ay ibabalik lamang ang ibinigay ng tumatawag; at ang uri ng isang directive ay nagsasabi kung paano dapat basahin ang value nito sa halip na maging isang reading mismo.
PRIVATE · VAULTS
Ilista ang mga Vault
Ibinabalik ang lean na buod na listahan ng bawat vault na kabilang sa isang pool: identifier, pangalan, at katayuan. Suportado ang sorting, search, at cursor 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.vaults.list({ pagination: { page: 1, limit: 50 } });
// 3. Inspect the parsed response
console.log(res);
Ibinabalik ang lean na buod ng vault (id, pangalan, katayuan) para sa iisang vault. Mura at maaaring i-cache - piliin ito kung kailangan mo lamang ang pangunahing katayuan.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang runtime profile para sa isang vault bilang { profile: object, hash: string }. Ang hash ay nagbibigay-daan sa mga client na laktawan ang muling pag-render kapag hindi nagbago ang 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.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);
Halimbawa ng Tugon
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · VAULTS
Mga Aksyon ng Vault
Nagpapadala ng action verb para sa isa o higit pang vault (deploy|start|stop|undeploy|reconfigure|unpark|reply-to-prompt|execute-flow|cancel-flow|query-flow). Naglalakbay ang verb sa url at ang items map ay may dalang isang entry kada vault.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Vaults - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.vaults.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Ibinabalik ang lean na buod na listahan ng bawat estratehiya na kabilang sa isang pool: identifier, pangalan, at katayuan. Suportado ang sorting, search, at cursor 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.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);
Ibinabalik ang buong detalye ng estratehiya gamit ang id - configuration, signal pipeline, mga panuntunan sa exposure, at katayuan ng runtime. Isama sa POST /v1/strategy/:strategyId/runtime-profile upang kunin ang bahaging runtime.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
strategy-runtime-profile[":strategyId"]
Field
Uri
Paglalarawan
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);
Halimbawa ng Tugon
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · STRATEGIES
Mga Aksyon ng Estratehiya
Nagpapadala ng action verb para sa isa o higit pang estratehiya (deploy|start|stop|undeploy|reconfigure|hard-restart|enable-console|disable-console|unpark|execute-flow|cancel-flow|query-flow). Naglalakbay ang verb sa url at ang items map ay may dalang isang entry kada 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.strategies.action("deploy", { items: { "str-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Strategies - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.strategies.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Ibinabalik ang lean na buod na listahan ng bawat node na kabilang sa isang pool: identifier, pangalan, at katayuan. Suportado ang sorting, search, at cursor 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.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);
Ibinabalik ang buong detalye ng node gamit ang id - configuration, mga kalakip na estratehiya, at katayuan ng runtime. Gamitin ang POST /v1/nodes/action upang kontrolin ang lifecycle (start, stop, restart) ng node.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Halimbawa ng Tugon
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · NODES
Mga Aksyon ng Node
Nagpapadala ng action verb para sa isa o higit pang node (deploy|start|stop|undeploy|hard-restart|reconfigure|enable-console|disable-console|park|unpark|execute-flow|cancel-flow|query-flow). Naglalakbay ang verb sa url at ang items map ay may dalang isang entry kada 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.nodes.action("deploy", { items: { "nod-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Nodes - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.nodes.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
Ibinabalik ang lean na buod na listahan ng bawat server na na-provision para sa isang pool. Standard na hugis ng listahan na may search, sorting, at cursor 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.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);
Ibinabalik ang buong detalye ng server gamit ang id - hardware profile, katayuan ng network, at katayuan ng runtime. Isama sa POST /v1/servers/action para sa mga operasyon ng lifecycle.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Halimbawa ng Tugon
200 OKAPPLICATION/JSON
{
"success": true
}
PRIVATE · SERVERS
Mga Aksyon ng Server
Nagpapadala ng action verb para sa isa o higit pang server (deploy|start|stop|undeploy|hard-restart|reconfigure|enable-console|disable-console|spawn-node|kill-node|park|unpark). Naglalakbay ang verb sa url at ang items map ay may dalang isang entry kada 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.servers.action("deploy", { items: { "srv-abc123": {} } });
// 3. Inspect the parsed response
console.log(res);
Ibinabalik ang structured na JSON map ng bawat endpoint sa kategoryang Servers - HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, kasama ang mga field group na ibinabalik ng bawat endpoint. Kapaki-pakinabang para sa SDK at agent introspection.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.servers.help();
// 3. Inspect the parsed response
console.log(res);
Schema ng Tugon
Field
Uri
Paglalarawan
success
boolean
Kung nagtagumpay ang tawag.
category
string
Ang kategoryang inilalarawan ng help map na ito.
help
object
Container ng help map. Ang paths ay nag-a-map ng bawat path ng endpoint sa metadata nito (HTTP method, paglalarawan, rate limit, mga kinakailangan at opsyonal na parameter, flag na isListing kung naaangkop, at ang mga field group na tinutukoy nito). Ang fieldGroups ay nag-a-map ng bawat pangalan ng grupo sa mga descriptor ng field nito (uri at paglalarawan) na tinutukoy mula sa mga entry ng path.
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
apiKey: process.env.API_KEY!,
apiSecret: process.env.API_SECRET!,
});
// 2. Send the signed request through the typed SDK method
let res = await client.trading.help();
// 3. Inspect the parsed response
console.log(res);
PRIVATE · TRADING
Ilista ang mga Posisyon
Listahan ng mga bukas na futures position ng isang pool (bawat kontrata bawat uri ng account).
import { PlatformApiClient } from "@trademire/platform-api";
// 1. Configure the client with your API credentials
let client = new PlatformApiClient({
baseUrl: "https://trademire.ai/api",
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);
Schema ng Tugon
position[":contractSymbol"]
Field
Uri
Paglalarawan
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
Ilista ang mga Order
Ibinabalik ang kasaysayan ng order para sa isang pool, nakatuon sa mga pahintulot ng nakatalagang API key. Sinusuportahan ang search, sorting, at cursor pagination; gamitin ang filter object upang itakda ang saklaw batay sa status, market, o hanay ng petsa.
POST/orders/list
AuthHMAC + pool-bound keyRate limit30 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Ibinabalik ang kasaysayan ng trade para sa isang pool. Bawat item ay isang fill (maker o taker) na may presyo, dami, bayad, tungkulin, at ang id ng parent order. Suportado ang standard na search / sort / cursor pagination.
POST/trades/list
AuthHMAC + pool-bound keyRate limit30 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Ibinabalik ang mga balance kada asset para sa isang pool. May dala ang bawat item na available (libre para sa bagong order), locked (nakareserba ng mga bukas na order), at total. Suportado ang standard na search / sort / cursor pagination.
POST/balances/list
AuthHMAC + pool-bound keyRate limit30 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Ibinabalik ang on/off-ramp na ledger para sa isang pool: mga deposito, withdrawal, at bayarin ng plataporma. May dala ang bawat item na uri, asset, halaga, status, at opsyonal na on-chain tx hash. Suportado ang standard na search / sort / cursor pagination.
POST/transactions/list
AuthHMAC + pool-bound keyRate limit30 req/min
Mga parameter ng body
Pangalan
Uri
Kinakailangan
Paglalarawan
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);
Schema ng Tugon
transaction[":transactionId"]
Field
Uri
Paglalarawan
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, ...)
Ikaw ang magsasabi. Agent mo ang magsusulat. TradeMire ang magpapatakbo.
Ikonekta ang sarili mong AI agent gamit ang MCP. O pumili ng handang estratehiya, o magdisenyo ng sarili mo.
1
Ikaw ang magsasabi
Bumili ng BTC sa bawat 5% na pagbaba, max $200 bawat orderBumili ng BTC sa bawat 5% na pagbaba, max $200 bawat order
2
Isinusulat ng agent mo ang estratehiyaasset: BTCbuy_on_dip: 5%max_order: $200
3
Pinapatakbo ito ng TradeMireTumatakbo
Sabihin ang estratehiya mo. TradeMire na ang bahala.
Silver$9.99/buwan
After launch $19.99/mo
GoldSikat$24.99/buwan
After launch $49.99/mo
Platinum$49.99/buwan
After launch $99.99/mo
Libre pa rin ang Explorer, hindi kailangan ng credit card.
Mga detalye ng alok
Puwesto
First 500 members
Magtatapos
December 10
Pirming presyo
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.