Crates.io | pomm |
lib.rs | pomm |
version | 0.1.8 |
source | src |
created_at | 2023-09-25 15:06:38.064415 |
updated_at | 2023-09-27 04:17:58.426048 |
description | Phoenix on-chain Market-Maker client |
homepage | |
repository | https://github.com/All-In-One-Blockchain/phoenix-onchain-mm.git |
max_upload_size | |
id | 982812 |
size | 227,884 |
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 validate
pomm airdrop
pomm init
pomm update-quotes
pomm listen-balance
Below this is pomm command support.
pomm 0.1.6
USAGE:
pomm <SUBCOMMAND>
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
# 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
quote_refresh_frequency_in_ms = 2000
quote_edge_in_bps = 3
quote_size = 100000000
price_improvement_behavior = "ignore"
post_only = true