Since you mention Binance DEX (although few people argue it's not really decentralized), you should look on Uniswap where it's source code available at
https://github.com/Uniswap. But if you're looking for DEX which can perform exchange between token/cryptocurrency on different blockchain, check Bisq instead at
https://github.com/bisq-network/bisq.