GET /target-volume/targets
The volume targets on offer for a pool, each with the lowest price across speeds.
Use case
Show a price list ("$100k volume from 4.2 SOL") before the user picks a target.
Query
| Param | Required | Description |
|---|---|---|
sTokenAddress | yes | Token mint. |
sPoolId | yes | One of the pools from pools. |
Response 200
{
"targets": [
{ "nTargetUsd": 20000, "nFromPriceSol": 0.95 },
{ "nTargetUsd": 50000, "nFromPriceSol": 2.1 },
{ "nTargetUsd": 100000, "nFromPriceSol": 4.2 }
]
}
| Field | Description |
|---|---|
nFromPriceSol | The cheapest price for this target, in SOL. The price for each speed comes from quote. |
Errors
| Status | Meaning |
|---|---|
400 | Invalid public key. |
403 | Target Volume is not available for this account. |
404 | sPoolId is not a pool of this token. |
422 | The pool cannot be quoted; message says why (for example too little liquidity, unsupported pool type, a token still on its launch curve). |
503 | The chain or the SOL price could not be read in time; retry. |
Example
curl "$BASE_URL/target-volume/targets?sTokenAddress=$MINT&sPoolId=$POOL" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"