Get the Monday email →
Loading player…

Building Trading Apps & Agents with Definitive Flash API | Shushant Dahal at ETHGlobal Mumbai 2026

ETHGlobalWed, Nov 11, 2026, 12:00 AM

Transcript

[music] Yo, what's up? It's Shashant from the Definitive Team. Today we're going to be talking about Defenditive Flash. What is Definitive Flash? Why would you use Definitive Flash?

And how do you get started with using Definitive Flash? Uh so yeah, let's get started. So what is Definitive Flash? So, at a high level, basically definitive, uh, we're a trading platform, we have advanced orders, we have crosschain, all the things you'd really expect, and people really liked using it, but they were like, what if I want to be able to use this in my own app? How can I do that?

And so, what we did is we abstracted the definitive engine away uh, from our platform and we incorporated it into something called definitive flash. And so now anyone is able to use the same tech powering the definitive platform into whatever app they are making. So instead of focusing on reinventing the wheel around trade execution and all the intricacies that come into it, you can just incorporate different flash super easily and focus on what makes your app unique. Right? So we have all the advanced order types.

You have your limit, your stop-loss, your takerit, um you have your T-WP orders, DCA bracket orders, um and more. And I'll kind of talk about the the differences between each of them and when you'd use each and how you can incorporate them as well. Um we also have EVM 12 plus EVM chains and Salana. So crossVM support you can do it natively with different flash. So like I mentioned we have these advanced orders.

Um the other thing that's key is that we are a managed execution platform. So other solutions they might give you a good quote. They'll probably give it to you pretty fast. Uh, but if you want to execute it, you're going to have to do a lot of the hard work yourself. So, if you want to gas abstract for your users, you got to build that in yourself.

If you want to uh protect against me or just general toxic flow on chain, you have to build that yourself. And if you want to retry because the order failed, but it's still executable, you're going to have to build that out yourself. But with definitive flash, it's all done for you. So again, you can focus on what makes your app unique, how you can grow outside of the trading side of things. Um, and so these types of features, you'd only expect to really have it on like a centralized exchange or have to do some trade-offs there, right?

But definitive flash is fully onchain and it's non-custodial by design. So even compared to some other solutions even, you know, people might have limit orders or some other order types, you might have to deposit into some intermediary contract and that's how they use it. But no, with definitive flash, everything is done from your wallet. Uh, your approvals are out of your wallet. you sign orders which are EIP712 signatures against your wallet.

So if you um and everything that we do is only permissioned at the order level. So your trust in definitive is limited. And obviously if you choose to have like an even higher security model, you can cancel the order, right? But you could also cancel it on chain. And so we're physically enable uh you know to pull funds.

So non-custodial by design. you can still use it with your multi-IG wallet, your NPC wallets, whatever EOA you have. Um, so yeah, and this is the same technology we have on 12 plus chain. So mainet obviously as well as a lot of the L2s and Salana itself. And so we have all these features that I talked through um some advantages over competitors here.

But again, we want to make the most comprehensive training platform, but make it as easy as possible for you or let's be real, it is the great year 2026. who is out here reading docs. Uh we're trying to make it as easy as possible for your agent to be able to get started super easily. Uh so yeah, that's that's kind of like the high level. Let's kind of look into the docs.

I'll explain kind of uh concisely how all this works. So I covered most of this. Um you can see the intricacies of how to incorporate the API. Um right so looking at the API itself, we have all these different types of orders. So obviously you can quote, you can submit orders um and look at it and whatever else.

But the key is we also have some of these better utility functions. So if you want to search assets across any chain, you can do it uh using flash, right? It's kind of an annoying problem. And another one is being able to get wallet balances. There's um a lot of different solutions there, but they all have like their own um different price points or whatever, but you can literally just get your wallet balances using defin um across all these chains as well.

So it's like super useful for any app that you just want to see how much balance you have. So uh makes it super easy. But the key here um is that again we're an agent first platform. So if you wanted to incorporate this uh you can literally just oneshot it using uh the AI integration panel or literally you could probably tell your agent like yo check out definitive flash incorporate it into my app, right? Um so yeah, we have all of those different functionalities uh built in here.

And so yeah, that's like what is definitive flash now? Why would you use definitive flash? again like we we have done a lot of the training infrastructure and I'll kind of showcase it here as well like how it works and the different things there but if you're building an app do you want to be focusing on like reinventing the wheel or the actual things that'll set you apart versus the competition right so flash enables you to do that because we are fully responsible for all of the order execution and quoting and making that better every day so that you have a better end end experience for all of your users, right? So, being able to empower that means you can focus on what makes your app unique. So, like I said, integrating is super easy.

