メインコンテンツへスキップ
セットアップウィザードが~/.lasersell/config.ymlを生成します。直接編集してデーモンを再起動して変更を適用するか、lasersell --setupを再実行してください。
以下に示す戦略値は例にすぎず、公式のトレーディング戦略ではありません。自身のリスク許容度とトレーディングスタイルに基づいて設定してください。
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)

環境変数オーバーライド

対応する環境変数で設定フィールドをオーバーライドできます。Docker、CI、シークレット管理に便利です。
設定フィールド環境変数
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_senderastralane、またはrpc
account.astralane_api_keyLASERSELL_ASTRALANE_API_KEYast_xyz789...
ウォレットパスフレーズLASERSELL_WALLET_PASSPHRASE(ヘッドレスアンロック用)

トランザクション送信ターゲット

LaserSellは売却トランザクションの送信に3つのバックエンドをサポートしています。ほとんどのユーザーはデフォルトのままで問題ありません。
ターゲット説明
helius_senderデフォルト。Heliusの最適化された送信者を使用。Helius RPC URLが必要。
astralaneAstralaneの送信サービスを使用。astralane_api_keyが必要。
rpcRPCエンドポイント経由で直接送信。任意のプロバイダーで動作しますが、ランディングが遅くなる可能性があります。