Documentation ¶
Index ¶
- Constants
- func AmountToLotSize(lot float64, precision int, amount float64) float64
- 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 converts an amount to a lot sized amount
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 ¶
PriceLevel is a common structure for bids and asks in the order book.
Click to show internal directories.
Click to hide internal directories.