Install
openclaw skills install entradexClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
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.
openclaw skills install entradexInstall
npm i -g entradex-cli
entradex [global-options] [command]
Credential priority order:
~/.entradex-cli/config.json) - recommendedDNSE_API_KEY, DNSE_API_SECRET)--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
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:
--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 helpentradex config set [--key <key>] [--secret <secret>] [--url <url>]
entradex config get
entradex config clear
entradex account list
entradex account balances <accountNo>
entradex account loan-packages <accountNo> <marketType> [--symbol <symbol>]
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, DERIVATIVEside (enum): NB (buy), NS (sell)orderType (enum): ATO, ATC, LO, MTL, MOK, PLO
ATO: At The OpeningATC: At The CloseLO: Limit OrderMTL: Market To LimitMOK: Market Order KillPLO: Post Limit Orderprice (number): unit price; follow DNSE tick-size/market constraints
orderType=LO, price must be greater than 0.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
marketType=STOCK, valid quantity is either:
100, 200, ...)1 to 99marketType=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.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>
entradex market secdef <symbol> [--board-id <id>]
entradex market ppse <accountNo> <marketType> <symbol> <price> <loanPackageId>
entradex auth send-otp <email> [--otp-type <type>]
entradex auth create-token <otpType> <passcode>
entradex dry-run accounts
entradex dry-run balances <accountNo>
entradex dry-run order <marketType> <symbol> <side> <orderType> <price> <quantity> [--price-stop <price>]
# 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>