This is Huobi C++ SDK, This is a lightweight c++ library, you can import to your c++ project and use this SDK to query all market data, trading and manage your account.
The SDK supports both synchronous RESTful API invoking, and subscribe the market data from the Websocket connection.
version 1.0.10 2020-01-06
- add new api
1. POST /v1/order/batch-orders 2. POST /v2/sub-user/management
- modify api
1. POST /v1/order/orders/batchcancel param add client-order-ids return success and failed detail info
version 1.0.9 2019-12-11
- add subscribe
add subscribe accounts.update#{mode} add subscribe trade.clearing#${symbol}
version 1.0.8 2019-11-29
- update example demo, fix 1.0.7 bug
SubscribeMarketDepthMBP
version 1.0.7 2019-11-27
-
align response timestamp to UTC time
remove timeserver
-
add subscribe mbp and request mbp
market.$symbol.mbp.$levels
-
UT code update
UT code update
2019-11-08
withdraw add params chain
2019-11-02
compatiable tradeId for subscribe trade detail and request trade detail.
Trade model no change and no impact to user test case
2019-10-30
-
add new api
/v2/reference/currencies /v2/account/deposit/address /v2/account/withdraw/quota /v1/account/history /v1/cross-margin/transfer-in /v1/cross-margin/transfer-out /v1/cross-margin/orders /v1/cross-margin/orders/{order-id}/repay /v1/cross-margin/loan-orders /v1/cross-margin/accounts/balance
-
add data item tradeId in below apis
/market/trade /market/history/trade market.$symbol.trade.detail
-
align output data with API document for below apis
/v1/margin/loan-orders /v1/query/deposit-withdraw
2019-10-28
修改的点:
-
类中增加字段
-
Account CancelOpenOrderRequest NewOrderRequest OpenOrderRequest 中加入subtype字段
-
-
枚举:
-
lookup方法中找不到对应的枚举时不再抛异常,而是返回
sdk_not_support
,在各个枚举中加入sdk_not_support
-
LoanOrderStates 缺少
failed
字段 -
OrderSource 中去掉
invalid
字段,增加以下缺失字段super_margin_api super_margin_app super_margin_web super_margin_fl_sys super_margin_fl_mgt
-
OrderState增加以下缺失字段
pre_submmitted; submitting; failed; place_timeout; canceling;
-
CandlestickInterval 增加
4hour
字段 -
AccountType增加以下缺失字段
minepool; etf; agency; super_margin;
-
-
方法重载
- RequestClient类重载以下方法,增加subtype字段
getAccountBalance
- User类重载以下方法,增加subtype字段
getAccount
-
account解析时增加subtype字段
2019-09-26
- Added support for the following Websocket request interface:
Market Websocket:
"req": "market.$symbol.kline.$period"
"req": "market.type"
"req": "market.$symbol.trade.detail"
"req": "market.$symbol.detail"
Asset Websocket:
"topic": "accounts.list"
"topic": "orders.list"
"topic": "orders.detail"
- Added support following Websocket subscription topic:
market.$symbol.bbo
2019-09-19
- Supported following REST endpoints:
GET /v1/order/orders/getClientOrder
POST /v1/order/orders/submitCancelClientOrder
GET /v1/fee/fee-rate/get
GET /v1/common/symbols
POST /v1/futures/transfer
GET /v1/order/history
GET /market/trade
- Supported following Websocket subscription topic:
orders.$symbol.update
- Enhanced features to support request fields “from”, “direct”, and “size”, for following REST endpoints:
GET /v1/order/orders
GET /v1/order/matchresults
GET /v1/order/openOrders
- Enhanced features to support stop limit order type for following endpoint:
POST /v1/order/orders/place
- Enhanced features to support response fields “role”, “filled-points”, and “fee-deduct-currency”, for following REST endpoints:
GET /v1/order/orders/{order-id}/matchresults
GET /v1/order/matchresults