Saltar al contenido principal
El asistente de configuración genera ~/.lasersell/config.yml. Edítalo directamente y reinicia el daemon para aplicar cambios, o vuelve a ejecutar lasersell --setup.
Los valores de estrategia mostrados a continuación son solo ejemplos, no una estrategia de trading oficial. Configúralos según tu propia tolerancia al riesgo y estilo de trading.
account:
  # Encrypted keystore or legacy Solana keypair JSON.
  # Default: ~/.lasersell/wallet.keystore.json
  # Env: LASERSELL_KEYPAIR_PATH
  keypair_path: "~/.lasersell/wallet.keystore.json"

  # LaserSell API key (free at https://app.lasersell.io)
  # Env: LASERSELL_API_KEY
  api_key: "your-lasersell-api-key"

  # Private Solana RPC endpoint (https:// required).
  # Env: LASERSELL_RPC_URL or LASERSELL_PRIVATE_RPC_URL
  rpc_url: "https://your-private-rpc.example.com"

  # Transaction submission backend: "helius_sender" (default), "astralane", or "rpc".
  # Env: LASERSELL_SEND_TARGET
  # send_target: "helius_sender"

  # Priority fee tip in lamports (default: 1000000 = 0.001 SOL).
  # tip_lamports: 1000000

  # Required only when send_target is "astralane".
  # Env: LASERSELL_ASTRALANE_API_KEY
  # astralane_api_key: "your-astralane-api-key"

strategy:
  # Percentages are relative to your detected buy amount. Use "0%" to disable.
  # At least one exit condition must be enabled (including take_profit_levels).

  target_profit: "20%"       # exit when profit reaches this %
  stop_loss: "10%"           # exit when loss reaches this %
  trailing_stop: "5%"        # exit when profit drops this % of entry from its peak
  deadline_timeout: 0        # force exit after N seconds (0 to disable)
  sell_on_graduation: false  # auto-sell when token migrates to a new DEX

  # Liquidity guard: exit when pool liquidity drops below safe threshold.
  liquidity_guard: false

  # Breakeven trail: trailing stop that activates once position breaks even.
  # Use "0%" to disable.
  breakeven_trail: "0%"

  # Exit ladder: sell partial amounts at multiple profit thresholds.
  # Each level specifies the profit % to trigger, % of position to sell,
  # and an optional trailing stop % for that tranche.
  take_profit_levels: []
  # Example exit ladder:
  # take_profit_levels:
  #   - profit_pct: 25       # at 25% profit...
  #     sell_pct: 30          # sell 30% of the position
  #     trailing_stop_pct: 0  # immediately (no trailing)
  #   - profit_pct: 50
  #     sell_pct: 50
  #     trailing_stop_pct: 3  # with 3% trailing stop
  #   - profit_pct: 100
  #     sell_pct: 100
  #     trailing_stop_pct: 5  # with 5% trailing stop

sell:
  slippage_pad_bps: 2500              # extra slippage on top of computed value (bps)
  slippage_retry_bump_bps_first: 20   # extra pad after first slippage error
  slippage_retry_bump_bps_next: 40    # extra pad after subsequent slippage errors
  slippage_max_bps: 3000              # max slippage cap (bps)
  confirm_timeout_sec: 10             # tx confirmation timeout
  max_retries: 3                      # retry count for failed sells

# Copy trading: watch other wallets and optionally auto-buy when they buy.
# Positions from watched wallets use the same exit strategy as your own.
watch_wallets: []
# Example:
# watch_wallets:
#   - pubkey: "TraderWalletPubkey1..."
#     label: "whale"            # optional display label
#   - pubkey: "TraderWalletPubkey2..."
#     auto_buy:
#       amount: 0.1             # auto-buy with 0.1 SOL
#       amount_usd1: 0.0        # auto-buy with USD1 (0 to disable)

Anulaciones por variables de entorno

Anula cualquier campo de configuración con su variable de entorno correspondiente. Útil para Docker, CI o gestión de secretos.
Campo de configuraciónVariable de entornoEjemplo
account.keypair_pathLASERSELL_KEYPAIR_PATH/home/user/.lasersell/wallet.keystore.json
account.api_keyLASERSELL_API_KEYls_abc123...
account.rpc_urlLASERSELL_RPC_URLhttps://mainnet.helius-rpc.com/?api-key=...
account.send_targetLASERSELL_SEND_TARGEThelius_sender, astralane o rpc
account.astralane_api_keyLASERSELL_ASTRALANE_API_KEYast_xyz789...
Frase de contraseña de walletLASERSELL_WALLET_PASSPHRASE(para desbloqueo sin interfaz)

Targets de envío de transacciones

LaserSell soporta tres backends para enviar transacciones de venta. La mayoría de los usuarios deberían quedarse con el predeterminado.
TargetDescripción
helius_senderPredeterminado. Usa el emisor optimizado de Helius. Requiere una URL de RPC de Helius.
astralaneUsa el servicio de envío de Astralane. Requiere una astralane_api_key.
rpcEnvía directamente a través de tu endpoint RPC. Funciona con cualquier proveedor pero puede aterrizar más lento.