TRANSCRIPTEnglish

AI Agents For Trading (Free and Opensource)

17m 55s2,081 words349 segmentsEnglish

FULL TRANSCRIPT

0:00

All right, so I open sourced my AI agent

0:03

for trading here and all you have to do

0:05

is go to the link to get it. You can

0:07

just hit star and fork fork if you want

0:09

the code. Anyways, I wanted to go over

0:12

this the trading functionalities within

0:16

this package. There are a ton of agents,

0:19

20 different 20 plus different live

0:21

agents, trading agent, strategy agent,

0:23

risk agent, copy agent, whale agent,

0:26

sentiment agent, listing arb agent,

0:28

etc., etc. I'm a quanto. I focus mostly

0:32

on algo trading, but of course I will be

0:34

building all types of different agents

0:36

here. I think this is obviously a new

0:38

frontier. I mean, I don't have to tell

0:40

you that

0:42

we're going to keep building here and

0:43

then MCPs are here now and MCPs may lead

0:47

into something interesting with chat GPT

0:50

the app store. We'll see if that hits.

0:52

If not, I think agents are still the

0:54

way.

0:56

We're going to have AI doing stuff for

0:58

us. I think we can all agree on that.

1:00

So, trading, why wouldn't they? Let's go

1:03

ahead and work on this and go through

1:06

here. I want to go to the agent section.

1:09

It's kind of a little rundown of the

1:11

code. If you're on the read me, go read

1:13

through the read me. You can understand

1:14

what we've built. Then go to the source.

1:17

Everything will be in the source src.

1:21

You can play with all the models here.

1:23

You know, you have Claude, Deepseek,

1:25

Gemini, Grock,

1:27

O Lama, if you want to run local models,

1:29

OpenAI, of course, XAI, and this will

1:34

explain the whole model factory.

1:35

Everything is written out, so it's super

1:37

easy to run. Go to the SRC here. And I

1:40

wanted to go to agents today to talk

1:42

about those trading agents.

1:47

So, let's go ahead and learn about them

1:48

from scratch, dude. Let's learn about

1:50

them. Trading agents.md is going to be

1:54

where I'm reading from here now. Table

1:56

of contents here you can see. Anyways,

1:59

Mundav's trading system uses multi-agent

2:01

architecture where specialized AI agents

2:03

work independently or together to

2:05

analyze markets, generate signals,

2:08

manage risk, and execute trades. So,

2:10

agent categories, core trading, market

2:12

intelligence, token discovery. Okay, so

2:15

we have multiple agents and you saw

2:16

where to get those, right? It's in the

2:18

agents folder. We we're in it right now.

2:22

Trading strategy and risk, execute

2:25

trades and manage portfolio, market

2:26

intelligence, sentiment, whale funding,

2:29

liquidation chart, provide market

2:31

context, and then token discovery like

2:33

the sniper, Solana, and copybot.

2:37

Sniper and copybot. I wonder what this

2:39

does. Buy new opportunities. Of course,

2:42

none of this is financial advice. I'm

2:44

not financial advisor. Please take this

2:45

seriously. Pause this video right now.

2:48

read that whole thing or screenshot it

2:49

if you're on your phone.

2:53

So core trading agents here, these are

2:55

the mains agents that make trading

2:58

decisions and execute them. So the

2:59

trading agent, trading agent py, the LLM

3:03

decision maker. So this is pretty basic.

3:05

This is where we first got started. Just

3:08

a decision maker based off an LLM. So if

3:11

we go there, that should be called the

3:13

trading agent. The trading agent. Okay,

3:17

let's go ahead and put her to the side.

3:20

And you can see here we have a prompt.

3:22

Your Munda's AI trading assistant

3:24

analyze the provided market data and

3:27

strategy signals to make a trading

3:29

decision. So, I gave it a bunch of

3:33

information plus the data

3:39

and

3:42

you can see everything.

3:50

Let's close this for now.

3:53

You could see the prompts here. They're

3:54

all here. You can go through this code

3:56

on your own time.

4:08

What it does is pure AI analysis of

4:11

market data using claude or whatever. No

4:13

hard-coded rules. LLM decides

4:15

everything. Manages portfolio allocation

4:18

across all tokens. analyzes technical

4:21

indicators

4:24

and it can incorporate strategy signals

4:27

from other agents. How it works? Collect

4:30

market data. So it collects market data

4:33

and then it has the LLM analyze them.

4:37

Handles exits first always to manage

4:40

risk. LLM decides portfolio allocation

4:44

and then execute entries. So key methods

4:48

analyze market data. LM analysis

4:50

allocate portfolio LM decides capital

4:52

distribution

4:56

