Documentation ¶
Index ¶
- Constants
- func AmountToLotSize(amount, minQty, stepSize string, precision int) string
- func Ed25519(secretKey string, data string) (*string, error)
- func Hmac(secretKey string, data string) (*string, error)
- func IsAPIError(e error) bool
- func Rsa(secretKey string, data string) (*string, error)
- func SignFunc(keyType string) (func(string, string) (*string, error), error)
- func ToInt(digit interface{}) (i int, err error)
- func ToInt64(digit interface{}) (i int64, err error)
- func ToJSONList(v []byte) []byte
- type APIError
- type PriceLevel
Constants ¶
View Source
const ( KeyTypeHmac = "HMAC" KeyTypeRsa = "RSA" KeyTypeEd25519 = "ED25519" )
Variables ¶
This section is empty.
Functions ¶
func AmountToLotSize ¶
AmountToLotSize convert amount to lot size
Types ¶
type APIError ¶
type APIError struct { Code int64 `json:"code"` Message string `json:"msg"` Response []byte `json:"-"` // Assign the body value when the Code and Message fields are invalid. }
APIError define API error when response status is 4xx or 5xx
type PriceLevel ¶ added in v2.2.2
PriceLevel is a common structure for bids and asks in the order book.
Click to show internal directories.
Click to hide internal directories.