Skip to main content

GET /target-volume/quote

Speeds, durations and prices for one target on one pool.

Prices here are indicative: initialize prices the order again from the chain, and that price is the one to pay.

Query​

ParamRequiredDescription
sTokenAddressyesToken mint.
sPoolIdyesPool from pools.
nTargetUsdyesOne of 20000, 50000, 100000, 200000, 500000, 1000000.

Response 200​

{
"nTargetUsd": 100000,
"speeds": [
{ "eSpeed": "FAST", "nDurationHours": 0.5, "nPriceSol": 5.1 },
{ "eSpeed": "6H", "nDurationHours": 6, "nPriceSol": 4.6 },
{ "eSpeed": "24H", "nDurationHours": 24, "nPriceSol": 4.2 }
]
}
FieldDescription
speedsOnly the speeds this target can run at on this pool.
nDurationHoursHow long the order runs. Fixed for every speed except FAST.
nPriceSolPrice in SOL.

Errors​

StatusMeaning
400Invalid public key, or nTargetUsd not on offer.
403Target Volume is not available for this account.
404sPoolId is not a pool of this token.
422This target cannot be quoted on this pool; message says why.
503The chain or the SOL price could not be read in time; retry.

Example​

curl "$BASE_URL/target-volume/quote?sTokenAddress=$MINT&sPoolId=$POOL&nTargetUsd=100000" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"