diff --git a/src/Constants/ErrorCodes.php b/src/Constants/ErrorCodes.php index e9eb520..fe83dec 100644 --- a/src/Constants/ErrorCodes.php +++ b/src/Constants/ErrorCodes.php @@ -5,50 +5,95 @@ class ErrorCodes { public const NO_ERROR = 0; + public const INVALID_JSON_PAYLOAD = 1; + public const MISSING_X_BTK_APIKEY = 2; + public const INVALID_API_KEY = 3; + public const API_PENDING_FOR_ACTIVATION = 4; + public const IP_NOT_ALLOWED = 5; + public const MISSING_OR_INVALID_SIGNATURE = 6; + public const MISSING_TIMESTAMP = 7; + public const INVALID_TIMESTAMP = 8; + public const INVALID_USER = 9; + public const INVALID_PARAMETER = 10; + public const INVALID_SYMBOL = 11; + public const INVALID_AMOUNT = 12; + public const INVALID_RATE = 13; + public const IMPROPER_RATE = 14; + public const AMOUNT_TOO_LOW = 15; + public const FAILED_TO_GET_BALANCE = 16; + public const WALLET_IS_EMPTY = 17; + public const INSUFFICIENT_BALANCE = 18; + public const FAILED_TO_INSERT_ORDER_INTO_DB = 19; + public const FAILED_TO_DEDUCT_BALANCE = 20; + public const INVALID_ORDER_FOR_CANCELLATION = 21; + public const INVALID_SIDE = 22; + public const FAILED_TO_UPDATE_ORDER_STATUS = 23; + public const INVALID_ORDER_FOR_LOOKUP = 24; + public const KYC_LEVEL_1_IS_REQUIRED_TO_PROCEED = 25; + public const LIMIT_EXCEEDS = 30; + public const PENDING_WITHDRAWAL_EXISTS = 40; + public const INVALID_CURRENCY_FOR_WITHDRAWAL = 41; + public const ADDRESS_IS_NOT_IN_WHITELIST = 42; + public const FAILED_TO_DEDUCT_CRYPTO = 43; + public const FAILED_TO_CREATE_WITHDRAWAL_RECORD = 44; + public const NONCE_HAS_TO_BE_NUMERIC = 45; + public const INVALID_NONCE = 46; + public const WITHDRAWAL_LIMIT_EXCEEDS = 47; + public const INVALID_BANK_ACCOUNT = 48; + public const BANK_LIMIT_EXCEEDS = 49; + public const PENDING_WITHDRAWAL_EXISTS_2 = 50; + public const WITHDRAWAL_IS_UNDER_MAINTENANCE = 51; + public const INVALID_PERMISSION = 52; + public const INVALID_INTERNAL_ADDRESS = 53; + public const ADDRESS_HAS_BEEN_DEPRECATED = 54; + public const CANCEL_ONLY_MODE = 55; + public const USER_HAS_BEEN_SUSPENDED_FROM_PURCHASING = 56; + public const USER_HAS_BEEN_SUSPENDED_FROM_SELLING = 57; + public const SERVER_ERROR = 90; public const DESCRIPTIONS = [ @@ -113,4 +158,4 @@ public static function getDescription(int $code): string { return $descriptions[$code] ?? 'Unknown error'; } -} \ No newline at end of file +}