Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
f0cii committed Oct 23, 2020
1 parent b2efca3 commit 2114e6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions rest/api_public.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
Expand Down
4 changes: 3 additions & 1 deletion rest/api_public2.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion rest/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 2114e6e

Please # to comment.