Skip to main content

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​

ParamRequiredDescription
sTokenAddressyesToken mint.
sPoolIdyesOne of the pools from pools.

Response 200​

{
"targets": [
{ "nTargetUsd": 20000, "nFromPriceSol": 0.95 },
{ "nTargetUsd": 50000, "nFromPriceSol": 2.1 },
{ "nTargetUsd": 100000, "nFromPriceSol": 4.2 }
]
}
FieldDescription
nFromPriceSolThe cheapest price for this target, in SOL. The price for each speed comes from quote.

Errors​

StatusMeaning
400Invalid public key.
403Target Volume is not available for this account.
404sPoolId is not a pool of this token.
422The pool cannot be quoted; message says why (for example too little liquidity, unsupported pool type, a token still on its launch curve).
503The 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"