Notice this Phoenix On-chain Market Maker only support Devnet
sh -c "$(curl -sSfL https://release.solana.com/v1.14.14/install)"
cargo install pomm
solana-keygen new
this will generate keypair to ~/.config/solana/id.json
pomm auto
this will generate default config.toml file to ~/.config/pomm/config.toml
, you can modify it. to change market and base and quote coin account, for you interest market.pomm airdrop
pomm init
pomm update-quotes
pomm listen-balance
Below this is pomm command support.
```bash pomm 0.1.1
USAGE:
pomm
FLAGS: -h, --help Prints help information -V, --version Prints version information
SUBCOMMANDS: airdrop airdrop base and quote token auto auto generate config.toml file to ~/.config/pomm/config.toml cancle cancle all orders fetch-market-event fetch market event get-market-address get market address get-price get base and quote price grpc grpc help Prints this message or the help of the given subcommand(s) init initialize Phoenix onchain Maket Maker and Claim Market Sate list-all-market list all market listen-balance listen balance update-quotes update quotes view-state-order-book view state order book ```
```toml
keypair_path = "~/.config/solana/id.json"
rpc_endpoint = "https://api.devnet.solana.com"
commitment = "confirmed"
[phoenix]
market = "CS2H8nbAVVEUHWPF5extCSymqheQdkd4d7thik6eet9N" # you can change it to your interest market
base_account = "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix" # you can change it to your interest market
quote_account = "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7" # you can change it to your interest market ticker = "SOL/USDC" # you interest market
quoterefreshfrequencyinms = 2000 quoteedgeinbps = 3 quotesize = 100000000 priceimprovementbehavior = "ignore" post_only = true ```