@bithumb-official/bithumb-cli 0.1.16
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/dist/account-UVDNQRB7.js +78 -0
- package/dist/account-UVDNQRB7.js.map +1 -0
- package/dist/account-YNPFEHQT.js +90 -0
- package/dist/account-YNPFEHQT.js.map +1 -0
- package/dist/chunk-AUQ7MB6O.js +143 -0
- package/dist/chunk-AUQ7MB6O.js.map +1 -0
- package/dist/chunk-FYO6WLZI.js +72 -0
- package/dist/chunk-FYO6WLZI.js.map +1 -0
- package/dist/chunk-YXIFBNEQ.js +3488 -0
- package/dist/chunk-YXIFBNEQ.js.map +1 -0
- package/dist/config-2P3Y3TQH.js +182 -0
- package/dist/config-2P3Y3TQH.js.map +1 -0
- package/dist/config-6BIS2PLC.js +154 -0
- package/dist/config-6BIS2PLC.js.map +1 -0
- package/dist/deposit-HNUSMKX5.js +161 -0
- package/dist/deposit-HNUSMKX5.js.map +1 -0
- package/dist/deposit-TCMLJ7MI.js +169 -0
- package/dist/deposit-TCMLJ7MI.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +211 -0
- package/dist/index.js.map +1 -0
- package/dist/market-EEF3KI4T.js +219 -0
- package/dist/market-EEF3KI4T.js.map +1 -0
- package/dist/market-GLU62BWO.js +304 -0
- package/dist/market-GLU62BWO.js.map +1 -0
- package/dist/setup-LAAVO63H.js +21 -0
- package/dist/setup-LAAVO63H.js.map +1 -0
- package/dist/system-BRZY7PTZ.js +98 -0
- package/dist/system-BRZY7PTZ.js.map +1 -0
- package/dist/system-XRZ2KHXL.js +69 -0
- package/dist/system-XRZ2KHXL.js.map +1 -0
- package/dist/trade-FERR47DJ.js +233 -0
- package/dist/trade-FERR47DJ.js.map +1 -0
- package/dist/trade-H4G5P2W2.js +159 -0
- package/dist/trade-H4G5P2W2.js.map +1 -0
- package/dist/twap-44UCVSIR.js +91 -0
- package/dist/twap-44UCVSIR.js.map +1 -0
- package/dist/twap-4LRBUMTG.js +82 -0
- package/dist/twap-4LRBUMTG.js.map +1 -0
- package/dist/withdraw-IRMICBD2.js +203 -0
- package/dist/withdraw-IRMICBD2.js.map +1 -0
- package/dist/withdraw-TLGVRUBS.js +161 -0
- package/dist/withdraw-TLGVRUBS.js.map +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
configFilePath,
|
|
4
|
+
readFullConfig,
|
|
5
|
+
writeFullConfig
|
|
6
|
+
} from "./chunk-YXIFBNEQ.js";
|
|
7
|
+
import {
|
|
8
|
+
errorLine,
|
|
9
|
+
outputLine,
|
|
10
|
+
printJson,
|
|
11
|
+
printKv,
|
|
12
|
+
printTable
|
|
13
|
+
} from "./chunk-FYO6WLZI.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/config.ts
|
|
16
|
+
import { existsSync, mkdirSync } from "fs";
|
|
17
|
+
import { dirname } from "path";
|
|
18
|
+
import { createInterface } from "readline";
|
|
19
|
+
function handleConfigCommand(action, rest, v) {
|
|
20
|
+
const json = v.json ?? false;
|
|
21
|
+
switch (action) {
|
|
22
|
+
case "show":
|
|
23
|
+
return cmdConfigShow(json);
|
|
24
|
+
case "init":
|
|
25
|
+
return cmdConfigInit();
|
|
26
|
+
case "set":
|
|
27
|
+
return cmdConfigSet(rest[0], rest[1], v.profile);
|
|
28
|
+
case "add-profile":
|
|
29
|
+
return cmdConfigAddProfile(rest, v);
|
|
30
|
+
case "list-profiles":
|
|
31
|
+
return cmdConfigListProfiles(json);
|
|
32
|
+
case "use":
|
|
33
|
+
return cmdConfigUse(rest[0]);
|
|
34
|
+
case "path":
|
|
35
|
+
outputLine(configFilePath());
|
|
36
|
+
return;
|
|
37
|
+
default:
|
|
38
|
+
if (!action) {
|
|
39
|
+
return cmdConfigShow(json);
|
|
40
|
+
}
|
|
41
|
+
errorLine(`Unknown config command: ${action}. Available: show, init, set, add-profile, list-profiles, use, path`);
|
|
42
|
+
process.exitCode = 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function cmdConfigShow(json) {
|
|
46
|
+
const config = readFullConfig();
|
|
47
|
+
if (json) return printJson(config);
|
|
48
|
+
outputLine(`Config file: ${configFilePath()}`);
|
|
49
|
+
if (config.default_profile) {
|
|
50
|
+
outputLine(`Default profile: ${config.default_profile}`);
|
|
51
|
+
}
|
|
52
|
+
outputLine("");
|
|
53
|
+
const profileNames = Object.keys(config.profiles);
|
|
54
|
+
if (profileNames.length === 0) {
|
|
55
|
+
outputLine("No profiles configured. Run 'bithumb config init' to create one.");
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
for (const name of profileNames) {
|
|
59
|
+
const p = config.profiles[name];
|
|
60
|
+
outputLine(`[${name}]`);
|
|
61
|
+
printKv({
|
|
62
|
+
access_key: p.access_key ? `${p.access_key.slice(0, 8)}...` : "(not set)",
|
|
63
|
+
secret_key: p.secret_key ? "***" : "(not set)",
|
|
64
|
+
...p.base_url ? { base_url: p.base_url } : {},
|
|
65
|
+
...p.timeout_ms ? { timeout_ms: p.timeout_ms } : {}
|
|
66
|
+
});
|
|
67
|
+
outputLine("");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function ask(rl, prompt) {
|
|
71
|
+
return new Promise((resolve) => rl.question(prompt, (ans) => resolve(ans.trim())));
|
|
72
|
+
}
|
|
73
|
+
async function cmdConfigInit() {
|
|
74
|
+
const path = configFilePath();
|
|
75
|
+
if (existsSync(path)) {
|
|
76
|
+
outputLine(`Config file already exists: ${path}`);
|
|
77
|
+
outputLine("Use 'bithumb config add-profile' to add a new profile.");
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
81
|
+
try {
|
|
82
|
+
const profileInput = await ask(rl, "Profile name (default): ");
|
|
83
|
+
const profileName = profileInput || "default";
|
|
84
|
+
const accessKey = await ask(rl, "Access key: ");
|
|
85
|
+
const secretKey = await ask(rl, "Secret key: ");
|
|
86
|
+
rl.close();
|
|
87
|
+
const dir = dirname(path);
|
|
88
|
+
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
|
89
|
+
const config = {
|
|
90
|
+
default_profile: profileName,
|
|
91
|
+
profiles: {
|
|
92
|
+
[profileName]: { access_key: accessKey, secret_key: secretKey }
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
writeFullConfig(config);
|
|
96
|
+
outputLine(`
|
|
97
|
+
\u2713 Config file created: ${path}`);
|
|
98
|
+
} catch (e) {
|
|
99
|
+
rl.close();
|
|
100
|
+
throw e;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function cmdConfigSet(key, value, profileName) {
|
|
104
|
+
if (!key || value === void 0) {
|
|
105
|
+
errorLine("Usage: bithumb config set <key> <value> [--profile <name>]");
|
|
106
|
+
errorLine("Keys: access_key, secret_key, base_url, timeout_ms");
|
|
107
|
+
process.exitCode = 1;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const validKeys = /* @__PURE__ */ new Set(["access_key", "secret_key", "base_url", "timeout_ms"]);
|
|
111
|
+
if (!validKeys.has(key)) {
|
|
112
|
+
errorLine(`Invalid key: ${key}. Valid keys: ${[...validKeys].join(", ")}`);
|
|
113
|
+
process.exitCode = 1;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const config = readFullConfig();
|
|
117
|
+
const name = profileName ?? config.default_profile ?? "default";
|
|
118
|
+
if (!config.profiles[name]) {
|
|
119
|
+
config.profiles[name] = {};
|
|
120
|
+
}
|
|
121
|
+
if (key === "timeout_ms") {
|
|
122
|
+
config.profiles[name][key] = Number(value);
|
|
123
|
+
} else {
|
|
124
|
+
config.profiles[name][key] = value;
|
|
125
|
+
}
|
|
126
|
+
writeFullConfig(config);
|
|
127
|
+
outputLine(`Set ${name}.${key}`);
|
|
128
|
+
}
|
|
129
|
+
function cmdConfigAddProfile(rest, _v) {
|
|
130
|
+
const name = rest[0];
|
|
131
|
+
if (!name) {
|
|
132
|
+
errorLine("Usage: bithumb config add-profile <name>");
|
|
133
|
+
process.exitCode = 1;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const config = readFullConfig();
|
|
137
|
+
if (config.profiles[name]) {
|
|
138
|
+
errorLine(`Profile '${name}' already exists.`);
|
|
139
|
+
process.exitCode = 1;
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
config.profiles[name] = {
|
|
143
|
+
access_key: "",
|
|
144
|
+
secret_key: ""
|
|
145
|
+
};
|
|
146
|
+
writeFullConfig(config);
|
|
147
|
+
outputLine(`Profile '${name}' added. Edit ${configFilePath()} to set credentials.`);
|
|
148
|
+
}
|
|
149
|
+
function cmdConfigListProfiles(json) {
|
|
150
|
+
const config = readFullConfig();
|
|
151
|
+
const profiles = Object.entries(config.profiles).map(([name, p]) => ({
|
|
152
|
+
name,
|
|
153
|
+
default: name === (config.default_profile ?? "default") ? "*" : "",
|
|
154
|
+
has_credentials: p.access_key && p.secret_key ? "yes" : "no"
|
|
155
|
+
}));
|
|
156
|
+
if (json) return printJson(profiles);
|
|
157
|
+
if (profiles.length === 0) {
|
|
158
|
+
outputLine("No profiles configured.");
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
printTable(profiles);
|
|
162
|
+
}
|
|
163
|
+
function cmdConfigUse(profileName) {
|
|
164
|
+
if (!profileName) {
|
|
165
|
+
errorLine("Usage: bithumb config use <profile-name>");
|
|
166
|
+
process.exitCode = 1;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const config = readFullConfig();
|
|
170
|
+
if (!config.profiles[profileName]) {
|
|
171
|
+
errorLine(`Profile '${profileName}' not found. Run 'bithumb config list-profiles' to see available profiles.`);
|
|
172
|
+
process.exitCode = 1;
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
config.default_profile = profileName;
|
|
176
|
+
writeFullConfig(config);
|
|
177
|
+
outputLine(`Default profile set to '${profileName}'`);
|
|
178
|
+
}
|
|
179
|
+
export {
|
|
180
|
+
handleConfigCommand
|
|
181
|
+
};
|
|
182
|
+
//# sourceMappingURL=config-2P3Y3TQH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/config.ts"],"sourcesContent":["import {\n configFilePath,\n readFullConfig,\n writeFullConfig,\n} from \"@bithumb-official/bithumb-core\";\nimport type { BithumbTomlConfig } from \"@bithumb-official/bithumb-core\";\nimport type { CliValues } from \"../parser.js\";\nimport { outputLine, errorLine, printJson, printKv, printTable } from \"../formatter.js\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport { dirname } from \"node:path\";\nimport { createInterface } from \"node:readline\";\n\nexport function handleConfigCommand(\n action: string,\n rest: string[],\n v: CliValues,\n): void | Promise<void> {\n const json = v.json ?? false;\n switch (action) {\n case \"show\":\n return cmdConfigShow(json);\n case \"init\":\n return cmdConfigInit();\n case \"set\":\n return cmdConfigSet(rest[0], rest[1], v.profile);\n case \"add-profile\":\n return cmdConfigAddProfile(rest, v);\n case \"list-profiles\":\n return cmdConfigListProfiles(json);\n case \"use\":\n return cmdConfigUse(rest[0]);\n case \"path\":\n outputLine(configFilePath());\n return;\n default:\n if (!action) {\n return cmdConfigShow(json);\n }\n errorLine(`Unknown config command: ${action}. Available: show, init, set, add-profile, list-profiles, use, path`);\n process.exitCode = 1;\n }\n}\n\nfunction cmdConfigShow(json: boolean): void {\n const config = readFullConfig();\n if (json) return printJson(config);\n outputLine(`Config file: ${configFilePath()}`);\n if (config.default_profile) {\n outputLine(`Default profile: ${config.default_profile}`);\n }\n outputLine(\"\");\n const profileNames = Object.keys(config.profiles);\n if (profileNames.length === 0) {\n outputLine(\"No profiles configured. Run 'bithumb config init' to create one.\");\n return;\n }\n for (const name of profileNames) {\n const p = config.profiles[name];\n outputLine(`[${name}]`);\n printKv({\n access_key: p.access_key ? `${p.access_key.slice(0, 8)}...` : \"(not set)\",\n secret_key: p.secret_key ? \"***\" : \"(not set)\",\n ...(p.base_url ? { base_url: p.base_url } : {}),\n ...(p.timeout_ms ? { timeout_ms: p.timeout_ms } : {}),\n });\n outputLine(\"\");\n }\n}\n\nfunction ask(rl: ReturnType<typeof createInterface>, prompt: string): Promise<string> {\n return new Promise((resolve) => rl.question(prompt, (ans) => resolve(ans.trim())));\n}\n\nasync function cmdConfigInit(): Promise<void> {\n const path = configFilePath();\n if (existsSync(path)) {\n outputLine(`Config file already exists: ${path}`);\n outputLine(\"Use 'bithumb config add-profile' to add a new profile.\");\n return;\n }\n\n const rl = createInterface({ input: process.stdin, output: process.stdout });\n try {\n const profileInput = await ask(rl, \"Profile name (default): \");\n const profileName = profileInput || \"default\";\n const accessKey = await ask(rl, \"Access key: \");\n const secretKey = await ask(rl, \"Secret key: \");\n rl.close();\n\n const dir = dirname(path);\n if (!existsSync(dir)) mkdirSync(dir, { recursive: true });\n\n const config: BithumbTomlConfig = {\n default_profile: profileName,\n profiles: {\n [profileName]: { access_key: accessKey, secret_key: secretKey },\n },\n };\n writeFullConfig(config);\n outputLine(`\\n✓ Config file created: ${path}`);\n } catch (e) {\n rl.close();\n throw e;\n }\n}\n\nfunction cmdConfigSet(key: string | undefined, value: string | undefined, profileName?: string): void {\n if (!key || value === undefined) {\n errorLine(\"Usage: bithumb config set <key> <value> [--profile <name>]\");\n errorLine(\"Keys: access_key, secret_key, base_url, timeout_ms\");\n process.exitCode = 1;\n return;\n }\n const validKeys = new Set([\"access_key\", \"secret_key\", \"base_url\", \"timeout_ms\"]);\n if (!validKeys.has(key)) {\n errorLine(`Invalid key: ${key}. Valid keys: ${[...validKeys].join(\", \")}`);\n process.exitCode = 1;\n return;\n }\n const config = readFullConfig();\n const name = profileName ?? config.default_profile ?? \"default\";\n if (!config.profiles[name]) {\n config.profiles[name] = {};\n }\n if (key === \"timeout_ms\") {\n (config.profiles[name] as Record<string, unknown>)[key] = Number(value);\n } else {\n (config.profiles[name] as Record<string, unknown>)[key] = value;\n }\n writeFullConfig(config);\n outputLine(`Set ${name}.${key}`);\n}\n\nfunction cmdConfigAddProfile(rest: string[], _v: CliValues): void {\n const name = rest[0];\n if (!name) {\n errorLine(\"Usage: bithumb config add-profile <name>\");\n process.exitCode = 1;\n return;\n }\n const config = readFullConfig();\n if (config.profiles[name]) {\n errorLine(`Profile '${name}' already exists.`);\n process.exitCode = 1;\n return;\n }\n config.profiles[name] = {\n access_key: \"\",\n secret_key: \"\",\n };\n writeFullConfig(config);\n outputLine(`Profile '${name}' added. Edit ${configFilePath()} to set credentials.`);\n}\n\nfunction cmdConfigListProfiles(json: boolean): void {\n const config = readFullConfig();\n const profiles = Object.entries(config.profiles).map(([name, p]) => ({\n name,\n default: name === (config.default_profile ?? \"default\") ? \"*\" : \"\",\n has_credentials: p.access_key && p.secret_key ? \"yes\" : \"no\",\n }));\n if (json) return printJson(profiles);\n if (profiles.length === 0) {\n outputLine(\"No profiles configured.\");\n return;\n }\n printTable(profiles);\n}\n\nfunction cmdConfigUse(profileName: string | undefined): void {\n if (!profileName) {\n errorLine(\"Usage: bithumb config use <profile-name>\");\n process.exitCode = 1;\n return;\n }\n const config = readFullConfig();\n if (!config.profiles[profileName]) {\n errorLine(`Profile '${profileName}' not found. Run 'bithumb config list-profiles' to see available profiles.`);\n process.exitCode = 1;\n return;\n }\n config.default_profile = profileName;\n writeFullConfig(config);\n outputLine(`Default profile set to '${profileName}'`);\n}\n"],"mappings":";;;;;;;;;;;;;;;AAQA,SAAS,YAAY,iBAAiB;AACtC,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAEzB,SAAS,oBACd,QACA,MACA,GACsB;AACtB,QAAM,OAAO,EAAE,QAAQ;AACvB,UAAQ,QAAQ;AAAA,IACd,KAAK;AACH,aAAO,cAAc,IAAI;AAAA,IAC3B,KAAK;AACH,aAAO,cAAc;AAAA,IACvB,KAAK;AACH,aAAO,aAAa,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,OAAO;AAAA,I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AA,EACF;AACA,QAAM,SAAS,eAAe;AAC9B,MAAI,CAAC,OAAO,SAAS,WAAW,GAAG;AACjC,cAAU,YAAY,WAAW,4EAA4E;AAC7G,YAAQ,WAAW;AACnB;AAAA,EACF;AACA,SAAO,kBAAkB;AACzB,kBAAgB,MAAM;AACtB,aAAW,2BAA2B,WAAW,GAAG;AACtD;","names":[]}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/help/config.ts
|
|
4
|
+
var MODULE_HELP = `
|
|
5
|
+
Usage: bithumb config <command> [options]
|
|
6
|
+
|
|
7
|
+
Commands:
|
|
8
|
+
show Show current configuration
|
|
9
|
+
init Create config file
|
|
10
|
+
set Set a config value
|
|
11
|
+
add-profile Add a new profile
|
|
12
|
+
list-profiles List all profiles
|
|
13
|
+
use Set default profile
|
|
14
|
+
path Show config file path
|
|
15
|
+
|
|
16
|
+
Options:
|
|
17
|
+
--profile <name> Target profile (default: current default)
|
|
18
|
+
|
|
19
|
+
Examples:
|
|
20
|
+
bithumb config init
|
|
21
|
+
bithumb config set access_key your_key --profile trading
|
|
22
|
+
bithumb config use trading
|
|
23
|
+
bithumb config list-profiles
|
|
24
|
+
`;
|
|
25
|
+
var SHOW_HELP = `
|
|
26
|
+
Usage: bithumb config show [options]
|
|
27
|
+
|
|
28
|
+
Show the current configuration (active profile and resolved values).
|
|
29
|
+
|
|
30
|
+
Required:
|
|
31
|
+
(none)
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
--profile <name> Show configuration for a specific profile
|
|
35
|
+
|
|
36
|
+
Examples:
|
|
37
|
+
bithumb config show
|
|
38
|
+
bithumb config show --profile trading
|
|
39
|
+
`;
|
|
40
|
+
var INIT_HELP = `
|
|
41
|
+
Usage: bithumb config init
|
|
42
|
+
|
|
43
|
+
Create a new config file interactively.
|
|
44
|
+
|
|
45
|
+
You will be prompted for:
|
|
46
|
+
- Profile name (default: "default")
|
|
47
|
+
- Access key
|
|
48
|
+
- Secret key
|
|
49
|
+
|
|
50
|
+
The config file is written to the standard config path. If a config file
|
|
51
|
+
already exists, init exits without overwriting; use 'config add-profile'
|
|
52
|
+
instead to add additional profiles.
|
|
53
|
+
|
|
54
|
+
Required:
|
|
55
|
+
(none \u2014 prompts run interactively on stdin)
|
|
56
|
+
|
|
57
|
+
Options:
|
|
58
|
+
(none)
|
|
59
|
+
|
|
60
|
+
Examples:
|
|
61
|
+
bithumb config init
|
|
62
|
+
`;
|
|
63
|
+
var SET_HELP = `
|
|
64
|
+
Usage: bithumb config set <key> <value> [options]
|
|
65
|
+
|
|
66
|
+
Set a configuration value for a profile.
|
|
67
|
+
|
|
68
|
+
Required arguments (in order):
|
|
69
|
+
<key> Config key (allowed: access_key, secret_key, base_url, timeout_ms)
|
|
70
|
+
<value> Value to assign
|
|
71
|
+
|
|
72
|
+
Options:
|
|
73
|
+
--profile <name> Target profile (default: current default profile)
|
|
74
|
+
|
|
75
|
+
Examples:
|
|
76
|
+
bithumb config set access_key your_key
|
|
77
|
+
bithumb config set secret_key your_secret --profile trading
|
|
78
|
+
bithumb config set base_url https://api.bithumb.com
|
|
79
|
+
bithumb config set timeout_ms 5000
|
|
80
|
+
`;
|
|
81
|
+
var ADD_PROFILE_HELP = `
|
|
82
|
+
Usage: bithumb config add-profile <name>
|
|
83
|
+
|
|
84
|
+
Add a new (empty) profile to the config file. Use 'config set' afterwards
|
|
85
|
+
to populate access_key / secret_key for the new profile.
|
|
86
|
+
|
|
87
|
+
Required arguments:
|
|
88
|
+
<name> Profile name to create
|
|
89
|
+
|
|
90
|
+
Options:
|
|
91
|
+
(none)
|
|
92
|
+
|
|
93
|
+
Examples:
|
|
94
|
+
bithumb config add-profile trading
|
|
95
|
+
bithumb config add-profile staging
|
|
96
|
+
`;
|
|
97
|
+
var LIST_PROFILES_HELP = `
|
|
98
|
+
Usage: bithumb config list-profiles
|
|
99
|
+
|
|
100
|
+
List all configured profiles.
|
|
101
|
+
|
|
102
|
+
Required:
|
|
103
|
+
(none)
|
|
104
|
+
|
|
105
|
+
Options:
|
|
106
|
+
(none)
|
|
107
|
+
|
|
108
|
+
Examples:
|
|
109
|
+
bithumb config list-profiles
|
|
110
|
+
bithumb config list-profiles --json
|
|
111
|
+
`;
|
|
112
|
+
var USE_HELP = `
|
|
113
|
+
Usage: bithumb config use <name>
|
|
114
|
+
|
|
115
|
+
Set the default profile used when --profile is not specified.
|
|
116
|
+
|
|
117
|
+
Required arguments:
|
|
118
|
+
<name> Profile name to mark as default
|
|
119
|
+
|
|
120
|
+
Options:
|
|
121
|
+
(none)
|
|
122
|
+
|
|
123
|
+
Examples:
|
|
124
|
+
bithumb config use trading
|
|
125
|
+
bithumb config use default
|
|
126
|
+
`;
|
|
127
|
+
var PATH_HELP = `
|
|
128
|
+
Usage: bithumb config path
|
|
129
|
+
|
|
130
|
+
Show the absolute path of the config file used by the CLI.
|
|
131
|
+
|
|
132
|
+
Required:
|
|
133
|
+
(none)
|
|
134
|
+
|
|
135
|
+
Options:
|
|
136
|
+
(none)
|
|
137
|
+
|
|
138
|
+
Examples:
|
|
139
|
+
bithumb config path
|
|
140
|
+
`;
|
|
141
|
+
var ACTION_HELP = {
|
|
142
|
+
show: SHOW_HELP,
|
|
143
|
+
init: INIT_HELP,
|
|
144
|
+
set: SET_HELP,
|
|
145
|
+
"add-profile": ADD_PROFILE_HELP,
|
|
146
|
+
"list-profiles": LIST_PROFILES_HELP,
|
|
147
|
+
use: USE_HELP,
|
|
148
|
+
path: PATH_HELP
|
|
149
|
+
};
|
|
150
|
+
export {
|
|
151
|
+
ACTION_HELP,
|
|
152
|
+
MODULE_HELP
|
|
153
|
+
};
|
|
154
|
+
//# sourceMappingURL=config-6BIS2PLC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/help/config.ts"],"sourcesContent":["export const MODULE_HELP = `\nUsage: bithumb config <command> [options]\n\nCommands:\n show Show current configuration\n init Create config file\n set Set a config value\n add-profile Add a new profile\n list-profiles List all profiles\n use Set default profile\n path Show config file path\n\nOptions:\n --profile <name> Target profile (default: current default)\n\nExamples:\n bithumb config init\n bithumb config set access_key your_key --profile trading\n bithumb config use trading\n bithumb config list-profiles\n`;\n\nconst SHOW_HELP = `\nUsage: bithumb config show [options]\n\nShow the current configuration (active profile and resolved values).\n\nRequired:\n (none)\n\nOptions:\n --profile <name> Show configuration for a specific profile\n\nExamples:\n bithumb config show\n bithumb config show --profile trading\n`;\n\nconst INIT_HELP = `\nUsage: bithumb config init\n\nCreate a new config file interactively.\n\nYou will be prompted for:\n - Profile name (default: \"default\")\n - Access key\n - Secret key\n\nThe config file is written to the standard config path. If a config file\nalready exists, init exits without overwriting; use 'config add-profile'\ninstead to add additional profiles.\n\nRequired:\n (none — prompts run interactively on stdin)\n\nOptions:\n (none)\n\nExamples:\n bithumb config init\n`;\n\nconst SET_HELP = `\nUsage: bithumb config set <key> <value> [options]\n\nSet a configuration value for a profile.\n\nRequired arguments (in order):\n <key> Config key (allowed: access_key, secret_key, base_url, timeout_ms)\n <value> Value to assign\n\nOptions:\n --profile <name> Target profile (default: current default profile)\n\nExamples:\n bithumb config set access_key your_key\n bithumb config set secret_key your_secret --profile trading\n bithumb config set base_url https://api.bithumb.com\n bithumb config set timeout_ms 5000\n`;\n\nconst ADD_PROFILE_HELP = `\nUsage: bithumb config add-profile <name>\n\nAdd a new (empty) profile to the config file. Use 'config set' afterwards\nto populate access_key / secret_key for the new profile.\n\nRequired arguments:\n <name> Profile name to create\n\nOptions:\n (none)\n\nExamples:\n bithumb config add-profile trading\n bithumb config add-profile staging\n`;\n\nconst LIST_PROFILES_HELP = `\nUsage: bithumb config list-profiles\n\nList all configured profiles.\n\nRequired:\n (none)\n\nOptions:\n (none)\n\nExamples:\n bithumb config list-profiles\n bithumb config list-profiles --json\n`;\n\nconst USE_HELP = `\nUsage: bithumb config use <name>\n\nSet the default profile used when --profile is not specified.\n\nRequired arguments:\n <name> Profile name to mark as default\n\nOptions:\n (none)\n\nExamples:\n bithumb config use trading\n bithumb config use default\n`;\n\nconst PATH_HELP = `\nUsage: bithumb config path\n\nShow the absolute path of the config file used by the CLI.\n\nRequired:\n (none)\n\nOptions:\n (none)\n\nExamples:\n bithumb config path\n`;\n\nexport const ACTION_HELP: Record<string, string> = {\n show: SHOW_HELP,\n init: INIT_HELP,\n set: SET_HELP,\n \"add-profile\": ADD_PROFILE_HELP,\n \"list-profiles\": LIST_PROFILES_HELP,\n use: USE_HELP,\n path: PATH_HELP,\n};\n"],"mappings":";;;AAAO,IAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB3B,IAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBlB,IAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBlB,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBjB,IAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBzB,IAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgB3B,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBjB,IAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeX,IAAM,cAAsC;AAAA,EACjD,MAAM;AAAA,EACN,MAAM;AAAA,EACN,KAAK;AAAA,EACL,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,KAAK;AAAA,EACL,MAAM;AACR;","names":[]}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/help/deposit.ts
|
|
4
|
+
var MODULE_HELP = `
|
|
5
|
+
Usage: bithumb deposit <command> [options]
|
|
6
|
+
|
|
7
|
+
Commands:
|
|
8
|
+
get Get specific deposit
|
|
9
|
+
list List coin deposits
|
|
10
|
+
list-krw List KRW deposits
|
|
11
|
+
krw Request KRW deposit (CAUTION)
|
|
12
|
+
generate-address Generate deposit address
|
|
13
|
+
addresses List all deposit addresses
|
|
14
|
+
address Get specific deposit address
|
|
15
|
+
|
|
16
|
+
Run bithumb deposit <command> --help for command-specific options.
|
|
17
|
+
|
|
18
|
+
Examples:
|
|
19
|
+
bithumb deposit list --currency BTC
|
|
20
|
+
bithumb deposit address --currency BTC --net-type BTC
|
|
21
|
+
bithumb deposit addresses
|
|
22
|
+
`;
|
|
23
|
+
var GET_HELP = `
|
|
24
|
+
Usage: bithumb deposit get [options]
|
|
25
|
+
|
|
26
|
+
Get details of a single deposit by UUID for a specific currency.
|
|
27
|
+
|
|
28
|
+
Required:
|
|
29
|
+
--currency <code> Currency code (e.g., BTC)
|
|
30
|
+
--uuid <uuid> Deposit UUID
|
|
31
|
+
|
|
32
|
+
Options:
|
|
33
|
+
(none \u2014 for txid lookup, use 'bithumb deposit list --txids <txid>')
|
|
34
|
+
|
|
35
|
+
Examples:
|
|
36
|
+
bithumb deposit get --currency BTC --uuid abc-123
|
|
37
|
+
`;
|
|
38
|
+
var LIST_HELP = `
|
|
39
|
+
Usage: bithumb deposit list [options]
|
|
40
|
+
|
|
41
|
+
List coin deposits, optionally filtered by currency, state, or identifiers.
|
|
42
|
+
|
|
43
|
+
Required:
|
|
44
|
+
(none \u2014 all filters are optional)
|
|
45
|
+
|
|
46
|
+
Options:
|
|
47
|
+
--currency <code> Currency code (e.g., BTC)
|
|
48
|
+
--state <state> State filter (e.g., done / processing)
|
|
49
|
+
--uuids <uuids> Filter by UUIDs (comma-separated)
|
|
50
|
+
--txids <txids> Filter by transaction IDs (comma-separated)
|
|
51
|
+
--limit <n> Results per page (max 100) (default: 100)
|
|
52
|
+
--page <n> Page number (default: 1)
|
|
53
|
+
--order-by <order> Sort order: asc / desc (default: desc)
|
|
54
|
+
|
|
55
|
+
Examples:
|
|
56
|
+
bithumb deposit list --currency BTC
|
|
57
|
+
bithumb deposit list --state done --limit 50 --order-by desc
|
|
58
|
+
`;
|
|
59
|
+
var LIST_KRW_HELP = `
|
|
60
|
+
Usage: bithumb deposit list-krw [options]
|
|
61
|
+
|
|
62
|
+
List KRW deposits, optionally filtered by state or identifiers.
|
|
63
|
+
|
|
64
|
+
Required:
|
|
65
|
+
(none \u2014 all filters are optional)
|
|
66
|
+
|
|
67
|
+
Options:
|
|
68
|
+
--state <state> State filter (e.g., done / processing)
|
|
69
|
+
--uuids <uuids> Filter by UUIDs (comma-separated)
|
|
70
|
+
--txids <txids> Filter by transaction IDs (comma-separated)
|
|
71
|
+
--limit <n> Results per page (max 100) (default: 100)
|
|
72
|
+
--page <n> Page number (default: 1)
|
|
73
|
+
--order-by <order> Sort order: asc / desc (default: desc)
|
|
74
|
+
|
|
75
|
+
Examples:
|
|
76
|
+
bithumb deposit list-krw
|
|
77
|
+
bithumb deposit list-krw --state done --limit 50
|
|
78
|
+
`;
|
|
79
|
+
var KRW_HELP = `
|
|
80
|
+
Usage: bithumb deposit krw [options]
|
|
81
|
+
|
|
82
|
+
Request a KRW deposit. Triggers a real KRW deposit procedure tied to your
|
|
83
|
+
registered bank/identity \u2014 invoke carefully.
|
|
84
|
+
|
|
85
|
+
Required:
|
|
86
|
+
--amount <amount> Deposit amount (KRW)
|
|
87
|
+
--two-factor-type <type> 2FA type (e.g., kakao)
|
|
88
|
+
|
|
89
|
+
Options:
|
|
90
|
+
(none)
|
|
91
|
+
|
|
92
|
+
Examples:
|
|
93
|
+
bithumb deposit krw --amount 1000000 --two-factor-type kakao
|
|
94
|
+
|
|
95
|
+
Caution:
|
|
96
|
+
- This command initiates the official KRW deposit procedure with Bithumb;
|
|
97
|
+
it is not a sandbox call. Confirm the amount and the registered bank
|
|
98
|
+
account on the Bithumb site BEFORE invoking.
|
|
99
|
+
- 2FA (--two-factor-type) is mandatory; the request fails without it.
|
|
100
|
+
- Once submitted, the deposit follows Bithumb's settlement rules and cannot
|
|
101
|
+
be retracted via CLI \u2014 handle support requests through official channels.
|
|
102
|
+
`;
|
|
103
|
+
var GENERATE_ADDRESS_HELP = `
|
|
104
|
+
Usage: bithumb deposit generate-address [options]
|
|
105
|
+
|
|
106
|
+
Use this only when no deposit address yet exists for the (currency, net-type) pair.
|
|
107
|
+
|
|
108
|
+
Required:
|
|
109
|
+
--currency <code> Currency code (e.g., BTC)
|
|
110
|
+
--net-type <type> Network type (e.g., BTC)
|
|
111
|
+
|
|
112
|
+
Options:
|
|
113
|
+
(none)
|
|
114
|
+
|
|
115
|
+
Examples:
|
|
116
|
+
bithumb deposit generate-address --currency BTC --net-type BTC
|
|
117
|
+
`;
|
|
118
|
+
var ADDRESSES_HELP = `
|
|
119
|
+
Usage: bithumb deposit addresses [options]
|
|
120
|
+
|
|
121
|
+
Return every registered deposit address across all currencies/networks on the account, in one call.
|
|
122
|
+
|
|
123
|
+
Required:
|
|
124
|
+
(none)
|
|
125
|
+
|
|
126
|
+
Options:
|
|
127
|
+
(none)
|
|
128
|
+
|
|
129
|
+
Examples:
|
|
130
|
+
bithumb deposit addresses
|
|
131
|
+
`;
|
|
132
|
+
var ADDRESS_HELP = `
|
|
133
|
+
Usage: bithumb deposit address [options]
|
|
134
|
+
|
|
135
|
+
Look up a single existing deposit address for the given (currency, net-type). Errors if no address has been generated yet;
|
|
136
|
+
use 'bithumb deposit generate-address' first.
|
|
137
|
+
|
|
138
|
+
Required:
|
|
139
|
+
--currency <code> Currency code (e.g., BTC)
|
|
140
|
+
--net-type <type> Network type (e.g., BTC)
|
|
141
|
+
|
|
142
|
+
Options:
|
|
143
|
+
(none)
|
|
144
|
+
|
|
145
|
+
Examples:
|
|
146
|
+
bithumb deposit address --currency BTC --net-type BTC
|
|
147
|
+
`;
|
|
148
|
+
var ACTION_HELP = {
|
|
149
|
+
get: GET_HELP,
|
|
150
|
+
list: LIST_HELP,
|
|
151
|
+
"list-krw": LIST_KRW_HELP,
|
|
152
|
+
krw: KRW_HELP,
|
|
153
|
+
"generate-address": GENERATE_ADDRESS_HELP,
|
|
154
|
+
addresses: ADDRESSES_HELP,
|
|
155
|
+
address: ADDRESS_HELP
|
|
156
|
+
};
|
|
157
|
+
export {
|
|
158
|
+
ACTION_HELP,
|
|
159
|
+
MODULE_HELP
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=deposit-HNUSMKX5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/help/deposit.ts"],"sourcesContent":["export const MODULE_HELP = `\nUsage: bithumb deposit <command> [options]\n\nCommands:\n get Get specific deposit\n list List coin deposits\n list-krw List KRW deposits\n krw Request KRW deposit (CAUTION)\n generate-address Generate deposit address\n addresses List all deposit addresses\n address Get specific deposit address\n\nRun bithumb deposit <command> --help for command-specific options.\n\nExamples:\n bithumb deposit list --currency BTC\n bithumb deposit address --currency BTC --net-type BTC\n bithumb deposit addresses\n`;\n\nconst GET_HELP = `\nUsage: bithumb deposit get [options]\n\nGet details of a single deposit by UUID for a specific currency.\n\nRequired:\n --currency <code> Currency code (e.g., BTC)\n --uuid <uuid> Deposit UUID\n\nOptions:\n (none — for txid lookup, use 'bithumb deposit list --txids <txid>')\n\nExamples:\n bithumb deposit get --currency BTC --uuid abc-123\n`;\n\nconst LIST_HELP = `\nUsage: bithumb deposit list [options]\n\nList coin deposits, optionally filtered by currency, state, or identifiers.\n\nRequired:\n (none — all filters are optional)\n\nOptions:\n --currency <code> Currency code (e.g., BTC)\n --state <state> State filter (e.g., done / processing)\n --uuids <uuids> Filter by UUIDs (comma-separated)\n --txids <txids> Filter by transaction IDs (comma-separated)\n --limit <n> Results per page (max 100) (default: 100)\n --page <n> Page number (default: 1)\n --order-by <order> Sort order: asc / desc (default: desc)\n\nExamples:\n bithumb deposit list --currency BTC\n bithumb deposit list --state done --limit 50 --order-by desc\n`;\n\nconst LIST_KRW_HELP = `\nUsage: bithumb deposit list-krw [options]\n\nList KRW deposits, optionally filtered by state or identifiers.\n\nRequired:\n (none — all filters are optional)\n\nOptions:\n --state <state> State filter (e.g., done / processing)\n --uuids <uuids> Filter by UUIDs (comma-separated)\n --txids <txids> Filter by transaction IDs (comma-separated)\n --limit <n> Results per page (max 100) (default: 100)\n --page <n> Page number (default: 1)\n --order-by <order> Sort order: asc / desc (default: desc)\n\nExamples:\n bithumb deposit list-krw\n bithumb deposit list-krw --state done --limit 50\n`;\n\nconst KRW_HELP = `\nUsage: bithumb deposit krw [options]\n\nRequest a KRW deposit. Triggers a real KRW deposit procedure tied to your\nregistered bank/identity — invoke carefully.\n\nRequired:\n --amount <amount> Deposit amount (KRW)\n --two-factor-type <type> 2FA type (e.g., kakao)\n\nOptions:\n (none)\n\nExamples:\n bithumb deposit krw --amount 1000000 --two-factor-type kakao\n\nCaution:\n - This command initiates the official KRW deposit procedure with Bithumb;\n it is not a sandbox call. Confirm the amount and the registered bank\n account on the Bithumb site BEFORE invoking.\n - 2FA (--two-factor-type) is mandatory; the request fails without it.\n - Once submitted, the deposit follows Bithumb's settlement rules and cannot\n be retracted via CLI — handle support requests through official channels.\n`;\n\nconst GENERATE_ADDRESS_HELP = `\nUsage: bithumb deposit generate-address [options]\n\nUse this only when no deposit address yet exists for the (currency, net-type) pair.\n\nRequired:\n --currency <code> Currency code (e.g., BTC)\n --net-type <type> Network type (e.g., BTC)\n\nOptions:\n (none)\n\nExamples:\n bithumb deposit generate-address --currency BTC --net-type BTC\n`;\n\nconst ADDRESSES_HELP = `\nUsage: bithumb deposit addresses [options]\n\nReturn every registered deposit address across all currencies/networks on the account, in one call.\n\nRequired:\n (none)\n\nOptions:\n (none)\n\nExamples:\n bithumb deposit addresses\n`;\n\nconst ADDRESS_HELP = `\nUsage: bithumb deposit address [options]\n\nLook up a single existing deposit address for the given (currency, net-type). Errors if no address has been generated yet;\nuse 'bithumb deposit generate-address' first.\n\nRequired:\n --currency <code> Currency code (e.g., BTC)\n --net-type <type> Network type (e.g., BTC)\n\nOptions:\n (none)\n\nExamples:\n bithumb deposit address --currency BTC --net-type BTC\n`;\n\nexport const ACTION_HELP: Record<string, string> = {\n get: GET_HELP,\n list: LIST_HELP,\n \"list-krw\": LIST_KRW_HELP,\n krw: KRW_HELP,\n \"generate-address\": GENERATE_ADDRESS_HELP,\n addresses: ADDRESSES_HELP,\n address: ADDRESS_HELP,\n};\n"],"mappings":";;;AAAO,IAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoB3B,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBjB,IAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBlB,IAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBtB,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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