diff --git a/rest/api_public.go b/rest/api_public.go index a450346..7788350 100644 --- a/rest/api_public.go +++ b/rest/api_public.go @@ -25,6 +25,7 @@ func (b *ByBit) GetServerTime() (timeNow int64, err error) { } // GetOrderBook Get the orderbook +// 正反向合约通用 func (b *ByBit) GetOrderBook(symbol string) (result OrderBook, err error) { var ret GetOrderBookResult params := map[string]interface{}{} diff --git a/rest/api_public2.go b/rest/api_public2.go index c4f917e..6547532 100644 --- a/rest/api_public2.go +++ b/rest/api_public2.go @@ -1,6 +1,8 @@ package rest -import "net/http" +import ( + "net/http" +) // GetKLine2 (USDT永续) // https://bybit-exchange.github.io/docs/zh-cn/linear/#t-querykline diff --git a/rest/result.go b/rest/result.go index b6a9062..2f57f2a 100644 --- a/rest/result.go +++ b/rest/result.go @@ -240,7 +240,7 @@ type OrderListResult struct { // Order ... type Order struct { OrderID string `json:"order_id"` - //StopOrderID string `json:"stop_order_id"` + StopOrderID string `json:"stop_order_id"` UserID int `json:"user_id"` Symbol string `json:"symbol"` Side string `json:"side"`