π¦ ClawHub
EntradeX
by @hieuhani
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,...
TERMINAL
clawhub install entradexπ About This Skill
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: openclaw: requires: bins: - entradex env: - DNSE_API_KEY - DNSE_API_SECRET primaryEnv: DNSE_API_KEY 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:
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 "" --secret ""
entradex config set
entradex config get
entradex config clear
Security & Safety
Before using this skill:
npm view entradex-cli - check author is hieuhani and repository matchesnpm pack entradex-cli --dry-run or view on npmjs.comDNSE_API_KEY and DNSE_API_SECRET as highly sensitive trading credentialsAutonomous execution warning:
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 helpCommands
Config
entradex config set [--key ] [--secret ] [--url ]
entradex config get
entradex config clear
Account
entradex account list
entradex account balances
entradex account loan-packages [--symbol ]
Trade
entradex trade order [--price-stop ]
entradex trade modify [--price-stop ]
entradex trade cancel
Parameters:
marketType (enum): STOCK, DERIVATIVEside (enum): NB (buy), NS (sell)orderType (enum): ATO, ATC, LO, MTL, MOK, PLOATO: 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 constraintsorderType=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 rulesmarketType=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-tokenNormalization rules for user intent:
buy/sell, map to NB/NS.marketType, side, orderType).orderType is not supported by the target market/session, stop and ask user to choose a supported type.Order
entradex order list
entradex order detail
entradex order history [--from ] [--to ] [--page-size ] [--page-index ]
entradex order deals
Market
entradex market secdef [--board-id ]
entradex market ppse
Auth
entradex auth send-otp [--otp-type ]
entradex auth create-token
Dry Run
entradex dry-run accounts
entradex dry-run balances
entradex dry-run order [--price-stop ]
Common Workflow
# 1) Configure credentials
entradex config set2) Send OTP
entradex auth send-otp user@example.com3) Create trading token with passcode
entradex auth create-token smart_otp 4) Place an order
entradex trade order STOCK VIC NB LO 15000 100
π‘ Examples
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 "" --secret ""
entradex config set
entradex config get
entradex config clear