@kraken-crypto/ccxt
Version:
A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go
39 lines (34 loc) • 1.47 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var binance = require('./binance.js');
var errors = require('../base/errors.js');
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
class binanceusdm extends binance["default"] {
describe() {
return this.deepExtend(super.describe(), {
'id': 'binanceusdm',
'name': 'Binance USDⓈ-M',
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/117738721-668c8d80-b205-11eb-8c49-3fad84c4a07f.jpg',
'doc': 'https://developers.binance.com/en',
},
'options': {
'fetchMarkets': {
'types': ['linear'],
},
'defaultSubType': 'linear',
},
// https://binance-docs.github.io/apidocs/futures/en/#error-codes
// https://developers.binance.com/docs/derivatives/usds-margined-futures/error-code
'exceptions': {
'exact': {
'-5021': errors.InvalidOrder,
'-5022': errors.InvalidOrder,
'-5028': errors.InvalidOrder, // {"code":-5028,"msg":"Timestamp for this request is outside of the ME recvWindow."}
},
},
});
}
}
exports["default"] = binanceusdm;