Skip to content

Commit 2114e6e

Browse files
committed
Update
1 parent b2efca3 commit 2114e6e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

rest/api_public.go

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func (b *ByBit) GetServerTime() (timeNow int64, err error) {
2525
}
2626

2727
// GetOrderBook Get the orderbook
28+
// 正反向合约通用
2829
func (b *ByBit) GetOrderBook(symbol string) (result OrderBook, err error) {
2930
var ret GetOrderBookResult
3031
params := map[string]interface{}{}

rest/api_public2.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package rest
22

3-
import "net/http"
3+
import (
4+
"net/http"
5+
)
46

57
// GetKLine2 (USDT永续)
68
// https://bybit-exchange.github.io/docs/zh-cn/linear/#t-querykline

rest/result.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ type OrderListResult struct {
240240
// Order ...
241241
type Order struct {
242242
OrderID string `json:"order_id"`
243-
//StopOrderID string `json:"stop_order_id"`
243+
StopOrderID string `json:"stop_order_id"`
244244
UserID int `json:"user_id"`
245245
Symbol string `json:"symbol"`
246246
Side string `json:"side"`

0 commit comments

Comments
 (0)