CLI reference
solator market create <TICKER> --price <usd> [--dex <abc>] [--cap <usd>] [--fresh 1m|10m|1h]
[--tick finer|coarser] [--mint <address>] [--bond <usd>] [--out <dir>]
solator market show <market>
solator market list [--mine]
solator market pause <market>
solator market resume <market>
solator market cap <market> <usd>
solator price post <market> <usd>
solator price run <market> --from url:<http url> [--json a.b.c]
solator price run <market> --from cmd:"<shell command>"
[--min-move <bps>] [--heartbeat <seconds>] [--every <seconds>]
solator bond add <market> <usd> [--from <token account>]
solator fees claim <market> [--to <token account>]
solator liquidate run <market> [--earn [<account>]] [--every <seconds>] [--once]The source is in the ts/ directory of the public repository; run it there with npm run solator -- <command>.
Every command takes:
| Option | Default |
|---|---|
--url <rpc> | https://api.devnet.solana.com |
--keypair <file> | ~/.config/solana/id.json |
Another deployment of the program, or another collateral, is named in the environment: SOLATOR_PROGRAM, SOLATOR_MINT.
Notes
- Amounts are dollars of the market's collateral. Prices are dollars with up to 8 decimals.
- A transaction is signed once and the same bytes are sent until the network has them or their blockhash is too old. A command never builds a second transaction for one intent, so a timeout cannot pay twice.
price runrefuses a--heartbeatthat is not shorter than the market's price lifetime.fees claimfirst folds the books' fee counters into the market, then claims, in one transaction.- Only the key that opened a market can post its price, pause it, change its caps or claim its fees. Anyone can add to its bond, and anyone can liquidate in it.
price runandliquidate runalso book filled resting orders into their owners' accounts, each turn.- A liquidation is asked before it is sent: the signed transaction is simulated, and sent only when the program accepts it. A refusal costs nothing.
--earnnames the trading account that is paid a fifth of each liquidation fee. Without a value it is the one account your key has in that market; the program refuses an account that keeps its cash in another vault.--oncemakesprice runandliquidate rundo one turn and stop.- The public devnet endpoint limits requests per network address. A loop that is refused says so and tries again at its next turn; for a market that matters, give it an RPC endpoint of your own with
--url.