HomeVideos

Raven – No-Code Trading Bot Builder for Prediction Markets (Live Demo)

Now Playing

Raven – No-Code Trading Bot Builder for Prediction Markets (Live Demo)

Transcript

509 segments

0:00

I have talked about a little bit Project

0:02

Raven and I've been sharing my progress

0:04

in some of the videos about architecture

0:06

and today I want to show um a little bit

0:09

more about it and also something that's

0:12

a little bit more visual uh because this

0:14

project will be something that I will

0:17

launch for everybody to be able to

0:19

actually use to build their own

0:22

strategies and everything is going to

0:24

make more sense when I show this

0:25

presentation and I will be doing a demo

0:28

and showing you how it's going to look

0:30

like.

0:32

So, Raven is I don't know if that's

0:35

going to be the final name, but uh it's

0:38

what I call it now, Project Raven. It's

0:41

not just a trading bot, but think like

0:44

N8N like framework for building,

0:47

testing, and deploying trading bots. So,

0:50

I don't know if you're familiar with

0:51

N8N, but it's this automation tool where

0:55

you can create pretty complicated

0:59

uh flows with these nodes. And this is

1:02

the idea behind Raven doing that. But

1:06

for trading, but

1:09

there's no coding required to build your

1:11

own strategy. You can do it entirely

1:14

through a graphical interface.

1:17

So, it's basically a no code trading

1:20

builder

1:23

and now it's demo time. So, let me just

1:26

jump straight to it and show how it

1:28

looks like.

1:31

So, it's still pretty basic and I'm

1:34

going to explain what's happening here.

1:36

So, there is an interface on the front

1:38

end that is this node builder. So you

1:41

can see over in left um left hand side

1:43

here we have data sources

1:46

and I can put it over here and you can

1:48

see our poly market is pre-selected. In

1:52

the future I'm going to make the option

1:54

to add more exchanges. So it doesn't

1:57

need to be prediction markets. It can

1:58

also be um in this case and maybe

2:01

opinion and other platforms that we want

2:04

to connect to.

2:07

So in this case I'm going to do poly

2:09

market because that's the only thing

2:10

that works right now. But you know I'll

2:12

add more. We can uh have we have

2:16

different options for market discovery.

2:18

So I'll do just a specific market by the

2:20

slug. And in this case I'm not using

2:22

real data. I'm just going to put in

2:24

anything.

2:26

And we can also add more markets like if

2:28

we want our trading bot to connect to

2:30

several different markets. That's also

2:32

possible.

2:34

And um it's possible to add more

2:37

exchanges as well. Let's say that we

2:40

want to do Poly Market and we want to do

2:42

Kelsey.

2:45

You know, maybe you want to do a cross

2:47

marketplace arbitrage bot. You know, you

2:49

will connect to the Kelsey 15-minute

2:52

market and you're going to connect to

2:53

the poly market 15-minute market

2:56

and then build your strategy around

2:57

that. In my demo here, I'm going to do

2:59

it very basic because it's not done yet

3:02

and it's kind of just a demo. A lot of

3:05

the stuff works, but there's also a lot

3:07

of stuff that doesn't work and I'm

3:08

building it uh every single day.

3:13

Okay. And and everything I'm talking

3:15

about here is kind of it everything ties

3:17

into all my videos in the past because

3:19

this is basically what I've been

3:20

building. I just been building the core

3:21

architecture and framework. We have the

3:24

poly mark here. So, let me demonstrate.

3:25

So, we have different signals. It can be

3:28

all sorts of signals. I'm going to

3:30

demonstrate the price signal. So maybe

3:32

our strate our strategy just looks at a

3:34

price update. So I put a price and I can

3:38

connect these two. So the price then uh

3:40

subscribes to the poly market data

3:43

source

3:45

and um we can then select the data

3:48

field. So this is basically looking into

3:49

the order book in this case here. So let

3:51

let's say we want to look at the best

3:53

ask price from the order book

3:56

and then we can select the token side

3:58

and let's say in this case we want to do

4:00

the up token and all of this is

4:02

something I'm going to change because it

4:04

has to kind of auto to discover like is

4:07

it even a token maybe on a different

4:08

platform they call it something else but

