Install
openclaw skills install standx-cliCrypto trading CLI for StandX exchange v0.3.5. Use when users need to: (1) Query crypto market data (prices, order books, klines, funding rates), (2) Manage...
openclaw skills install standx-cliStandX CLI is a crypto trading command-line tool for the StandX exchange.
clawhub install standx-cli
brew tap wjllance/standx-cli
brew install standx-cli
# Linux x86_64
curl -L -o /tmp/standx.tar.gz https://github.com/wjllance/standx-cli/releases/download/v0.3.5/standx-v0.3.5-x86_64-unknown-linux-gnu.tar.gz
tar -xzf /tmp/standx.tar.gz -C /tmp
sudo mv /tmp/standx /usr/local/bin/
sudo chmod +x /usr/local/bin/standx
# macOS Apple Silicon
curl -L -o /tmp/standx.tar.gz https://github.com/wjllance/standx-cli/releases/download/v0.3.5/standx-v0.3.5-aarch64-apple-darwin.tar.gz
tar -xzf /tmp/standx.tar.gz -C /tmp
sudo mv /tmp/standx /usr/local/bin/
sudo chmod +x /usr/local/bin/standx
If you prefer to install the skill manually and manage the binary separately:
# Install skill
git clone https://github.com/wjllance/standx-cli-skill.git ~/.openclaw/skills/standx-cli
# Then install binary separately via Homebrew or direct download (see Option 2 or 3)
Check installation:
standx --version
View BTC price:
standx market ticker BTC-USD
Most commands require authentication. StandX CLI supports multiple secure authentication methods.
The most secure way to authenticate. Credentials are not stored in shell history or command logs.
# Add to ~/.bashrc or ~/.zshrc
export STANDX_JWT="your_jwt_token"
export STANDX_PRIVATE_KEY="your_ed25519_private_key"
# Reload shell configuration
source ~/.bashrc
Security Best Practices:
Visit https://standx.com/user/session to generate:
standx auth status
For first-time setup or testing:
standx auth login --interactive
For automation scripts where environment variables are not available:
# Store credentials in files with restricted permissions
echo "your_jwt_token" > ~/.standx_token
echo "your_private_key" > ~/.standx_key
chmod 600 ~/.standx_token ~/.standx_key
# Login using files
standx auth login --token-file ~/.standx_token --key-file ~/.standx_key
⚠️ Avoid this in production:
# DANGER: Credentials will be visible in shell history
standx auth login --token "your_token" --private-key "your_key"
standx auth logout
standx market symbols
standx market ticker BTC-USD
standx market ticker ETH-USD
standx market depth BTC-USD --limit 10
# Last 24 hours, 1-hour candles
standx market kline BTC-USD -r 60 --from 1d
# Last 7 days, daily candles
standx market kline BTC-USD -r 1D --from 7d
# Specific date range
standx market kline BTC-USD -r 60 --from 2024-01-01 --to 2024-01-07
standx market funding BTC-USD --days 7
standx account balances
standx account positions
standx account orders
standx account history --limit 20
# Limit buy
standx order create BTC-USD buy limit --qty 0.01 --price 60000
# Market sell
standx order create BTC-USD sell market --qty 0.01
standx order cancel BTC-USD --order-id 123456
standx order cancel-all BTC-USD
standx trade history BTC-USD --from 7d
# Query leverage
standx leverage get BTC-USD
# Set leverage
standx leverage set BTC-USD 10
# Query margin mode
standx margin mode BTC-USD
# Set margin mode
standx margin mode BTC-USD --set isolated
# Price stream
standx stream price BTC-USD
# Order book stream
standx stream depth BTC-USD --levels 5
# Trade stream
standx stream trade BTC-USD
standx stream order # Order updates
standx stream position # Position updates
standx stream balance # Balance updates
standx stream fills # Fill updates
# JSON output
standx -o json market ticker BTC-USD
# CSV export
standx -o csv market symbols > symbols.csv
# Quiet mode (just values)
standx -o quiet config get base_url
standx --openclaw market ticker BTC-USD
standx --dry-run order create BTC-USD buy limit --qty 0.01 --price 60000
brew install wjllance/standx-cli/standx-cli