Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitmexClient ¶
BitmexClient with direct API methods
func (*BitmexClient) GetBuckets ¶
func (c *BitmexClient) GetBuckets(symbol string, from time.Time, binSize string) ([]TradeBucketedResponse, error)
GetBuckets from bitmex Trade API
func (*BitmexClient) GetInstruments ¶
func (c *BitmexClient) GetInstruments() ([]string, error)
GetInstruments from bitmex API
type TradeBucketedResponse ¶
type TradeBucketedResponse struct { Timestamp string `json:"timestamp"` Symbol string `json:"symbol"` Open float64 `json:"open"` High float64 `json:"high"` Low float64 `json:"low"` Close float64 `json:"close"` Trades float64 `json:"trades"` Volume float64 `json:"volume"` Vwap float64 `json:"vwap"` LastSize float64 `json:"lastSize"` Turnover float64 `json:"turnover"` HomeNotional float64 `json:"homeNotional"` ForeignNotional float64 `json:"foreignNotional"` }
TradeBucketedResponse json from bitMEX bucketed trade API
Click to show internal directories.
Click to hide internal directories.