Skip to main content

POST /classic/initialize

Create a new group of classic bots for the selected packages.

Only one pending group can exist at a time per client — once the request passes validation, any previous unpaid group is canceled.

Pricing comes from packages, not free-form SOL amounts (see /classic/packages).

Use case​

User picks one or more packages from a product page, you submit the ids + token/pool, and display the resulting sGroupId + deposit address to fund.

Body​

FieldTypeRequiredDescription
aSelectedPackageIdsstring[]yes1–20 active standard package ids (see /classic/packages). The same id may appear more than once to order a package several times.
aSelectedMicroIdsstring[]noUp to 20 active micro-package ids.
sTokenAddressstringyesToken mint the bots trade.
sPoolIdstringyesPool the bots trade against.
ePoolChosenstringyesPool type: RAYDIUM, METEORA, PUMPFUN, PUMPSWAP, LAUNCHLAB, DBC, MOONIT, MOONSHOT, HEAVEN.
sModestringyesControls how long the bot runs: FAST (shortest), NORMAL (~2× longer), STEADY (longest — single wallet, largest swap sizes).
aAllowedSwapModesstring[]noSwap methods for the standard bots: a non-empty subset of BUY_SELL, MULTI_WALLET, JITO, JUPITER_MULTI_WALLET, MULTI_BUY, JUPITER_ONE_WALLET, no duplicates. Default: BUY_SELL, MULTI_WALLET, JITO, JUPITER_MULTI_WALLET minus the methods the pair cannot run. See Flexi swap modes for the Jupiter methods. Micro bots always use MULTI_WALLET and ignore this field.

Response 200​

{
"message": "Bots initialized",
"sGroupId": "<13-char-id>",
"paymentAddress": "<solana_pubkey>"
}

paymentAddress is the SOL deposit address to fund.

Errors​

StatusMeaning
400Validation failed, or one or more package ids were not found or are inactive (or a micro id is not a micro package).
500Pool validation or persistence failed.

Example​

curl -X POST "$BASE_URL/classic/initialize" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{
"aSelectedPackageIds": ["<pkgId>"],
"sTokenAddress": "<mint>",
"sPoolId": "<pool>",
"ePoolChosen": "RAYDIUM",
"sMode": "NORMAL"
}'