@whop/cli 0.19.0 → 0.21.0

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 CHANGED
@@ -144,6 +144,10 @@ whop users get me --include_trading true --format json
144
144
 
145
145
  These commands retrieve trading balances, positions and open orders from the supported provider; they don't place orders or move funds. Hyperliquid is currently supported.
146
146
 
147
+ Use `whop trades create --help` for market, limit, ladder and take-profit/stop-loss orders; `whop trades cancel trop_xxx` to cancel an original batch; and `whop trades leverage --help` to configure leverage. Retrieve an initiated action with `whop trades get trop_xxx`. These are submission records, not live fill history. Writes require an `Idempotency-Key`; reuse it after an ambiguous response.
148
+
149
+ Opening positions and changing leverage are available by request. Cancellation and reduce-only exits keep working even when Whop pauses new positions.
150
+
147
151
  ## Serve the customers you have
148
152
 
149
153
  ```bash
@@ -199,11 +203,13 @@ whop bounty-submissions list --help # review submitted work, approve to pay
199
203
  ## Upload files
200
204
 
201
205
  ```bash
202
- whop files create --filename "banner.png"
206
+ whop files create --filepath ./banner.png --visibility public
203
207
  whop files get file_xxxxxxxxxxxxx
204
208
  ```
205
209
 
206
- `create` returns a presigned `upload_url` and `upload_headers`. Upload the bytes there, then `get` returns the file URL once it's ready. `list` shows your uploads, and `complete` finishes a multipart upload once every part is in.
210
+ `create --filepath` uploads a local file end to end: it creates the file, sends its bytes (in parts for files over 100 MB), and returns it once it's ready with its URL. The file name defaults to the local file's name.
211
+
212
+ Without `--filepath`, `create --filename` returns a presigned `upload_url` and `upload_headers` to upload the bytes yourself; `get` returns the file URL once it's ready. `list` shows your uploads, and `complete` finishes a multipart upload once every part is in.
207
213
 
208
214
  ## For AI agents
209
215