4:10

this is so this is kind of hardcoded a

4:12

little bit. Um and then we can do a

4:17

condition so we can connect different

4:19

signals. This is just one signal. We can

4:21

do many different signals if we can do

4:23

some kind of a condition. So let's say

4:25

we want to do a threshold. This is what

4:27

I'm going to demonstrate in in this

4:29

example.

4:31

Let's say we want to make a trade when

4:34

the best ask price is

4:37

a certain uh price. So we do the

4:39

threshold

4:41

and we can say greater or equal than

4:43

let's say 6. So when the token price is

4:47

6, that's when we want to do a trade.

4:51

And that's where we can use our action.

4:53

I'm just going to check if you can

4:54

actually see it. You can. So we can drag

4:56

over the buy. And the cool thing here is

5:00

it will give you notification about the

5:02

errors. And you can also see down here

5:04

the error lock if uh if there's some

5:07

error you have to fix. And then you can

5:08

connect this one that you want to omit

5:09

an action when this uh threshold here is

5:12

is true.

5:14

and it's going to autoop populate the

5:16

market up here in uh in the market. I

5:19

can also choose a different market. I

5:21

don't know why you would want to do

5:22

that, but it is pos possible. And then

5:24

it's going to ch take the same token

5:26

side that you chose before, but again,

5:28

you can also change that. And there's

5:30

other parameters. For example, you can

5:32

choose the strategy type that's more

5:34

about how much do you want to buy for.

5:35

So, for example, in my case, I just want

5:37

to buy for a dollar. But I can also do

5:39

like a percentage of the capital. Maybe

5:41

I want to do 5% of all the capital and

5:43

other you know criterias and um and um

5:48

let me see and then you have different

5:49

metrics for risk management and the

5:52

order timeout and so on and so forth. So

5:55

now I have a very basic strategy where

5:57

we connect to the poly market. We look

6:01

at updates to the best ask price. We

6:05

check if it's above or equal to 0.6 and

6:08

then we buy. Then you can actually test

6:09

the run here with mock data.

6:13

So if you select mock data, we can see

6:15

how uh the events are going to come in.

6:18

And this is basically events from the

6:20

poly market pipeline that we that

6:23

basically run through the the system. So

6:25

it's it's going to be easier to buck fix

6:28

and uh really tweak your strategies.

6:32

And then another neat thing is we can

6:34

actually see the data here. So it's kind

6:38

of a snapshot. So you can see here the

6:39

live uh data that we came in the bit ask

6:43

and mid price and then you can see all

6:45

right this is what we got in and this is

6:48

the signal that triggered it. So when

6:50

was it triggered I mean what what data

6:53

was it triggered on. So you can see at

6:54

the value 0.569 which is the ask price

6:59

and then you can see here the the the

7:01

condition.

7:03

So it did not omit this as true. That

7:06

means that the the buy did not execute.

7:10

You can see at the result it's false

7:11

because 05069 is less than 0.6.

7:17

And you can also see here in the lock

7:18

that that yeah it always evaluate the

7:22

condition but it never execute the

7:24

trade. So obviously if if it was um if

7:28

it was less than let's say we do the

7:30

threshold.3 let's try run it again and

7:33

hope it's not going to break now that I

7:35

do this live. So we do the mock data

7:37

start test.

7:44

Yeah. So you can see here that now it

7:46

evaluated to true

7:49

and the action was triggered and then it

7:51

says all right at this price we purchase

7:53

for $1.

7:56

So this is sort of the the idea behind

8:00

the uh behind Raven a note like strategy

8:05

builder where you can you know start to

8:07

build pretty complicated strategies

8:10

without using any code whatsoever.

8:14

I most likely will make the ability to

8:16

add some code. Maybe you want to create

8:18

your own signal that's very, you know,

8:21

you know, specific to your use case.

8:23

Then then you can do go and do it with

8:25

an input and output. And obviously

8:27

everything that you see here in the

8:28

notes is just for demo purposes. There's

8:30

going to be a lot more that we can

8:32

choose between. Obviously, this is

8:33

something that I will work on more. So

8:36

the kind of the idea is we have the

8:38

front end which you saw now and that

8:40

will connect to an API and then when you

