You can check this repo: https://github.com/raydium-io/raydium-sdk-V2-demo/tree/master/src/amm
Start with the file createMarket.ts
, createAmmPool.ts
, ... Before performing all steps, you need to create your own dummy tokens for testing.
You can read this tutorial: https://docs.raydium.io/raydium/updates/archive/creating-an-openbook-amm-pool
After that, try using the repository link above.