OnTrade Chain is a visual, n8n-style workflow builder for creating automated crypto trading strategies. Users build strategies using drag-and-drop nodes (price, indicators, sentiment, AI decision, buy/sell actions), and an AI agent executes them automatically on-chain.
This platform combines no-code automation, AI reasoning (ASI), decentralized execution, and smart contract logging, allowing anyone to create, deploy, and share automated trading logic.
Create trading strategies visually using modular nodes:
- Market Data Node (Price, RSI, Moving Averages)
- Indicator Node
- AI Reason Node (Buy / Sell / Hold)
- Condition Node (If/Else)
- Action Node (Buy, Sell, Swap)
- Delay / Cooldown
- Notify Node
- Logging Node
Uses ASI (ASI1.ai) to:
- Understand natural-language strategies
- Convert text into structured JSON workflows
- Analyze market data
- Generate signals
- Build orders
- Execute trades
Every strategy is stored on-chain using:
createStrategy(flowHash)toggleStrategy(id, state)logExecution(id, message)
Ensures transparency, immutability, and user ownership.
Users can:
- Publish strategies
- Sell strategies
- Clone workflows
- Browse trending or profitable flows
- View strategy performance
The backend agent:
- Fetches market data
- Evaluates strategy conditions
- Calls AI Reason Node
- Executes trades on-chain
- Logs execution
- Runs continuously
[Fetch Market Data]
↓
[Analyze Indicators (RSI, MA)]
↓
[AI Reason Node → BUY]
↓
[Build Order Payload]
↓
[Execute Trade]
↓
[Log Execution On-Chain]
- Next.js / React
- Tailwind CSS
- React Flow
- WalletConnect / MetaMask
- Zustand / Redux
- Node.js
- Express / Fastify
- Cron agents
- ASI API integration
- Binance / Market Data APIs
- Solidity
- Hardhat
- StrategyRegistry.sol
- Ethers.js
- ASI API (asi1.ai)
- Natural-language → Strategy JSON parser
- AI Reasoning Core
/frontend
/backend
/smart-contracts
/contracts
StrategyRegistry.sol
/scripts
/database
/agents
Stores:
- Strategy owner
- Flow hash
- Active state
- Execution logs
Provides:
createStrategy()toggleStrategy()logExecution()
git clone https://github.com/Mayurgit03/Ontrade-Chain.gitFrontend:
cd frontend
npm install
npm run devBackend:
cd backend
npm install
npm run devContracts:
cd smart-contracts
npm install
npx hardhat compilenpx hardhat run scripts/deploy.js --network sepoliaRPC_URL=
PRIVATE_KEY=
REGISTRY_ADDRESS=
ASI_API_KEY=- Upload strategy JSON
- Auto-generate flow preview
- Sell strategy for price
- Clone strategies
- Download template
- Author-based listings
- Performance overview
- Backtesting engine
- Copy trading with revenue sharing
- Multi-chain support
- DeFi protocol integrations
- AI-optimized strategies
- Mobile version
- Strategy NFTs
Pull requests are welcome! Please open an issue to discuss any major changes before submitting PRs.
MIT License
Built with ❤️ by the OnTrade Team