Skip to content

Commit 1306510

Browse files
committed
Fix invalid order field names in help text and README
The API accepts `volume` and `liquidity` as order fields, not `volume_num` and `liquidity_num` (those are response fields). Using the documented examples produced a 422 validation error.
1 parent d4ec860 commit 1306510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Errors follow the same pattern — table mode prints `Error: ...` to stderr, JSO
128128
```bash
129129
# List markets with filters
130130
polymarket markets list --limit 10
131-
polymarket markets list --active true --order volume_num
131+
polymarket markets list --active true --order volume
132132
polymarket markets list --closed false --limit 50 --offset 25
133133

134134
# Get a single market by ID or slug

src/commands/markets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub enum MarketsCommand {
4242
#[arg(long)]
4343
offset: Option<i32>,
4444

45-
/// Sort field (e.g. `volume_num`, `liquidity_num`)
45+
/// Sort field (e.g. `volume`, `liquidity`)
4646
#[arg(long)]
4747
order: Option<String>,
4848

0 commit comments

Comments
 (0)