← 返回
开发者工具 Key 中文

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,...
使用EntradeX CLI处理DNSE工作流,包括通过环境变量或配置文件设置API凭证,以及读取账户、市场和订单数据
hieuhani
开发者工具 clawhub v0.1.16 1 版本 99703.6 Key: 需要
★ 2
Stars
📥 969
下载
💾 8
安装
1
版本
#latest

概述

EntradeX CLI

Install

npm i -g entradex-cli

Usage

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:

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
  • 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 DNSE API key
  • --api-secret DNSE API secret
  • --base-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

entradex config set [--key <key>] [--secret <secret>] [--url <url>]
entradex config get
entradex config clear

Account

entradex account list
entradex account balances <accountNo>
entradex account loan-packages <accountNo> <marketType> [--symbol <symbol>]

Trade

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

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

entradex market secdef <symbol> [--board-id <id>]
entradex market ppse <accountNo> <marketType> <symbol> <price> <loanPackageId>

Auth

entradex auth send-otp <email> [--otp-type <type>]
entradex auth create-token <otpType> <passcode>

Dry Run

entradex dry-run accounts
entradex dry-run balances <accountNo>
entradex dry-run order <marketType> <symbol> <side> <orderType> <price> <quantity> [--price-stop <price>]

Common Workflow

# 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>

版本历史

共 1 个版本

  • v0.1.16 当前
    2026-03-29 13:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,768
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,992
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,120