Literally, just take this link, right? Go into your Claude and it'll be like integrate definitive flash into my app, right? Maybe paste in the link, whatever. Here's the key. Here's the key that people uh mess up is you have to be like, make no mistakes, and bam, you get a trading app.

I've done this many times over. All the docs are optimized for LLMs. We've really poured over making sure it's as easy as possible. All the places where agents get stuck. U we made sure to clarify.

It's literally this easy, right? Um and so instead of waiting for it to be done, I'll kind of showcase an application that kind of highlights this. Um this is the new frame wallet. This is how I've been dog dog fooding uh the flash API itself as a great starting point to understand how the things work here, right? So, it's your basic uh wallet app, right?

You got your things. Uh but the key thing here is that everything in this app you see is powered by flash. So, the balances I got using the uh definitive flash balances endpoint, right? The notionals are all set there. And of course, this great trade panel because if you're a wallet in the great year of 2026, how are you not going to have trading functionality, right?

Click this button, but oh my gosh, compared to all of these other wallets which only have market orders, you have all these advanced orders. Oh my gosh, must be a genius. No, it's just definitive flash. Um, so yeah. Uh, and out of out of like the different trading things, like market orders are probably the ones that you're most familiar with.

Like it's literally just I have an asset I want to trade into another asset. Um, whatever, like make it happen. Um, and so that's like the main thing, right? Limit order is kind of the one that more uh trading applications are incorporating themselves where it's just like once an asset hits a certain price. So let's say WE hits like $4,000 like I want to sell it.

And so T-Wap is another one. This is one that's not as common. Maybe you'll see it in some places, but this one is basically like and it's really useful if you're trading for like heavy size. Like let's say I have like a 100 W E. I can split up that order in like seven days.

So instead of just doing one clip of like, you know, I want to trade that much, like you're going to, especially like maybe maybe not not so much for like these majors, but especially if you're trading longtail tokens because definitive supports all tokens across all of these chains, right? Um if you're trading some token that doesn't have as much liquidity or there's just like general volatility or you want to like get a better entry, having a TWOP or a DCA order lets you kind of split up the impact or just let you get a better price, right? So, you know, you can buy the dip over time rather than trying to time the exact bottom, right? Um because of that flexibility, it is our most um popular order type and this is kind of how a lot of people using definitive are able to have an edge over the competition, right? So, uh main order type, T-W order, right?

Take profit stop-loss. Um also semicommon. Uh basically the idea is like whenever the price hits like whatever um you can do a market order to sell or market order to buy. You can even set an optional limit price that you sell. So let's say if it's like $10,000 um I want to sell it, right?

But if I want to have that same limit so it I guarantee you get it above 10,000 whatever. Uh the key here is that if you set a takerit limit, let's say the price breaches for a second and then goes down. if we're not able to execute the order with that limit price, you're not going to get filled um at all. So, usually if you're doing a trigger order, you'd want to do a market order because it's like, oh, like this longtail token is like pumping, but when it hits this price, I want to get out of the position. Like, you don't want to risk it not filling.

But again, like we allow the configurability so that whatever type of trade you're trying to do, you can do it on flash. So, take profit. Um that's that stop-loss is the other direction. So, let's say the price of ETH goes like way down, right? It's like uh $40.

Like you can have it trigger um so you'll sell your position before it goes lower. Um yeah, and then the last one is a stop buy where whenever the price of an asset hits a certain amount, you're able uh to buy. So yeah, again like we trigger orders are something that um are fundamental to how definitive works. And the benefit of using definitive for these things versus um other platforms is we have a lot of liquidity. We have over 900 liquidity sources.

So, you're always getting the best price. And the big problem um that people have really told us about using other platforms is that if you get a bad price and you get triggered at a bad price, you just get wrecked. And so, that's something that we really take pride in. And again, like this wallet is a vibecoded uh this is Claude right here, bro. Like, I didn't do anything fancy, but I have all these advanced order types that no other wallet has, right?

But it literally is that easy to incorporate. So, um that's one example. Well, let me let me just showcase how it works. So, let's see. Like, um I want to let me just sell.

Um yeah, let me just sell this position just to show how it works. Great. [clears throat] But you can see here again because of the non-custodial design, all of this signing is a SE EIP 712 signature. It's only authorized for this order specifically, right? So, um yeah, it's an onchain confirmation.

Boom. It worked. Great stuff. Yeah, that's the that's the definite flash API. Again, I haven't done anything fancy here.

