GET /smart-sell/details
Fetch the full config and running stats for one or more Smart Sell bots in a single call, including calculated P/L.
P/L is derived from the entry price vs. current price (SELL bots) or marked to market (BUY bots).
Use case
Drill-down view — config + running counters + P/L for one or several bots in one payload. Pass a single id for a detail screen, or multiple ids to hydrate a list without N requests.
Query params
| Field | Type | Required | Description |
|---|---|---|---|
aBotIds | string | yes | Comma-separated list of Smart Sell ids (e.g. id1,id2,id3). |
Only bots owned by the caller are returned; unknown or unauthorized ids are silently skipped.
Response 200
{
"bots": [
{
"_id": "...",
"sTokenAddress": "...",
"sTokenSymbol": "TOKEN",
"sTokenName": "My Token",
"sPoolId": "...",
"sPoolType": "AMM",
"nSellPercent": 50,
"nMarketCap": 1000000,
"nMaxMarketCap": 0,
"nMinSellAmount": 0.5,
"nMaxSellAmount": 5,
"aWallets": ["..."],
"aWhitelisted": ["..."],
"bIsPaused": false,
"bIsActive": true,
"nTransactions": 12,
"nSoldInToken": 420000,
"nSoldInSol": 1.23,
"nProfitLoss": 0.42,
"profitLossPercentage": "34.10",
"eMode": "SELL",
"nBoughtInToken": 0,
"nSpentInSol": 0,
"nCurrentPrice": 0,
"dCreatedAt": "2026-04-20T12:00:00.000Z"
}
]
}
| Field | Description |
|---|---|
eMode | SELL or BUY. |
nMaxMarketCap | Market-cap ceiling (BUY bots); 0 means none. |
nSoldInToken / nSoldInSol | Sell-side totals (SELL bots). |
nBoughtInToken / nSpentInSol | Buy-side totals (BUY bots). |
nCurrentPrice | Last known token price in SOL; 0 when unknown. |
nProfitLoss | In SOL. SELL bots: proceeds minus the entry-price cost of the tokens sold. BUY bots: current value of the tokens bought minus SOL spent. |
profitLossPercentage | String with two decimals. |
bPriceUnknown | Present and true only on a BUY bot that has spent SOL but has no price yet; P/L is then reported as flat. |
bots is always an array. It is empty when none of the requested ids
match a bot you own.
Errors
| Status | Meaning |
|---|---|
400 | aBotIds missing or not a valid comma-separated list of ids. |
Example
curl -H "Authorization: Bearer $ACCESS" -H "x-user-id: $USER_ID" \
"$BASE_URL/smart-sell/details?aBotIds=<id1>,<id2>"