Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Introducing MetaSwapper - An autonomous crypto trading bot powered by AutoGPT + MetaMask Swaps API (MetaMask internal hackathon project)
Post Body

For this year's ConsenSys internal hackathon, we taught ChatGPT how to trade crypto. Introducing MetaSwapper, an autonomous crypto trading bot powered by AutoGPT and MetaMask Swaps API.

Features

⚖️ Fetches balance using "get_balance" command

💹 Swaps tokens using "swap_tokens" command

♻️ Automatically selects the best route based on gas cost

💸 Can also send eth using "send_eth" command

What is this?

MetaSwapper is an autonomous crypto trading bot in the form of an AutoGPT plugin. AutoGPT is an autonomous agent orchestration framework written in Python. It combines ChatGPT with internet access, memory management, and filesystem capabilities, with a plugin framework.

How did we do it?

To teach it to trade crypto, we gave it some essential capabilities, like fetching wallet balance and swapping tokens. It's powered by three different MetaMask APIs: Swaps API, Gas API, and Account Service. Shout out to the API Platform and Swaps teams for making these APIs so easy to use.

We gave the bot three goals: Increase net worth, record each trade, and tweet after each trade.

And then we let it run. On it's own, the bot came up with a plan: First, it would check it's balance. Then, it would do some DD. Finally, it would make the trade, record it and tweet about it.

First, it checked its wallet balance. So far, so good. Then it did some DD, before quickly deciding to buy some PEPEDEX ($PPDEX) as it's first trade.

And then, it started trading. It had some false starts at first, but was able to make some successful swaps using the MetaMask Swaps API.

It's far from perfect, though. The bot tends to lose context quickly, and goes off on tangents. It does not perform thorough DD and is unlikely to be able to carry out complex trading strategies at the moment. Most concerning is that it tends to hallucinate wallet addresses.

If you are interested in using the plugin or would like to read more, check out the code on github or the Twitter thread.

Twitter thread: https://twitter.com/blankey1337/status/1664771915783852035

Github: https://github.com/blankey1337/MetaSwapper

Please use this plugin at your own risk. If you do use it successfully, please let me know how it goes!

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,079
Link Karma
2,303
Comment Karma
2,561
Profile updated: 6 days ago
Posts updated: 7 months ago
:moons: 0 / 6K 🦠

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago