bkerr

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoError                            = 0
	InvalidJSONPayload                 = 1
	MissingXBTKAPIKEY                  = 2
	InvalidAPIKey                      = 3
	APIPendingForActivation            = 4
	IPNotAllowed                       = 5
	MissingInvalidSignature            = 6
	MissingTimestamp                   = 7
	InvalidTimestamp                   = 8
	InvalidUser                        = 9
	InvalidParameter                   = 10
	InvalidSymbol                      = 11
	InvalidAmount                      = 12
	InvalidRate                        = 13
	ImproperRate                       = 14
	AmountTooLow                       = 15
	FailedToGetBalance                 = 16
	WalletIsEmpty                      = 17
	InsufficientBalance                = 18
	FailedToInsertOrderIntoDb          = 19
	FailedToDeductBalance              = 20
	InvalidOrderForCancellation        = 21
	InvalidSide                        = 22
	FailedToUpdateOrderStatus          = 23
	InvalidOrderForLookup              = 24
	KYCLevel1IsRequiredToProceed       = 25
	LimitExceeds                       = 30
	PendingWithdrawalExists            = 40
	InvalidCurrencyForWithdrawal       = 41
	AddressIsNotInWhitelist            = 42
	FailedToDeductCrypto               = 43
	FailedToCreateWithdrawalRecord     = 44
	NonceHasToBeNumeric                = 45
	InvalidNonce                       = 46
	WithdrawalLimitExceeds             = 47
	InvalidBankAccount                 = 48
	BankLimitExceeds                   = 49
	PendingWithdrawalExists2           = 50
	WithdrawalIsUnderMaintenance       = 51
	InvalidPermission                  = 52
	InvalidInternalAddress             = 53
	AddressHasBeenDeprecated           = 54
	CancelOnlyMode                     = 55
	UserHasBeenSuspendedFromPurchasing = 56
	UserHasBeenSuspendedFromSelling    = 57
	ServerError                        = 90
)

Variables

This section is empty.

Functions

func ErrorText

func ErrorText(errorCode int) string

ErrorText is a function that returns the error text or description from an error code. If the error code is not found, it returns "error code not found!"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL