From 0b56c653dd80a95236e4c045aaca9597203bc3e8 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Wed, 15 Apr 2015 22:20:10 +1000 Subject: [PATCH] Added Huobi Websocket depth struct. --- huobiwebsocket.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/huobiwebsocket.go b/huobiwebsocket.go index 9b97bc00..e9e58a7a 100644 --- a/huobiwebsocket.go +++ b/huobiwebsocket.go @@ -39,6 +39,20 @@ const ( var HuobiSocket *socketio.SocketIO +type HuobiDepth struct { + SymbolID string `json:"symbolId"` + Time float64 `json:"time"` + Version float64 `json:"version"` + BidName string `json:"bidName"` + BidPrice []float64 `json:"bidPrice"` + BidTotal []float64 `json:"bidTotal"` + BidAmount []float64 `json:"bidAmount"` + AskName string `json:"askName"` + AskPrice []float64 `json:"askPrice"` + AskTotal []float64 `json:"askTotal"` + AskAmount []float64 `json:"askAmount"` +} + type HuobiWebsocketTrade struct { Price []float64 `json:"price"` Level []float64 `json:"level"`