8:43

have constructed your strategy actually

8:45

what I can do is I can just copy paste

8:47

this so you can see kind of how it works

8:49

behind the scene

8:51

and I can uh paste it and then I have a

8:54

a basically a it's actually just a JSON

8:57

that defines the strategy then that what

9:00

happens is

9:03

uh when you click you know go or

9:05

whatever It's going to feed that JSON

9:07

over to the bot and it's actually going

9:10

to create that's at least my idea for

9:12

now. It's going to create its own

9:13

instance.

9:15

So, uh when you create your bot, your

9:17

bot will actually be on its own like

9:19

server instance and it's not going to be

9:20

with other people's butts just for

9:23

reliability and stuff like that. Um but

9:25

I will go more into detail about

9:26

deploying because it's still kind of

9:28

fussy and it's just again an idea other

9:31

plan features.

9:33

So it will be possible to depo deploy

9:35

several bot instances and this is kind

9:37

of why I illustrated with this. So you

9:40

have the data ingest and you you can

9:42

actually go and make a lot of different

9:44

butts. So when I copied the the payload

9:46

here the JSON you can take this you can

9:49

go and create a new but copy paste it

9:52

and then you can just change some values

9:53

and then you you deploy it or you back

9:55

test it or you simulate it for a week

9:57

and then if it's cool all right you

9:59

deploy it

10:02

and then uh parameter parameterize your

10:05

strategies. So let's say that all right

10:07

I have a nice strategy but I want to

10:10

change some values I just want to change

10:11

this condition I want to run the same

10:14

strategy in three separate instances all

10:17

right I can do that and then one

10:19

instance is 0.3 and then 0.4 4 and 0.5

10:22

and then you can kind of, you know,

10:25

test very fast, very efficient. There's

10:28

going to be some portfolio and strategy

10:29

level risk management. So, like I showed

10:32

over here, if we go over to the buy,

10:34

there's some default values that's just

10:36

set on your portfolio and you can also

10:39

set it specifically for the strategy.

10:40

And but this is a part that's going to

10:42

be built out more. There's going to be

10:44

back testing and live simulation. So

10:46

I'll be I will make the the possibility

10:48

to feed it a lot of you know past data

10:52

but also actually just run it in the

10:54

background as a live simulation

10:57

and then see how well it does and then

10:58

if you have been running it for a week

11:00

or two weeks and all right I'm pretty

11:01

comfortable with this all right click

11:03

click go and then it's it runs

11:06

and then the strategy you build is your

11:08

own it's not something I will sell to

11:10

other but I will facilitate you being

11:12

able to sell your strategy to other

11:14

people this is at least an idea that I

11:16

have. So, I'm thinking like a

11:17

marketplace where you can if you have a

11:20

strategy or have a nice idea, you can

11:22

sell it to other people. It's an idea.

11:24

I'm not sure if I'm going to do it, but

11:26

you know, I'm just thinking a lot of

11:27

ideas. So, potentially a a marketplace

11:30

where you can actually buy and sell

11:32

strategies

11:34

and then obviously the possibility to

11:36

ingest data from multiple data sources

11:39

and venues,

11:41

you know, crossplatform arbitrage. So,

11:43

Kelsey, Poly Market, Opinion,

11:45

potentially also Binance, crypto

11:47

exchanges, uh, Interactive Brokers, a

11:50

lot of different sources.

11:53

The price, I don't know. It's to be to

11:55

be announced, but my idea is I will I'll

11:57

be do doing some kind of a fixed monthly

11:59

cost of this. There's not going to be

12:02

any trade fees, a profit share because I

12:04

think if I add trade fees, it's just

12:05

going to completely ruin the edge of,

12:08

you know, the the bots. doesn't make any

12:10

sense because I know I know a lot of

12:12

other bots they have some kind of a

12:13

trade fee so I won't be doing that and

12:16

then uh I don't think I will be doing

12:17

profit share uh either so I think it

12:21

will be monthly cost but I don't really

12:22

know it's still very much um early and

12:25

I'm probably going to do some kind of a

12:26

free premium version maybe I'll do like

12:29

you know all right before you deploy it

12:31

it's going to be free and after when you

12:32

deploy it maybe it's it's uh paid

12:34

something like that don't know still

12:36

kind of work in progress cany So far, in

12:40

my opinion, the coolest part was the

12:41

drag and drop UI. Yeah, 100%. I mean I

12:44

mean that is the like the the cool thing

12:48

about it. That's kind of what I feel

12:50

like is a game changer because I haven't

12:51

seen anybody doing this. There is

12:53

trading bots already that have these

12:55

predefined, you know, tra um strategies

12:58

and stuff like that that you maybe you

12:59

can change some parameters, but here you

13:01

have a drag and drop builder and also

13:02

the ability to deploy a lot of

13:05

strategies, test a lot of strategies and

13:07

then you can f because that's probably

13:08

what you need to do. It's you probably

13:10

need to deploy 20 strategies to just

13:12

find one that actually works. And I

13:14

think I think for sure like newbies but

13:16

also intermediate of course if you are

13:18

high high high level you have the

13:20

resources to doing something crazy of

13:24

course. So this is kind of I think this

13:26

is probably yeah for new beginners and

13:28

then intermediate. I I am talking with

13:31

also a professional trader that's

13:33

interesting in in in this. So I think

13:35

it's it's uh not for institutions but it

13:38

is for like solo people that want to do

13:41

this

13:43

timeline. Um yeah like I hope I will

13:46

have a demo ready uh for some few select

13:50

people to uh use it within a couple of

13:53

weeks. I'm going to probably start with

13:54

like two or three people that I am in

13:56

close contact with have them trying it

13:59

out building some strategies and then uh

14:01

simulating it. And then after that's um

14:05

getting more people in more people in

14:06

and yeah and of course if you want to be

14:10

notified about this there's also a

14:13

Google form where you can put your

14:14

email. I was working on a landing page.

14:17

I'm not ready with it but I will deploy

14:19

that soon. But in the meantime if you

14:21

want to be notified when this is uh you

14:23

know when it's open then leave your

14:25

email also down below in the Google form

14:27

for the timeline. As as I said,

14:29

hopefully testing this within the next

14:31

few weeks. Hopefully have a very

14:33

early.01

14:35

version ready in a few weeks, maybe a

14:37

month.

14:39

Weight list. Yeah, this one is not

14:42

hopefully I will add this I will have

14:43

this website on running soon. So, in the

14:46

meantime, it's the link down in the

14:49

description that you use for the weight

14:50

list and then maybe in a day or two you

14:52

use this link here.

14:55

Yeah. again to keep in the loop just go

14:57

to our discord. We have uh a lot of

15:00

people joining.

15:04

So yeah, we have uh a lot of people

15:06

every day, several people every day just

15:07

joining. So it's um pretty fun in here.

15:09

We have a lot of good stuff going on.

15:12

Even if strategy is good, sometimes the

15:13

whole structure and how appbot operates

15:15

don't allow strategy to be profitable

15:17

and vice versa. 100%. And I think you're

15:20

right about that, Harry Potter, because

15:22

um that's why that's actually the reason

15:24

why I didn't do any strategies yet

15:25

because I want to make sure that like

15:28

the core features works 100%. Because

15:31

like I might have a profitable strategy.

15:34

You might have a profitable profitable

15:36

strategy, but it's not profitable

15:37

because it's uh run through maybe

15:41

subpar, you know, code that actually

15:44

doesn't facilitate this strategy

15:45

properly. So that's that's kind of my

15:47

thinking about it. That's why I've

15:48

really been focusing on just creating

15:50

the core parts here.

15:55

Yes, true. You're going to need to

15:56

optimize latency, but it's okay that not

15:58

nice thing about platform seems to be

16:00

the easy UI. Yeah, I mean for latency

16:02

it's going to be difficult. I think

16:04

actually especially like I don't think

16:05

this is going to be for extreme high

16:07

frequency trading like um because first

16:10

of all um like we've been in the discord

16:14

we have been testing out latencies and

16:16

the latencies

16:17

from into poly market is pretty is

16:19

pretty bad and you really you really

16:21

need to be very close to the server

16:24

really need what you to know what you're

16:25

doing and have like you know crazy setup

16:29

to do high frequency trading I think the

16:31

opportunities is elsewhere because high

