UNPKG

@exchange-connect/coinex

Version:
402 lines (401 loc) 9.21 kB
/** * @namespace HTTPConstants */ export declare const BASE_URLS: { GENERAL: string; FUTURES: string; }; /** * Enum for Http Method Types. * @enum {String} METHOD_TYPE * @memberof HTTPConstants */ export declare const METHOD_TYPE: { /** GET HTTP Request */ GET: string; /** POST HTTP Request */ POST: string; /** DELETE HTTP Request */ DELETE: string; /** PUT HTTP Request */ PUT: string; }; import { InvalidArgumentError, InvalidLeverageError, InvalidPriceSizeError, InvalidCloseAmountError, InternalServiceError, ServiceTimeoutError, ServiceUnavailableError, TradingServiceUnavailableError, UserDoesNotExistError, AssetDoesNotExitsError, OrderDoesNotExistError, MarketDoesNotExistError, PositionDoesNotExitsError, AccessIDDoesNotExistError, SignatureError, AccessIDExpiredError, IPProhibitedError, APIAccessForbiddenError, InsufficientBalanceError, UnavailableTransferToAccountDueToRejectionError, UnavailableMergeDepthError, ServiceUnavailableDuoFundingFeeSettlementError, ServiceIsBusyError, UnavailableBalanceDueToRepeatingUpdateError, PositionAmountExceedsLimitError, InsufficientCounterPartiesError, ExceedsLimitError, PositionLiquidationError } from "../errors/http"; /** * Response Code Map. * @enum {Object} RESPONSE_CODES * @memberof HTTPConstants */ export declare const RESPONSE_CODES: { /** Succeeded */ 0: { message: string; description: string; }; /** Error */ 1: { message: string; description: string; error: ErrorConstructor; }; /** Invalid argument */ 2: { message: string; description: string; error: typeof InvalidArgumentError; }; 3: { message: string; description: string; error: typeof InternalServiceError; }; 23: { message: string; description: string; error: typeof IPProhibitedError; }; 24: { message: string; description: string; error: typeof AccessIDDoesNotExistError; }; 25: { message: string; description: string; error: typeof SignatureError; }; 34: { message: string; description: string; error: typeof AccessIDExpiredError; }; 35: { message: string; description: string; error: typeof ServiceUnavailableError; }; 36: { message: string; description: string; error: typeof ServiceTimeoutError; }; 40: { message: string; description: string; }; 49: { message: string; description: string; error: typeof UnavailableTransferToAccountDueToRejectionError; }; 107: { message: string; description: string; error: typeof InsufficientBalanceError; }; 158: { message: string; description: string; error: typeof APIAccessForbiddenError; }; 213: { message: string; description: string; }; 227: { message: string; description: string; }; 600: { message: string; description: string; error: typeof OrderDoesNotExistError; }; 601: { message: string; description: string; }; 602: { message: string; description: string; }; 606: { message: string; description: string; }; 651: { message: string; description: string; error: typeof UnavailableMergeDepthError; }; 3007: { message: string; description: string; error: typeof ServiceUnavailableDuoFundingFeeSettlementError; }; 3008: { message: string; description: string; error: typeof ServiceIsBusyError; }; 3101: { message: string; description: string; error: typeof MarketDoesNotExistError; }; 3102: { message: string; description: string; error: typeof UserDoesNotExistError; }; 3103: { message: string; description: string; error: typeof OrderDoesNotExistError; }; 3104: { message: string; description: string; }; 3105: { message: string; description: string; error: typeof PositionDoesNotExitsError; }; 3106: { message: string; description: string; error: typeof AssetDoesNotExitsError; }; 3107: { message: string; description: string; error: typeof UnavailableBalanceDueToRepeatingUpdateError; }; 3108: { message: string; description: string; error: typeof PositionAmountExceedsLimitError; }; 3109: { message: string; description: string; error: typeof InsufficientBalanceError; }; 3110: { message: string; description: string; error: typeof InsufficientCounterPartiesError; }; 3111: { message: string; description: string; error: typeof ExceedsLimitError; }; 3112: { message: string; description: string; error: typeof UserDoesNotExistError; }; 3113: { message: string; description: string; error: typeof InvalidLeverageError; }; 3115: { message: string; description: string; error: typeof PositionLiquidationError; }; 3116: { message: string; description: string; }; 3117: { message: string; description: string; }; 3118: { message: string; description: string; }; 3119: { message: string; description: string; }; 3120: { message: string; description: string; }; 3121: { message: string; description: string; }; 3122: { message: string; description: string; }; 3123: { message: string; description: string; }; 3124: { message: string; description: string; }; 3125: { message: string; description: string; }; 3126: { message: string; description: string; }; 3127: { message: string; description: string; }; 3128: { message: string; description: string; error: typeof InvalidPriceSizeError; }; 3129: { message: string; description: string; }; 3130: { message: string; description: string; error: typeof TradingServiceUnavailableError; }; 3131: { message: string; description: string; }; 3132: { message: string; description: string; }; 3133: { message: string; description: string; }; 3134: { message: string; description: string; }; 3135: { message: string; description: string; }; 3136: { message: string; description: string; error: typeof InvalidCloseAmountError; }; 3137: { message: string; description: string; }; 3138: { message: string; description: string; }; 3139: { message: string; description: string; }; 3500: { message: string; description: string; }; 4001: { message: string; description: string; error: typeof ServiceUnavailableError; }; 4002: { message: string; description: string; error: typeof ServiceTimeoutError; }; 4003: { message: string; description: string; error: typeof InternalServiceError; }; 4004: { message: string; description: string; error: typeof InvalidArgumentError; }; 4005: { message: string; description: string; error: typeof AccessIDDoesNotExistError; }; 4006: { message: string; description: string; }; 4007: { message: string; description: string; }; 4008: { message: string; description: string; }; 4009: { message: string; description: string; }; 4010: { message: string; description: string; }; 4011: { message: string; description: string; }; 4012: { message: string; description: string; }; 4013: { message: string; description: string; }; 4014: { message: string; description: string; }; 4015: { message: string; description: string; }; 4016: { message: string; description: string; }; 10005: { message: string; description: string; }; }; /** * Response Status Code Map. * @enum {Object} RESPONSE_STATUS_CODES * @memberof HTTPConstants */ export declare const RESPONSE_STATUS_CODES: { 200: { message: string; description: string; }; 404: { message: string; description: string; }; };