strategy-rust-module

Deploy Rust WASM DynamicModule trading strategies to a LivTorgEx server.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/LivTorgEx/strategy-skill --skill strategy-rust-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategy-rust-module
Source: https://github.com/LivTorgEx/strategy-skill/tree/main/skills/strategy-rust-module
Command: npx skills add https://github.com/LivTorgEx/strategy-skill --skill strategy-rust-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the complexity of creating a WASM-based trading strategy module by guiding you through a complete, correct deployment workflow to a LivTorgEx server.

Core Features & Use Cases

  • Rust WASM DynamicModule scaffolding guidance: Produces a strategy module that runs as a persistent stdin/stdout bridge loop using lte_strategy_bridge.
  • End-to-end deployment workflow: Creates a module repository, packages a tar.gz source archive, obtains a presigned upload URL, uploads to storage, submits a build, polls build status, and then deploys to a bot group.
  • Operational guardrails for correctness: Emphasizes ABI compatibility, forbids process exit, supports idempotency via stable marks, and documents crash-recovery/state persistence expectations.
  • Use Case: You want to implement a custom automated trading logic in Rust (e.g., event-driven indicator reactions and dynamic order management) and deploy it to a bot group via DynamicModule settings.

Quick Start

Tell the Skill to scaffold a new Rust WASM DynamicModule strategy, package it as a tar.gz, upload and submit a build to the server, and then deploy the resulting module version to a bot group using the provided DynamicModule settings.

Frequently Asked Questions about strategy-rust-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Rust WASM trading bot to a server?

To deploy a Rust WASM trading bot, you package the strategy source as a tar.gz archive, obtain a presigned S3 upload URL, upload the package, submit a build request, poll the build status, and then configure a bot group with the resulting module_id and module_version.

What is a Rust WASM DynamicModule strategy and when do I need it?

A Rust WASM DynamicModule strategy is custom automated trading logic compiled to wasm32-wasip1 and deployed to a bot group. You need it when implementing event-driven indicator reactions and dynamic order management that run safely in a persistent loop.

Can I use lte_strategy_bridge for a persistent stdin/stdout loop in my WASM module?

Yes, you can use lte_strategy_bridge::run_loop to maintain a persistent stdin/stdout loop within your Rust WASM module. This approach is required for the strategy to interact correctly with the server without exiting the process.

What are the size limits and ABI compatibility requirements for compiling Rust to wasm32-wasip1?

When compiling Rust to wasm32-wasip1, you must pin ABI-compatible dependencies and package the module under strict size limits. These constraints ensure the WASM module builds successfully and operates safely within the server environment.

Why does my Rust WASM DynamicModule deployment fail during the build status check?

Deployment failures during the build status check often stem from unstable idempotency marks, missing ABI-compatible dependency pins, or exceeding module package size limits. Ensure your source archive is packaged correctly and dependencies are pinned before uploading.

How do I configure bot group settings after uploading a Rust WASM module?

After your Rust WASM module build succeeds, you configure the bot group by applying a DynamicModule settings payload that includes the specific module_id and module_version generated during the build process to activate your strategy.