Everything you see is stuff you can incorporate into your own app as well. Um, and so yeah, AI integration, super native, all these advanced features like uh really nice. Also, let me just showcase like another order. Uh, now that I have USDC, I want to buy when ETH hits, let's say, just in case. Just in case, um, this is a good buying point.

I can do this another limit order. it'll rest. Um, also another thing about our limit orders or resting orders is that compared to other solutions, um, the orders that you have are private. They're not going to be publicly available because um, using these other solutions, your orders are public. And so you can kind of get uh, hunted for those positions.

So basically now with the limit orders, if I want to cancel as well, like it's a signature cancel. Um, again, all these onchain confirmations lets us um be really secure so you don't lose the control you have over your orders and whatever. And if I wanted to, I could have cancelled that onchain as well. So yeah, that's that's basically how Flash works. The last piece here, right, it is the great year 2026.

The question is, what about the agentic future? What about the agentic trading? Uh, and I wanted to showcase something here that I made as well. So I thought about the idea of agentic trading and the problem with agentic trading is that like a lot of these other platforms it's not very ethaligned. You got to like trust some random guy to have your your private keys and hope it doesn't get leaked or something like I don't really like that right so instead what if you can control it yourself.

So I have the ability with this vibecoded app to have agentic access, right? Um and so basically the way it works is that I have an MCP server that I can install into um my code editors, right? And then it'll be able to interact with my wallet. So my private keys are still in my control. The agent is only responsible for interacting with my API.

And also something to note here is that definitive flash also has an MCP server. But the missing link here is that like you can quote easily. So if you are quoting in general like you could use the API, you could you could download the MCP and have it work right out of the box. But the missing piece is if you want to sign an order, how do you do it? So instead I wrapped the MCP into my own thing where now the signing is handled by new frame.

But again all the trading functionality is just done by flash. So it's nothing fancy whatever. But now um I can kind of showcase it here. So uh let's see. So let's go into the quad, right?

So, okay, we've integrated it. Made it made no mistakes. Great. So, um I can just install it. Okay, great.

Copy into the agents. Great. Wow, I have um the new frame CLI. Um and so now I'll try to do some agentic trading. Low key, I'm going to be so for real.

Uh these new models do not really like to trade for some reason. or let me use I hope I hope this will work. But the new models tend to like not like trading. I found it to be very finicky around it. So um the key is to use older models.

Maybe I have to get on this GLM wave or something. But yeah, so let's see like using the new frame MCP server. What are the balances I have? And you kind of see how it works. Again, nothing fancy here.

Just using the API. So this is probably this is going to be using the balances endpoint that I have integrated. Uh right. So let's see let's see how it gets it. Oh yeah.

So it'll create a session. Um so now there's actually EIP that you can leverage as well for agentic stuff. Um mine is just mine's pretty naive. It's just like showcase it. But you could like have like onchain validations.

Um and so you can focus on making stuff like that yet all the trading is still handled by Flash. It's like pretty neat. But yeah. So I'll let it cook for a sec. Oh, nice.

It worked. Wow. Great, great, great. Um, okay. Let's see.

Let's have it. Okay. No, wait. Why am I typing in the great year 2026, bro? On base.

Let's buy We using my USDC balance for $5. When we hits $800, just so I can make sure this integration works. Um, let's say like with Okay, lit. I really hope this works. Agents hate trading, but if I was using GLM, this wouldn't be a problem.

Um, so yeah, again, everything uses flash. Like the agentic future. The agent never sees the keys. Whatever. Whatever.

Uh, wow. Yep. LGTM, send it, bro. Let's see if it works. Um, oh, nice.

And so it created the order again. Never had to touch a private key, whatever. Using definitive flash. You can see the parameters of the order. Maybe the UI needs to be improved a little bit.

Um, but yeah, that's that's I'm just going to cancel it so I don't have this resting. Um, but yeah, that's the definitive flash API showcased uh in new frame wallet, whatever. Um, yeah, so it is it really is that easy to integrate the definitive flash API. Um if you're making any type of application, trading bot, wallet, whatever it is, it is super easy. You can try it out.

Um literally you can oneshot it with especially the AI models now. Uh we really optimize towards that. But again, like the larger picture of these advanced orders make it so you have more power over your money, right? Um you don't have to use a centralized exchange just to be able to get advanced order types on these spot assets. So yeah, that's the definitive flash API.

If you have any questions, feel free to reach out on Twitter. Uh you can also reach me at Twitter, shush. So if you're cooking, make sure to shout us out. Powered by Definitive Flash. I'll see you guys when I see you guys.

Peace.

Automatic transcript — names and jargon may be misspelled.