pycryptobot
pycryptobot copied to clipboard
A reorganization of the projects skeleton in V4 or V5 of the cryptobot
Atm there are 2 CEX's (Centralized exchanges) available (Binanance & coin...) The code is to be found under the folder "exchange".
We are planning to add DEX's (Decentralized exchanges) in the near future (working on it while you are reading this).
While a CEX and a DEX are both exchanges, these will use a different way of interaction. When we try to automate the DEX process, we work straight away on the contract level and use the python web3 library to load the ABI's.
In first instance we will add Pancakeswap. Therefor we will need to go through the pancake swap router v2 contract. We will need to find a different way to get the most accurate token data, so that we can use the already existing logic of the trading bot. There is an info api for pancakeswap that we could use, but that's cached info that only updates once every 10 minutes or so. A different approach could be to scrape the exchange list of a token on Coingecko and coinmarketcap and filter out the DEX that we are going to use.
This is why I would suggest that we modify the projects skeleton to have a clear distinction between both and it will make more sense to people that want to actively join the project.
Keep in mind that the code that we will use to automate the DEX interaction can also be used to communicate with dapps (and everything else that is truly decentralized).
An additional feature (the next step) will be to automate the pancakeswap liquidity pool handling. (depending on the liquidity pairs, this is really worth the effort. While you see the value of your pair rising, you'll also earn cake along the way and optimize your gains).
I would really appreciate it that as much people as possible can shed their light on this and share their ideas, so that we can mutually come up with the best possible solution. United we are stronger!