UNPKG

@proton/ccxt

Version:

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges

51 lines (48 loc) 1.56 kB
// ---------------------------------------------------------------------------- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code // EDIT THE CORRESPONDENT .ts FILE INSTEAD const errorHierarchy = { 'BaseError': { 'ExchangeError': { 'AuthenticationError': { 'PermissionDenied': { 'AccountNotEnabled': {}, }, 'AccountSuspended': {}, }, 'ArgumentsRequired': {}, 'BadRequest': { 'BadSymbol': {}, 'MarginModeAlreadySet': {}, }, 'BadResponse': { 'NullResponse': {}, }, 'InsufficientFunds': {}, 'InvalidAddress': { 'AddressPending': {}, }, 'InvalidOrder': { 'OrderNotFound': {}, 'OrderNotCached': {}, 'CancelPending': {}, 'OrderImmediatelyFillable': {}, 'OrderNotFillable': {}, 'DuplicateOrderId': {}, }, 'NotSupported': {}, }, 'NetworkError': { 'DDoSProtection': { 'RateLimitExceeded': {}, }, 'ExchangeNotAvailable': { 'OnMaintenance': {}, }, 'InvalidNonce': {}, 'RequestTimeout': {}, }, }, }; export default errorHierarchy;