allocate allocations executes

4:59

handles exits configuration here I was

5:01

using haiku at the moment

5:04

AI model

5:06

max position percentage what I want to

5:08

do here is I want to say hey

5:14

at trading agent

5:18

Since we just implemented X AI,

5:22

their Grock model the four, I want you

5:25

to do the same thing with um this

5:27

trading agent.

5:38

Also make sure that the uh switchability

5:42

with the models is at the top of the

5:44

code with parameters. Thank you.

5:50

Okay, so that's the trading agent. It's

5:51

just like super simple like hey you

5:53

decide AI and when I tested it didn't do

5:56

too great. So uh there needs to be more

5:59

than that. So that led me to the

6:00

strategy agent. So, strategy agent, the

6:02

rulebased strategist

6:04

loads custom strategies from our

6:06

strategies custom folder. Each strategy

6:09

generates buy, sell, or nothing. AI

6:12

validates all signals before execution.

6:15

Can work independently or feed signals

6:17

to the trading agent. So, I had a

6:20

conversation with this guy here. His

6:22

name is Ernest Chan. You can go to the

6:26

podcast here. It should be live.

6:30

And he does something.

6:31

>> Please, please, please stop using chat

6:33

GPT like Google. Disappear for a month

6:35

and do this.

6:36

>> He does something.

6:38

>> Welcome to corrective AI.

6:41

>> Anyways, corrective AI is hey, give the

6:44

AI the strategy and then or yeah, give

6:50

the AI the signal from the strategy and

6:54

it gets to decide if it wants to run it

6:56

or not. So opposed to like predicting

6:58

price or something like that. Everybody

7:00

wants to predict price with AI. That may

7:02

not be the way. I can't tell you yes or

7:04

no. But

7:09

you can test that all yourself.

7:12

So here I wanted to figure out.

7:22

Let's keep going through here. So it

7:24

loads in some custom strategies. So

7:26

that's pretty cool because now we can

7:28

add custom strategies and then have AI

7:31

decide from those strategies. See what

7:33

I'm saying? And you see where this is

7:34

going. Okay, step one, we just say, "Hey

7:37

AI, just tell me what to do. Here's the

7:38

data. Let me know long, short, or

7:41

nothing." And that's elementary. So

7:44

let's go ahead and try a next step.

7:47

Okay. Well, here's a strategy. And now

7:50

it's triggered. Let me know if I should

7:52

take it or not.

7:54

It's interesting interesting ideas.

7:58

So then we have the risk agent, the

8:00

safety guardian. What it does, it's a

8:01

circuit breaker. Stops trading when

8:03

limits hit. Monitors max loss or gain

8:05

over configurable time frame. AI powered

8:08

override decisions for edge cases. So

8:11

it's like having a risk control plus AI

8:15

helping out with it. Minimum balance

8:17

protection runs first before running

8:19

anything else. So, it's looking at max

8:21

loss, max gain, and hey, maybe have an

8:24

AI say, "Oh, this is actually this is

8:27

running fast.

8:30

Let's not take profit." But then again,

8:33

that might get you smoked. So,

8:38

you can read through all of this here,

8:40

but um I wanted to see the first couple.

8:42

Dez the whale watcher monitors BTC open

8:45

interest changes detects whale activity

8:48

large OI moves AI analyzes if the moves

8:52

are significant announces. Let's get Dez

8:54

going. Let's get Dez back up in here.

8:58

Dude,

9:00

get Dez back. Okay. And you got we got

9:02

XAI here. Perfect. Let's see if it still

9:04

runs.

9:09

Beautiful. Beautiful. Beautiful. What is

9:10

that?

9:16

Oh, it's collecting data.

9:18

Bird eye API key.

9:26

Okay. Okay. This is working, which is

9:29

good.

9:34

Okay. I'm not going to let it keep

9:35

running. It's about to about to buy

9:37

something probably.

9:41

execute an entry.

9:44

Okay, so we just have to tweak that in

9:46

order to the EMVs to fix that. And then

9:51

let's go ahead and say get add dot get

9:54

commit slash um I can do this later

9:57

actually.

9:59

Updates

10:01

get push. Okay.

10:26

Let's scroll through here after I get

10:28

Dez going, the whale agent. Let's go

10:31

ahead and get her going. Where is she?

10:36

Well,

10:41

do you see it? I don't see it.

10:53

Whale agent.

11:05

agents.

11:15

Where'd she go? She's right there, dude.

11:18

Right in your face.

11:21

Sheesh.

11:23

This is using Deep Seek here. Copy path.

11:30

activate

11:32

activivate

11:35

Tflow and then Python run it.

11:48

Okay, it's running.

12:15

