Meteora THS
THS Score (Tokens, POST)
POST /ths/{wallet}/tokens
Same as the GET tokens endpoint but uses a JSON body.
Request (curl)#
curl -X POST \
-H "content-type: application/json" \
-d '{"tokenMints":["So11111111111111111111111111111111111111112"]}' \
https://ths.dritan.dev/ths/7Y...Wallet/tokens
Request (TypeScript, SDK)#
import { MeteoraThsClient } from "dritan-sdk";
const ths = new MeteoraThsClient();
const res = await ths.postThsScoreForTokens("7Y...Wallet", [
"So11111111111111111111111111111111111111112"
]);
console.log(res.score);
Response#
{
"wallet": "7Y...Wallet",
"score": 6.91,
"realizedPnLUsd": 321.0,
"realizedPnLWeightedUsd": 210.5,
"totals": { "buys": 5, "sells": 3 },
"analyzedTxns": 40,
"matchedTxCount": 30,
"unmatchedTxCount": 10,
"avgHoldTimeDays": 1.25,
"avgHoldTimeHours": 30.0,
"avgHoldTimeMinutes": 1800.0,
"avgHoldTimeSeconds": 108000,
"avgHoldTimePretty": "1d 6h"
}