@hedge-layer/cli 2.2.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -38
- package/dist/index.mjs +200 -477
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,15 +56,19 @@ hl brief "US China trade war tariffs"
|
|
|
56
56
|
# 4. Or start an interactive research session
|
|
57
57
|
hl research
|
|
58
58
|
|
|
59
|
-
# 5.
|
|
59
|
+
# 5. Preview a directional quote (analysis only; no order is submitted)
|
|
60
|
+
hl quote "example-market" --action buy --outcome yes --cash 25
|
|
61
|
+
|
|
62
|
+
# 6. Save a fresh quote preview with Signal-linked sizing context
|
|
63
|
+
hl quote "example-market" --action buy --outcome yes --cash 25 \
|
|
64
|
+
--signal-id <forecast-id> --capital 1000 --save
|
|
65
|
+
|
|
66
|
+
# 7. Run the advanced dry-run liquidity-provider planner
|
|
60
67
|
hl --json feed liquidity-provider --limit 15 | jq '{ markets: .markets }' > markets.json
|
|
61
68
|
hl lp allocator --markets markets.json
|
|
62
|
-
|
|
69
|
+
your execution workflow
|
|
63
70
|
|
|
64
|
-
#
|
|
65
|
-
hl wallet balances
|
|
66
|
-
|
|
67
|
-
# 7. Analyze a market probability edge
|
|
71
|
+
# 8. Analyze a market probability edge
|
|
68
72
|
hl signal analyze "https://polymarket.com/event/example-market"
|
|
69
73
|
```
|
|
70
74
|
|
|
@@ -73,53 +77,48 @@ hl signal analyze "https://polymarket.com/event/example-market"
|
|
|
73
77
|
Full command documentation is available at
|
|
74
78
|
[hedgelayer.ai/docs/cli](https://hedgelayer.ai/docs/cli).
|
|
75
79
|
|
|
76
|
-
|
|
80
|
+
Directional quote previews are available with `hl quote`:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
hl quote example-market --action buy --outcome yes --cash 25
|
|
84
|
+
hl quote example-market --action buy --outcome no --shares 50 --route passive
|
|
85
|
+
hl quote example-market --action sell --outcome yes --shares 20 --save
|
|
86
|
+
hl --json quote example-market --action buy --outcome yes --cash 25
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Quote reads public Polymarket market data and order-book depth, then reports the
|
|
90
|
+
estimated fill, slippage, fees, cost or proceeds, payout risk, and optional
|
|
91
|
+
Signal edge. It never signs or submits an order. `--cash` is BUY-only; SELL
|
|
92
|
+
quotes require `--shares`.
|
|
93
|
+
|
|
94
|
+
Advanced liquidity-provider planning remains available under `hl lp` as a
|
|
95
|
+
dry-run-only API client:
|
|
77
96
|
|
|
78
97
|
```bash
|
|
79
|
-
hl lp
|
|
80
|
-
hl lp allocator --markets markets.json # run allocator agent on an explicit list
|
|
81
|
-
hl lp recommend --scan-id <scan-id> # recommend allocate/reduce/exit actions
|
|
82
|
-
hl lp evaluate # summarize PnL lessons
|
|
98
|
+
hl lp allocator --markets markets.json
|
|
83
99
|
```
|
|
84
100
|
|
|
85
|
-
The lightweight
|
|
101
|
+
The lightweight LP planning loop is:
|
|
86
102
|
|
|
87
103
|
```bash
|
|
88
|
-
hl
|
|
89
|
-
hl
|
|
90
|
-
|
|
91
|
-
hl
|
|
104
|
+
hl feed ensemble --limit 25 --output candidates.json
|
|
105
|
+
# or: hl --json feed lp-opportunity --limit 15 > markets.json
|
|
106
|
+
external-pnl-export --json > pnl.json # optional: wallet PnL + live inventory
|
|
107
|
+
hl lp allocator --markets candidates.json --pnl pnl.json --allocations pnl.json
|
|
108
|
+
your execution workflow ...
|
|
92
109
|
```
|
|
93
110
|
|
|
111
|
+
`hl feed ensemble` runs several feed lenses (liquid core, active volume, movers, new markets, uncertainty, and LP quality), de-duplicates by slug, and writes a daily candidate file.
|
|
112
|
+
|
|
94
113
|
`hl lp allocator` submits the candidate market list through the web API to the
|
|
95
114
|
allocator agent. Allocator output shows target capital, quote regime, failed
|
|
96
115
|
safety checks, and split spread/reward economics. Trade execution stays outside
|
|
97
|
-
the `hl`
|
|
116
|
+
the `hl` CLI.
|
|
98
117
|
|
|
99
118
|
`--allocations` tells the allocator what you already hold (enabling HOLD,
|
|
100
119
|
REDUCE, and EXIT decisions), and `--pnl` feeds per-market PnL into its caution
|
|
101
120
|
overlay so borderline allocations on losing markets are downgraded to WATCH or
|
|
102
|
-
HOLD. Both flags accept the
|
|
103
|
-
|
|
104
|
-
Wallet commands are available under `hl wallet`:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
hl wallet status # show linked owner and Polymarket deposit wallet status
|
|
108
|
-
hl wallet balances # show available pUSD, USDC.e, and POL
|
|
109
|
-
hl wallet funds # alias for balances
|
|
110
|
-
hl wallet deposit # show public Polygon deposit address and assets
|
|
111
|
-
hl wallet deposit --bridge # also show Polymarket Bridge deposit addresses
|
|
112
|
-
hl wallet withdraw --asset pUSD --amount 10 --to 0x...
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
`hl wallet withdraw` creates a withdrawal intent, opens the browser signing page,
|
|
116
|
-
and polls until the deposit-wallet transfer succeeds, fails, or times out.
|
|
117
|
-
The CLI token never receives wallet signing power.
|
|
118
|
-
|
|
119
|
-
Withdrawals currently send `pUSD` from the linked Polymarket deposit wallet on Polygon.
|
|
120
|
-
Keep a small `POL` balance in the owner wallet for Polygon gas; without native
|
|
121
|
-
`POL`, the browser-signed transfer can fail even when the deposit wallet has
|
|
122
|
-
enough `pUSD`.
|
|
121
|
+
HOLD. Both flags accept the same external wallet/inventory export shape.
|
|
123
122
|
|
|
124
123
|
Signal-agent analysis is available under `hl signal`:
|
|
125
124
|
|