Documentation
¶
Index ¶
- type Params
- func (p Params) GetBool(key string) (bool, bool)
- func (p Params) GetFloat32(key string) (float32, bool)
- func (p Params) GetFloat64(key string) (float64, bool)
- func (p Params) GetInt(key string) (int, bool)
- func (p Params) GetInt32(key string) (int32, bool)
- func (p Params) GetInt64(key string) (int64, bool)
- func (p Params) GetString(key string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params map[string]interface{}
Params are additional parameters which can be send for specific options per exchange
func UnionParams ¶
UnionParams merges the parameters to one single parameter map. It handles the element in a sequential way, this means that `Params` with the same key will override earlier values. It always returns a valid `Params` maps, this map could be empty but never `nil`.
func (Params) GetBool ¶
GetBool return `key` in params as an `bool`. Indicating if the actual `value` was an bool.
func (Params) GetFloat32 ¶
GetFloat32 return `key` in params as a float32. Indicating if the actual `value` was a float32.
func (Params) GetFloat64 ¶
GetFloat64 return `key` in params as a float64. Indicating if the actual `value` was a float64.
func (Params) GetInt ¶
GetInt return `key` in params as an `int`. Indicating if the actual `value` was an int.
func (Params) GetInt32 ¶
GetInt32 return `key` in params as an int32. Indicating if the actual `value` was an int32.