-
Notifications
You must be signed in to change notification settings - Fork 0
/
symbols.go
27 lines (23 loc) · 867 Bytes
/
symbols.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
package gemini
type (
SymbolsResponse []string
SymbolDetailsResponse struct {
Symbol string `json:"symbol"`
BaseCurrency string `json:"base_currency"`
QuoteCurrency string `json:"quote_currency"`
TickSize float64 `json:"tick_size"`
QuoteIncrement float64 `json:"quote_increment"`
MinOrderSize string `json:"min_order_size"`
Status string `json:"status"`
}
)
// GetSymbols Returns available symbols at Gemini
func (c *Client) GetSymbols() (resp SymbolsResponse, err error) {
err = c.Call("GET", "/symbols", nil, &resp)
return
}
// GetSymbolDetails Returns detailed information about symbol such as decimal sizes, min order size, currency information.
func (c *Client) GetSymbolDetails(symbol string) (resp SymbolDetailsResponse, err error) {
err = c.Call("GET", "/symbols/details/"+symbol, nil, &resp)
return
}