pancakeswap / pancake-info-api

Serverless API implementation for PancakeSwap on-chain data query.
328 stars 273 forks source link

Can i auto buy and sell using pancakeswap api ? #59

Closed fmsimsek closed 3 years ago

fmsimsek commented 3 years ago

Hello sir, Can i auto buy and sell using pancakeswap api ?

gogetta69 commented 3 years ago

No, but with python and web3 this simple example code will work.

https://zhiyan.blog/2021/05/23/how-to-create-a-pancakeswap-bot-using-python/

Not sure but I think the pancakeswap's function hes calling in that example is only for tokens that doesn't require a fee. So for the tokens that require fees you will need to run "swapExactETHForTokensSupportingFeeOnTransferTokens".

Check the contract for any other functions you will need to use. Also make sure to load the full Contract ABI before trying to run other functions. https://bscscan.com/address/0x10ed43c718714eb63d5aa57b78b54704e256024e#writeContract

fmsimsek commented 3 years ago

Thank you sir for answer.

ZainAchak commented 3 years ago

Go for this straight and simple https://youtu.be/cSel-wyrTFI

ZainAchak commented 3 years ago

https://youtu.be/cSel-wyrTFI

benhibi commented 2 years ago

https://youtu.be/cSel-wyrTFI

Please help me sell code pancakeswap, thanks