返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
e

entradex

Use the EntradeX CLI for DNSE workflows. Use when (1) setting DNSE API credentials via env vars or config file, (2) reading account, market, and order data, (3) placing, modifying, or canceling real trades.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.16
安全检测
已通过
475
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

entradex

# EntradeX CLI Install ```bash npm i -g entradex-cli ``` ## Usage ```bash entradex [global-options] [command] ``` ## Configuration Credential priority order: 1. Config file (`~/.entradex-cli/config.json`) - recommended 2. Environment variables (`DNSE_API_KEY`, `DNSE_API_SECRET`) 3. Global command options (`--api-key`, `--api-secret`) Setup and inspect config: ```bash entradex config set --key "<api-key>" --secret "<api-secret>" entradex config set entradex config get entradex config clear ``` ## Security & Safety **Before using this skill:** - Verify the npm package: `npm view entradex-cli` - check author is `hieuhani` and repository matches - Inspect package contents: `npm pack entradex-cli --dry-run` or view on [npmjs.com](https://www.npmjs.com/package/entradex-cli) - Treat `DNSE_API_KEY` and `DNSE_API_SECRET` as highly sensitive trading credentials **Autonomous execution warning:** - This skill can place **real trades** using provided credentials - Consider using a separate limited-permission account - Rotate API keys if you suspect unauthorized access ## Global Options - `--api-key <key>` DNSE API key - `--api-secret <secret>` DNSE API secret - `--base-url <url>` API base URL (default: `https://openapi.dnse.com.vn`) - `--debug` Show request details - `-V, --version` Show CLI version - `-h, --help` Show help ## Commands ### Config ```bash entradex config set [--key <key>] [--secret <secret>] [--url <url>] entradex config get entradex config clear ``` ### Account ```bash entradex account list entradex account balances <accountNo> entradex account loan-packages <accountNo> <marketType> [--symbol <symbol>] ``` ### Trade ```bash entradex trade order <marketType> <symbol> <side> <orderType> <price> <quantity> <tradingToken> [--price-stop <price>] entradex trade modify <accountNo> <orderId> <marketType> <symbol> <side> <orderType> <price> <quantity> <tradingToken> [--price-stop <price>] entradex trade cancel <accountNo> <orderId> <marketType> <tradingToken> ``` Parameters: - `marketType` (enum): `STOCK`, `DERIVATIVE` - `side` (enum): `NB` (buy), `NS` (sell) - `orderType` (enum): `ATO`, `ATC`, `LO`, `MTL`, `MOK`, `PLO` - `ATO`: At The Opening - `ATC`: At The Close - `LO`: Limit Order - `MTL`: Market To Limit - `MOK`: Market Order Kill - `PLO`: Post Limit Order - `price` (number): unit price; follow DNSE tick-size/market constraints - If `orderType=LO`, `price` must be greater than `0`. - If `orderType` is anything other than `LO` (`ATO`, `ATC`, `MTL`, `MOK`, `PLO`), `price` must be exactly `0`. - `quantity` (integer): order quantity; must satisfy market lot rules - For `marketType=STOCK`, valid quantity is either: - Board lot: multiples of 100 (`100`, `200`, ...) - Odd lot: integers from `1` to `99` - For `marketType=STOCK`, values like `101`, `102`, ... are invalid odd lots and must be rejected. - `tradingToken` (string): token from `entradex auth create-token` Normalization rules for user intent: - If user says `buy`/`sell`, map to `NB`/`NS`. - Uppercase enum-style params before execution (`marketType`, `side`, `orderType`). - If user provides an unsupported enum value, stop and ask for a valid value. - If `orderType` is not supported by the target market/session, stop and ask user to choose a supported type. ### Order ```bash entradex order list <accountNo> <marketType> entradex order detail <accountNo> <orderId> <marketType> entradex order history <accountNo> <marketType> [--from <date>] [--to <date>] [--page-size <size>] [--page-index <index>] entradex order deals <accountNo> <marketType> ``` ### Market ```bash entradex market secdef <symbol> [--board-id <id>] entradex market ppse <accountNo> <marketType> <symbol> <price> <loanPackageId> ``` ### Auth ```bash entradex auth send-otp <email> [--otp-type <type>] entradex auth create-token <otpType> <passcode> ``` ### Dry Run ```bash entradex dry-run accounts entradex dry-run balances <accountNo> entradex dry-run order <marketType> <symbol> <side> <orderType> <price> <quantity> [--price-stop <price>] ``` ## Common Workflow ```bash # 1) Configure credentials entradex config set # 2) Send OTP entradex auth send-otp user@example.com # 3) Create trading token with passcode entradex auth create-token smart_otp <passcode> # 4) Place an order entradex trade order STOCK VIC NB LO 15000 100 <trading-token> ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 entradex-1776312087 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 entradex-1776312087 技能

通过命令行安装

skillhub install entradex-1776312087

下载

⬇ 下载 entradex v0.1.16(免费)

文件大小: 2.52 KB | 发布时间: 2026-4-16 16:57

v0.1.16 最新 2026-4-16 16:57
No changes detected in this version.

- Version 0.1.16 released with no updates to documentation or code files.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部