Guides
Step-by-step guides for common tasks.
Getting Started
- Building a Trading Bot — Automated order placement and monitoring
- Streaming Market Data — Real-time data pipelines
- Agent Payments — Using
hlzfor AI agent payments
Common Patterns
Quick Price Check → Trade
PRICE=$(hlz price BTC -q)
hlz buy BTC 0.1 @${PRICE}Monitor → React
hlz stream trades BTC | while read -r line; do
echo "$line" | jq -r '.sz' | xargs -I {} sh -c '
if [ $(echo "{} > 10" | bc) -eq 1 ]; then
echo "Whale alert: {} BTC"
fi
'
donePortfolio Snapshot
hlz portfolio --json > portfolio_$(date +%Y%m%d).jsonBatch Execution
cat <<EOF | hlz batch --stdin
buy BTC 0.1 @98000
buy ETH 1.0 @3400
sell SOL 100 @180
EOF