Meteora THS
Get THS Score
GET /ths/{wallet}
Returns THS metrics for a wallet.
Parameters#
wallet(path, required): Base58 Solana wallet addressdebug(query, optional): truthy value to recompute and include additional debug fieldsbreakdown(query, optional): alias fordebug
Request (curl)#
curl https://ths.dritan.dev/ths/7Y...Wallet
Request (TypeScript, SDK)#
import { MeteoraThsClient } from "dritan-sdk";
const ths = new MeteoraThsClient();
const res = await ths.getThsScore("7Y...Wallet");
console.log(res.score, res.realizedPnLUsd);
Response#
{
"wallet": "7Y...Wallet",
"score": 7.42,
"realizedPnLUsd": 1234.56,
"realizedPnLWeightedUsd": 789.01,
"totals": { "buys": 12, "sells": 9 },
"analyzedTxns": 123,
"matchedTxCount": 100,
"unmatchedTxCount": 23,
"avgHoldTimeDays": 3.12,
"avgHoldTimeHours": 74.9,
"avgHoldTimeMinutes": 4494.0,
"avgHoldTimeSeconds": 269640,
"avgHoldTimePretty": "3d 2h"
}