HashKey
Spot trading on the Hong Kong-based exchange HashKey (API address https://api-pro.hashkey.com), with pairs quoted in USDT, USDC, USD, HKD and others. It uses REST only, with no market-data or order push. Private endpoints are signed with a HashKey API key (Access Key and Secret Key). Conditional orders and order amendment are not supported.
Names and Configuration
exchange.GetName(): HashKey (Spot).
| Field | Required |
|---|---|
| Access Key | Yes |
| Secret Key | Yes |
Trading Pairs and Contract Codes
Pair examples: BTC_USDT, ETH_USD, BTC_HKD
Trading pairs are written BASE_QUOTE, matching the HashKey native code BTCUSDT; HKD-quoted pairs are available.
Function Support
Not supported (the call fails with an error and returns null): exchange.ModifyOrder, exchange.CreateConditionOrder, exchange.ModifyConditionOrder, exchange.CancelConditionOrder, exchange.GetConditionOrder, exchange.GetConditionOrders, exchange.GetHistoryConditionOrders.
Served through a fallback:
exchange.GetRecords: Native periods are 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w, 1M; other periods are synthesized by the docker.
Notes
- Limit orders support IOC, FOK and maker-only (
postOnly, HashKey'sLIMIT_MAKER); market orders do not support maker-only or FOK and report an error when they are passed. exchange.GetHistoryOrders()returns finished orders only (not open or partially filled orders still on the book); withoutlimit, at most 100 orders are returned.exchange.GetTickers()skips pairs whose last, open, high and low prices and volume are all 0 (no trades).