8 个版本
0.1.8 | 2023 年 9 月 27 日 |
---|---|
0.1.6 | 2023 年 9 月 27 日 |
#2647 在 神奇豆
每月 50 次下载
105KB
2K SLoC
普蒙客户端
注意此凤凰链上市场制造者仅支持 Devnet
按照
- 安装 Rust
- 安装 Solana-cli
sh-c"$(curl -sSfL https://release.solana.com/v1.14.14/install)"
- 使用 Cargo 安装 pomm
cargo安装 pomm
- 生成密钥对
solana-keygen new
这将在~/.config/solana/id.json
生成密钥对
使用步骤
- 生成默认配置
pomm auto
这将在~/.config/pomm/config.toml
生成默认的 config.toml 文件,您可以修改它。以更改市场和基础及报价币账户,以适应您的兴趣市场。
- 验证生成的配置
pomm 验证
- 空投基础和报价币
pomm 空投
- 初始化凤凰市场
pomm 初始化
- 更新报价
pomm 更新-报价
- 监听余额
pomm 监听-余额
以下为 pomm 命令支持。
普蒙用法
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
依赖关系
~100MB
~2M SLoC