API Reference
DBot OfficialDBot DashboardPricing

Trailing Stop Tasks

This API is used to get the user's all trailing stop tasks

FreePlusProEnterpriseCredit Usage
0

Response data

{
  "err": false, // Error or not
  "res": [
    {
      "accountId": "vd1l2ge6ac1dxh", // User id
      "id": "n1v50h7hfkt0e1", // Task id
      "enabled": true, // Task enable status, true/false
      "state": "init", // Order state (init/processing/done/fail/expired)
      "chain": "solana", // Blockchain (solana/ethereum/base/bsc/tron)
      "tradeType": "sell", // Trade type, with values of buy and sell
      "basePriceUsd": 0.1, // Buy price of token
      "triggerPriceUsd": 0.16, // Price (USD) that triggers buy / sell
      "highestPriceUsd": 0.2, // Highest price reached after token bought
      "trailingDistancePercent": 0.2, // Retrace ratio of the token price (cannot be greater than or equal to 1)
      "amountOrPercent": 1, // Sell ratio of the token
      "txPriceUsd": 0.125, // Price (USD) that actually bought / sold
      "pair": "pair address", // Trading pair address
      "pairType": "raydium_amm", // From which DEX
      "walletId": "lus8auwp003zvg", // The id of the wallet to be used, which can be obtained via the "Wallet Info API"
      "walletType": "solana", // Wallet type (solana/evm)
      "walletAddress": "your wallet address", // Wallet address
      "walletName": "your wallet name", // Wallet name
      "source": "swap_order", // Trailing stop task sources, only “swap_order” supported at this time
      "sourceGroupIdx": null, // Segmented take profit / stop loss task number (starting from 0)
      "sourceId": "m21gjuks052ojs", // If the task is created by copy trading, this parameter is the copy trading task id, if the task is created by fast buy / sell, this parameter is the fast buy / sell record id
      "sourceTradeId": "m21gjuks052ojs_m3je3fglq21so1", // If the task is created by copy trading, this parameter is the copy trading record id, if the task is created by fast buy / sell, this parameter is the fast buy / sell record id
      "customFeeAndTip": false, // "true" means both the priority fee (priorityFee) and the bribery tip (jitoTip) fields are valid, and the system will execute the transaction based on the provided values (null indicates automatic priority fee / bribery tip). "false" means that in turbo mode, only the priority fee (priorityFee) is valid, while in anti-MEV, only the bribery tip (jitoTip) is valid, and the system will allocate them automatically
      "priorityFee": null, // Priority Fee (SOL), valid for Solana, empty string means use auto priority fee
      "gasFeeDelta": 5, // Extra added gas (Gwei), valid for EVM
      "maxFeePerGas": 100, // When the base gas exceeds this value, no transaction will execute (Gwei), valid for EVM chains
      "jitoEnabled": true, // "true" means enable anti-MEV mode (Solana & Ethereum & Bsc)
      "jitoTip": 0.001, // Bribery tip used by Anti-MEV (Solana)
      "maxSlippage": 0.1, // MAX slippage tolerance (0.00-1.00), when buying, it represents the difference between the actual price and the expected price. When selling, it represents the difference between the expected price and the actual price, the difference multiplier = 1/(1-slippage), 0.5 means a maximum of 2 times the accepted spread, 1 means unlimited spreads
      "expireAt": 1731324301348, // Task expiration time (millisecond timestamp)
      "expireDelta": 36000000, // Task duration, max 432000000 (milliseconds)
      "expireExecute": false, // “true” means that when a task expires and is not triggered, the token will be bought or sold at the real-time price at that time
      "useMidPrice": false, // "true" enables Anti-Spike mode using the 1-second mid-price as trigger price (not 100% guaranteed)
      "concurrentNodes": 2, // Number of concurrent nodes (1-3)
      "retries": 1, // Number of retries after failure (0-10)
      "errorCode": "", // Error type
      "errorMessage": "", // Error message
      "currencyInfo": { // Native token information
        "contract": "So11111111111111111111111111111111111111112", // Token address
        "name": "Wrapped SOL",
        "symbol": "SOL",
        "decimals": 9, // Token decimals
        "totalSupply": null, // Total token supply
        "icon": "icon url", // Token icon URL
        "createAt": null // Token creation time
      },
      "tokenInfo": { // Token information
        "contract": "CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump", // Token address
        "createAt": 1728554501806, // Token creation time
        "name": "token name",
        "symbol": "token symbol",
        "decimals": 6, // Token decimals
        "totalSupply": "1000000000000000", // Total token supply
        "icon": "icon url", // Token icon URL
        "freezeAuthority": null, // Is the token freezeable
        "mintAuthority": null // Is the token mintable
      },
      "links": { // Related links for this transaction
        "etherscan": "scan link",
        "dexscreener": "dexscreener link",
        "uniswap": "swap link"
      }
    }
  ]
}
Language