Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Capability Matrix
Centralized Exchanges
AscendEx
Backpack
BigONE
Binance
Bitfinex
bitFlyer
Bitget
Bithumb
Bitstamp
Bybit
Coincheck
Coinone
CoinW
Crypto.com
DeepCoin
Deribit
DigiFinex
Gate
Gemini
HashKey
HitBTC
HTX
Korbit
Kraken
KuCoin
LBank
MEXC
OKX
Poloniex
Upbit
WEEX
WOO X
Zaif
Decentralized Exchanges (DEX)
Prediction Markets
Securities and Futures
On-chain & Custom

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).

FieldRequired
Access KeyYes
Secret KeyYes

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's LIMIT_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); without limit, at most 100 orders are returned.
  • exchange.GetTickers() skips pairs whose last, open, high and low prices and volume are all 0 (no trades).