beautiful. Let's keep going through here

12:16

and seeing some other other agents. We

12:19

have funding agent. Okay, this one's

12:21

just telling me announces via voice when

12:24

thresholds hit.

12:29

This is interesting actually.

12:32

I might run this as well.

12:35

Funding agent.

12:42

Liquidation agent here. Luna the

12:44

liquidation monitor tracks liquidation

12:47

volume longs or shorts. Detects sudden

12:50

liquidation spikes. AI analy an analyzes

12:53

if liquidation signals reversals. So, I

12:56

started building these for voice because

12:59

if I get them built that way, then it's

13:01

super easy to be like, "Okay, we have

13:02

all the signals here. Put in a trade on

13:05

XYZ exchange." I want to look into that.

13:08

Matter of fact,

13:10

please look through this entire GitHub

13:12

and don't print any sensitive keys or

13:15

anything, but I want you to explain the

13:18

exchanges we have connected. So, I know

13:20

right now this connects

13:23

to at least Solana blockchain because I

13:26

just saw that in the trading agent, but

13:29

um yeah, look through the whole GitHub

13:31

and yeah, give me an update on that

13:38

chart analysis agent. What it does

13:41

generates candlestick charts with

13:42

indicators, uses AI vision to analyze

13:45

analyze chart patterns, supports

13:48

multiple time frames. So you see what

13:50

I'm doing here, right? I'm building out

13:52

the all the base agents. And then if you

13:54

want to try trading with this, you just

13:58

combine the chart analysis agent with

14:00

the trading agent. Trading agent knows

14:02

how to trade, right? So same with the

14:06

liquidations. Oh, you want to try some

14:08

liquidations? Okay, the liquidation

14:09

agent has all the data. It's just giving

14:11

it to me in voice right now. And then it

14:14

can easily be tested.

14:18

Chart analysis agent. Okay, cool, cool,

14:20

cool. Token discovery agents. These are

14:23

interesting. These were back in when

14:25

Solana was really going crazy.

14:28

Watches for new Solana tokens in real

14:30

time.

14:34

Solana agent. The Solana token analyzer

14:37

analyzes recent token launches using

14:39

mundage criteria.

14:46

MCAP

14:48

minimum liquidity.

14:51

So criteria is market cap. Okay.

14:54

Liquidity

14:57

token age.

14:59

Copy by agent analyzes current copy

15:02

portfolio positions.

15:04

Okay, this was cool actually.

15:09

Damn, there's so many ideas. There's so

15:11

many paths.

15:13

How agents work together. So the main

15:15

loop integration here,

15:22

here's how you can orchestrate all

15:24

agents together.

15:26

So you can bring in the risk agent, the

15:28

strategy agent, the trading agent, the

15:30

sentiment agent, the whale agents,

15:31

funding agent, liquidation agent. That's

15:34

a ton of different ideas

15:36

that could work together however you see

15:39

fit.

15:41

Initialize all agents here. Track

15:44

signals from intelligence agents.

15:48

So always check risk first. So got the

15:50

risk agent. Okay. Collect market

15:52

intelligence.

15:55

Strategy signals. Trading agent.

15:58

Information flow. Quick start guide.

16:01

Configure your system.

16:04

Tokens to trade. Position size. I may

16:06

have just made this for Solana, dude.

16:09

We'll see. Bird eye. Mundave.

16:13

run individual agents

16:16

trading agent strategy. Yeah, I think I

16:19

probably did because

16:25

yeah, that makes sense cuz I was going

16:27

to do this all on chain.

16:30

I don't know. We'll see. We'll see. I

16:32

just asked that question. Per agent

16:34

overrides best practices.

16:37

Risk plus trading agent rule-based

16:39

hybrid.

16:42

Always run risk first. Cost optimization

16:49

monitoring. No trades executing. Okay.

16:51

Yada yada. This is a lot of a lot of

16:54

slop you added on to this dude. A lot of

16:57

slop.

16:59

Okay. Sick dude. Remember trading

17:01

involves risk.

17:03

Please read the

17:06

this right here because that's super

17:09

duper important. So, I feel like that's

17:11

a pretty good overview of how the

17:15

trading agents work.

17:18

You just go to source here and you have

17:21

access to all of these agents here right

17:23

off the bat. I've got a lot I want to

17:25

update to this and I'm going to continue

17:28

to do that and I'll continue to make

17:30

videos as well just to show you step by

17:33

step along the way. So, you know, if

17:36

you're

17:37

interested in this GitHub here,

17:42

then make sure to, you know, subscribe

17:44

or follow or like or whatever you need

17:46

to do so you see the next one. But I

17:50

think that's about it for here.

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.