Pomm Client

Notice this Phoenix On-chain Market Maker only support Devnet

Per

  1. install Rust
  2. install Solana-cli
  3. install pomm by Cargo
  4. generate keypair

Usage Step

  1. generate default config
  2. validate generate config
  3. airdrop base and quote coin
  4. init phoenix market
  5. update quotes
  6. listen balance

Below this is pomm command support.

Pomm usage

```bash pomm 0.1.6

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 validate validate config view-state-order-book view state order book ```

Config setting

```toml

Optionally include your keypair path. Defaults to your Solana CLI config file.

keypair_path = "~/.config/solana/id.json"

Optionally include your RPC endpoint. Use "local", "dev", "main" for default endpoints. Defaults to your Solana CLI config file.

rpc_endpoint = "https://api.devnet.solana.com"

Optionally include a commitment level. Defaults to your Solana CLI config file.

commitment = "confirmed"

[phoenix]

this is phoneix market address

market = "CS2H8nbAVVEUHWPF5extCSymqheQdkd4d7thik6eet9N" # you can change it to you interest market ticker = "SOL/USDC" # you interest market

Below is you Maket Maker Strategy Param

quoterefreshfrequencyinms = 2000 quoteedgeinbps = 3 quotesize = 100000000 priceimprovementbehavior = "ignore" post_only = true ```