1/5
## Moccasin DeFi | Algorithmic Trading We've just completed our section on Moccasin DeFi | Algorithmic Trading. Let's recap what we've learned: * **DeFi** is a term used to describe decentralized finance happening within the blockchain space. * We learned about two DeFi protocols: * **Aave**, similar to a classic bank, allows us to deposit money and gain interest. Aave also allows us to borrow money. * **Uniswap** is a decentralized exchange, allowing us to trade different assets. * We practiced using these DeFi protocols in our Python notebook by: * Setting up and minting fake tokens. * Setting ourselves a fake balance. * Using a chainlink price feed to get the current price of our tokens. * Calculating our portfolio allocation. * Rebalancing our portfolio using Uniswap. * Depositing our tokens into Aave. We are now ready to move on to the next section, Moccasin DeFi | Stablecoin. Take a break, go for a walk, or grab some ice cream. We will see you soon!
A comprehensive introduction to DeFi and algorithmic trading - This lesson covers the fundamentals of decentralized finance, including Aave and Uniswap. We'll write a Python script to practice portfolio management strategies and test our code on a forked network.
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