16:33

frequency trading is you know there's

16:36

institutions doing that you want to you

16:37

know compete against them um so I think

16:40

for this is more like not high frequency

16:43

trading it's of course it's going to be

16:45

fast but not within like 10 20

16:49

milliseconds maybe 100 milliseconds yeah

16:52

so you get 130 150 so so when I did it

16:56

it was like all over the place it was

16:58

all over the place I can show you the

17:00

Discord in the Discord I added a script

17:04

So to a githrap here to measure the

17:06

latency and and the way the way I did it

17:08

it's it's it's a vcoded script. Okay. So

17:11

the way I did it connect to the the

17:12

websocket and then compare the time

17:15

stamp from the events to the time that

17:18

we received them. One issue about that

17:20

is there might be like uh clock shift or

17:24

whatever you call it like their server

17:26

time might be different from my server

17:27

time and we don't know

17:30

actually. So the so so actually the

17:33

problem about that is when I tested it

17:35

to begin with I got like uh minus

17:38

latency. So the best I got was these

17:40

results here. So I tested 2,000 events.

17:44

The median latency was 35.47

17:46

milliseconds. The mean was 44. The

17:49

minimum was six and the maximum was 173.

17:52

So it's between 6 and 173. So it's like

17:55

all over the place. And I don't think

17:57

this is reliable to do any high

17:59

frequency trading if if it's like that.

18:03

Um and and yeah, other people have kind

18:06

of the same. You can see here this guy

18:07

here, he have uh total events 100, the

18:10

medium median was 200, minimum was 60.

18:14

And um yeah, yeah, you could let the

18:17

user set the cloud computer and server

18:20

location. Yes, I think that's also a

18:22

very good idea. Um I think eventually I

18:27

want to

18:29

uh do it so

18:32

when you deploy your bot by default it's

18:35

going to be deployed as its own instance

18:38

on my server but make the ability that

18:42

it it's actually deployed on your own

18:44

server or something like that like if

18:46

you want to fine-tune something like

18:47

that. All right. You just get like the

18:50

basic the code, put it on your own

18:52

server and then it runs something like

18:53

that. But that's that's later down in in

18:56

the in the stages. Yeah. Like I for sure

18:59

I want to do something like that. Like

19:01

if I actually start to make money on

19:02

this. So like the whole idea about

19:04

YouTube when I started this basically

19:06

just trying to document my journey

19:08

making money online. So if this going to

19:10

be making a trading bot that would be

19:11

cool and then I want to take a portion

19:13

of that and actually fund other traders

19:15

maybe make a competition use the

19:17

platform and then uh the winning

19:19

strategies gets funding of X amount

19:21

something like that that would be pretty

19:22

cool guys it has been a pleasure talking

19:25

with you I have to go now because now

19:27

I'm getting a call and I need to go. So

19:29

uh this is not first time I'm going to

19:30

do a live this was just a test stream

19:33

and uh I enjoyed talking with you. I'm

19:35

actually happy about been so many

19:36

comments. I did not really expect that.

19:38

But I thought I was just going to be

19:40

talking by myself. So that has been been

19:42

very good. So uh I'll uh be closing down

19:45

now. Have a good Sunday and keep keep

19:48

building and I'll make sure to uh give

19:50

you an update. And again join the

19:52

Discord down below in the link. We have

19:54

a lot of good chats in there. And uh see

19:56

you on the next

Interactive Summary

The speaker introduces Project Raven, a no-code platform designed for building, testing, and deploying trading bots using a visual, drag-and-drop interface similar to N8N. The platform allows users to connect to data sources like Poly Market, define strategies with price signals and conditional thresholds, and execute actions such as buying. A demo illustrates how to test strategies with mock data, visualize event flows, and debug conditions. Key planned features include support for multiple bot instances and exchanges, strategy parameterization, comprehensive risk management, backtesting, live simulation, and a potential marketplace for user-created strategies. The pricing model is expected to be a fixed monthly cost without trade fees or profit sharing, possibly with a free tier before deployment. While empowering for individual traders and beginners, the project acknowledges that it is not optimized for high-frequency trading due to existing latency challenges with data sources.

Suggested questions

6 ready-made prompts