@whop/cli 0.23.1 → 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 +7 -6
- package/dist/chunk-M2N2M5EJ.js +45 -0
- package/dist/chunk-M2N2M5EJ.js.map +1 -0
- package/dist/{dist-KFETZ34P.js → dist-5IGUDZZ5.js} +5897 -493
- package/dist/dist-5IGUDZZ5.js.map +1 -0
- package/dist/index.js +40642 -20332
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/whop/references/ads.md +5 -5
- package/dist/chunk-4MBHKXEL.js +0 -13840
- package/dist/chunk-4MBHKXEL.js.map +0 -1
- package/dist/dist-KFETZ34P.js.map +0 -1
package/README.md
CHANGED
|
@@ -137,20 +137,21 @@ whop products update prod_xxxxxxxx --gallery_images '[{"id":"file_xxxxxxxx"}]'
|
|
|
137
137
|
|
|
138
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.
|
|
139
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
|
+
|
|
140
142
|
## Read trading activity
|
|
141
143
|
|
|
142
|
-
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.
|
|
143
145
|
|
|
144
146
|
```bash
|
|
145
147
|
whop accounts get biz_xxx --include_trading true --format json
|
|
146
148
|
whop users get me --include_trading true --format json
|
|
149
|
+
whop trades list --format json
|
|
147
150
|
```
|
|
148
151
|
|
|
149
|
-
These commands
|
|
150
|
-
|
|
151
|
-
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.
|
|
152
153
|
|
|
153
|
-
|
|
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.
|
|
154
155
|
|
|
155
156
|
## Serve the customers you have
|
|
156
157
|
|
|
@@ -179,7 +180,7 @@ whop media generate --type image --prompt "A running club at sunrise" --wait
|
|
|
179
180
|
whop ads create \
|
|
180
181
|
--title "Launch ad" --headlines "Find your stride" --call_to_action sign_up \
|
|
181
182
|
--url "https://whop.com/your-store" \
|
|
182
|
-
--creatives '[{"id":"file_x"}]' --
|
|
183
|
+
--creatives '[{"id":"file_x"}]' --external_accounts '[{"id":"sacc_x"}]' \
|
|
183
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"}}'
|
|
184
185
|
whop ad-campaigns update <adcamp_id> --status active # launch when ready
|
|
185
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":[]}
|