CLI tool for querying Polymarket APIs.
Install using cargo
cargo install polyoxide-cliOr download binaries directly from Github releases
curl -fsSL https://raw.githubusercontent.com/dilettante-trading/polyoxide/main/scripts/install.sh | sh
polyoxide <API> <COMMAND> [OPTIONS]Query market data from the Gamma API.
# List markets
polyoxide gamma markets list --limit 10 --active true
# Get a market by condition ID
polyoxide gamma markets get <CONDITION_ID>Display all supported features
polyoxide gamma --help
Query Data API.
# List user activity
polyoxide data positions --user 0x56687bf447db6ffa42ffe2204a05edaa20f55839 activity
# List builders leaderboard
polyoxide data builders leaderboardDisplay all supported features
polyoxide data --help
Subscribe to real-time market data and user updates.
# Subscribe to market channel (order book, prices)
polyoxide ws market <ASSET_ID>
# Only show trades, exit after 10 messages
polyoxide ws market --filter trade -n 10 <ASSET_ID>
# Run for 30 seconds with summary output
polyoxide ws market -t 30s -f summary <ASSET_ID>
# Subscribe to user channel (requires API credentials)
polyoxide ws user <MARKET_ID>Display all supported features
polyoxide ws --help
For convenience, shell completions can be generated too
# Generate completions for Fish shell
polyoxide completions fish
This project is licensed under the MIT License.