📈
简介
EntradeX CLI 是越南 DNSE 证券的官方交易终端,支持账户管理、实时行情与真实交易下单,适合需要自动化 VN 股交易的开发者。
原始描述
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,...
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
Claude Codeunzip -o skill.zip -d ~/.claude/skills/entradex/
其它 Agent解压到它自己的 skills 目录,目录名用 entradex
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: entradex description: 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. metadata: entradex: requires: bins: - entradex - entradex-cli env: - DNSE_API_KEY - DNSE_API_SECRET install: - kind: node package: entradex-cli bins: - entradex label: Install EntradeX CLI (npm) homepage: https://www.npmjs.com/package/entradex-cli
EntradeX CLI
Install
npm i -g entradex-cli
Usage
entradex [global-options] [command]
Configuration
Credential priority order:
- Config file (
~/.entradex-cli/config.json) - recommended - Environment variables (
DNSE_API_KEY,DNSE_API_SECRET) - 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 ishieuhaniand repository matches - Inspect package contents:
npm pack entradex-cli --dry-runor view on npmjs.com - Treat
DNSE_API_KEYandDNSE_API_SECRETas 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)--debugShow request details-V, --versionShow CLI version-h, --helpShow 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:HOSE,HNX,UPCOMside:buy,sellorderType: for examplelo,lo_to,mp,mok
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 HOSE VIC buy lo 15000 100 <trading-token>
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。