web3-ai-trading-agent
Build an Autonomous Web3 AI Trading Agent (BASE + Uniswap V4 example)
File Explorer
- teacher_lora_config.yaml
- .gitkeep
- eth_usdc_swap_events.csv
- .gitkeep
- .gitkeep
- __init__.py
- generation.py
- models.py
- training.py
- visualization.py
- .gitkeep
- rl_lora_config.yaml
- .gitkeep
- canary_wrapper.py
- create_distillation_dataset.py
- prepare_rl_data_for_mlx.py
- trading.py
- train_dqn.py
- .gitkeep
- distill_data_from_teacher.py
- generate_synthetic_data.py
- prepare_teacher_data_for_mlx.py
- process_raw_data.py
- validate_synthetic_gan_data.py
- collect_raw_data.py
- eth_to_usdc_swap.py
- fetch_pool_data.py
- fetch_pool_stats.py
- fetch_pool_stats_from_fork.py
- foundry_usdc_to_eth_swap.py
- pool_manager.abi
- position_manager.abi
- uniswap_v4_stateful_trading_agent.py
- uniswap_v4_stateless_trading_agent.py
- uniswap_v4_swapper.py
- usdc_to_eth_swap.py
- AGENTS.md
- config.py
- LICENSE
- README.md
- requirements.txt
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
Choose
View Details ▼
Choose
A human-friendly and fast alternative to cut and (sometimes) awk.
choose {{4}}
Print the 5th item from a line (starting from 0):
choose {{[-f|--field-separator]}} '{{:}}' {{0}} {{2}} {{4}}
Print the first, 3rd, and 5th item from a line, where items are separated by ':' instead of whitespace:
choose {{1}}:{{4}}
Print everything from the 2nd to 5th item on the line, including the 5th:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
ollama
View Details ▼
ollama
A large language model runner.
For a list of available models, see <https://ollama.com/library>.
ollama serve
Start the daemon required to run other commands:
ollama run {{model}}
Run a model and chat with it (will automatically download the model if it's not downloaded):
ollama run {{model}} --think=false "{{prompt}}"
Run a model with a single prompt and thinking turned off:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
python
View Details ▼
python
Python language interpreter.
python
Start a REPL (interactive shell):
python {{path/to/file.py}}
Execute a specific Python file:
python -i {{path/to/file.py}}
Execute a specific Python file and start a REPL:
time
View Details ▼
time
Measure how long a command took to run.
Note: `time` can either exist as a shell builtin, a standalone program, or both.
See also: `times`.
time {{command}}
Run the `command` and print the time measurements to `stdout`:
time
Display the current system time and prompt to enter a new time (leave empty to keep unchanged):
time read
Create a very simple stopwatch (only works in Bash):
