[music]
Hi everyone, I’m Dakota from Weeble’s UIUX team and today we’re going to talk through Weeble’s open API. Through Weeble’s local MCP server, you can link your account to an AI platform of your choosing. This allows for faster research, placing trades, and more, all through plain language. The process can be a little intimidating, especially if you have no development experience. [music] But I’m here to break it down as simply and clearly as possible. In just a few minutes, we’ll have your Weeble account connected and you’ll be up and running. There’s three things we need to establish this connection. [music] Your Weeble account and API credentials, the Weeble MCP server, [music] and the AI assistant of your choosing. The key idea here is that [music] to ensure safety and security, the AI agent itself never actually touches your credentials. [music] For that to happen, we’ll create a small configuration file on your computer. That file will hold your API keys and hand them directly to the local server process. The AI [music] talks to the server. The server talks to Weeble. It’s extremely important that you never [music] paste your credentials into an AI chat directly. Only using this configuration [music] to keep your account secure and safe. That said, let’s get started. First thing we’re going to do is log into our Weeble account just as [music] normal.
All right. [music] And once we’re logged in, we’re just going to go up here to individuals, [music] then open API and get API key. From here, I’ll need to put in my trading password just as normal.
And then I’m [music] going to apply for a new API key cuz I don’t yet have anything like this established.
Make sure you [music] carefully read the add astation and risk acknowledgement so you’re aware of any risk that you might come across. [music]
It will ask you to give an application name. [music] Doesn’t really matter what you put here. I’m going to be using cursor for this demonstration today. So I will use [music] cursor MCP as my title. I’m going to disable two-factor authentication. I do recommend [music] you keep that on, but for this purpose, it just adds an extra step that isn’t quite necessary. [music]
Very important here, when you click this generate key button, a new pop-up window is going to come up and it’s going to show you your app secret and key. This is basically your username and password for the AI to recognize. Very important again that you don’t put any of this information directly into an AI chat or um show or share this with anyone else.
All right. And now I’ve got my app key and app secret generated.
going to copy those and save them somewhere secure. There are two tools that you may already have installed on your device. If you don’t, this process will install them directly. But if you don’t want to go through this process, all you need is Python version 3.1 or higher and a small program called UV. I would recommend checking the developer website at weeble.com just to confirm that the version of Python is up todate and compatible with the AI agent you’re choosing to actually install these things. I’m going to open up PowerShell, which is basically the commun uh the computer’s command center. Once I’ve got PowerShell open, I’m going to paste this line, which I’ve got directly from Weeble’s website, and hit enter. I don’t need to type anything extra. I don’t need to change anything. UVX is now installed. And I’m going to close PowerShell and reopen it to make sure that everything is done. [snorts] Once I’ve got that open, just to verify that everything installed correctly, I’m going to type UVX version. And if it gives me any number here other than an error, that means everything is installed correctly. As you can see, UVX 12.1 is installed, which by default will install Python when the command runs for the first time. Again, if you run into any errors there, it’s most likely because you don’t have Python installed. You can do that directly from the website. We also provide a link on weeble.com. Now that I’ve got all that done, I’m going to create a new folder on my desktop and I’m going to call that cursor mcp. This is where all the files related to the API itself are going to be stored. Once I’ve got that folder, I’m going to open cursor or whatever agent uh whatever AI platform I choose and I’m going to go to the IDE part. The IDE is basically a suite of coding tools that you can use to develop new code, debug code, things like that. Once I’m here, I’m going to go to preferences, cursor settings. and I’m going to find tools and MCPs on the lefth hand side. On this menu, I’m going to add a custom MCP. I’m going to delete all the information that’s in here. And I’m going to copy and paste this line of code directly from Weeble’s API doc website. And then I’m going to replace the app key in your app key with my app key that I got directly from the website.
And I’m going to do the same thing with the secret.
Once that’s done, hit enter. Ctrl S will save that line of code. And then I’m going to close everything and reopen it and confirm that what we did was successful
just to make sure it’s working here. I’m going to test it and ask it to pull my account list. If it’s able to return all the various accounts that I have connected to Weeble, I’ll know for sure that it’s successful.
And there we go. As I can, as you can see, we’ve got my futures account, my cash account, events, everything like that. Let’s do something a little more complicated, a little bit more fun. Let me ask it, what is my balance in the events account?
All right, I’ve got about $65 in my cash account. Just as a quick example of placing a trade, let’s ask it what the five event contracts with the highest price swings in the last 24 hours are. and it’ll give me a good idea where other traders are focusing on and uh what kind of has the most volatility that I can capitalize on.
Just a quick side note while that’s running, we does require a real-time market data subscription if you’re going to be placing trades or need the latest snapshot information. And there we have our list. It looks like most of the high price swings are concentrated in the Bitcoin series. If I wanted to narrow that down, let’s say to sports or index or any other category of event contracts, I can just tell cursor when I’m putting that in. But just for convenience sake, let’s buy this Bitcoin 63,500 or higher by 5:00 p.m. And I’m going to allocate about 10% of my buying power, which would be $6.50.
And so what I’ve told it is to use $6.50, buy as many contracts as possible with that amount of money in the Bitcoin 635 or higher by 5:00 p.m. series. That’s going to run for a minute. The order should place and fill immediately, most likely faster than this prompt even finishes calculating. And just like that, my event contract order has been placed and filled. I now have six contracts of yes above 635 or higher by the end of today at 5:00 p.m. And there you have it. Now you should be fully set up and ready to go with agentic trading on Weeble. Thanks for joining us and make sure to let us know how you’re using these agents and what kind of trades and research you’re placing so we can continue to improve it for