@whop/cli 0.23.0 → 0.24.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
@@ -48,6 +48,10 @@ whop
48
48
 
49
49
  That's it! Run `whop auth accounts` anytime to switch businesses.
50
50
 
51
+ ## Financing applications
52
+
53
+ `whop financing-applications list`, `create`, and `get` manage merchant payment-financing applications under an account. Use each command's `--help` for account and application arguments. Creating an application reuses an open application and does not submit it for review.
54
+
51
55
  ## Usage
52
56
 
53
57
  ```bash
@@ -133,20 +137,21 @@ whop products update prod_xxxxxxxx --gallery_images '[{"id":"file_xxxxxxxx"}]'
133
137
 
134
138
  Money moves through the same surface: payouts, transfers, deposits, swaps, and cards. Payouts and card issuing require identity verification (`whop verifications`). Steps that need a browser, like KYC, show up as a link to open.
135
139
 
140
+ Use `whop transfers get-claim-link <id>` to retrieve a funded claim link by its `airdrp_` ID or public claim code. ID reads require `airdrop_link:basic:read` on the funding business or ownership of the funding personal account; a claim code allows a public preview.
141
+
136
142
  ## Read trading activity
137
143
 
138
- Trading is available by request. Email support@whop.com to get access.
144
+ Trading account access is available by request. Email support@whop.com to get access.
139
145
 
140
146
  ```bash
141
147
  whop accounts get biz_xxx --include_trading true --format json
142
148
  whop users get me --include_trading true --format json
149
+ whop trades list --format json
143
150
  ```
144
151
 
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
-
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.
152
+ These commands return the trading account address, its Hyperliquid websocket subscriptions, and earlier trade submissions. They don't place orders or move funds. Read live positions and open orders from Hyperliquid over the websocket.
148
153
 
149
- Opening positions and changing leverage are available by request. Cancellation and reduce-only exits keep working even when Whop pauses new positions.
154
+ Trade writes are retired. `whop trades create`, `whop trades cancel` and `whop trades leverage` return `410 Gone` and send nothing to Hyperliquid. `whop trades get trop_xxx` returns an earlier submission record, not live fills.
150
155
 
151
156
  ## Serve the customers you have
152
157
 
@@ -175,7 +180,7 @@ whop media generate --type image --prompt "A running club at sunrise" --wait
175
180
  whop ads create \
176
181
  --title "Launch ad" --headlines "Find your stride" --call_to_action sign_up \
177
182
  --url "https://whop.com/your-store" \
178
- --creatives '[{"id":"file_x"}]' --social_accounts '[{"id":"sacc_x"}]' \
183
+ --creatives '[{"id":"file_x"}]' --external_accounts '[{"id":"sacc_x"}]' \
179
184
  --ad_group '{"title":"US broad","conversion_location":"website","ad_campaign":{"title":"Growth","platform":"meta","objective":"sales","status":"draft","budget_amount":25,"budget_optimization":"ad_campaign"}}'
180
185
  whop ad-campaigns update <adcamp_id> --status active # launch when ready
181
186
  ```
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
+ // If the importer is in node compatibility mode or this is not an ESM
32
+ // file that has been converted to a CommonJS file using a Babel-
33
+ // compatible transform (i.e. "__esModule" has not been set), then set
34
+ // "default" to the CommonJS "module.exports" for node compatibility.
35
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
+ mod
37
+ ));
38
+
39
+ export {
40
+ __require,
41
+ __commonJS,
42
+ __export,
43
+ __toESM
44
+ };
45
+ //# sourceMappingURL=chunk-M2N2M5EJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}