@deepbookie/cli
v0.1.2
Published
DeepBookie CLI — trade DeepBook Predict from the terminal; the tool builds the tx, your local key signs it.
Maintainers
Readme
@deepbookie/cli
The DeepBookie command-line tool — trade DeepBook on Sui from your terminal. The tool builds the transaction; your local key signs it.
Use it
npx @deepbookie/cli wallet # show the local address + SUI/dUSDC balances
npx @deepbookie/cli tools # list every tool
npx @deepbookie/cli call list_markets # call a read tool → prints JSON
npx @deepbookie/cli call get_odds '{"asset":"BTC"}'Or install it globally:
npm i -g @deepbookie/cli
deepbookie toolsCommands
| Command | Does |
| --- | --- |
| wallet | Print the local wallet address and balances. |
| tools | List all available tools (name + schema). |
| call <tool> [json] | Call any tool. Reads print data; writes build → sign with your local key → execute, and print the digest. |
Args are a JSON object: deepbookie call mint '{"oracleId":"0x…","direction":"UP","amount":5}'.
The signing key
Resolved in this order:
DEEPBOOKIE_PRIVATE_KEY— asuiprivkey…secret key.~/.deepbookie/config.json— a persisted key (mode0600).- Auto-generate one, persist it, and print the address to fund.
The agent only ever builds an unsigned transaction — nothing signs without your key.
Environment
| Variable | Purpose |
| --- | --- |
| DEEPBOOKIE_PRIVATE_KEY | Sui secret key (suiprivkey…). |
| DEEPBOOKIE_NETWORK | testnet (default). |
| DEEPBOOKIE_MANAGER_ID / DEEPBOOKIE_BALANCE_MANAGER_ID | Optional — your Predict / DeepBook shared managers. |
| DEEPBOOKIE_LOG_LEVEL | Pino log level. |
Runs on Sui testnet. Fund the key before signing writes.
License
MIT
