polyte-cli 0.2.4

CLI tool for querying Polymarket Gamma API
polyte-cli-0.2.4 is not a library.

polyte-cli

CLI tool for querying Polymarket APIs.

[!NOTE] Only Gamma and Data APIs are supported as of now

Installation

Install using cargo

cargo install polyte-cli

Or download binaries directly from Github releases

curl -fsSL https://raw.githubusercontent.com/roushou/polyte/main/scripts/install.sh | sh

Usage

polyte <API> <COMMAND> [OPTIONS]

Gamma API

Query market data from the Gamma API.

Markets

# List markets
polyte gamma markets list --limit 10 --active true

# Get a market by condition ID
polyte gamma markets get <CONDITION_ID>

Display all supported features

polyte gamma --help

Data API

Query Data API.

Markets

# List user activity
polyte data positions --user 0x56687bf447db6ffa42ffe2204a05edaa20f55839 activity

# List builders leaderboard
polyte data builders leaderboard

Display all supported features

polyte data --help

Shell completions

For convenience, shell completions can be generated too

# Generate completions for Fish shell
polyte completions fish

License

This project is licensed under the MIT License.