-
Notifications
You must be signed in to change notification settings - Fork 92
/
get_order_book_response.go
28 lines (27 loc) · 1.09 KB
/
get_order_book_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package models
type GetOrderBookResponse struct {
Timestamp int64 `json:"timestamp"`
Stats struct {
Volume float64 `json:"volume"`
Low float64 `json:"low"`
High float64 `json:"high"`
} `json:"stats"`
State string `json:"state"`
SettlementPrice float64 `json:"settlement_price"`
OpenInterest float64 `json:"open_interest"`
MinPrice float64 `json:"min_price"`
MaxPrice float64 `json:"max_price"`
MarkPrice float64 `json:"mark_price"`
LastPrice float64 `json:"last_price"`
InstrumentName string `json:"instrument_name"`
IndexPrice float64 `json:"index_price"`
Funding8H float64 `json:"funding_8h"`
CurrentFunding float64 `json:"current_funding"`
ChangeID int `json:"change_id"`
Bids [][]float64 `json:"bids"`
BestBidPrice float64 `json:"best_bid_price"`
BestBidAmount float64 `json:"best_bid_amount"`
BestAskPrice float64 `json:"best_ask_price"`
BestAskAmount float64 `json:"best_ask_amount"`
Asks [][]float64 `json:"asks"`
}