Uniswap Market Maker Trading Bot

  Рет қаралды 12,290

James Bachini

James Bachini

Күн бұрын

Пікірлер: 45
@ilaleha
@ilaleha Жыл бұрын
Loved the tutorial, very informative. Thanks
@jerrywang3225
@jerrywang3225 Жыл бұрын
Great tutorial, love your channel. Thanks.
@CyborgHGWF
@CyborgHGWF 10 ай бұрын
Hard to figure out out you are using Visual studio for the node command at the end or Java server
@JamesBachini
@JamesBachini 10 ай бұрын
The console? If so it's just windows power shell
@rolandonwa2369
@rolandonwa2369 5 ай бұрын
Please can you make a video on layer2 network on dex exchange, the bot will buy token on exchange A and sell it on exchange B
@bigpvn
@bigpvn 6 ай бұрын
it can be use for volume boosting? same logic?
@JamesBachini
@JamesBachini 6 ай бұрын
Yes, just trade a frequent narrow range to add volume
@m.glorious5520
@m.glorious5520 Жыл бұрын
Thank you for the tutorials
@mickael6838
@mickael6838 Жыл бұрын
thanks for the tutorial !!
@CrazyWorldTTV
@CrazyWorldTTV 3 ай бұрын
For example i have the contract and still is not launched on market, how can i make the script to wait when its online auto buy streight
@JamesBachini
@JamesBachini 3 ай бұрын
To get a tx in the same block you would have to monitor the mempool and then bid as soon as liquidity is added.
@CrazyWorldTTV
@CrazyWorldTTV 3 ай бұрын
@@JamesBachini yes i own the contract how can i do can ypu help me i want to be the first buyer on my contract not the bots
@JamesBachini
@JamesBachini 3 ай бұрын
@@CrazyWorldTTV You could potentially add a mint function in the token contract constructor. Or you could bundle a transaction for adding liquidity and doing a buy in a single transaction
@armagelypse
@armagelypse 6 ай бұрын
Hey there - do you know if there is a bot out there or some kind of scipt to execute regular swap orders on Uniswap connected with Metamask?
@JamesBachini
@JamesBachini 6 ай бұрын
I haven't seen anything that can automate metamask and don't think you'd want to. Bots generally run using a hot wallet i.e. keys stored on the server
@panchopacheco1247
@panchopacheco1247 11 ай бұрын
I'm attempting to modify your code for more specific market conditions and it rather quickly became spaghetti. It's beginning to look like converting it to object oriented code may be worth the work involved. Would you please do a video of this Trading bot in object oriented code? Or could you direct me to a simple one? I haven't seen any on KZbin. Thanks
@JamesBachini
@JamesBachini 11 ай бұрын
Sure I'll just refactor it and get back to you
@geoffreysari6239
@geoffreysari6239 5 ай бұрын
@@JamesBachini Thanks for sharing. Where you able to refactor your code? Has it been updated on your github repository.
@JamesBachini
@JamesBachini 5 ай бұрын
​@@geoffreysari6239it's just a simple script to demonstrate the tutorial. You could probably pop it into chatgpt and ask it to refactor it to more object orientated or whatever direction you want to take it. It's not under active development or designed for production
@zenginmo5324
@zenginmo5324 Жыл бұрын
❤ i Learn to much from you
@panchopacheco1247
@panchopacheco1247 Жыл бұрын
Thanks for another Informative and practical video. How would you modify the code to swap UNI for WETH? The ratio would be a fraction of one; 'BigInt(0.029)' produces an error.
@JamesBachini
@JamesBachini Жыл бұрын
Convert to Wei first perhaps? Uniswap takes inputs in the lowest denomination and Eth has 18 decimals. I think I used ethers in that script which has functions like parseEther and formatEther for doing conversions
@panchopacheco1247
@panchopacheco1247 Жыл бұрын
That worked. Thanks
@cultesmoments
@cultesmoments Жыл бұрын
Ouah, very good video, you use WETH and UNI i see but it is possible to use GOETH and WETH? And in your code warning wee see your apikey? And use 0.001 ETH for trade is not too low? I will try this soon, very thank you, you are a Boss!
@JamesBachini
@JamesBachini Жыл бұрын
Like Goerli Eth? So you would just use the weth contract on Goerli for this. You can use whatever amount you wish for the trade depending on how much you want to exchange on each trade
@cultesmoments
@cultesmoments Жыл бұрын
@@JamesBachini thank you for reply. If i use 6 Goerli ETH it is ok?
@JamesBachini
@JamesBachini Жыл бұрын
@@cultesmoments yes more than enough
@akumakazenoryu
@akumakazenoryu 5 ай бұрын
no matter what i do it says that my private key is invalid
@JamesBachini
@JamesBachini 5 ай бұрын
Did you edit the .env file? Private key is different to the address and mnemonic. From the error it sounds like it's something to do with that.
@ywueeee
@ywueeee Жыл бұрын
can you make a video on solana memecoin and NFT collection?
@JamesBachini
@JamesBachini Жыл бұрын
I haven't worked with Solana for a year or two to be honest. Main focus is Solidity and EVM chains
@ywueeee
@ywueeee Жыл бұрын
@@JamesBachini good time to get back I guess because after this people will be moving there i guess
@Stateofdinosaurs
@Stateofdinosaurs Жыл бұрын
There is the possibility of creating a bot that sells a percentage of the token daily and saves the sale balance to repurchase the token after 30 days and burns it right after the repurchase.
@JamesBachini
@JamesBachini Жыл бұрын
Yes you would just need to add that logic to the script and send the balance to the 0x0 burn address
@unimposings
@unimposings Жыл бұрын
i am trying like couple of hours to let the beast run on L2 polygon, if am not getting the error: Error: could not coalesce error (error={ "code": -32000, "message": "transaction underpriced" }, code=UNKNOWN_ERROR, version=6.3.0) , then i get node_modules/ethers/lib.commonjs/utils/errors.js:121 error = new Error(message); ^ Error: missing revert data (action="call", data=null, reason=null, transaction={ "data": , i tried already on 2 different systems. so it would be great if you can make second part video for main net, or l2, and a bit more in debt, which version you are using, did you install ethers before, or was it installed what is your npm version etc. but 100% thanks for sharing, i mean on test net it is running smoothly..
@JamesBachini
@JamesBachini Жыл бұрын
The same code should work on L2 as it's EVM compatible. Is there definitely a version of Uniswap v3 deployed though? You'll need to change the weth address to whichever version of wrapped MATIC they are using and also update the token address. Check the router and quoter address in a block explorer as well to make sure the contracts exist on the L2. Latest version of node and npm is fine. If it's working on testnet that's not the issue. Double check that the contract addresses are formatted correctly in regards to checksum. If they are copied from a URL it can convert them to lowercase and cause issues.
@muhammadaqeel2158
@muhammadaqeel2158 Жыл бұрын
did your code working fine now on main net?
@muhammadaqeel2158
@muhammadaqeel2158 Жыл бұрын
I am facing same issue
@robertfisher3507
@robertfisher3507 Жыл бұрын
keep getting errors, does not work.
@JamesBachini
@JamesBachini Жыл бұрын
Is there any error code or something to go on? Got funds in the wallet to pay gas fees? Check token addresses aren't all lowercase as this breaks the checksum
@aitchetesami7194
@aitchetesami7194 Жыл бұрын
I've tried on mac's Terminal and got error... please guide JsonRpcProvider failed to startup; retry in 1s /Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/errors.js:121 error = new Error(message); ^ Error: server response 403 Forbidden (request={ }, response={ }, error=null, code=SERVER_ERROR, version=6.3.0) at makeError (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/errors.js:121:21) at assert (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/errors.js:138:15) at FetchResponse.assertOk (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/fetch.js:775:32) at JsonRpcProvider._send (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:772:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:239:40 { code: 'SERVER_ERROR', request: FetchRequest {}, response: FetchResponse {}, error: undefined } Node.js v18.16.0
@JamesBachini
@JamesBachini Жыл бұрын
Check the alchemy API key in the .env file
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Convert TradingView Indicators into Strategies with AI (IT FINALLY WORKS)
21:49
OKX Arbitrage Trading Bot Tutorial (Step-by-Step Guide)
19:22
Create Your Own Memecoin & Sell It On Uniswap
10:11
James Bachini
Рет қаралды 37 М.
Decentralized Lending Pools | Blend Capital
11:38
James Bachini
Рет қаралды 575
Introduction To DEX Arbitrage | Intermediate Solidity Tutorial
16:32
Blockchain 101 - A Visual Demo
17:50
Anders Brownworth
Рет қаралды 2,7 МЛН
I coded a trading bot for Uniswap | Sniping Bot
9:48
EatTheBlocks
Рет қаралды 73 М.
Flash Loan Arbitrage | Aave Flash Loan Tutorial
48:34
Block Explorer
Рет қаралды 156 М.
How To Create A New Token & Uniswap Liquidity Pool
14:38
James Bachini
Рет қаралды 53 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН