45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
const errorHierarchy = {
|
|
'BaseError': {
|
|
'ExchangeError': {
|
|
'AuthenticationError': {
|
|
'PermissionDenied': {},
|
|
'AccountSuspended': {},
|
|
},
|
|
'ArgumentsRequired': {},
|
|
'BadRequest': {
|
|
'BadSymbol': {},
|
|
},
|
|
'BadResponse': {
|
|
'NullResponse': {},
|
|
},
|
|
'InsufficientFunds': {},
|
|
'InvalidAddress': {
|
|
'AddressPending': {},
|
|
},
|
|
'InvalidOrder': {
|
|
'OrderNotFound': {},
|
|
'OrderNotCached': {},
|
|
'CancelPending': {},
|
|
'OrderImmediatelyFillable': {},
|
|
'OrderNotFillable': {},
|
|
'DuplicateOrderId': {},
|
|
},
|
|
'NotSupported': {},
|
|
},
|
|
'NetworkError': {
|
|
'DDoSProtection': {
|
|
'RateLimitExceeded': {},
|
|
},
|
|
'ExchangeNotAvailable': {
|
|
'OnMaintenance': {},
|
|
},
|
|
'InvalidNonce': {},
|
|
'RequestTimeout': {},
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = errorHierarchy;
|