Getting Started
Injective Trader comes built in with a "Simple Strategy" to aid with rapid prototyping and familiarizing yourself with the codebase.
What it does:
Monitors orderbooks for INJ, BTC, ETH
Places buy orders slightly below market price
Places sell orders slightly above market price
Maintains a spread for profitability
Respects position limits for risk control
Best for: predictable and steady trading while familiarizing yourself with Injective Trader. Not recommended for production use.
Example Logs:
[INFO] Placing BUY order: 0.1 INJ at $3.45 (spread: 0.5%)
[INFO] Placing SELL order: 0.1 INJ at $3.47 (spread: 0.5%)
[INFO] Order filled: BUY 0.1 INJ at $3.45Customizing Your Strategy
Order size
OrderSize: 0.5
MaxPosition: 2.0More markets
MarketTickers:
- INJ/USDT PERP
- BTC/USDT PERP
- ETH/USDT PERP
- APT/USDT PERP
- AVAX/USDT PERP
- SOL/USDT PERPSpreads
SpreadThreshold: 0.01 # conservative
SpreadThreshold: 0.002 # aggressiveCommon Configurations
Conservative Maker
OrderSize: 0.05
MaxPosition: 0.5
SpreadThreshold: 0.01Aggressive Maker
OrderSize: 0.5
MaxPosition: 5.0
SpreadThreshold: 0.002Multi-Market Strategy
MarketTickers:
- INJ/USDT PERP
- BTC/USDT PERP
- ETH/USDT PERP
- APT/USDT PERP
- AVAX/USDT PERP
- SOL/USDT PERP
- TON/USDT PERP
- ATOM/USDT PERPMonitoring Your Bot
tail -f logs/my_bot.log
grep "Order filled" logs/my_bot.log
grep "ERROR" logs/my_bot.logKey Messages
✅ Order placed successfully
💰 Order filled
⚠️ Position limit reached
❌ Insufficient balance
Performance Metrics
Total PnL
Win rate
Fill rate
Average spread
Risk Management
Set position limits (
MaxPosition)Monitor positions and stop out manually if needed
Maintain enough USDT for margin, fees, and buffer
Troubleshooting
No private keys found
echo $MyBot_GRANTER_INJECTIVE_PRIVATE_KEYInsufficient balance → Add USDT / reduce
OrderSizeMarket not found → Double-check tickers/IDs
Bot stops working
grep "ERROR" logs/my_bot.log | tail -10
python main.py MyBot config.yaml --log_path logs/my_bot.log --network mainnetAdvanced Features
Multiple accounts via
AccountAddressesCustom order types (limit, market, reduce-only)
External signals with Redis/Valkey
Next
Learn how to develop your own custom strategy for Injective Trader.
Last updated
