1/5
We've just completed our notebook exploration, which is a great way to experiment with new concepts. Now, we can transform this code into scripts to streamline our operations. Let's take the code we wrote in the notebook and copy it into scripts. These scripts will be our building blocks for automated processes. If you want to "cheat" a little, you can find all the scripts we created in the GitHub repo. Here's the GitHub repo link: [GitHub Repo Link] Once you have your scripts, you'll want to run them on a network. We can use either Tenderly (a virtual network) or a forked network. We can run our script by opening our terminal and typing: ```bash mox test -s ``` or ```bash mox run deposit_and_rebalance --network zksync --fork false --account your_account ``` Remember that when running on a forked network, ensure the fork option is set to true. These workshops are essential. They allow us to apply the knowledge we've gained and see if it's truly retained. Take your time, and don't be afraid to use the AI or discussions to help you solve the problems you encounter. We'll be back for a recap shortly. See you soon!
A practical DeFi workshop on algorithmic trading. The lesson covers copying code from a Jupyter Notebook into scripts, running the scripts on a virtual network, and adjusting the target allocations for optimal results.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
How to build a DeFi stablecoin and customized NFT
How to deploy your smart contract on ZKsync with Moccasin
Advanced testing techniques like stateful and stateless Python fuzzing
How to write algorithmic trading scripts in Python
Hashing signatures, proxies, delegate calls, upgradable contracts, random numbers, and more!
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on April 21, 2025
Duration: 2h 21min
Duration: 1h 58min
Duration: 2h 55min
Duration: 1h 55min
Duration: 46min
Course Overview
About the course
How to build a DeFi stablecoin and customized NFT
How to deploy your smart contract on ZKsync with Moccasin
Advanced testing techniques like stateful and stateless Python fuzzing
How to write algorithmic trading scripts in Python
Hashing signatures, proxies, delegate calls, upgradable contracts, random numbers, and more!
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on April 21, 2025